/* Paramètres : navigation persistante et formulaires. Présentation uniquement. */
.settings-overlay{padding:24px;background:#17212e80;backdrop-filter:blur(6px)}
.settings-overlay .settings-window{width:min(1280px,100%);height:min(860px,92dvh);max-height:92dvh;border:1px solid #dce2e9;border-radius:16px;background:white;box-shadow:0 28px 90px #111b3038}
.settings-window .org-header{flex-shrink:0;padding:18px 24px;gap:20px;border-bottom:1px solid #e6eaf0}
.settings-brand{display:flex;align-items:center;gap:13px}
.settings-brand-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #e6eaf0;border-radius:11px;background:#f7f8fa}
.settings-brand-icon img{opacity:.72}
.settings-window .org-eyebrow{font-size:9px;letter-spacing:.13em;color:#76808d}
.settings-window .org-header h1{font-size:23px;letter-spacing:-.03em;line-height:1.2;margin:3px 0 0}
.settings-header-actions{display:flex;align-items:center;gap:24px}
.settings-scope-switch{display:flex;gap:3px;padding:4px;border:1px solid #e4e8ed;border-radius:8px;background:#f5f6f8}
.settings-scope-switch a{font-size:12px;line-height:1.3;padding:7px 11px;text-decoration:none;border:1px solid transparent;border-radius:5px;color:#606d7c}
.settings-scope-switch a[aria-current]{background:#fff;border-color:#e0e4e9;box-shadow:0 1px 3px #20263109;font-weight:600;color:#202631}
.settings-close{width:34px;height:34px;display:grid;place-items:center;flex-shrink:0;border-radius:7px;background:#f7f8fa;border:1px solid #e2e6ec;color:#667180;text-decoration:none;font-size:24px;line-height:1}
.settings-close:hover{color:#202631;background:#edf0f3}
.settings-close:focus{outline:2px solid #667180;outline-offset:3px}
.settings-layout{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:0;flex:1;overflow:hidden}
.settings-sidebar{background:#fafbfc;border-right:1px solid #e6eaf0;padding:24px 12px;overflow:auto;min-width:0}
.settings-menu-label{font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:#7b8591;margin:0 12px 16px}
.settings-window .settings-menu{display:flex;flex-direction:column;gap:4px;padding:0;background:transparent;border:0;overflow:visible;max-width:none}
.settings-window .settings-menu a{display:flex;align-items:center;gap:10px;min-height:40px;padding:10px 12px;border:1px solid transparent;border-radius:7px;color:#5f6b7a;text-decoration:none;font-size:12px;font-weight:400;white-space:normal;line-height:1.45}
.settings-menu a img{flex:0 0 18px;opacity:.65}
.settings-window .settings-menu a.active,.settings-window .settings-menu a[aria-current]{background:#eef1f5;color:#202631;font-weight:600;border-color:#e3e8ee;box-shadow:inset 3px 0 0 var(--accent)}
.settings-window .settings-menu a:hover{background:#f0f2f5;color:#202631}
.settings-window .settings-menu-extra{margin-top:22px;padding-top:18px;border-top:1px solid #e4e9ee}
.settings-window .settings-body{padding:26px 30px 36px;background:#fff;overflow:auto;min-height:0;scrollbar-width:thin}
.settings-window .settings-body>.card,.settings-window .settings-body>form.card{padding:24px;border:1px solid #e2e7ed;border-radius:12px;box-shadow:none}
.settings-body h2{font-size:21px;line-height:1.3;font-weight:650;letter-spacing:-.025em;margin:0 0 20px}
.settings-body h3{font-size:18px;letter-spacing:-.02em}
.settings-body .org-toolbar{margin:0 0 24px;padding:0 0 22px;border-bottom:1px solid #e7ebf0;align-items:flex-end;gap:12px}
.settings-body .org-toolbar label{flex:1;min-width:0;font-size:11px;font-weight:500;letter-spacing:.01em}
.settings-body .org-toolbar button{min-height:40px;font-size:12px;padding:9px 14px}
.settings-body .form{gap:18px}
.settings-body .form-grid{gap:20px 22px}
.settings-body label{font-size:12px;font-weight:500;color:#485564;line-height:1.55;gap:7px}
.settings-body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.settings-body select,.settings-body textarea{font-size:13px;border-radius:7px;border:1px solid #dce2e9;background:#fff;padding:10px 12px;min-height:40px;box-shadow:0 1px 2px #20263103;max-width:100%}
.settings-body input:focus,.settings-body select:focus,.settings-body textarea:focus{border-color:#8a95a4}
.settings-body small,.settings-body .small{font-size:11px;font-weight:400;line-height:1.6;color:#788290}
.settings-body .form-grid fieldset{border:1px solid #e3e8ee;border-radius:9px;padding:16px;min-width:0;background:#fafbfd}
.settings-body legend{padding:0 6px;font-size:12px;font-weight:600;color:#455261}
.settings-body .check{font-size:12px;line-height:1.5;gap:9px;margin:8px 0;align-items:flex-start}
.settings-body .check input{flex-shrink:0;margin-top:2px;width:16px;height:16px;accent-color:var(--accent)}
.settings-body .btn{min-height:38px;font-size:12px;padding:9px 15px}
.settings-body .btn:not(.btn-ghost){background:#252a30;color:#fff;border-color:#252a30}
.settings-body .btn:not(.btn-ghost):hover{background:#3a424c}
.settings-window .org-note{font-size:12px;line-height:1.65;padding:12px 15px;margin:0;border:1px solid #eedec6;border-left:3px solid #ad7429;border-radius:8px;background:#fffaf2;color:#785424}
.settings-window .org-note p{margin:8px 0;color:inherit;font-size:12px}
.settings-window .employee-lifecycle-info{border:0;background:transparent;padding:0;color:#6b7785;font-size:12px;line-height:1.6}
.settings-window .employee-impact{margin:0 0 4px}
.settings-window .employee-impact>strong{font-size:12px;font-weight:600}
.settings-window .employee-impact ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 20px;padding-left:18px;margin:10px 0;font-size:11px}
.settings-window .employee-impact li{padding:0;overflow-wrap:anywhere}
.settings-window .employee-impact a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.settings-window .employee-impact label{font-size:11px}
.settings-window .employee-impact small{font-size:10px;color:#84633a}
.settings-body .table-wrap{border:1px solid #e1e6ed;border-radius:10px;box-shadow:none}
.settings-body th{font-size:11px;padding:12px 14px;color:#6b7785;font-weight:500}
.settings-body td{font-size:12px;padding:14px}.settings-body td .t-sub{font-size:11px}
.settings-body .settings-secondary{padding:0 0 18px;border-bottom:1px solid #e7ebf0;gap:18px;margin:0 0 22px}
.settings-body .settings-secondary a{font-size:12px;color:#586575;text-underline-offset:4px}
.settings-window .org-footer{padding:12px 24px;border-top:1px solid #e6eaf0;background:#fafbfc;color:#7c8693;font-size:10px;line-height:1.5}
@media(prefers-reduced-motion:no-preference){.settings-menu a,.settings-close,.settings-body .btn{transition:background-color 150ms,color 150ms}}
@media(max-width:1000px){.settings-layout{grid-template-columns:188px minmax(0,1fr)}.settings-window .settings-body{padding:22px}.settings-window .employee-impact ul{grid-template-columns:1fr}.settings-window .settings-menu a{font-size:11px;gap:8px;padding:9px}.settings-body .org-grid-two{grid-template-columns:1fr}}
@media(max-width:700px){
 .settings-overlay{padding:8px}.settings-overlay .settings-window{height:96dvh;max-height:96dvh;border-radius:12px}
 .settings-window .org-header{padding:14px;gap:12px}.settings-brand{gap:9px}.settings-brand-icon{display:none}.settings-window .org-header h1{font-size:21px}
 .settings-header-actions{gap:12px}.settings-scope-switch{max-width:175px;overflow-x:auto}.settings-scope-switch a{padding:6px 8px;font-size:11px}.settings-close{width:30px;height:30px}
 .settings-layout{display:flex;flex-direction:column}.settings-sidebar{flex-shrink:0;padding:8px 10px;background:#fafbfc;border-right:0;border-bottom:1px solid #e5e9ef;max-height:132px;overflow:auto}
 .settings-menu-label{display:none}.settings-window .settings-menu{flex-direction:row;overflow-x:auto;gap:4px}.settings-window .settings-menu a{flex-shrink:0;white-space:nowrap;min-height:36px;padding:8px 10px;font-size:11px}.settings-menu a img{display:none}
 .settings-window .settings-menu-extra{margin:4px 0 0;padding-top:4px;border-top:0}.settings-window .settings-menu a.active,.settings-window .settings-menu a[aria-current]{box-shadow:inset 0 -2px 0 var(--accent)}
 .settings-window .settings-body{padding:18px 14px 24px}.settings-window .settings-body>.card,.settings-window .settings-body>form.card{padding:18px 14px}
 .settings-body .org-toolbar{flex-direction:row;align-items:flex-end;padding-bottom:18px;margin-bottom:18px}.settings-body .org-toolbar button{font-size:11px;padding:9px}
 .settings-body h2{font-size:19px}.settings-body .form-grid{grid-template-columns:1fr;gap:16px}.settings-body .org-grid{grid-template-columns:1fr}
 .settings-window .org-footer{font-size:9px;padding:9px 14px}.settings-window .employee-impact ul{grid-template-columns:1fr}
}
.settings-employee-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}
.settings-employee-heading h2{margin:0}
.settings-record-label{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#788492;margin:0 0 6px}
.settings-record-state{font-size:11px;font-weight:500;padding:4px 9px;border-radius:5px;border:1px solid #e0e6eb;background:#f4f6f8;color:#526170}
.settings-body .settings-assignment-summary{margin:0 0 24px;padding:11px 0;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;font-size:12px}
.settings-assignment-summary a{color:#80602d;text-decoration:none;line-height:1.6}
.settings-assignment-summary a:hover{text-decoration:underline;text-underline-offset:3px}
.settings-body .settings-access-block{margin-top:10px;padding-top:24px;border-top:1px solid #e5e9ef;scroll-margin-top:20px}
.settings-body .settings-access-block h3,.settings-body .settings-section-title{font-size:16px;font-weight:600;letter-spacing:-.01em;margin:0 0 16px}
.settings-access-block .employee-lifecycle-info{margin-bottom:14px}
.settings-access-block .form-grid{margin-top:18px}
.settings-body .settings-section-title{margin:10px 0 0;padding-top:24px;border-top:1px solid #e5e9ef}

/* Parcours de gestion : choisir une personne avant de modifier sa fiche. */
.settings-window .settings-menu-group+.settings-menu-group{margin-top:24px}
.settings-window .settings-menu-label{font-size:10px;margin:0 10px 8px;letter-spacing:.045em}
.settings-window .settings-menu a{font-size:12px;min-height:40px}
.settings-window .settings-body{background:#fbfcfd}
.settings-context-help{background:#f0f3f7;border-radius:8px;padding:13px 16px;margin:0 0 20px;font-size:13px;line-height:1.65;color:#556577}
.settings-help{padding:14px 16px;border:1px solid #e1e6ed;border-radius:8px;background:white;margin:0 0 20px}
.settings-help summary{cursor:pointer;font-size:13px;font-weight:500;color:#526174}
.settings-help h2{font-size:16px;margin:18px 0 10px}
.settings-help p,.settings-help li,.settings-help>a{font-size:12px}
.employee-directory-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 26px}
.employee-directory-head h2{font-size:26px;margin:0 0 8px}
.employee-directory-head p{font-size:13px;line-height:1.6;margin:0;max-width:44ch}
.employee-directory-head .btn{white-space:nowrap}
.employee-search{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;padding:18px;background:#fff;border:1px solid #e2e7ed;border-radius:10px}
.employee-search label{flex:1;min-width:115px}.employee-search .employee-search-query{flex:2;min-width:180px}
.settings-body .employee-search input,.settings-body .employee-search select{width:100%;font-size:13px}
.employee-directory-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:17px 0 10px;font-size:12px;color:#657485}
.employee-directory-meta p{margin:0}
.employee-directory-meta a{font-size:12px;color:var(--accent-deep)}
.employee-list{border:1px solid #e0e6ed;border-radius:12px;background:white;overflow:hidden}
.employee-list-row{display:flex;align-items:center;gap:14px;padding:20px;border-bottom:1px solid #e9edf2;min-width:0}
.employee-list-row:last-child{border-bottom:0}
.employee-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#f0f3f7;color:#657184;font-size:12px;font-weight:600}
.employee-list-identity{flex:1;min-width:0}
.settings-body .employee-list-identity h3{font-size:15px;font-weight:600;margin:0 0 4px;letter-spacing:-.01em;overflow-wrap:anywhere}
.employee-list-identity p{margin:0;font-size:12px;overflow-wrap:anywhere;line-height:1.55}
.employee-list-identity .employee-list-assignment{font-size:11px;margin-top:6px;color:#768293}
.employee-list-assignment span{display:block;margin-top:3px;color:#63758b}
.employee-list-row .settings-record-state{white-space:nowrap}
.employee-list-row .btn{font-size:11px;white-space:nowrap;padding:8px 11px}
.employee-directory-empty{padding:30px;text-align:center;font-size:13px}.employee-directory-empty h3{font-size:17px}
.employee-back{margin:0 0 18px}.employee-back a{font-size:13px;color:#566577;text-decoration:none}
.employee-back a:hover{text-decoration:underline}
.settings-body .employee-form{gap:0}
.employee-section{border-top:1px solid #e3e8ef;margin:0;padding:0;min-width:0}
.employee-section>summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:18px 0;list-style:none}
.employee-section>summary::-webkit-details-marker{display:none}
.employee-section>summary>span{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;background:#f0f3f7;border:1px solid #e4e9ef;border-radius:7px;color:#718093;font-size:12px}
.employee-section[open]>summary>span{background:var(--accent-tint);color:var(--accent-deep)}
.employee-section>summary strong{font-size:14px;font-weight:600}.employee-section>summary small{display:block;margin-top:3px;font-size:11px;font-weight:400;color:#738092}
.employee-section>summary:after{content:'+';margin-left:auto;font-size:18px;color:#647385}.employee-section[open]>summary:after{content:'−'}
.employee-section>.form-grid,.employee-section>.employee-section-body{padding:4px 0 24px}
.settings-body .employee-section .employee-lifecycle-info{margin:0 0 14px}
.employee-section .employee-impact{margin-bottom:16px}
.settings-body .employee-section .form-grid{gap:18px}
.employee-savebar{position:sticky;bottom:-36px;z-index:2;display:flex;justify-content:space-between;gap:12px;background:#fff;padding:18px 0 10px;border-top:1px solid #e5eaf0;margin-top:20px}
.settings-body .employee-form>.org-note{margin-top:16px}
@media(max-width:1000px){.employee-list-row{flex-wrap:wrap}.employee-list-identity{flex-basis:60%}.employee-list-row .settings-record-state{margin-left:52px}.employee-list-row>.btn{margin-left:auto}.employee-savebar{bottom:-36px}}
@media(max-width:700px){
 .settings-sidebar{max-height:58px}.settings-grouped-menu{display:flex;gap:6px;overflow-x:auto}.settings-menu-group{display:contents}.settings-window .settings-menu-group .settings-menu{display:contents}.settings-window .settings-menu-group a{flex-shrink:0;display:flex;align-items:center;gap:7px;padding:10px;font-size:12px;text-decoration:none;white-space:nowrap;border-radius:6px;color:#586779}.settings-menu-group a img{display:none}.settings-menu-group a.active{background:#edf1f6;box-shadow:inset 0 -2px 0 var(--accent)}
 .employee-directory-head{align-items:flex-start;flex-direction:column;gap:14px}.employee-directory-head h2{font-size:23px}
 .employee-search{padding:14px;gap:12px}.employee-search .employee-search-query{flex-basis:100%}.employee-search label{min-width:100px}.employee-search button{width:100%}
 .employee-list-row{padding:16px;gap:10px}.employee-list-identity{flex-basis:65%}.employee-list-row .settings-record-state{margin-left:48px}
 .employee-savebar{bottom:-24px;gap:8px}.settings-body .employee-savebar .btn{font-size:11px;padding:9px 10px}
}
/* Les actions restent au-dessus du pied de fenêtre, même en cours de défilement. */
.settings-body .employee-savebar{bottom:0;padding:14px 0;margin-bottom:0;box-shadow:0 -8px 16px #fff}
.employee-access-actions{margin-top:22px;padding-top:22px;border-top:1px solid #e5eaf0}
.employee-access-actions h3{margin:0 0 7px;font-size:18px}
.employee-access-action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:14px}
.employee-access-action{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:18px;border:1px solid #dce3ea;border-radius:14px;background:#f9fafc}
.employee-access-action strong{font-size:15px;color:#26313e}
.employee-access-action p{margin:0;flex:1;color:#617082;font-size:13px;line-height:1.5}
.employee-access-action .btn{white-space:normal;text-align:center}
.employee-access-action-danger{border-color:#edcbd0;background:#fff8f8}
.employee-access-action-danger .btn{color:#a42139;border-color:#d9a9b2}
.employee-access-action-danger .btn:hover{background:#fbe9ec}
.employee-login-fields{margin:0 0 18px}

/* Affectation salarié : fonction(s), site(s), région(s) en un seul bloc lisible. */
.settings-body .assign-block{border:1px solid #e3e8ef;border-radius:10px;padding:14px 18px 8px;margin:0 0 16px;min-width:0;background:#fff}
.assign-block>legend{font-size:12px;font-weight:600;padding:0 6px;color:#3d4a5a}
.assign-block>.small{margin:0 0 10px;font-size:12px;line-height:1.55;color:#657485}
.assign-block>.check{display:flex;margin:0;padding:7px 0}
.assign-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 18px;padding:9px 0;border-top:1px solid #eef1f5}
.assign-row:first-of-type{border-top:0}
.assign-row .check{margin:0}
.assign-lead{font-size:12px;color:#566577}
.assign-lead small{display:block;margin-left:24px;font-size:11px;color:#84633a}
.assign-lead small:empty{display:none}
.employee-advanced{margin:4px 0 0;border:1px dashed #d3dae3;border-radius:10px;padding:0 18px}
.employee-advanced>summary{cursor:pointer;padding:14px 0;font-size:13px;font-weight:600}
.employee-advanced>summary small{display:block;margin-top:3px;font-size:11px;font-weight:400;color:#738092}
.employee-advanced[open]>summary{border-bottom:1px solid #eef1f5;margin-bottom:16px}
.employee-advanced>.form-grid{padding:0 0 20px}

.org-bulk-hier{border:1px solid #e3e8ef;border-radius:10px;padding:16px 18px;margin:0 0 18px;background:#fff}
.org-bulk-hier h3{margin:0 0 6px;font-size:15px}
.org-bulk-hier .small{margin:0 0 12px;font-size:12px;color:#657485;line-height:1.55}
.org-bulk-list{max-height:300px;overflow:auto;border:1px solid #eef1f5;border-radius:8px;padding:6px 12px;margin:4px 0 14px}
.org-bulk-list .check{display:flex;flex-wrap:wrap;gap:2px 8px;padding:6px 0;border-bottom:1px solid #f1f4f8}
.org-bulk-list .check:last-child{border-bottom:0}
.org-bulk-list small{color:#738092;font-size:11px}
.org-bulk-list [hidden]{display:none}

.assign-more{margin:8px 0 6px;font-size:13px}
.assign-more>summary{cursor:pointer;padding:8px 0;color:#566577;font-size:12px}
.assign-more>.check{display:flex;padding:5px 0}
.assign-team{display:block;margin:0 0 16px}
.assign-team select{display:block;width:100%;margin-top:6px}
.assign-team small{display:block;margin-top:5px;font-size:11px;color:#738092}
/* Réglages avancés : les champs ne s'étirent plus à la hauteur du portefeuille. */
.employee-advanced .form-grid{align-items:start}
.employee-advanced .form-grid>label{align-self:start}
.employee-advanced .form-grid>fieldset{grid-column:1/-1}
.employee-advanced select{height:auto;min-height:0}

.employee-pick{display:flex;align-items:center;flex:0 0 auto}
.employee-pick input,.employee-pick-all input{width:17px;height:17px}
.employee-pick-all{margin:0 0 8px;font-size:12px;color:#657485}
.employee-bulkbar{position:sticky;top:8px;z-index:5;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:0 0 10px;padding:10px 14px;border:1px solid var(--accent-deep,#8a2b7d);border-radius:12px;background:#f8eef6;box-shadow:0 8px 22px rgba(30,26,37,.12)}
.employee-bulkbar[hidden]{display:none}
.employee-bulkbar label{display:flex;align-items:center;gap:6px;font-size:12px;color:#4d5868}
.employee-bulkbar select{min-width:170px;max-width:100%}
.employee-bulk-count{font-size:13px}

.employee-bulkbar label{white-space:nowrap}

/* Organigramme vertical repliable */
.otree-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}
.otree-tools input[type=search]{flex:1 1 260px;min-width:200px}
.otree-status{font-size:12px;color:#566577}
.otree,.otree ul{list-style:none;margin:0;padding:0}
.otree ul{margin-left:15px;padding-left:14px;border-left:2px solid #dfe3ea}
.otree{background:#fff;border:1px solid #e3e7ee;border-radius:12px;padding:8px 10px}
.otree-row{display:flex;align-items:center;gap:6px;padding:3px 0}
.otree-toggle{flex:none;width:22px;height:22px;border:0;border-radius:6px;background:transparent;cursor:pointer;position:relative;color:#566577}
.otree-toggle::before{content:'';position:absolute;left:7px;top:6px;border:5px solid transparent;border-left:7px solid currentColor;border-right:0;transition:transform .12s}
.otree-toggle[aria-expanded=true]::before{transform:rotate(90deg) translate(1px,0)}
.otree-toggle:hover{background:#eef1f5}
.otree-leaf{cursor:default}.otree-leaf::before{display:none}
.otree-person{flex:1 1 auto;display:flex;align-items:center;gap:10px;min-width:0;padding:5px 8px;border-radius:9px;color:inherit;text-decoration:none}
.otree-person:hover{background:#f3f5f9}
.otree-person .org-node-av{flex:none}
.otree-txt{display:flex;flex-direction:column;min-width:0}
.otree-txt strong{font-size:13.5px}
.otree-txt small{font-size:12px;color:#6b7788}
.otree-count{flex:none;min-width:24px;padding:1px 8px;border-radius:999px;background:#eef1f5;color:#3a4657;font-size:12px;font-weight:600;text-align:center}
.otree-item.is-off .otree-person{opacity:.55}
.otree-item.is-match>.otree-row .otree-person{background:#fff3c4;box-shadow:inset 0 0 0 1.5px #e2b93b}
.otree-advanced{margin-top:16px}
/* Paramètres > Communications */
.comm-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.comm-nav a{padding:6px 12px;border-radius:999px;background:#eef1f5;color:#2b3645;text-decoration:none;font-size:13.5px}
.comm-nav a.active,.comm-nav a[aria-current]{background:#1f3a5f;color:#fff}
.comm-table{width:100%;border-collapse:collapse;font-size:13.5px}
.comm-table th,.comm-table td{padding:8px 10px;border-bottom:1px solid #e3e8ef;text-align:left;vertical-align:top}
.comm-table th{font-size:12px;color:#5b6778;font-weight:600}
.comm-table form{display:inline}
.comm-preview{margin:12px 0;padding:12px 14px;border:1px dashed #b9c3d1;border-radius:10px;background:#fafbfd}
.comm-preview pre,.comm-body-field{white-space:pre-wrap;font:inherit;font-family:ui-monospace,Menlo,monospace;font-size:13px}
.comm-vars{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.comm-vars code{padding:2px 8px;border-radius:6px;background:#eef1f5;font-size:12.5px}
.badge.b-ok{background:#e4f5ea;color:#17692f}.badge.b-bad{background:#fde8e8;color:#9b1c1c}.badge.b-warn{background:#fff3c4;color:#7a5b00}.badge.b-accent{background:#e3ecfa;color:#1f3a5f}

/* Communications — v2 (expéditeurs, accords, contrôle avant programmation, page « Mes e-mails ») */
.comm-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.comm-scroll .comm-table{min-width:640px}
.comm-table pre{white-space:pre-wrap;word-break:break-word;margin:6px 0;font-size:12.5px}
.comm-facts{display:grid;grid-template-columns:minmax(150px,220px) 1fr;gap:8px 16px;margin:12px 0}
.comm-facts dt{font-weight:600;color:#5b6778;font-size:13px}
.comm-facts dd{margin:0}
.comm-facts ul{margin:6px 0 0;padding-left:18px}
.comm-counts{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;padding:0;margin:10px 0 0}
.comm-sender .form label{display:block;margin:0 0 10px}
.comm-sender .form input:not([type=checkbox]),.comm-sender .form textarea{width:100%;max-width:640px}
.comm-check{border-left:4px solid #1f3a5f}
.emails-prefs .emails-card{margin:14px 0;padding:16px 18px}
.emails-prefs .emails-text{white-space:normal}
.emails-prefs .check{display:flex;gap:10px;align-items:flex-start}
.emails-prefs .check input{margin-top:4px;flex:none;width:20px;height:20px}
@media (max-width:640px){
  .comm-facts{grid-template-columns:1fr;gap:2px}
  .comm-facts dd{margin-bottom:10px}
  .comm-nav a{padding:8px 12px}
  .comm-table form input{width:100%;margin-bottom:6px}
}
.comm-safe{margin:1rem 0}.comm-safe form{margin-top:.5rem}
