*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f6f8fc;color:#17213f;font-size:14px}.app{display:flex;min-height:100vh}.sidebar{width:235px;background:#0c1838;color:#cbd4e9;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:5;transition:.2s}.brand{height:68px;display:flex;align-items:center;padding:0 20px;gap:9px;font-size:21px;font-weight:750;color:#fff}.brand-mark{width:27px;height:27px;border-radius:9px;background:#6959f6;display:grid;place-items:center;color:#fff}.brand b{font-size:12px;border:1px solid #7180a9;border-radius:6px;padding:3px 6px;color:#fff}.nav{padding:8px 12px;overflow:auto}.section-title{font-size:10px;font-weight:700;letter-spacing:.08em;color:#7886a6;margin:17px 10px 7px}.nav-item{display:flex;align-items:center;gap:10px;color:#cbd4e9;text-decoration:none;padding:9px 11px;border-radius:8px;margin:2px 0;font-size:13px}.nav-item:hover{background:#17264d;color:#fff}.nav-item.active{background:#5445ce;color:#fff}.nav-icon{width:18px;text-align:center;font-size:15px}.collapse{margin:auto 12px 18px;background:transparent;border:0;color:#aeb8d0;text-align:left;padding:10px;cursor:pointer}.sidebar.collapsed{width:65px}.sidebar.collapsed .brand span,.sidebar.collapsed .brand b,.sidebar.collapsed .nav-item span:not(.nav-icon),.sidebar.collapsed .section-title,.sidebar.collapsed .collapse span{display:none}.main{margin-left:235px;width:calc(100% - 235px);min-width:0}.topbar{height:68px;background:#fff;border-bottom:1px solid #e9edf5;display:flex;align-items:center;padding:0 25px;gap:22px}.search{height:38px;max-width:500px;flex:1;border:1px solid #e5e9f2;border-radius:9px;display:flex;align-items:center;padding:0 12px;color:#7d89a5;gap:9px}.search input{border:0;outline:0;flex:1;font-size:13px}.search kbd{font-size:10px;background:#f5f6fa;border:1px solid #e3e6ee;padding:4px 6px;border-radius:5px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.top-btn{position:relative;background:none;border:0;font-size:20px;color:#52617f;padding:8px;cursor:pointer}.top-btn i{position:absolute;top:1px;right:1px;background:#ef466f;color:#fff;font-size:9px;font-style:normal;border-radius:10px;min-width:16px;height:16px;text-align:center;padding-top:3px}.profile{display:flex;align-items:center;gap:9px;background:none;border:0;margin-left:6px;cursor:pointer;color:#26314d}.avatar{width:36px;height:36px;border-radius:50%;background:#e9e7ff;color:#5144d7;display:grid;place-items:center;font-weight:700}.profile-text{display:flex;flex-direction:column;text-align:left}.profile-text strong{font-size:12px}.profile-text small{font-size:10px;color:#7c88a3;margin-top:2px}.mobile-menu{display:none}.content{padding:25px 30px 40px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:20px}.breadcrumb{font-size:11px;color:#8994ab;margin-bottom:7px}h1{margin:0;font-size:25px}h2{font-size:13px;margin:0;font-weight:700}.page-head p{margin:5px 0 0;color:#7d88a2;font-size:12px}.head-actions{display:flex;gap:10px}.period,.primary{border:1px solid #e1e6f0;background:#fff;border-radius:8px;padding:10px 14px;color:#33405e}.primary{background:#6754e9;color:#fff;border-color:#6754e9;font-weight:650}.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:14px}.metric,.panel{background:#fff;border:1px solid #e8ebf3;border-radius:12px;box-shadow:0 2px 10px rgba(28,40,75,.025)}.metric{padding:16px;min-height:150px}.metric-top{display:flex;align-items:center;gap:9px;color:#63708c;font-size:11px}.metric-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;font-size:16px}.purple{background:#eeeaff;color:#6553ed}.blue{background:#e9f2ff;color:#4787e9}.green{background:#e7f8f0;color:#29aa70}.orange{background:#fff1e5;color:#ed8d31}.pink{background:#ffeaf1;color:#ed4f86}.metric>strong{display:block;font-size:24px;margin:11px 0 3px}.metric em{font-style:normal;font-size:12px}.metric small{color:#43ad79;font-size:10px}.sparkline{color:#6754e9;font-size:23px;letter-spacing:1px;margin-top:8px;opacity:.55}.grid{display:grid;grid-template-columns:2fr 1fr;gap:14px}.panel{padding:16px;min-width:0}.panel.wide{min-height:260px}.panel.full{grid-column:1/-1}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.panel-head a,.more{color:#6655e7;text-decoration:none;font-size:11px}.panel-head select{border:1px solid #e1e6ef;border-radius:6px;padding:6px 9px;color:#5c6881;background:#fff}.profile-chart,.sex{display:flex;align-items:center;justify-content:center;gap:45px;height:190px}.donut{width:155px;height:155px;border-radius:50%;background:conic-gradient(#5b7bea 0 13%,#55c99a 13% 39%,#ef9e3c 39% 51%,#ef6b86 51% 76%,#7256cc 76% 92%,#b6c0d6 92% 100%);position:relative;display:grid;place-items:center}.donut:after{content:"";position:absolute;inset:31px;background:#fff;border-radius:50%}.donut span{z-index:1;font-size:20px;font-weight:750;text-align:center}.donut small{display:block;font-size:10px;font-weight:400;color:#8490a8;margin-top:2px}.legend{display:grid;grid-template-columns:1fr 1fr;gap:13px 25px}.legend div{display:flex;align-items:center;gap:7px;min-width:115px}.legend i{width:9px;height:9px;border-radius:50%;background:#647fec}.legend b{margin-left:auto}.alerts{display:flex;flex-direction:column;gap:8px}.alert{display:flex;align-items:center;gap:9px;padding:8px 7px;border-radius:8px;background:#fafbfe}.alert-icon{width:28px;height:28px;border-radius:8px;background:#eeeaff;color:#6553ed;display:grid;place-items:center;font-size:12px}.alert div{display:flex;flex-direction:column;flex:1}.alert strong{font-size:11px}.alert small{font-size:9px;color:#8994ab;margin-top:3px}.alert>b{background:#f0edff;color:#6655e7;border-radius:10px;padding:3px 7px;font-size:10px}.more{display:block;margin-top:13px}.chart{height:205px;padding:10px 18px 0}.bars{height:170px;display:flex;align-items:flex-end;justify-content:space-around;border-bottom:1px solid #e8ebf2;border-left:1px solid #eef0f5}.bar-wrap{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px}.bar-wrap span{font-size:9px;color:#52617f}.bar{width:24px;background:linear-gradient(#6958e9,#9e93f3);border-radius:5px 5px 0 0;min-height:8px}.bar-wrap small{font-size:9px;color:#8994ab;white-space:nowrap}.deadlines{display:flex;flex-direction:column;gap:12px}.deadlines div{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px}.deadlines b{font-size:9px;background:#e8f8ef;color:#2c9e68;border-radius:10px;padding:5px 8px;white-space:nowrap}.dual-chart{height:190px;display:flex;align-items:flex-end;justify-content:space-around;border-bottom:1px solid #e9ecf3}.month{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px}.cols{display:flex;align-items:flex-end;gap:5px;height:150px}.cols i,.cols em{width:12px;border-radius:4px 4px 0 0;display:block}.cols i{background:#51bd86}.cols em{background:#ef6a82}.month small{font-size:9px;color:#8994ab}.sex{height:185px;gap:25px}.sex-donut{background:conic-gradient(#5b7bea 0 70%,#ed5a9a 70% 100%);width:140px;height:140px}.sex p{font-size:10px;margin:9px 0;color:#596680}.sex p b{display:block;margin-top:3px;color:#27324e}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:10px}th{text-align:left;color:#7e89a2;background:#fafbfe;padding:10px 8px;font-weight:600}td{padding:11px 8px;border-top:1px solid #eef0f5;white-space:nowrap}.status{background:#e7f8ee;color:#279764;padding:4px 8px;border-radius:10px;font-size:9px}.collapsed+.main{margin-left:65px;width:calc(100% - 65px)}@media(max-width:1100px){.cards{grid-template-columns:repeat(3,1fr)}.grid{grid-template-columns:1fr}.panel.wide,.panel.full{grid-column:auto}}@media(max-width:750px){.sidebar{transform:translateX(-100%)}.sidebar.open{transform:translateX(0)}.main{margin-left:0;width:100%}.mobile-menu{display:block;border:0;background:none;font-size:20px}.search{display:none}.profile-text{display:none}.content{padding:18px}.page-head{align-items:flex-start;gap:12px}.cards{grid-template-columns:1fr 1fr}.head-actions{display:none}}@media(max-width:480px){.cards{grid-template-columns:1fr}.topbar{padding:0 14px}.content{padding:14px}.profile-chart,.sex{gap:18px}.legend{grid-template-columns:1fr}}


/* Fiche individuelle */
.compact-head{align-items:center}.secondary,.outline,.more-btn{border:1px solid #e1e6ef;background:#fff;color:#4f5d78;border-radius:8px;padding:9px 13px;cursor:pointer}.employee-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:16px;align-items:stretch}.employee-list{padding:0;overflow:hidden;height:calc(100vh - 180px);min-height:650px}.list-head{height:65px;padding:15px 16px;border-bottom:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between}.list-head div{display:flex;flex-direction:column}.list-head strong{font-size:14px}.list-head small{font-size:10px;color:#8994aa;margin-top:3px}.list-search{border:0;background:#f5f6fa;width:31px;height:31px;border-radius:7px;color:#687590}.employee-search{margin:12px;border:1px solid #e2e6ef;border-radius:8px;height:35px;display:flex;align-items:center;padding:0 9px;gap:6px;color:#8a95ab}.employee-search input,.employee-search .nx-search-edit{border:0;outline:0;width:100%;font-size:11px;min-height:19px;line-height:19px;padding:0;background:transparent;white-space:nowrap;overflow:hidden}.employee-table-head{display:grid;grid-template-columns:58px 1fr 1fr;padding:8px 12px;background:#fafbfe;color:#8a95aa;font-size:9px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5}.employee-pagination{height:44px;padding:0 10px;border-top:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between;color:#8a95aa;font-size:9px;background:#fff}.employee-pagination-buttons{display:flex;align-items:center;gap:4px}.employee-pagination-buttons a,.employee-pagination-buttons span{min-width:24px;height:24px;padding:0 6px;border-radius:6px;display:grid;place-items:center;text-decoration:none;color:#65728b;border:1px solid #e2e6ef;background:#fff;font-size:9px}.employee-pagination-buttons a:hover{background:#f5f3ff;border-color:#d9d3ff;color:#5848d9}.employee-pagination-buttons a.active{background:#6654e8;border-color:#6654e8;color:#fff;font-weight:700}.employee-pagination-buttons .disabled{opacity:.4;cursor:default}.employee-rows{overflow:auto;height:calc(100% - 201px)}.employee-row{display:grid;grid-template-columns:58px 1fr 1fr;align-items:center;text-decoration:none;color:#45526d;padding:10px 12px;border-bottom:1px solid #f0f2f6;font-size:10px}.employee-row strong{color:#27334e;font-size:10px}.employee-row:hover{background:#f7f6ff}.employee-row.selected{background:#eeeaff;border-left:3px solid #6654e8;padding-left:9px}.employee-row.selected strong{color:#5142d3}.employee-card{padding:0;overflow:hidden}.employee-top{padding:20px 22px;display:flex;align-items:center;gap:17px;border-bottom:1px solid #e9edf4}.photo-zone{display:flex;flex-direction:column;align-items:center;gap:7px}.employee-photo{width:88px;height:88px;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,#e9e6ff,#dbe7ff);display:grid;place-items:center;color:#5c4bdf;font-size:25px;font-weight:750;border:3px solid #fff;box-shadow:0 2px 8px rgba(28,40,75,.12)}.employee-photo img{width:100%;height:100%;object-fit:cover}.photo-btn{font-size:9px;color:#6352df;cursor:pointer}.identity{flex:1}.identity-line{font-size:9px;color:#35a56d;display:flex;gap:6px;align-items:center}.status-dot{width:6px;height:6px;background:#35b778;border-radius:50%}.identity h2{font-size:20px;margin:7px 0}.identity-meta{display:flex;gap:18px;color:#8a95aa;font-size:9px}.identity-meta b{color:#47536d;font-weight:600;margin-left:3px}.employee-actions{display:flex;gap:8px;align-self:flex-start}.outline{color:#6654e8;border-color:#d8d3ff}.more-btn{padding:9px 11px}.tabs{display:flex;padding:0 22px;border-bottom:1px solid #e9edf4;gap:4px}.tab{padding:13px 13px 11px;text-decoration:none;color:#78849c;font-size:11px;border-bottom:2px solid transparent;cursor:pointer}.tab.active{color:#5848d9;border-bottom-color:#6654e8;font-weight:700}.form-content{padding:22px}.section-label{font-size:9px;letter-spacing:.08em;color:#8a95aa;font-weight:750;margin:0 0 11px;padding-bottom:6px;border-bottom:1px solid #edf0f5}.form-grid{display:grid;gap:12px;margin-bottom:17px}.form-grid.four{grid-template-columns:1fr 1fr 1.2fr 1.2fr}.form-grid.two{grid-template-columns:1.6fr 1fr}.form-grid.three{grid-template-columns:1fr 1fr 1fr}.form-grid.five{grid-template-columns:1.5fr .7fr .7fr .8fr .8fr}.form-grid.nested{gap:9px;margin:0}.form-grid label,.form-content>label{font-size:9px;color:#68758e;display:flex;flex-direction:column;gap:5px}.form-grid input,.form-grid select,.form-content input,.form-content select{height:36px;border:1px solid #dfe4ed;border-radius:7px;padding:0 10px;color:#2f3b57;background:#fff;outline:0;font-size:11px}.form-content input:focus,.form-content select:focus{border-color:#8d82eb;box-shadow:0 0 0 3px #eeecff}.form-content input[readonly]{background:#f6f7fa;color:#7e899e}.checkbox{flex-direction:row!important;align-items:center!important;gap:7px!important;margin:-4px 0 18px!important}.checkbox input{width:14px;height:14px}.form-footer{border-top:1px solid #edf0f5;margin:4px -22px -22px;padding:15px 22px;display:flex;justify-content:space-between;align-items:center;color:#929bb0;font-size:9px}.form-footer div{display:flex;gap:8px}.form-footer .primary{padding:9px 14px;font-size:10px}
@media(max-width:650px){.employee-layout{grid-template-columns:260px 1fr}.form-grid.four,.form-grid.five{grid-template-columns:1fr 1fr}.identity-meta{flex-wrap:wrap}}@media(max-width:750px){.employee-layout{grid-template-columns:1fr}.employee-list{height:350px;min-height:0}.employee-rows{height:225px}.employee-top{flex-wrap:wrap}.employee-actions{margin-left:auto}.form-grid.two,.form-grid.three,.form-grid.four,.form-grid.five{grid-template-columns:1fr}.tabs{overflow:auto}.form-footer{flex-direction:column;align-items:flex-start;gap:10px}}


/* Menu d'actions à droite - Fiche individuelle */
.employee-layout{grid-template-columns:300px minmax(0,1fr) 205px}
.employee-actions-panel{padding:14px 12px;height:calc(100vh - 180px);min-height:650px;overflow:auto}
.right-menu-title{display:flex;align-items:center;gap:7px;font-size:11px;color:#293650;font-weight:600;padding:2px 3px 12px;border-bottom:1px solid #e9edf4;margin-bottom:10px}
.quit-icon{width:16px;height:16px;border-radius:50%;background:#101a31;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700}
.right-actions{display:flex;flex-direction:column;gap:7px}
.action-btn{height:35px;border:0;border-radius:0;text-align:left;padding:0 10px;font-size:10px;color:#24314c;display:flex;align-items:center;gap:9px;cursor:pointer}
.action-btn span{font-size:15px;width:16px;text-align:center}
.action-btn.new{background:#20bce8;color:#fff}
.action-btn.edit{background:#ddd9d5;color:#25314a}
.action-btn.delete{background:#f40086;color:#fff}
.action-btn.copy{background:#ddd9d5;color:#25314a}
.action-btn.dark{background:#3b3b3b;color:#fff}
.action-btn:hover{filter:brightness(.96)}
.right-tree{border-top:1px solid #e5e9f0;margin-top:17px;padding-top:55px}
.tree-title{font-size:11px;font-weight:650;color:#293650;margin:0 0 8px 2px;display:flex;gap:8px;align-items:center}
.tree-title span{color:#1477ef;font-size:12px}
.tree-title.selection{margin-top:22px}
.right-tree button{display:block;border:0;background:transparent;color:#34415c;font-size:10px;text-align:left;padding:5px 4px 5px 22px;width:100%;position:relative;cursor:pointer}
.right-tree button:before{content:"";position:absolute;left:8px;top:0;bottom:0;border-left:1px dotted #b9c2d1}
.right-tree button i{font-style:normal;color:#1678ee;margin-right:7px}
@media(max-width:1250px){.employee-layout{grid-template-columns:260px minmax(0,1fr) 190px}.employee-actions-panel{padding-left:9px;padding-right:9px}}
@media(max-width:650px){.employee-layout{grid-template-columns:250px minmax(0,1fr)}.employee-actions-panel{grid-column:1/-1;height:auto;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:15px}.right-menu-title{grid-column:1/-1}.right-actions{display:grid;grid-template-columns:repeat(2,1fr)}.right-tree{border-top:0;margin-top:0;padding-top:0}}
@media(max-width:750px){.employee-layout{grid-template-columns:1fr}.employee-actions-panel{grid-column:auto}.right-actions{grid-template-columns:1fr 1fr}}


/* Barre de séparation rétractable de la liste gauche */
.employee-layout{
  position:relative;
  grid-template-columns:300px 18px minmax(0,1fr) 205px;
  gap:0;
}
.left-collapse-bar{
  width:18px;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  background:#f7f8fa;
  border-left:1px solid #dfe3e9;
  border-right:1px solid #dfe3e9;
  cursor:col-resize;
  user-select:none;
}
.left-collapse-bar:before{
  content:"";
  position:absolute;
  top:0; bottom:0;
  left:7px;
  width:3px;
  background:#d9dde4;
  border-left:1px solid #cbd0d8;
  border-right:1px solid #cbd0d8;
}
.left-collapse-bar button{
  position:relative;
  z-index:2;
  width:18px;
  height:44px;
  margin-top:0;
  border:0;
  border-radius:3px;
  background:#fff;
  color:#4d5a73;
  box-shadow:0 1px 4px rgba(25,35,55,.20);
  font-size:24px;
  line-height:1;
  padding:0 0 3px;
  cursor:pointer;
}
.left-collapse-bar button:hover{background:#eef1f6;color:#5142d3}
.employee-list{min-width:0}
.employee-layout.left-collapsed{
  grid-template-columns:0 18px minmax(0,1fr) 205px;
}
.employee-layout.left-collapsed .employee-list{
  width:0;
  min-width:0;
  opacity:0;
  overflow:hidden;
  padding:0;
  border:0;
  pointer-events:none;
}
.employee-layout.left-collapsed .left-collapse-bar{
  cursor:default;
}
.employee-layout.left-collapsed .left-collapse-bar button{
  font-size:24px;
}
@media(max-width:650px){
  .employee-layout{grid-template-columns:250px 18px minmax(0,1fr)}
  .employee-actions-panel{grid-column:1/-1}
}
@media(max-width:750px){
  .employee-layout{grid-template-columns:1fr}
  .left-collapse-bar{display:none}
}


/* Correction : séparateur placé ENTRE la liste gauche et la fiche */
.employee-layout{
  position:relative;
  display:grid;
  grid-template-columns:300px 18px minmax(0,1fr) 205px;
  gap:0;
  min-width:0;
}
.employee-list{
  grid-column:1;
  min-width:0;
}
.left-collapse-bar{
  grid-column:2;
  width:18px;
  min-width:18px;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  background:#f7f8fa;
  border-left:1px solid #dfe3e9;
  border-right:1px solid #dfe3e9;
  cursor:col-resize;
  user-select:none;
}
.left-collapse-bar:before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:7px;
  width:3px;
  background:#d9dde4;
  border-left:1px solid #cbd0d8;
  border-right:1px solid #cbd0d8;
}
.left-collapse-bar button{
  position:relative;
  z-index:2;
  width:18px;
  height:44px;
  border:0;
  border-radius:3px;
  background:#fff;
  color:#4d5a73;
  box-shadow:0 1px 4px rgba(25,35,55,.20);
  font-size:24px;
  line-height:1;
  padding:0 0 3px;
  cursor:pointer;
}
.left-collapse-bar button:hover{background:#eef1f6;color:#5142d3}

.employee-card{grid-column:3;min-width:0}
.employee-actions-panel{grid-column:4;min-width:0}

.employee-layout.left-collapsed{
  grid-template-columns:0 18px minmax(0,1fr) 205px;
}
.employee-layout.left-collapsed .employee-list{
  width:0;
  min-width:0;
  opacity:0;
  overflow:hidden;
  padding:0;
  border:0;
  pointer-events:none;
}
.employee-layout.left-collapsed .left-collapse-bar{
  cursor:default;
}

@media(max-width:650px){
  .employee-layout{grid-template-columns:250px 18px minmax(0,1fr)}
  .employee-actions-panel{grid-column:1/-1}
}
@media(max-width:750px){
  .employee-layout{grid-template-columns:1fr}
  .left-collapse-bar{display:none}
  .employee-list,.employee-card{grid-column:auto}
}

/* When collapsed, the list column must truly become zero width. */
.employee-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 205px !important}
.employee-layout.left-collapsed .employee-list{width:0!important;min-width:0!important;opacity:0!important;padding:0!important;border:0!important;pointer-events:none!important}

.right-menu-title.quit-function{
  width:100%;
  border:0;
  background:transparent;
  cursor:pointer;
  text-align:left;
  font-family:inherit;
}
.right-menu-title.quit-function:hover{
  color:#1678ee;
}

/* =========================================================
   NXPeople — modern white main navigation
   ========================================================= */
.modern-sidebar{
  width:250px;
  background:#fff !important;
  color:#34415c;
  border-right:1px solid #e6eaf1;
  box-shadow:3px 0 16px rgba(30,42,70,.035);
  transition:width .2s ease;
}
.modern-sidebar .brand{
  height:76px;
  background:#fff;
  border:0;
  border-bottom:1px solid #edf0f5;
}
.brand-dashboard{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 19px;
  cursor:pointer;
  text-align:left;
}
.brand-name{
  font-size:21px;
  font-weight:800;
  letter-spacing:-.7px;
  color:#182743;
}
.brand-name span{color:#5d50df}
.brand-badge{
  font-size:9px;
  font-weight:750;
  color:#5d50df;
  background:#efeeff;
  border:1px solid #ddd9ff;
  border-radius:5px;
  padding:3px 5px;
}
.modern-sidebar .brand-mark{
  position:relative;
  width:35px;height:32px;
  background:transparent;
  border-radius:0;
  flex:0 0 35px;
}
.modern-sidebar .folder{
  position:absolute;
  width:25px;height:19px;
  border:2px solid #6255e5;
  border-radius:4px;
  background:#fff;
}
.modern-sidebar .folder:before{
  content:"";position:absolute;left:2px;top:-6px;
  width:10px;height:6px;border:2px solid #6255e5;
  border-bottom:0;border-radius:3px 3px 0 0;background:#fff;
}
.modern-sidebar .f1{left:0;top:9px;opacity:.4}
.modern-sidebar .f2{left:5px;top:5px;opacity:.7}
.modern-sidebar .f3{left:10px;top:1px;background:#f0efff}
.modern-nav{padding:12px 10px;overflow:auto}
.nav-home{
  width:100%;height:42px;border:0;border-radius:9px;background:#f1f0ff;
  color:#5549d6;font:600 12px inherit;text-align:left;padding:0 12px;
  display:flex;align-items:center;gap:10px;cursor:pointer;margin-bottom:8px;
}
.nav-home:hover{background:#eae8ff}
.nav-group{border-bottom:1px solid #f0f2f6;padding-bottom:7px;margin-bottom:5px}
.group-title{
  width:100%;height:42px;border:0;background:#fff;border-radius:9px;
  color:#263451;font:750 12px inherit;display:flex;align-items:center;
  justify-content:space-between;padding:0 10px;cursor:pointer;text-align:left;
}
.group-title:hover{background:#f7f8fc}
.group-title>b{font-size:13px;color:#8a94a7;font-weight:500}
.group-title>span{display:flex;align-items:center;gap:9px}
.group-icon{
  width:24px;height:24px;border-radius:7px;display:grid;place-items:center;font-size:13px;
}
.group-icon.rh{background:#eeedff;color:#5d50df}
.group-icon.pay{background:#e9f6ff;color:#2f8dcc}
.group-icon.other{background:#f1f3f7;color:#65718a}
.group-items{max-height:700px;overflow:hidden;opacity:1;transition:max-height .22s ease,opacity .18s ease}
.group-items.is-closed{max-height:0;opacity:0}
.modern-sidebar .nav-item{
  color:#5d6981;background:transparent;margin:1px 0;padding:8px 10px 8px 41px;
  font-size:11px;border-radius:7px;position:relative;
}
.modern-sidebar .nav-item:hover{background:#f5f6fb;color:#5449d7}
.modern-sidebar .nav-icon{
  position:absolute;left:14px;width:17px;color:#8993a6;font-size:12px;
}
.modern-sidebar .nav-item:hover .nav-icon{color:#5b50df}
.modern-sidebar .sidebar-footer{
  margin-top:auto;background:#fff;border-top:1px solid #edf0f5;padding:13px 18px;
  color:#7b869a;font-size:10px;display:flex;align-items:center;gap:7px;
}
.modern-sidebar .status-dot{width:7px;height:7px;background:#27b878;border-radius:50%}

/* Employee photo: slightly larger + click to zoom */
.employee-photo{width:102px;height:102px;cursor:zoom-in;position:relative;transition:transform .16s ease,box-shadow .16s ease}
.photo-zoom-trigger{border:3px solid #fff;padding:0;font:inherit}
.photo-zoom-trigger:hover{transform:scale(1.02);box-shadow:0 5px 16px rgba(28,40,75,.18)}
.photo-modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:30px}
.photo-modal.open{display:flex}
.photo-modal-backdrop{position:absolute;inset:0;background:rgba(13,20,40,.72);backdrop-filter:blur(3px)}
.photo-modal-dialog{position:relative;z-index:1;max-width:min(80vw,720px);max-height:82vh;padding:10px;border-radius:16px;background:#fff;box-shadow:0 18px 55px rgba(0,0,0,.28)}
.photo-modal-image{width:min(70vw,620px);height:min(70vh,620px);display:grid;place-items:center;border-radius:11px;overflow:hidden;background:#f1f3f8}
.photo-modal-image img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.photo-modal-image .photo-initials{width:190px;height:190px;border-radius:24px;background:linear-gradient(135deg,#e9e6ff,#dbe7ff);display:grid;place-items:center;color:#5c4bdf;font-size:58px;font-weight:750}
.photo-modal-close{position:absolute;right:-12px;top:-12px;width:34px;height:34px;border:0;border-radius:50%;background:#fff;color:#263451;font-size:24px;line-height:1;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.18);z-index:2}
@media(max-width:700px){.employee-photo{width:96px;height:96px}.photo-modal{padding:15px}.photo-modal-image{width:82vw;height:70vh}}

/* Fiche individuelle: action blocks removed from header/profile */
.employee-page > .page-head.compact-head{
  display:block !important;
  min-height:0;
  margin-bottom:10px;
}
.employee-page > .page-head.compact-head h1,
.employee-page > .page-head.compact-head p{display:none !important;}
.employee-page > .page-head.compact-head .breadcrumb{display:block !important;margin-bottom:0;}
.employee-card .employee-actions { display:none !important; }

/* Modern quit-window icon */
.right-menu-title.quit-function .quit-icon{
  position:relative;display:inline-block;width:18px;height:15px;
  border:1.6px solid #27344f;border-radius:3px;background:#fff;
  flex:0 0 18px;
  color:transparent;font-size:0;
}
.right-menu-title.quit-function .quit-icon:before{
  content:"";position:absolute;left:2px;right:2px;top:3px;
  border-top:1px solid #8a94a7;
}
.right-menu-title.quit-function .quit-icon:after{
  content:"↪";position:absolute;right:2px;bottom:-2px;
  color:#27344f;font-size:11px;line-height:11px;font-weight:700;
}
.right-menu-title.quit-function{display:flex;align-items:center;gap:8px;padding:0;}
.right-menu-title.quit-function:hover .quit-icon{border-color:#5549d6;}
.right-menu-title.quit-function:hover .quit-icon:after{color:#5549d6;}

.employee-page > .page-head .head-actions,
.employee-page > .page-head .page-actions,
.employee-page > .page-head .top-actions{display:none !important;}

/* Breadcrumb de la fiche individuelle : placé dans la zone supérieure de la fiche */
.employee-breadcrumb{
  font-size:10px;
  color:#8a95aa;
  margin:0 0 12px 0;
  line-height:16px;
  white-space:nowrap;
}
.employee-breadcrumb::first-letter{color:#6c78a0}

/* Bottom edit actions removed from employee form */
.form-footer{justify-content:flex-start}

/* V16 menu tree — Temps & activités, Déclarations légales, Paramétrage */
.group-icon.time{background:#e9f7f2;color:#24986d}
.group-icon.legal{background:#fff0f4;color:#d94f78}
.tree-group .nav-item{padding-left:41px}
.tree-subgroup{margin:0 0 1px 10px;position:relative}
.tree-subgroup:before{content:"";position:absolute;left:10px;top:0;bottom:0;border-left:1px dotted #c8ced9}
.tree-toggle{
  width:100%;border:0;background:transparent;color:#59657d;font:600 11px inherit;
  text-align:left;padding:7px 10px 7px 22px;display:flex;justify-content:space-between;
  align-items:center;cursor:pointer;position:relative
}
.tree-toggle:before{content:"";position:absolute;left:10px;top:50%;width:10px;border-top:1px dotted #c8ced9}
.tree-toggle:hover{color:#5449d7;background:#f7f6ff;border-radius:6px}
.tree-toggle b{font-size:13px;color:#8c96a8;font-weight:500;margin-right:4px}
.tree-children{max-height:500px;overflow:hidden;opacity:1;transition:max-height .18s ease,opacity .15s ease}
.tree-children.is-closed{max-height:0;opacity:0}
.tree-item{
  display:block;text-decoration:none;color:#5d6981;font-size:11px;padding:6px 8px 6px 31px;
  position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.tree-item:before{content:"";position:absolute;left:20px;top:0;bottom:0;border-left:1px dotted #c8ced9}
.tree-item:after{content:"";position:absolute;left:20px;top:50%;width:9px;border-top:1px dotted #c8ced9}
.tree-item:hover{color:#5449d7;background:#f7f6ff;border-radius:6px}
.nested-tree{margin-left:0}
@media(max-width:900px){.tree-item{white-space:normal}}

/* =========================================================
   Sociétés — same interaction pattern as Fiche individuelle
   ========================================================= */
.company-layout{
  display:grid;
  grid-template-columns:300px 18px minmax(0,1fr) 205px;
  gap:0;
  min-width:0;
  align-items:stretch;
}
.company-list{grid-column:1;min-width:0;padding:0;overflow:hidden;height:calc(100vh - 180px);min-height:650px}
.company-table-head{display:grid;grid-template-columns:90px 1fr 1.15fr;padding:8px 12px;background:#fafbfe;color:#8a95aa;font-size:9px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5}
.company-rows{overflow:auto;height:calc(100% - 123px)}
.company-row{display:grid;grid-template-columns:90px 1fr 1.15fr;align-items:center;text-decoration:none;color:#45526d;padding:10px 12px;border-bottom:1px solid #f0f2f6;font-size:10px;min-height:42px}
.company-row strong{color:#27334e;font-size:10px;font-weight:650}
.company-row:hover{background:#f7f6ff}.company-row.selected{background:#eeeaff;border-left:3px solid #6654e8;padding-left:9px}.company-row.selected strong{color:#5142d3}
.company-collapse-bar{grid-column:2}
.company-card{grid-column:3;min-width:0;padding:0;overflow:hidden}
.company-actions-panel{grid-column:4}
.company-top{padding:20px 22px;display:flex;align-items:center;gap:17px;border-bottom:1px solid #e9edf4;min-height:150px}
.company-logo{width:92px;height:92px;border-radius:15px;overflow:hidden;background:linear-gradient(135deg,#eeeaff,#dbe7ff);display:grid;place-items:center;color:#5c4bdf;font-size:32px;border:3px solid #fff;box-shadow:0 2px 8px rgba(28,40,75,.12);flex:none}.company-logo img{width:100%;height:100%;object-fit:contain;padding:8px;box-sizing:border-box;background:#fff;border-radius:12px;display:block}
.company-breadcrumb{font-size:10px;color:#8994ab;margin-bottom:10px}
.company-form{padding:22px}.company-main-grid{display:grid;grid-template-columns:minmax(0,1fr) 188px;gap:20px;align-items:start}
.company-main-grid .form-grid{margin-bottom:13px}.full-field{font-size:9px;color:#68758e;display:flex;flex-direction:column;gap:5px;margin-bottom:13px}
.company-form input,.company-form select{width:100%}
.field-hint{font-size:8px;color:#8792a8;margin-top:1px}.field-hint.invalid{color:#e44969;font-weight:650}.field-hint.valid{color:#2aa86e}
.company-upload{min-height:305px;border:1px dashed #cbd3e0;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#67738b;padding:18px;gap:8px;background:#fcfdff}
.company-upload .upload-icon{font-size:38px;color:#b7c0d1}.company-upload strong{font-size:12px;color:#33415d}.company-upload span{font-size:10px;line-height:1.5}.company-upload small{font-size:8px;color:#96a0b2;margin-top:6px}
.company-finance-grid{grid-template-columns:.8fr 1fr 1.5fr .7fr}
.company-right-tree{margin-top:12px;padding-top:35px}
@media(max-width:1250px){.company-layout{grid-template-columns:260px 18px minmax(0,1fr) 190px}.company-main-grid{grid-template-columns:1fr 170px}.company-actions-panel{padding-left:9px;padding-right:9px}}
@media(max-width:650px){.company-layout{grid-template-columns:250px 18px minmax(0,1fr)}.company-actions-panel{grid-column:1/-1}.company-main-grid{grid-template-columns:1fr}.company-upload{min-height:180px}.company-finance-grid{grid-template-columns:1fr 1fr}}
@media(max-width:750px){.company-layout{grid-template-columns:1fr}.company-list,.company-card,.company-actions-panel{grid-column:auto}.company-collapse-bar{display:none}.company-list{height:350px;min-height:0}.company-rows{height:225px}.company-top{flex-wrap:wrap}.company-finance-grid{grid-template-columns:1fr}.company-table-head,.company-row{grid-template-columns:80px 1fr}.company-table-head span:last-child,.company-row span:last-child{display:none}}

/* Sociétés — divider identical to Fiche individuelle: resizable + collapsible */
.company-layout{position:relative;transition:none}
.company-collapse-bar{width:18px;min-width:18px;position:relative;display:flex;justify-content:center;align-items:center;background:#f7f8fa;border-left:1px solid #dfe3e9;border-right:1px solid #dfe3e9;cursor:col-resize;user-select:none}
.company-collapse-bar:before{content:"";position:absolute;top:0;bottom:0;left:7px;width:3px;background:#d9dde4;border-left:1px solid #cbd0d8;border-right:1px solid #cbd0d8}
.company-collapse-bar button{position:relative;z-index:2;width:18px;height:44px;border:0;border-radius:3px;background:#fff;color:#4d5a73;box-shadow:0 1px 4px rgba(25,35,55,.20);font-size:24px;line-height:1;padding:0 0 3px;cursor:pointer}
.company-collapse-bar button:hover{background:#eef1f6;color:#5142d3}
.company-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 205px!important}
.company-layout.left-collapsed .company-list{width:0!important;min-width:0!important;opacity:0!important;overflow:hidden!important;padding:0!important;border:0!important;pointer-events:none!important}
.company-layout.left-collapsed .company-collapse-bar{cursor:default}

/* V20 CRUD */
.crud-form:not(.crud-editing) input,.crud-form:not(.crud-editing) select{background:#fff}
.crud-form .crud-edit-footer{display:none;gap:8px;margin-left:auto}.crud-form.crud-editing .crud-edit-footer{display:flex}
.crud-form.crud-editing input:not([readonly]),.crud-form.crud-editing select{background:#fff}
.crud-form.crud-editing input[readonly]{background:#f6f7fa}
.right-actions .action-btn:disabled{opacity:.38;cursor:not-allowed;filter:none}
.crud-list-locked{pointer-events:none!important;opacity:.72}
.crud-modal{display:none;position:fixed;inset:0;z-index:1000}.crud-modal.open{display:block}.crud-backdrop{position:absolute;inset:0;background:rgba(19,27,44,.48);backdrop-filter:blur(2px)}.crud-dialog{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(430px,calc(100vw - 32px));background:#fff;border-radius:14px;padding:25px;box-shadow:0 22px 70px rgba(15,25,45,.25);text-align:center}.crud-close{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:23px;color:#7d8799;cursor:pointer}.warning-icon{width:44px;height:44px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#fff0f4;color:#e51d6e;font-size:24px;font-weight:800}.crud-dialog h3{margin:0 0 8px;color:#263451;font-size:16px}.crud-dialog p{margin:0 0 17px;color:#737f94;font-size:11px;line-height:1.5}.password-label{text-align:left;font-size:10px;color:#5f6c84;display:block}.password-label input{width:100%;box-sizing:border-box;height:38px;border:1px solid #dfe4ed;border-radius:7px;margin-top:6px;padding:0 10px;outline:none}.crud-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.danger-confirm{border:0;border-radius:7px;background:#f40086;color:#fff;padding:9px 20px;cursor:pointer}.crud-dialog-actions .secondary{border:1px solid #e1e6ef;background:#fff;color:#4f5d78;border-radius:7px;padding:9px 16px;cursor:pointer}

/* V20 CRUD */
.crud-form:not(.crud-editing) input,.crud-form:not(.crud-editing) select{background:#fff}
.crud-form .crud-edit-footer{display:none;gap:8px;margin-left:auto}.crud-form.crud-editing .crud-edit-footer{display:flex}
.crud-form.crud-editing input:not([readonly]),.crud-form.crud-editing select{background:#fff}
.crud-form.crud-editing input[readonly]{background:#f6f7fa}
.right-actions .action-btn:disabled{opacity:.38;cursor:not-allowed;filter:none}
.crud-list-locked{pointer-events:none!important;opacity:.72}
.crud-modal{display:none;position:fixed;inset:0;z-index:1000}.crud-modal.open{display:block}.crud-backdrop{position:absolute;inset:0;background:rgba(19,27,44,.48);backdrop-filter:blur(2px)}.crud-dialog{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(430px,calc(100vw - 32px));background:#fff;border-radius:14px;padding:25px;box-shadow:0 22px 70px rgba(15,25,45,.25);text-align:center}.crud-close{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:23px;color:#7d8799;cursor:pointer}.warning-icon{width:44px;height:44px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#fff0f4;color:#e51d6e;font-size:24px;font-weight:800}.crud-dialog h3{margin:0 0 8px;color:#263451;font-size:16px}.crud-dialog p{margin:0 0 17px;color:#737f94;font-size:11px;line-height:1.5}.password-label{text-align:left;font-size:10px;color:#5f6c84;display:block}.password-label input{width:100%;box-sizing:border-box;height:38px;border:1px solid #dfe4ed;border-radius:7px;margin-top:6px;padding:0 10px;outline:none}.crud-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.danger-confirm{border:0;border-radius:7px;background:#f40086;color:#fff;padding:9px 20px;cursor:pointer}.crud-dialog-actions .secondary{border:1px solid #e1e6ef;background:#fff;color:#4f5d78;border-radius:7px;padding:9px 16px;cursor:pointer}

/* V22 - Correctif définitif du panneau d'actions à droite.
   Le breakpoint 1250px ne doit jamais créer une 4e colonne implicite.
   Le panneau doit rester sur la même ligne que la fiche jusqu'à 750px. */
@media (min-width:751px) and (max-width:1250px){
  .employee-layout{
    display:grid !important;
    grid-template-columns:260px 18px minmax(0,1fr) 205px !important;
    gap:0 !important;
  }
  .employee-list{grid-column:1 !important;}
  .left-collapse-bar{grid-column:2 !important;}
  .employee-card{grid-column:3 !important;}
  .employee-actions-panel{
    grid-column:4 !important;
    grid-row:1 !important;
    width:auto !important;
    min-width:0 !important;
  }
}

@media (min-width:1251px){
  .employee-layout{
    display:grid !important;
    grid-template-columns:300px 18px minmax(0,1fr) 205px !important;
    gap:0 !important;
  }
  .employee-list{grid-column:1 !important;}
  .left-collapse-bar{grid-column:2 !important;}
  .employee-card{grid-column:3 !important;}
  .employee-actions-panel{
    grid-column:4 !important;
    grid-row:1 !important;
    width:auto !important;
    min-width:0 !important;
  }
}

/* V23 — structure robuste : le panneau d'actions fait partie explicitement de la grille */
@media (min-width: 751px) {
  .employee-page .employee-layout {
    display: grid !important;
    grid-template-columns: 300px 18px minmax(0, 1fr) 205px !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 0 !important;
    align-items: stretch !important;
  }
  .employee-page .employee-layout > .employee-list { grid-column: 1 !important; grid-row: 1 !important; }
  .employee-page .employee-layout > .left-collapse-bar { grid-column: 2 !important; grid-row: 1 !important; }
  .employee-page .employee-layout > .employee-card { grid-column: 3 !important; grid-row: 1 !important; }
  .employee-page .employee-layout > .employee-actions-panel { grid-column: 4 !important; grid-row: 1 !important; width: 205px !important; min-width: 205px !important; align-self: stretch !important; }
}
@media (min-width: 751px) and (max-width: 1250px) {
  .employee-page .employee-layout { grid-template-columns: 260px 18px minmax(0,1fr) 205px !important; }
  .employee-page .employee-layout > .employee-actions-panel { width:205px !important; min-width:205px !important; }
}
@media (max-width: 750px) {
  .employee-page .employee-layout { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
  .employee-page .employee-layout > * { grid-column: 1 !important; grid-row: auto !important; }
  .employee-page .employee-actions-panel { width:auto !important; min-width:0 !important; }
}

/* V25 — Sociétés : même structure robuste que Fiche individuelle.
   Le panneau d'actions reste explicitement en colonne 4, sur la même ligne. */
@media (min-width:751px) {
  .company-page .company-layout {
    display:grid !important;
    grid-template-columns:300px 18px minmax(0,1fr) 205px !important;
    grid-template-rows:minmax(0,1fr) !important;
    gap:0 !important;
    align-items:stretch !important;
  }
  .company-page .company-layout > .company-list {grid-column:1 !important;grid-row:1 !important;}
  .company-page .company-layout > .company-collapse-bar {grid-column:2 !important;grid-row:1 !important;}
  .company-page .company-layout > .company-card {grid-column:3 !important;grid-row:1 !important;}
  .company-page .company-layout > .company-actions-panel {grid-column:4 !important;grid-row:1 !important;width:205px !important;min-width:205px !important;align-self:stretch !important;}
}
@media (min-width:751px) and (max-width:1250px) {
  .company-page .company-layout {grid-template-columns:260px 18px minmax(0,1fr) 205px !important;}
  .company-page .company-layout > .company-actions-panel {width:205px !important;min-width:205px !important;}
}
@media (max-width:750px) {
  .company-page .company-layout {grid-template-columns:1fr !important;grid-template-rows:auto !important;}
  .company-page .company-layout > * {grid-column:1 !important;grid-row:auto !important;}
  .company-page .company-layout > .company-actions-panel {width:auto !important;min-width:0 !important;}
}

.company-logo-preview{width:105px;height:105px;object-fit:contain;border-radius:12px;background:#fff;border:1px solid #e2e6ef;padding:6px;box-sizing:border-box}.company-upload{cursor:pointer;position:relative}.company-upload input[type=file]{display:none}

/* V26 - Ecran Mois de paie */
.payroll-month-layout{display:grid;grid-template-columns:300px 18px minmax(0,1fr) 205px;gap:0;min-width:0;align-items:stretch}
.payroll-month-list{grid-column:1;padding:0;overflow:hidden;height:calc(100vh - 180px);min-height:650px}
.payroll-month-table-head{display:grid;grid-template-columns:82px 92px 45px 55px minmax(0,1fr);padding:8px 12px;background:#fafbfe;color:#8a95aa;font-size:9px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5}
.payroll-month-rows{overflow:auto;height:calc(100% - 123px)}
.payroll-month-row{display:grid;grid-template-columns:82px 92px 45px 55px minmax(0,1fr);align-items:center;text-decoration:none;color:#45526d;padding:10px 12px;border-bottom:1px solid #f0f2f6;font-size:10px;min-height:46px}
.payroll-month-row:hover{background:#f7f6ff}.payroll-month-row.selected{background:#eeeaff;border-left:3px solid #6654e8;padding-left:9px}.payroll-month-collapse-bar{grid-column:2}.payroll-month-card{grid-column:3;min-width:0;padding:0;overflow:hidden}.payroll-month-actions-panel{grid-column:4}.payroll-month-top{padding:20px 22px;display:flex;align-items:center;gap:17px;border-bottom:1px solid #e9edf4;min-height:150px}.payroll-month-icon{width:92px;height:92px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#eeeaff,#dbe7ff);color:#5d4de1;font-size:32px;border:3px solid #fff;box-shadow:0 2px 8px rgba(28,40,75,.12)}.payroll-breadcrumb{font-size:9px;color:#8994ab;margin-bottom:11px}.payroll-info-box{background:#f8f8ff;border:1px solid #e7e4ff;border-radius:8px;color:#68758e;font-size:10px;padding:12px;margin:4px 0 18px}.mini-status{font-style:normal;font-size:8px;padding:4px 7px;border-radius:10px;white-space:nowrap}.mini-status.yes{background:#e7f8ee;color:#279764}.mini-status.no{background:#f2f3f6;color:#7f899d}.mini-status.closed{background:#eeeaff;color:#5d4bd8}.mini-status.open{background:#fff3e7;color:#c57a28}
@media(min-width:751px){.payroll-month-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 205px!important}.payroll-month-layout.left-collapsed .payroll-month-list{width:0!important;min-width:0!important;opacity:0!important;overflow:hidden!important;padding:0!important;border:0!important;pointer-events:none!important}.payroll-month-layout.left-collapsed .payroll-month-collapse-bar{cursor:default}}
@media(max-width:750px){.payroll-month-layout{grid-template-columns:1fr}.payroll-month-list,.payroll-month-card,.payroll-month-actions-panel{grid-column:auto}.payroll-month-collapse-bar{display:none}.payroll-month-list{height:350px;min-height:0}.payroll-month-rows{height:225px}.payroll-month-table-head,.payroll-month-row{grid-template-columns:82px 92px 45px 55px minmax(0,1fr)}.payroll-month-actions-panel{height:auto;min-height:0}}


/* V26.1 - Correction robuste de l'ecran Mois de paie */
.payroll-month-page{width:100%;min-width:0;display:block}
.payroll-month-page .payroll-month-layout{
  width:100%;
  display:grid!important;
  grid-template-columns:300px 18px minmax(0,1fr) 205px!important;
  grid-template-rows:1fr!important;
  gap:0!important;
  align-items:stretch!important;
  min-width:0!important;
}
.payroll-month-page .payroll-month-list{grid-column:1!important;grid-row:1!important;display:block!important;min-width:0!important;width:auto!important}
.payroll-month-page .payroll-month-collapse-bar{grid-column:2!important;grid-row:1!important;display:flex!important}
.payroll-month-page .payroll-month-card{grid-column:3!important;grid-row:1!important;display:block!important;min-width:0!important;width:auto!important}
.payroll-month-page .payroll-month-actions-panel{grid-column:4!important;grid-row:1!important;display:block!important;min-width:0!important;width:auto!important;height:calc(100vh - 180px)!important;min-height:650px!important}
@media (min-width:751px) and (max-width:1250px){
  .payroll-month-page .payroll-month-layout{grid-template-columns:260px 18px minmax(0,1fr) 190px!important}
  .payroll-month-page .payroll-month-actions-panel{width:auto!important;min-width:0!important}
}
@media (max-width:750px){
  .payroll-month-page .payroll-month-layout{grid-template-columns:1fr!important;grid-template-rows:auto!important}
  .payroll-month-page .payroll-month-layout > *{grid-column:1!important;grid-row:auto!important}
  .payroll-month-page .payroll-month-collapse-bar{display:none!important}
  .payroll-month-page .payroll-month-list{height:350px;min-height:0}
  .payroll-month-page .payroll-month-actions-panel{height:auto!important;min-height:0!important}
}


/* V26.2 - layout Mois de paie, cache-bust et grille explicite */
@media (min-width:751px){
  .payroll-month-page{display:block!important;width:100%!important;min-width:0!important;}
  .payroll-month-page .payroll-month-layout{display:grid!important;grid-template-columns:300px 18px minmax(0,1fr) 205px!important;grid-template-rows:minmax(650px,1fr)!important;gap:0!important;width:100%!important;min-width:0!important;align-items:stretch!important;}
  .payroll-month-page .payroll-month-list{display:block!important;grid-column:1!important;grid-row:1!important;width:auto!important;min-width:0!important;height:calc(100vh - 180px)!important;min-height:650px!important;overflow:hidden!important;}
  .payroll-month-page .payroll-month-collapse-bar{display:flex!important;grid-column:2!important;grid-row:1!important;width:18px!important;min-width:18px!important;height:calc(100vh - 180px)!important;min-height:650px!important;align-items:center!important;justify-content:center!important;}
  .payroll-month-page .payroll-month-card{display:block!important;grid-column:3!important;grid-row:1!important;width:auto!important;min-width:0!important;height:calc(100vh - 180px)!important;min-height:650px!important;overflow:auto!important;}
  .payroll-month-page .payroll-month-actions-panel{display:block!important;grid-column:4!important;grid-row:1!important;width:205px!important;min-width:205px!important;height:calc(100vh - 180px)!important;min-height:650px!important;overflow:auto!important;}
}
@media (min-width:751px) and (max-width:1250px){
 .payroll-month-page .payroll-month-layout{grid-template-columns:260px 18px minmax(0,1fr) 205px!important;}
 .payroll-month-page .payroll-month-list{width:auto!important;}
}
@media (max-width:750px){
 .payroll-month-page .payroll-month-layout{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto!important;}
 .payroll-month-page .payroll-month-layout>*{grid-column:1!important;grid-row:auto!important;}
 .payroll-month-page .payroll-month-collapse-bar{display:none!important;}
 .payroll-month-page .payroll-month-list{display:block!important;height:350px!important;min-height:0!important;}
 .payroll-month-page .payroll-month-card{height:auto!important;min-height:0!important;}
 .payroll-month-page .payroll-month-actions-panel{height:auto!important;min-height:0!important;width:auto!important;min-width:0!important;}
}
/* V26.4 - la réduction doit aussi annuler la largeur de grille inline */
@media (min-width:751px){
  .payroll-month-page .payroll-month-layout.left-collapsed{
    grid-template-columns:0px 18px minmax(0,1fr) 205px!important;
  }
  .payroll-month-page .payroll-month-layout.left-collapsed .payroll-month-list{
    width:0!important;min-width:0!important;padding:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;
  }
  .payroll-month-page .payroll-month-layout.left-collapsed .payroll-month-card{
    width:100%!important;min-width:0!important;
  }
}

/* V27 - Rubriques de paie */
.rubric-page{width:100%;min-width:0}.rubric-layout{display:grid;grid-template-columns:330px 18px minmax(0,1fr) 205px;grid-template-rows:minmax(650px,1fr);gap:0;align-items:stretch;width:100%;min-width:0}.rubric-list{grid-column:1;grid-row:1;padding:0;overflow:hidden;height:calc(100vh - 180px);min-height:650px}.rubric-table-head,.rubric-row{display:grid;grid-template-columns:58px 105px minmax(130px,1fr) 65px}.rubric-table-head{padding:8px 12px;background:#fafbfe;color:#8a95aa;font-size:9px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5}.rubric-rows{height:calc(100% - 123px);overflow:auto}.rubric-row{align-items:center;text-decoration:none;color:#45526d;padding:10px 12px;border-bottom:1px solid #f0f2f6;font-size:10px;min-height:42px}.rubric-row strong{color:#27334e;font-size:10px;font-weight:600}.rubric-row:hover{background:#f7f6ff}.rubric-row.selected{background:#dfe6ea;border-left:3px solid #4c6d7c;padding-left:9px}.rubric-row.selected strong{color:#27334e}.rubric-collapse-bar{grid-column:2;grid-row:1}.rubric-card{grid-column:3;grid-row:1;min-width:0;overflow:auto}.rubric-actions-panel{grid-column:4;grid-row:1;min-width:0;width:205px;height:calc(100vh - 180px);min-height:650px;overflow:auto}.rubric-top{padding:16px 18px;display:flex;align-items:center;gap:16px;border-bottom:1px solid #e9edf4;min-height:115px}.rubric-symbol{width:64px;height:64px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#eaf0f4,#d8e5ea);color:#3f6577;font-size:28px;font-weight:700;border:3px solid #fff;box-shadow:0 2px 8px rgba(28,40,75,.12)}.rubric-breadcrumb{font-size:9px;color:#8994ab;margin-bottom:10px}.rubric-top .identity h2{font-size:24px;line-height:1.15;margin:2px 0 8px;color:#25334d;font-weight:700}.rubric-form{padding-top:18px}.rubric-ident-grid{grid-template-columns:1fr .45fr 1.25fr}.rubric-comment{margin-bottom:16px}.rubric-comment textarea{border:1px solid #dfe4ed;border-radius:7px;padding:9px 10px;color:#2f3b57;background:#fff;outline:0;font:inherit;font-size:11px;resize:vertical}.rubric-check{align-self:end;height:36px;margin:0!important;justify-content:center}.rubric-right-tree{margin-top:10px}.rubric-actions-panel .action-btn{font-size:10px}.rubric-form.crud-editing input:disabled,.rubric-form.crud-editing select:disabled,.rubric-form.crud-editing textarea:disabled{opacity:.55}.rubric-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 205px!important}.rubric-layout.left-collapsed .rubric-list{width:0!important;min-width:0!important;padding:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}.rubric-layout.left-collapsed .rubric-card{width:100%!important;min-width:0!important}.rubric-collapse-bar{width:18px;min-width:18px;position:relative;display:flex;justify-content:center;align-items:center;background:#f7f8fa;border-left:1px solid #dfe3e9;border-right:1px solid #dfe3e9;cursor:col-resize;user-select:none}.rubric-collapse-bar:before{content:"";position:absolute;top:0;bottom:0;left:7px;width:3px;background:#d9dde4;border-left:1px solid #cbd0d8;border-right:1px solid #cbd0d8}.rubric-collapse-bar button{position:relative;z-index:2;width:18px;height:44px;border:0;border-radius:3px;background:#fff;color:#4d5a73;box-shadow:0 1px 4px rgba(25,35,55,.20);font-size:24px;line-height:1;padding:0 0 3px;cursor:pointer}.rubric-collapse-bar button:hover{background:#eef1f6;color:#5142d3}.rubric-list.crud-list-locked,.rubric-collapse-bar.crud-list-locked{pointer-events:none}
@media(min-width:751px) and (max-width:1250px){.rubric-layout{grid-template-columns:260px 18px minmax(0,1fr) 205px!important}.rubric-actions-panel{width:205px!important}.rubric-table-head,.rubric-row{grid-template-columns:50px 85px minmax(110px,1fr) 55px}}
@media(max-width:750px){.rubric-layout{grid-template-columns:1fr!important;grid-template-rows:auto!important}.rubric-layout>*{grid-column:1!important;grid-row:auto!important}.rubric-collapse-bar{display:none}.rubric-list{height:350px;min-height:0}.rubric-rows{height:225px}.rubric-card{height:auto;overflow:visible}.rubric-actions-panel{height:auto;min-height:0;width:auto}.rubric-ident-grid,.rubric-form .form-grid.three,.rubric-form .form-grid.two{grid-template-columns:1fr}.rubric-top{flex-wrap:wrap}.rubric-table-head,.rubric-row{grid-template-columns:58px 90px minmax(120px,1fr) 55px}}

/* V27.1 - précisions Rubriques de paie */
.rubric-form .field-hint{display:block;color:#8b95aa;font-size:9px;line-height:1.35;margin-top:1px}.rubric-form .field-hint b{color:#4d5b75}.rubric-amounts{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:17px}.rubric-amounts label{font-size:9px;color:#68758e;display:flex;flex-direction:column;gap:5px}.rubric-amounts input{height:40px;border:1px solid #dfe4ed;border-radius:7px;padding:0 10px;color:#2f3b57;background:#fff;outline:0;font-size:11px}.rubric-amounts input:focus{border-color:#8d82eb;box-shadow:0 0 0 3px #eeecff}.rubric-tab-panel[hidden]{display:none!important}.rubric-tabs .tab{border:0;border-bottom:2px solid transparent;background:transparent;font-family:inherit}.rubric-tabs .tab.active{border-bottom-color:#6654e8}.rubric-placeholder{font-size:11px;color:#8a95aa;padding:18px 4px}.rubric-check{justify-content:flex-start!important;align-self:center!important;margin:0!important}.rubric-form input[type="date"]{color-scheme:light}.rubric-form input[type="date"]:invalid{color:#2f3b57}@media(max-width:750px){.rubric-amounts{gap:10px}}

/* V27.5 - Rubriques : condition sur toute la largeur et options d'impression sur une ligne */
.rubric-validity-grid{margin-bottom:12px}.rubric-condition-field{font-size:9px;color:#68758e;display:flex;flex-direction:column;gap:5px;margin-bottom:17px}.rubric-condition-field input{height:40px;border:1px solid #dfe4ed;border-radius:7px;padding:0 10px;color:#2f3b57;background:#fff;outline:0;font-size:11px;width:100%;box-sizing:border-box}.rubric-condition-field input:focus{border-color:#8d82eb;box-shadow:0 0 0 3px #eeecff}.rubric-impression-grid{grid-template-columns:1.35fr 1fr;align-items:end}.rubric-impression-options{display:flex;align-items:center;gap:28px;height:36px}.rubric-impression-options .rubric-check{margin:0!important;white-space:nowrap}.rubric-impression-options .rubric-check input{flex:0 0 auto}
@media(max-width:750px){.rubric-impression-grid{grid-template-columns:1fr}.rubric-impression-options{height:auto;gap:18px;flex-wrap:wrap;margin-top:4px}.rubric-validity-grid{grid-template-columns:1fr!important}}

/* V28 - Profils de bulletin */
.profile-page{width:100%;min-width:0}.profile-layout{display:grid;grid-template-columns:300px 18px minmax(0,1fr) 205px;grid-template-rows:minmax(650px,1fr);gap:0;align-items:stretch;width:100%;min-width:0}.profile-list{grid-column:1;grid-row:1;padding:0;overflow:hidden;height:calc(100vh - 180px);min-height:650px}.profile-table-head,.profile-row{display:grid;grid-template-columns:72px minmax(120px,1fr) 48px}.profile-table-head{padding:8px 12px;background:#fafbfe;color:#8a95aa;font-size:9px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5}.profile-rows{height:calc(100% - 123px);overflow:auto}.profile-row{align-items:center;text-decoration:none;color:#45526d;padding:10px 12px;border-bottom:1px solid #f0f2f6;font-size:10px;min-height:42px}.profile-row strong{color:#27334e;font-size:10px;font-weight:600}.profile-row:hover{background:#f7f6ff}.profile-row.selected{background:#dfe6ea;border-left:3px solid #4c6d7c;padding-left:9px}.profile-row.selected strong{color:#27334e}.profile-collapse-bar{grid-column:2;grid-row:1}.profile-card{grid-column:3;grid-row:1;min-width:0;overflow:auto}.profile-actions-panel{grid-column:4;grid-row:1;min-width:0;width:205px;height:calc(100vh - 180px);min-height:650px;overflow:auto}.profile-top{padding:16px 18px;display:flex;align-items:center;gap:16px;border-bottom:1px solid #e9edf4;min-height:115px}.profile-symbol{width:64px;height:64px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#eaf0f4,#d8e5ea);color:#3f6577;font-size:28px;font-weight:700;border:3px solid #fff;box-shadow:0 2px 8px rgba(28,40,75,.12)}.profile-breadcrumb{font-size:9px;color:#8994ab;margin-bottom:10px}.profile-top .identity h2{font-size:24px;line-height:1.15;margin:2px 0 8px;color:#25334d;font-weight:700}.profile-form{padding-top:18px}.profile-ident-grid{grid-template-columns:1fr 1.7fr .6fr;align-items:end}.profile-check{height:36px;display:flex!important;flex-direction:row!important;align-items:center;gap:7px;white-space:nowrap}.profile-comment{display:flex;flex-direction:column;gap:5px;font-size:9px;color:#68758e}.profile-comment textarea{border:1px solid #dfe4ed;border-radius:7px;padding:9px 10px;color:#2f3b57;background:#fff;outline:0;font:inherit;font-size:11px;resize:vertical}.profile-tabs .tab{border:0;border-bottom:2px solid transparent;background:transparent;font-family:inherit}.profile-tabs .tab.active{border-bottom-color:#6654e8}.profile-tab-panel[hidden]{display:none!important}.profile-table-tools{display:flex;justify-content:space-between;align-items:center;color:#68758e;font-size:10px;margin:3px 0 9px}.profile-table-tools b{font-weight:600;color:#53617b}.profile-detail-table{border:1px solid #e1e6ed;border-radius:6px;overflow:hidden}.profile-detail-head,.profile-detail-row{display:grid;grid-template-columns:150px minmax(180px,1fr) 65px 180px 55px}.profile-detail-head{background:#315e73;color:#fff;font-size:9px;font-weight:600;padding:8px 10px}.profile-detail-row{align-items:center;min-height:34px;padding:0 10px;border-bottom:1px solid #edf0f4;color:#45526d;font-size:10px}.profile-detail-row:nth-child(odd){background:#f5f7f8}.profile-detail-row strong{font-weight:500;color:#2f3b57}.profile-detail-row input[type=checkbox]{width:15px;height:15px}.profile-placeholder{padding:30px 18px;color:#8a95aa;font-size:10px}.profile-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 205px!important}.profile-layout.left-collapsed .profile-list{width:0!important;min-width:0!important;padding:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}.profile-layout.left-collapsed .profile-card{width:100%!important;min-width:0!important}.profile-collapse-bar{width:18px;min-width:18px;position:relative;display:flex;justify-content:center;align-items:center;background:#f7f8fa;border-left:1px solid #dfe3e9;border-right:1px solid #dfe3e9;cursor:col-resize;user-select:none}.profile-collapse-bar:before{content:"";position:absolute;top:0;bottom:0;left:7px;width:3px;background:#d9dde4;border-left:1px solid #cbd0d8;border-right:1px solid #cbd0d8}.profile-collapse-bar button{position:relative;z-index:2;width:18px;height:44px;border:0;border-radius:3px;background:#fff;color:#4d5a73;box-shadow:0 1px 4px rgba(25,35,55,.20);font-size:24px;line-height:1;padding:0 0 3px;cursor:pointer}.profile-collapse-bar button:hover{background:#eef1f6;color:#5142d3}.profile-list.crud-list-locked,.profile-collapse-bar.crud-list-locked{pointer-events:none}.profile-form.crud-editing input:disabled,.profile-form.crud-editing textarea:disabled{opacity:.55}
@media(min-width:751px) and (max-width:1250px){.profile-layout{grid-template-columns:260px 18px minmax(0,1fr) 205px!important}.profile-actions-panel{width:205px!important}.profile-table-head,.profile-row{grid-template-columns:62px minmax(100px,1fr) 45px}.profile-detail-head,.profile-detail-row{grid-template-columns:110px minmax(140px,1fr) 55px 140px 50px}}
@media(max-width:750px){.profile-layout{grid-template-columns:1fr!important;grid-template-rows:auto!important}.profile-layout>*{grid-column:1!important;grid-row:auto!important}.profile-collapse-bar{display:none}.profile-list{height:350px;min-height:0}.profile-rows{height:225px}.profile-card{height:auto;overflow:visible}.profile-actions-panel{height:auto;min-height:0;width:auto}.profile-ident-grid{grid-template-columns:1fr}.profile-top{flex-wrap:wrap}.profile-detail-table{overflow-x:auto}.profile-detail-head,.profile-detail-row{min-width:680px}}

/* V29 - Variables de paie */
.variable-page{width:100%;min-width:0}.variable-layout{display:grid;grid-template-columns:300px 18px minmax(0,1fr) 205px;grid-template-rows:minmax(650px,1fr);gap:0;align-items:stretch;width:100%;min-width:0}.variable-list{grid-column:1;grid-row:1;padding:0;overflow:hidden;height:calc(100vh - 180px);min-height:650px}.variable-table-head,.variable-row{display:grid;grid-template-columns:115px minmax(120px,1fr) 65px}.variable-table-head{padding:8px 12px;background:#fafbfe;color:#8a95aa;font-size:9px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5}.variable-rows{height:calc(100% - 123px);overflow:auto}.variable-row{align-items:center;text-decoration:none;color:#45526d;padding:10px 10px;border-bottom:1px solid #f0f2f6;font-size:10px;min-height:42px}.variable-row strong{color:#27334e;font-size:10px;font-weight:600}.variable-row:hover{background:#f7f6ff}.variable-row.selected{background:#dfe6ea;border-left:3px solid #4c6d7c;padding-left:7px}.variable-collapse-bar{grid-column:2;grid-row:1}.variable-card{grid-column:3;grid-row:1;min-width:0;overflow:auto}.variable-actions-panel{grid-column:4;grid-row:1;min-width:0;width:205px;height:calc(100vh - 180px);min-height:650px;overflow:auto}.variable-top{padding:16px 18px;display:flex;align-items:center;gap:16px;border-bottom:1px solid #e9edf4;min-height:115px}.variable-symbol{width:64px;height:64px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#eaf0f4,#d8e5ea);color:#3f6577;font-size:28px;font-weight:700;border:3px solid #fff;box-shadow:0 2px 8px rgba(28,40,75,.12)}.variable-breadcrumb{font-size:9px;color:#8994ab;margin-bottom:10px}.variable-top .identity h2{font-size:24px;line-height:1.15;margin:2px 0 8px;color:#25334d;font-weight:700}.variable-tabs .tab{border:0;border-bottom:2px solid transparent;background:transparent;font-family:inherit}.variable-tabs .tab.active{border-bottom-color:#6654e8}.variable-tab-panel[hidden]{display:none!important}.variable-form{padding-top:18px}.variable-ident-grid{grid-template-columns:1fr 2fr}.variable-form .field-hint{display:block;color:#8b95aa;font-size:9px;line-height:1.35;margin-top:2px}.variable-form .field-hint b{color:#4d5b75}.variable-form label{font-size:9px;color:#68758e;display:flex;flex-direction:column;gap:5px}.variable-zone-wrap{display:flex;flex-direction:column}.variable-zone-wrap.disabled{opacity:.55}
.variable-zone-wrap{display:flex;flex-direction:column}.variable-zone-wrap.disabled{opacity:.55}
.variable-form input,.variable-form select,.variable-form textarea{border:1px solid #dfe4ed;border-radius:7px;padding:9px 10px;color:#2f3b57;background:#fff;outline:0;font:inherit;font-size:11px;box-sizing:border-box}.variable-form input,.variable-form select{height:38px}.variable-form input:focus,.variable-form select:focus,.variable-form textarea:focus{border-color:#8d82eb;box-shadow:0 0 0 3px #eeecff}.variable-force{flex-direction:row!important;align-items:center;justify-content:flex-start;gap:7px;align-self:end;height:38px;white-space:nowrap}.variable-force input{width:15px;height:15px}.variable-value-grid{grid-template-columns:1fr 1fr;margin-top:12px}.variable-comment{display:flex;flex-direction:column;gap:5px;font-size:9px;color:#68758e}.variable-comment textarea{resize:vertical}.variable-note{font-size:11px;color:#7c879d;padding:12px 0}.variable-saisie-grid{display:flex;gap:35px;font-size:11px;color:#34415c}.variable-saisie-grid label{flex-direction:row!important;align-items:center;gap:7px}.variable-saisie-grid input{width:15px;height:15px}.variable-profile-table .profile-detail-head.variable{grid-template-columns:130px minmax(180px,1fr) 70px}.variable-profile-row{grid-template-columns:130px minmax(180px,1fr) 70px!important}.variable-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 205px!important}.variable-layout.left-collapsed .variable-list{width:0!important;min-width:0!important;padding:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}.variable-layout.left-collapsed .variable-card{width:100%!important;min-width:0!important}.variable-collapse-bar{width:18px;min-width:18px;position:relative;display:flex;justify-content:center;align-items:center;background:#f7f8fa;border-left:1px solid #dfe3e9;border-right:1px solid #dfe3e9;cursor:col-resize;user-select:none}.variable-collapse-bar:before{content:"";position:absolute;top:0;bottom:0;left:7px;width:3px;background:#d9dde4;border-left:1px solid #cbd0d8;border-right:1px solid #cbd0d8}.variable-collapse-bar button{position:relative;z-index:2;width:18px;height:44px;border:0;border-radius:3px;background:#fff;color:#4d5a73;box-shadow:0 1px 4px rgba(25,35,55,.20);font-size:24px;line-height:1;padding:0 0 3px;cursor:pointer}.variable-collapse-bar button:hover{background:#eef1f6;color:#5142d3}.variable-list.crud-list-locked,.variable-collapse-bar.crud-list-locked{pointer-events:none}.variable-form.crud-editing input:disabled,.variable-form.crud-editing select:disabled,.variable-form.crud-editing textarea:disabled{opacity:.55}
@media(min-width:751px) and (max-width:1250px){.variable-layout{grid-template-columns:260px 18px minmax(0,1fr) 205px!important}.variable-actions-panel{width:205px!important}.variable-table-head,.variable-row{grid-template-columns:95px minmax(100px,1fr) 55px}}
@media(max-width:750px){.variable-layout{grid-template-columns:1fr!important;grid-template-rows:auto!important}.variable-layout>*{grid-column:1!important;grid-row:auto!important}.variable-collapse-bar{display:none}.variable-list{height:350px;min-height:0}.variable-rows{height:225px}.variable-card{height:auto;overflow:visible}.variable-actions-panel{height:auto;min-height:0;width:auto}.variable-ident-grid,.variable-form .form-grid.three,.variable-form .form-grid.two{grid-template-columns:1fr}.variable-top{flex-wrap:wrap}.variable-profile-table{overflow-x:auto}.variable-profile-row,.variable-profile-table .profile-detail-head.variable{min-width:420px}}
/* V29.1 - alignement du tableau Profils des Variables */
.variable-form .variable-profile-row{
  display:grid!important;
  grid-template-columns:130px minmax(180px,1fr) 70px!important;
  flex-direction:initial!important;
  align-items:center!important;
  width:100%;
  box-sizing:border-box;
}
.variable-form .variable-profile-row > span,
.variable-form .variable-profile-row > strong{
  min-width:0;
}
.variable-form .variable-profile-row > span:last-child{
  display:flex;
  align-items:center;
  justify-content:center;
}

/* V29.2 - tableau des variables dans Profils de bulletin */
.profile-variable-head,.profile-variable-row{grid-template-columns:170px minmax(220px,1fr) 150px 70px!important}
.profile-variable-row{align-items:center!important}
.profile-variable-row .profile-variable-check{display:flex;align-items:center;justify-content:center}
.profile-variable-row input[type=checkbox]{width:15px;height:15px}
@media(max-width:1250px) and (min-width:751px){.profile-variable-head,.profile-variable-row{grid-template-columns:120px minmax(160px,1fr) 110px 55px!important}}

/* V30 - Fiche individuelle enrichie */
.employee-form{padding-top:18px}
.employee-tab-panel[hidden]{display:none!important}
.employee-tabs .tab{border:0;border-bottom:2px solid transparent;background:transparent;font-family:inherit;cursor:pointer}
.employee-tabs .tab.active{border-bottom-color:#6654e8}
.employee-inline-check{display:flex!important;flex-direction:row!important;align-items:center;gap:7px;align-self:end;height:38px;white-space:nowrap}
.employee-inline-check input,.employee-form .checkbox input{width:15px!important;height:15px!important}
.employee-note{font-size:10px;color:#7f8aa0;padding:12px 0}
.employee-form:not(.crud-editing) input,.employee-form:not(.crud-editing) select,.employee-form:not(.crud-editing) textarea{pointer-events:none;cursor:default}.employee-form:not(.crud-editing) input:not([type="checkbox"]),.employee-form:not(.crud-editing) select,.employee-form:not(.crud-editing) textarea{background:#fff;color:#2f3b57}.employee-form:not(.crud-editing) input[type="checkbox"]{pointer-events:none}
.employee-form textarea{border:1px solid #dfe4ed;border-radius:7px;padding:9px 10px;color:#2f3b57;background:#fff;outline:0;font:inherit;font-size:11px;box-sizing:border-box;width:100%;resize:vertical}
.employee-history-table{border:1px solid #e1e6ed;border-radius:6px;overflow:auto}
.employee-history-head,.employee-history-row{display:grid;grid-template-columns:150px 180px minmax(160px,1fr) minmax(160px,1fr);min-width:650px}
.employee-history-head{background:#315e73;color:#fff;font-size:9px;font-weight:600;padding:8px 10px}
.employee-history-row{align-items:center;min-height:34px;padding:0 10px;border-bottom:1px solid #edf0f4;color:#45526d;font-size:10px}
.employee-history-row:nth-child(odd){background:#f5f7f8}
.employee-history-empty{padding:24px;color:#8a95aa;font-size:10px}
/* V31 - Contrats de travail */
.employee-contract-toolbar{display:flex;align-items:center;justify-content:space-between;margin:8px 0 10px;font-size:11px;color:#52617a}
.employee-contract-table{border:1px solid #dfe5ec;border-radius:6px;overflow:auto;background:#fff}
.employee-contract-head,.employee-contract-row{display:grid;grid-template-columns:130px 90px minmax(150px,1.2fr) minmax(110px,1fr) 130px 120px 55px;min-width:900px}
.employee-contract-head{background:#315e73;color:#fff;font-size:10px;font-weight:600;padding:8px 10px}
.employee-contract-row{align-items:center;min-height:38px;padding:0 10px;border-bottom:1px solid #edf0f4;color:#45526d;font-size:10px}
.employee-contract-row:nth-child(odd){background:#f5f7f8}.employee-contract-row:last-child{border-bottom:0}
.employee-contract-empty{padding:28px;color:#8a95aa;text-align:center;font-size:11px}.contract-check{font-weight:700}.contract-action{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border:1px solid #cbd6df;border-radius:5px;text-decoration:none;color:#315e73;background:#fff}
.contract-page{padding:14px;min-height:calc(100vh - 70px);background:#f4f7fa}.contract-card{max-width:1200px;margin:0 auto;padding:20px}.contract-top{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #e1e6ed;padding-bottom:16px;margin-bottom:18px}.contract-top h2{margin:8px 0;font-size:24px;color:#17385a}.contract-meta{font-size:11px;color:#728198}.contract-form .section-label{margin-top:18px}.contract-form textarea{width:100%;box-sizing:border-box}.contract-conditional{margin-top:8px}.contract-back{text-decoration:none;white-space:nowrap}
/* V32 - Contrat de travail : écran détaillé et contrat actif pour la paie */
.contract-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start;max-width:1400px;margin:0 auto}
.contract-actions-panel{padding:0;overflow:hidden;position:sticky;top:14px}
.contract-actions-panel .right-menu-title{display:flex;width:100%;box-sizing:border-box;text-decoration:none;border:0;background:#fff;align-items:center;gap:8px;padding:14px 16px;color:#34445e;font-size:11px}
.contract-actions-panel .right-actions{padding:0 12px 12px;display:flex;flex-direction:column;gap:8px}
.contract-actions-panel .action-btn{width:100%;min-height:40px;text-align:left;border:0;border-radius:0;padding:0 14px;font:600 11px inherit;cursor:pointer}
.contract-actions-panel .action-btn.new{background:#22b8df;color:#fff}.contract-actions-panel .action-btn.edit{background:#ddd9d6;color:#26334a}.contract-actions-panel .action-btn.delete{background:#f00082;color:#fff}
.contract-action-info{border-top:1px solid #e4e9ef;margin:4px 12px 12px;padding:12px 4px;display:flex;flex-direction:column;gap:7px;color:#59677d;font-size:10px}.contract-action-info b{color:#1d3655;font-size:11px}.contract-active-check{font-weight:600}.contract-active-note{margin:8px 0 4px;padding:9px 11px;border:1px solid #dce6ed;border-radius:6px;background:#f6f9fb;color:#68778b;font-size:10px;line-height:1.45}
@media(max-width:900px){.contract-layout{grid-template-columns:1fr}.contract-actions-panel{position:static}.contract-actions-panel .right-actions{display:grid;grid-template-columns:repeat(3,1fr)}}

/* V32.6 - Boîte de dialogue génération automatique */
.generation-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:1200}.generation-modal.open{display:flex}.generation-backdrop{position:absolute;inset:0;background:rgba(24,31,55,.48);backdrop-filter:blur(2px)}.generation-dialog{position:relative;width:min(820px,calc(100vw - 40px));max-height:calc(100vh - 50px);overflow:auto;background:#fff;border-radius:14px;box-shadow:0 20px 60px rgba(20,28,55,.24);border:1px solid #e5e8ef}.generation-head{display:flex;justify-content:space-between;gap:20px;padding:22px 26px 18px;border-bottom:1px solid #e8ebf1}.generation-head h2{margin:3px 0 7px;font-size:18px;color:#202b47}.generation-head p{margin:0;color:#748096;font-size:11px;line-height:1.55}.generation-head .crud-close{position:static;border:0;background:transparent;font-size:25px;color:#8993a6;cursor:pointer;align-self:flex-start}.generation-dialog form{padding:20px 26px 24px}.generation-period{display:grid;grid-template-columns:1.15fr 1fr 1fr 1fr;gap:12px;padding:14px;background:#f7f8fc;border:1px solid #e6e9f1;border-radius:10px;margin-bottom:18px}.generation-period>div{display:flex;flex-direction:column;justify-content:center;gap:4px}.generation-period>div span{font-size:9px;color:#8994aa;text-transform:uppercase}.generation-period>div strong{font-size:14px;color:#283450}.generation-dialog label{display:flex;flex-direction:column;gap:6px;color:#59667e;font-size:10px;font-weight:600}.generation-dialog select,.generation-dialog input[type=date]{height:35px;border:1px solid #dfe4ec;border-radius:7px;padding:0 9px;background:#fff;color:#303b54;font-size:11px;outline:none}.generation-dialog select:focus,.generation-dialog input:focus{border-color:#7667e8;box-shadow:0 0 0 2px rgba(118,103,232,.1)}.generation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.generation-matricule{padding:15px;border:1px solid #e5e8ef;border-radius:10px}.generation-radio-title{font-size:10px;font-weight:700;color:#56627a;margin-bottom:10px;text-transform:uppercase}.radio-line{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:7px!important;margin-right:24px;font-weight:500!important;color:#48546c!important}.radio-line input{accent-color:#6654e8}.generation-range{display:grid;grid-template-columns:1fr 18px 1fr;align-items:end;gap:10px;margin-top:13px;opacity:.45}.generation-range.enabled{opacity:1}.generation-range>span{padding-bottom:10px;text-align:center;color:#8a94a8;font-size:11px}.generation-range select:disabled{background:#f3f4f7;cursor:not-allowed}.generation-note{margin-top:16px;padding:11px 13px;background:#faf9ff;border:1px solid #e8e4ff;border-radius:8px;color:#737e94;font-size:10px;line-height:1.5}.generation-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid #edf0f4}.generation-footer button{min-width:130px}.payroll-generate-auto{cursor:pointer}.payroll-generate-auto:disabled{opacity:.55;cursor:not-allowed}@media(max-width:700px){.generation-period,.generation-grid{grid-template-columns:1fr}.generation-range{grid-template-columns:1fr}.generation-range>span{display:none}.generation-dialog{width:calc(100vw - 20px)}}

/* V32.8 - génération automatique : progression et trace */
.generation-progress{margin:0 0 16px;padding:12px 13px;background:#f7f8fc;border:1px solid #e5e8ef;border-radius:9px}.generation-progress-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px;font-size:10px;color:#59667e}.generation-progress-head strong{font-size:10px;color:#283450}.generation-progress-track{height:8px;background:#e6e9f0;border-radius:99px;overflow:hidden}.generation-progress-track>div{height:100%;width:0;background:#6654e8;border-radius:99px;transition:width .18s ease}.generation-result{margin:0 26px 20px;border:1px solid #e5e8ef;border-radius:10px;background:#fff;overflow:hidden}.generation-result-head{padding:12px 14px;border-bottom:1px solid #edf0f4;background:#fafbfc}.generation-result-head strong{font-size:12px;color:#283450}.generation-table-wrap{max-height:260px;overflow:auto}.generation-table-wrap table{width:100%;border-collapse:collapse;font-size:10px}.generation-table-wrap th{position:sticky;top:0;z-index:1;background:#35687d;color:#fff;text-align:left;padding:8px}.generation-table-wrap td{padding:7px 8px;border-bottom:1px solid #edf0f4;color:#56627a;white-space:nowrap}.generation-table-wrap tr:last-child td{border-bottom:0}.generation-status{display:inline-flex;padding:3px 7px;border-radius:99px;font-size:8px;font-weight:700}.generation-status.ok{background:#e9f8ef;color:#1f8a55}.generation-status.skip{background:#fff1e8;color:#b65d22}.generation-status.info{background:#eef1f7;color:#68758b}

/* V32.9 - Bulletin de salaire */
.payslip-page{height:calc(100vh - 0px);background:#fff;color:#35435d;overflow:hidden}.payslip-layout{display:grid;grid-template-columns:300px 18px minmax(0,1fr) 205px;gap:0;height:100%;min-width:0;align-items:stretch}.payslip-list{grid-column:1;border-radius:0;border:0;border-right:1px solid #dfe5eb;overflow:hidden;background:#fff}.payslip-list-title{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-size:18px;color:#24405d}.payslip-list-title div{font-size:13px;color:#1f3349}.payslip-grid-head,.payslip-row{display:grid;grid-template-columns:78px 105px 82px 108px 70px 82px 60px;min-width:585px}.payslip-grid-head{background:#073b52;color:#fff;font-size:10px;font-weight:600;padding:8px 9px}.payslip-filter{height:28px;background:#f5f7f8;border-bottom:1px solid #dce2e7;display:flex;align-items:center;padding:0 9px;color:#526174}.payslip-filter input{border:0;background:transparent;outline:0;width:100%;font-size:10px}.payslip-list-body{height:calc(100% - 84px);overflow:auto}.payslip-row{padding:7px 9px;min-height:32px;align-items:center;text-decoration:none;color:#52627a;border-bottom:1px solid #edf0f3;font-size:9px}.payslip-row:nth-child(even){background:#fafbfc}.payslip-row:hover,.payslip-row.selected{background:#e8f2f6}.payslip-collapse-bar{grid-column:2;position:relative;background:#f5f6f8;border-left:1px solid #cfd7df;border-right:1px solid #cfd7df;cursor:col-resize;display:flex;align-items:center;justify-content:center}.payslip-collapse-bar button{width:18px;height:28px;border:1px solid #cfd7df;border-radius:4px;background:#fff;color:#53637b;cursor:pointer;font-size:15px;line-height:20px;padding:0;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3}.payslip-collapse-bar button:hover{background:#f2f4f6;color:#26364e}.payslip-layout.left-collapsed .payslip-list{width:0!important;min-width:0!important;opacity:0!important;overflow:hidden!important;padding:0!important;border:0!important;pointer-events:none!important}.payslip-main{grid-column:3;overflow:auto;padding:0 24px 30px;background:#fff;min-width:0}.payslip-breadcrumb{font-size:9px;color:#7d8ca2;padding:14px 0 4px}.payslip-title-row{display:flex;justify-content:space-between;align-items:flex-start}.payslip-title-row h1{font-size:25px;margin:0 0 8px;color:#26364e;font-weight:500}.record-nav{color:#15905d;font-size:17px}.payslip-brand{font-size:13px;color:#1c273a;padding-top:10px}.payslip-card{border:1px solid #e0e5e9;border-radius:2px;padding:10px 12px;margin-top:4px;box-shadow:0 1px 2px rgba(30,50,70,.04)}.payslip-section-title{font-size:16px;color:#078c5b;border-bottom:1px solid #727b84;padding:3px 0 4px;margin-bottom:6px}.small-title{margin-top:7px}.payslip-head-grid{display:grid;grid-template-columns:125px minmax(200px,1fr) 185px;gap:8px}.payslip-general-grid{display:grid;grid-template-columns:125px minmax(200px,1fr) 125px;gap:8px}.payslip-card label,.payslip-pay-period label{display:flex;flex-direction:column;gap:3px;font-size:10px;font-weight:600;color:#394860}.payslip-card input,.payslip-pay-period input{height:28px;border:1px solid #cfd8de;background:#f7f8f8;padding:0 7px;font-size:10px;color:#4f5f73;box-sizing:border-box}.payslip-tabs{display:flex;border-bottom:1px solid #dce3e8;margin-top:14px;overflow:auto}.payslip-tab{border:0;background:#f5f7f8;border-right:1px solid #e0e4e8;padding:9px 13px;color:#627087;font-size:10px;cursor:pointer;white-space:nowrap}.payslip-tab.active{background:#fff;border-top:2px solid #008c59;color:#008c59;font-weight:600}.payslip-pay-card{border:1px solid #e0e5e9;border-top:0;padding:9px 8px;min-height:310px}.payslip-panel[hidden]{display:none}.payslip-page-label{font-size:13px;color:#0a8b5b;border-bottom:1px solid #69757f;padding:2px 0 5px}.payslip-value-title{font-size:17px;color:#078c5b;margin:3px 0 0}.payslip-table-tools{display:flex;justify-content:space-between;color:#65738a;font-size:10px;padding:7px 4px}.payslip-table-wrap{overflow:auto;border-top:1px solid #dbe2e6}.payslip-table-wrap table{width:100%;min-width:680px;border-collapse:collapse;font-size:10px}.payslip-table-wrap th{background:#073b52;color:#fff;text-align:left;padding:7px 7px;white-space:nowrap}.payslip-table-wrap td{padding:6px 7px;border-bottom:1px solid #e8ecef;color:#526078;white-space:nowrap}.payslip-table-wrap tr:nth-child(even){background:#fafbfc}.payslip-table-wrap th:nth-child(1),.payslip-table-wrap td:nth-child(1){width:30px;text-align:right}.payslip-value-input{height:25px;width:110px;border:1px solid transparent;background:transparent;text-align:right;color:#36455c;font-size:10px}.payslip-value-input:focus{border-color:#86bfa9;background:#fff;outline:0}.payslip-value-input.saved{background:#eaf7f0}.payslip-no-data{padding:28px!important;text-align:center;color:#8995a7!important}.payslip-pay-period{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:8px;border:1px solid #e0e5e9;margin-top:12px;padding:9px;background:#fff}.payslip-pay-period>div{display:flex;flex-direction:column;gap:4px}.payslip-pay-period>b,.payslip-pay-period div>b{font-size:13px;color:#078c5b}.payslip-empty-main{padding:60px;text-align:center;color:#7d8a9d;font-size:12px}.payslip-actions{grid-column:4;border-left:1px solid #dfe4e8;background:#fff;padding:0 9px;overflow:auto}.payslip-actions .quit{display:block;color:#17253b;text-decoration:none;font-size:15px;padding:10px 2px 14px;border-bottom:1px solid #e6e9ec}.payslip-actions>button{display:block;width:100%;border:0;background:#fff;text-align:left;padding:8px 13px;color:#9aa3ae;font-size:12px}.payslip-actions .action-box{margin:10px 0;padding:9px 12px;border:1px solid #cfd8df;color:#15905d;font-size:12px}.action-icons{padding:10px 4px;color:#5d6774;border-bottom:1px solid #e5e9ed}.function-title{padding:13px 4px 7px;font-size:12px;font-weight:600;color:#293a50}.function-list{display:flex;flex-direction:column;gap:7px;padding:0 15px;color:#b1b9c3;font-size:10px}.function-list strong{color:#078c5b;font-weight:500}@media(min-width:751px) and (max-width:1250px){.payslip-layout{grid-template-columns:260px 18px minmax(0,1fr) 190px!important}.payslip-actions{width:auto;min-width:0}}@media(min-width:751px){.payslip-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 205px!important}}@media(max-width:750px){.payslip-layout{grid-template-columns:1fr!important;grid-template-rows:auto!important}.payslip-layout>*{grid-column:1!important;grid-row:auto!important}.payslip-list{height:350px;min-height:0}.payslip-list-body{height:225px}.payslip-collapse-bar{display:none}.payslip-actions{width:auto;min-width:0}.payslip-main{padding:0 10px 30px}.payslip-head-grid,.payslip-general-grid,.payslip-pay-period{grid-template-columns:1fr}}

/* V32.10 - alignement visuel de la liste Bulletin de salaire avec Fiche individuelle / Mois de paie */
.payslip-list.panel{border-radius:0;box-shadow:none}
.payslip-list-title{height:65px;padding:0 16px;border-bottom:1px solid #edf0f5;color:#27334e;font-size:14px}
.payslip-list-title div{font-size:12px;color:#687590}
.payslip-grid-head{background:#fafbfe;color:#8a95aa;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5;font-size:9px;padding:8px 12px}
.payslip-filter{margin:12px;border:1px solid #e2e6ef;border-radius:8px;height:35px;background:#fff;padding:0 9px;box-sizing:border-box}
.payslip-list-body{height:calc(100% - 123px)}
.payslip-row{padding:10px 12px;min-height:46px;font-size:10px;border-bottom:1px solid #f0f2f6}
.payslip-row:hover{background:#f7f6ff}.payslip-row.selected{background:#eeeaff;border-left:3px solid #6654e8;padding-left:9px}.payslip-row.selected span:first-child{font-weight:700;color:#5142d3}

/* V32.12 - Bulletin de salaire : même design que Mois de paie */
@media (min-width:751px){
  .payslip-salary-page .payslip-salary-layout{display:grid!important;grid-template-columns:300px 18px minmax(0,1fr) 205px!important;grid-template-rows:minmax(650px,1fr)!important;gap:0!important;width:100%!important;min-width:0!important;align-items:stretch!important}
  .payslip-salary-page .payslip-salary-list{grid-column:1!important;grid-row:1!important;width:auto!important;min-width:0!important;height:calc(100vh - 180px)!important;min-height:650px!important;overflow:hidden!important}
  .payslip-salary-page .payslip-salary-collapse-bar{grid-column:2!important;grid-row:1!important;width:18px!important;min-width:18px!important;height:calc(100vh - 180px)!important;min-height:650px!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .payslip-salary-page .payslip-salary-card{grid-column:3!important;grid-row:1!important;width:auto!important;min-width:0!important;height:calc(100vh - 180px)!important;min-height:650px!important;overflow:auto!important;padding:0!important}
  .payslip-salary-page .payslip-salary-actions{grid-column:4!important;grid-row:1!important;width:205px!important;min-width:205px!important;height:calc(100vh - 180px)!important;min-height:650px!important;overflow:auto!important}
  .payslip-salary-page .payslip-salary-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 205px!important}
  .payslip-salary-page .payslip-salary-layout.left-collapsed .payslip-salary-list{width:0!important;min-width:0!important;padding:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
  .payslip-salary-page .payslip-salary-layout.left-collapsed .payslip-salary-collapse-bar{cursor:default!important}
}
.payslip-salary-list .list-head{height:65px;padding:0 16px;border-bottom:1px solid #edf0f5}
.payslip-salary-table-head,.payslip-salary-row{display:grid;grid-template-columns:70px 100px 90px 105px 100px 80px;min-width:545px}
.payslip-salary-table-head{padding:8px 12px;background:#fafbfe;color:#8a95aa;font-size:9px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5}
.payslip-salary-row{align-items:center;text-decoration:none;color:#45526d;padding:10px 12px;border-bottom:1px solid #f0f2f6;font-size:10px;min-height:46px}
.payslip-salary-row:hover{background:#f7f6ff}.payslip-salary-row.selected{background:#eeeaff;border-left:3px solid #6654e8;padding-left:9px}.payslip-salary-row.selected span:first-child{font-weight:700;color:#5142d3}
.payslip-salary-rows{height:calc(100% - 123px)!important;overflow:auto}
.payslip-salary-top{min-height:150px!important}
.payslip-salary-head-section{padding:18px 22px 10px}
.payslip-salary-head-section .section-label{margin-bottom:10px}
.payslip-head-fields{grid-template-columns:105px minmax(180px,1.5fr) 155px 125px 125px!important}
.payslip-head-fields label,.payslip-general-fields label{font-size:10px;font-weight:600;color:#394860;display:flex;flex-direction:column;gap:4px}
.payslip-head-fields input,.payslip-head-fields select,.payslip-general-fields input,.payslip-general-fields select{height:36px;border:1px solid #dfe4ed;border-radius:7px;background:#fff;padding:0 10px;color:#34435d;font-size:11px;box-sizing:border-box}
.payslip-salary-form .payslip-tabs{margin:0;padding:0 22px}
.payslip-salary-content{border:0!important;border-top:0!important;padding:18px 22px!important;min-height:360px}
.payslip-general-fields{margin-top:16px}
.payslip-salary-actions .right-actions{padding:0 12px 12px}
.payslip-salary-actions .action-btn{width:100%;min-height:40px;text-align:left;border:0;border-radius:0;padding:0 14px;font:600 11px inherit;cursor:pointer}
.payslip-salary-actions .action-btn:disabled{opacity:.42;cursor:not-allowed;filter:none}
@media(max-width:750px){.payslip-salary-page .payslip-salary-layout{grid-template-columns:1fr!important;grid-template-rows:auto!important}.payslip-salary-page .payslip-salary-layout>*{grid-column:1!important;grid-row:auto!important}.payslip-salary-page .payslip-salary-collapse-bar{display:none!important}.payslip-salary-page .payslip-salary-list{height:350px!important;min-height:0!important}.payslip-salary-page .payslip-salary-card,.payslip-salary-page .payslip-salary-actions{height:auto!important;min-height:0!important;width:auto!important;min-width:0!important}.payslip-head-fields,.payslip-general-fields{grid-template-columns:1fr!important}.payslip-salary-form .payslip-tabs{padding:0 10px}.payslip-salary-content{padding:12px 10px!important}}

/* V32.13 - Bulletin de salaire : onglets et tableaux alignés sur Fiche individuelle */
.payslip-salary-form .payslip-tabs{display:flex;align-items:stretch;padding:0 22px;gap:2px;border-bottom:1px solid #e9edf4;background:#fff;overflow:auto}
.payslip-salary-form .payslip-tab{padding:13px 13px 11px;border:0;border-bottom:2px solid transparent;background:transparent;color:#78849c;font-size:11px;font-family:inherit;cursor:pointer;white-space:nowrap}
.payslip-salary-form .payslip-tab.active{color:#5848d9;border-bottom-color:#6654e8;background:transparent;font-weight:700}
.payslip-salary-content{padding:22px!important;background:#fff}
.payslip-page-label{font-size:9px;letter-spacing:.08em;color:#8a95aa;font-weight:750;margin:0 0 11px;padding-bottom:6px;border-bottom:1px solid #edf0f5;text-transform:uppercase}
.payslip-value-title{font-size:17px;color:#078c5b;margin:3px 0 0;padding-bottom:5px;border-bottom:1px solid #727b84}
.payslip-table-tools{padding:7px 4px;color:#65738a;font-size:10px}
.payslip-table-wrap{border:1px solid #e1e6ed;border-radius:6px;overflow:auto;background:#fff}
.payslip-table-wrap table{width:100%;min-width:620px;border-collapse:collapse;font-size:10px}
.payslip-table-wrap th{background:#315e73;color:#fff;text-align:left;padding:8px 10px;font-size:9px;font-weight:600;white-space:nowrap}
.payslip-table-wrap td{padding:6px 10px;border-bottom:1px solid #edf0f4;color:#45526d;white-space:nowrap}
.payslip-table-wrap tbody tr:nth-child(odd){background:#f5f7f8}
.payslip-table-wrap tbody tr:last-child td{border-bottom:0}
.payslip-value-input{height:30px;width:130px;border:1px solid #dfe4ed;border-radius:6px;background:#fff;text-align:right;color:#36455c;font-size:10px;padding:0 8px;box-sizing:border-box}
.payslip-value-input:disabled{background:#f6f7fa;color:#7e899e;cursor:not-allowed}
.payslip-value-input:focus{border-color:#8d82eb;box-shadow:0 0 0 3px #eeecff;outline:0}
.payslip-salary-actions .action-btn.new:not(:disabled){background:#22b8df;color:#fff}
.payslip-salary-actions .action-btn.edit:not(:disabled){background:#ddd9d6;color:#26334a}
.payslip-salary-actions .action-btn.delete:not(:disabled){background:#f00082;color:#fff}
.payslip-salary-actions .action-btn.dark:not(:disabled){background:#3b3b3b;color:#fff}
.payslip-salary-actions .action-btn:disabled{background:#f1f2f4!important;color:#9aa3ae!important;opacity:1;cursor:not-allowed}

/* V32.15 - Édition des seules valeurs salarié : footer Annuler/Enregistrer */
.payslip-edit-footer{margin:0 22px 18px;padding:12px 14px;border:1px solid #e3e7ee;border-radius:7px;background:#fafbfe;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#68758b;font-size:10px}
.payslip-edit-footer-actions{display:flex;gap:8px;align-items:center}
.payslip-edit-footer button{min-width:92px;height:34px;border-radius:6px;border:1px solid #d9dfe8;padding:0 14px;font:600 10px inherit;cursor:pointer}
.payslip-edit-footer .secondary{background:#fff;color:#526078}
.payslip-edit-footer .primary{background:#6654e8;color:#fff;border-color:#6654e8}
.payslip-edit-footer button:disabled{opacity:.55;cursor:not-allowed}
.payslip-value-input.saved{border-color:#21a66a;box-shadow:0 0 0 2px #e1f6eb}

.rubric-cumul-box{border:1px solid #e7ebf2;border-radius:8px;padding:14px;background:#fbfcfe}.rubric-cumul-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px;color:#44516b;font-size:11px}.rubric-cumul-head small{color:#8b95aa}.rubric-cumul-check{justify-content:flex-start!important;margin:0 0 10px!important}.rubric-cumul-check b{color:#33415c}.rubric-cumul-check small{color:#8b95aa}

/* V32.20 - Cumuls : déclinaison du design Rubriques de paie */
.cumul-page .cumul-table-head,.cumul-page .cumul-row{grid-template-columns:95px minmax(130px,1fr) 95px}
.cumul-page .cumul-row{min-height:46px}
.cumul-page .cumul-row span:last-child{font-size:9px;color:#78849b}
.cumul-page .rubric-form{max-width:none}
.cumul-page .rubric-form .form-grid.three{grid-template-columns:1fr 1.25fr 1fr}
.cumul-page .rubric-form input,.cumul-page .rubric-form select,.cumul-page .rubric-form textarea{font-size:11px}
.cumul-page .rubric-form.crud-editing input:disabled,.cumul-page .rubric-form.crud-editing select:disabled,.cumul-page .rubric-form.crud-editing textarea:disabled{opacity:.55}
.cumul-page .rubric-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 205px!important}
.cumul-page .rubric-layout.left-collapsed .rubric-list{width:0!important;min-width:0!important;padding:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
@media(min-width:751px) and (max-width:1250px){.cumul-page .cumul-table-head,.cumul-page .cumul-row{grid-template-columns:80px minmax(110px,1fr) 85px}}
@media(max-width:750px){.cumul-page .cumul-table-head,.cumul-page .cumul-row{grid-template-columns:80px minmax(120px,1fr) 85px}.cumul-page .rubric-form .form-grid.three{grid-template-columns:1fr}}
.cumul-rubric-usage{margin-top:8px}
.cumul-usage-table,.rubric-assigned-table{width:100%;overflow:auto}
.cumul-usage-head,.cumul-usage-row{display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf0f5;font-size:11px}
.cumul-usage-head,.rubric-assigned-head{background:#f4f7fb;font-weight:700;color:#44516b}
.cumul-usage-row strong{font-weight:600;color:#2f3c55}
.rubric-assigned-head,.rubric-assigned-row{display:grid;grid-template-columns:120px minmax(150px,1.1fr) 110px 100px minmax(180px,1fr);gap:10px;align-items:center;padding:9px 10px;border-bottom:1px solid #edf0f5;font-size:10px;min-width:720px}
.rubric-assigned-row input,.rubric-assigned-row select{width:100%;box-sizing:border-box}
.rubric-assigned-row span,.rubric-assigned-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* =========================================================
   Impression Fiche individuelle — aperçu A4 / PDF
   ========================================================= */
.employee-print-page{min-height:100%;background:#eef1f5;padding:18px 20px 40px}
.print-toolbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 auto 16px;max-width:1120px;padding:12px 16px;background:#fff;border:1px solid #dfe4eb;border-radius:12px;box-shadow:0 4px 16px rgba(31,43,70,.08)}
.print-toolbar>div:first-child{display:flex;flex-direction:column;gap:3px}.print-toolbar strong{font-size:15px;color:#1d2b49}.print-toolbar span{font-size:12px;color:#74809a}.print-toolbar-actions{display:flex;gap:8px;align-items:center}.print-toolbar-actions button,.print-toolbar-actions a{font:inherit;text-decoration:none}
.employee-print-document{width:210mm;min-height:297mm;margin:0 auto;background:#fff;padding:14mm 14mm 13mm;box-sizing:border-box;color:#1e2a42;box-shadow:0 4px 24px rgba(31,43,70,.13);font-size:10.5px;line-height:1.35}
.print-document-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #25385f;padding-bottom:10px;margin-bottom:12px}.print-company-block{display:flex;align-items:center;gap:10px;max-width:65%}.print-company-block img{width:44px;height:44px;object-fit:contain;border:1px solid #e0e5ec;border-radius:7px}.print-company-block div{display:flex;flex-direction:column;gap:2px}.print-company-block strong{font-size:14px}.print-company-block span{font-size:9px;color:#68758d}.print-document-title{text-align:right;font-weight:800;font-size:16px;color:#25385f}.print-document-title small{display:block;margin-top:3px;font-weight:400;font-size:9px;color:#7a8498}
.print-identity{display:flex;gap:13px;align-items:center;padding:10px 12px;background:#f6f8fb;border:1px solid #e1e6ee;border-radius:8px;margin-bottom:12px}.print-photo{width:58px;height:58px;border-radius:8px;background:#e9edf3;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:18px;font-weight:800;color:#66738a;flex:0 0 58px}.print-photo img{width:100%;height:100%;object-fit:cover}.print-identity-main h1{font-size:19px;margin:0 0 5px;color:#172744}.print-meta{display:flex;gap:16px;flex-wrap:wrap;color:#65718a;font-size:9px}.print-meta b{color:#25385f}
.print-section{margin-top:13px;break-inside:auto}.print-section h2{font-size:12px;color:#25385f;border-bottom:1px solid #dfe4eb;padding-bottom:5px;margin:0 0 8px;text-transform:uppercase;letter-spacing:.03em}.print-section h3{font-size:10px;color:#51607a;margin:10px 0 6px;border-bottom:1px solid #e7eaf0;padding-bottom:3px}.print-grid{display:grid;gap:7px 12px;margin-bottom:8px}.print-grid.one{grid-template-columns:1fr}.print-grid.two{grid-template-columns:1fr 1fr}.print-grid.three{grid-template-columns:repeat(3,1fr)}.print-grid.four{grid-template-columns:repeat(4,1fr)}.print-grid.five{grid-template-columns:repeat(5,1fr)}.nested-print{margin:0;gap:8px}.print-grid>div{min-width:0}.print-grid label{display:block;color:#7b8598;font-size:8.5px;margin-bottom:2px}.print-grid b{display:block;color:#25334d;font-size:9.5px;font-weight:600;overflow-wrap:anywhere}.print-checkline{display:flex;gap:10px;align-items:center;margin:4px 0 8px;font-size:9px}.print-checkline span{color:#7b8598}.print-checkline b{font-weight:600}.print-table{width:100%;border-collapse:collapse;font-size:8.7px}.print-table th{background:#f2f5f8;color:#536079;text-align:left;font-weight:700;padding:5px 6px;border:1px solid #dce2e9}.print-table td{padding:5px 6px;border:1px solid #e1e5eb;vertical-align:top}.print-empty{color:#7b8598;font-size:9px;margin:4px 0}.print-notes{min-height:45px;padding:8px;border:1px solid #e0e5eb;border-radius:5px;white-space:pre-wrap;font-size:9.5px}.print-document-footer{display:flex;justify-content:space-between;margin-top:16px;padding-top:7px;border-top:1px solid #dce1e8;color:#7b8598;font-size:8px}.print-error{margin:40px auto;padding:30px;max-width:700px;background:#fff;border:1px solid #ddd}
@media(max-width:900px){.employee-print-page{padding:10px}.print-toolbar{position:relative;align-items:flex-start;flex-direction:column}.print-toolbar-actions{width:100%;justify-content:flex-end}.employee-print-document{width:100%;min-height:0;padding:20px;}.print-grid.five{grid-template-columns:repeat(3,1fr)}}
@media print{
  @page{size:A4 portrait;margin:0}
  html,body{background:#fff!important;margin:0!important;padding:0!important}
  body>*:not(.app-shell):not(.employee-print-page){display:none!important}
  .employee-print-page{display:block!important;background:#fff!important;padding:0!important}
  .print-toolbar{display:none!important}
  .employee-print-document{width:210mm!important;min-height:297mm!important;margin:0!important;padding:12mm 13mm!important;box-shadow:none!important;font-size:10px}
  .print-section{break-inside:auto}.print-section h2{break-after:avoid}.print-table tr{break-inside:avoid}.print-document-header,.print-identity{break-inside:avoid}
}

/* =========================================================
   V32.25 — Visionneuse d'impression Fiche individuelle
   Fenêtre modale type traitement de texte / Word
   ========================================================= */
body.print-modal-open{overflow:hidden}
.employee-print-modal{position:fixed;inset:0;z-index:2000;display:none;background:rgba(12,24,56,.52);backdrop-filter:blur(2px);padding:22px}
.employee-print-modal.open{display:flex;align-items:stretch;justify-content:center}
.employee-print-modal-window{width:min(1440px,100%);height:100%;display:flex;flex-direction:column;background:#eef1f6;border:1px solid #cfd6e2;border-radius:12px;overflow:hidden;box-shadow:0 24px 70px rgba(8,18,45,.32)}
.employee-print-ribbon{height:68px;flex:0 0 68px;background:#fff;border-bottom:1px solid #d9dfe9;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 20px;gap:16px}
.employee-print-ribbon-title{display:flex;align-items:center;gap:11px;min-width:0}.ribbon-app-mark{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#6754e9;color:#fff;font-size:18px;font-weight:800;box-shadow:0 3px 8px rgba(103,84,233,.25)}
.employee-print-ribbon-title div{display:flex;flex-direction:column;gap:2px;min-width:0}.employee-print-ribbon-title strong{font-size:14px;color:#1d2b49}.employee-print-ribbon-title small{font-size:10px;color:#7b879d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.employee-print-ribbon-actions{display:flex;align-items:center;gap:5px}.print-tool-btn{height:36px;min-width:36px;padding:0 10px;border:1px solid #dfe4ed;background:#fff;border-radius:7px;color:#52617d;font:600 12px Inter,Segoe UI,Arial,sans-serif;cursor:pointer}.print-tool-btn:hover{background:#f5f6fa}.print-tool-btn.primary{background:#6754e9;border-color:#6754e9;color:#fff;padding:0 13px}.print-tool-btn.close{font-size:15px;margin-left:4px}.employee-print-ribbon-actions>span:not(.print-tool-separator){font-size:11px;color:#6f7b92;min-width:42px;text-align:center}.print-tool-separator{height:24px;width:1px;background:#dfe3eb;margin:0 5px}
.employee-print-workspace{position:relative;flex:1;min-height:0;overflow:auto;background:#dfe3eb;padding:28px 40px 45px}
.employee-print-ruler{position:sticky;top:-28px;z-index:5;height:27px;margin:-28px -40px 16px;padding:0 12px;display:flex;justify-content:space-between;align-items:center;background:#e8ebf1;border-bottom:1px solid #cfd6e0;color:#7a859a;font-size:9px;letter-spacing:.02em}
.employee-print-frame{position:relative;width:min(100%,920px);min-height:720px;margin:0 auto;display:flex;justify-content:center;align-items:flex-start}
.employee-print-frame iframe{display:block;width:100%;height:100%;min-height:1120px;border:0;background:#fff;box-shadow:0 5px 22px rgba(27,40,70,.16);transform-origin:top center}
.employee-print-statusbar{height:27px;flex:0 0 27px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;background:#f7f8fb;border-top:1px solid #d9dfe8;color:#7b869a;font-size:9px}

/* Le document embarqué ne doit pas afficher l'interface NXPeople. */
body:has(.embedded-print-page) .sidebar,body:has(.embedded-print-page) .topbar{display:none!important}
body:has(.embedded-print-page) .main{margin-left:0!important;width:100%!important}
body:has(.embedded-print-page) .content{padding:0!important}
body:has(.embedded-print-page) .employee-print-page{min-height:100vh;background:#eef1f5;padding:0}
body:has(.embedded-print-page) .employee-print-document{margin:24px auto 35px}

/* Rendu papier plus proche d'un document RH professionnel. */
.employee-print-document{position:relative;border:1px solid #e0e4ea}
.print-document-header{min-height:65px;padding-bottom:11px}
.print-company-block strong{font-size:15px;letter-spacing:.01em}.print-company-block span{max-width:430px;line-height:1.45}
.print-document-title{font-size:17px;letter-spacing:.04em}.print-document-title:before{content:'DOCUMENT RH';display:block;font-size:7px;letter-spacing:.12em;color:#8994a8;font-weight:700;margin-bottom:3px}
.print-identity{background:#f7f9fc;border:1px solid #d6dde8;border-radius:6px;padding:12px 13px;box-shadow:inset 3px 0 0 #6754e9}
.print-section{break-inside:auto}.print-section h2{display:flex;align-items:center;gap:7px;background:#f3f5f8;border:1px solid #e0e4ea;border-left:3px solid #6754e9;border-radius:4px;padding:6px 8px;margin-bottom:9px;font-size:10.5px;letter-spacing:.045em}.print-section h3{font-size:9px;text-transform:uppercase;letter-spacing:.04em}
.print-grid>div{padding:3px 0}.print-grid b{min-height:13px}.print-table th{background:#e9edf3;color:#43516b;border-color:#d3d9e2;font-size:8.3px}.print-table td{border-color:#dfe3e9}
.print-notes{background:#fbfcfd;border-radius:4px}.print-document-footer{margin-top:20px;padding-top:8px;border-top:1px solid #cfd6e0;position:relative}.print-document-footer:after{content:'Page ' counter(page);margin-left:auto;color:#7b8598}

@media(max-width:900px){.employee-print-modal{padding:0}.employee-print-modal-window{border-radius:0}.employee-print-ribbon{padding:0 10px}.employee-print-ribbon-title small{display:none}.employee-print-workspace{padding:22px 12px 30px}.employee-print-ruler{top:-22px;margin:-22px -12px 12px}.employee-print-frame{width:100%}.employee-print-ribbon-actions .print-tool-btn span{display:none}.employee-print-ribbon-actions{gap:3px}}
@media print{
  body:has(.employee-print-page) .sidebar,body:has(.employee-print-page) .topbar{display:none!important}
  body:has(.employee-print-page) .main{margin-left:0!important;width:100%!important}
  body:has(.employee-print-page) .content{padding:0!important}
  body:has(.employee-print-page) .employee-print-page{display:block!important;background:#fff!important;padding:0!important}
  .employee-print-document{border:0!important;box-shadow:none!important;margin:0!important}
  .print-document-footer{position:fixed;left:13mm;right:13mm;bottom:5mm;background:#fff}
}
/* V32.27 — Calcul de paie progressif + détail du bulletin. */
body.generation-modal-open{overflow:hidden}
.calc-progress-block{margin-top:18px;padding:16px 17px;border:1px solid #e3e7ee;border-radius:10px;background:#fbfcfe}.calc-progress-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;font-size:10px;color:#56637a;font-weight:700}.calc-progress-head strong{font-size:14px;color:#6654e8}.calc-progress-track{height:10px;background:#e9edf3;border-radius:999px;overflow:hidden}.calc-progress-fill{height:100%;width:0;background:#6654e8;border-radius:999px;transition:width .25s ease}.calc-progress-message{margin-top:8px;color:#7a8599;font-size:9px}.bulletin-detail-footer{display:flex;justify-content:center;padding:12px 0 4px}.bulletin-detail-footer button{min-width:190px}.bulletin-detail-panel{margin-top:8px;padding-top:12px;border-top:1px solid #e8ebf1}.bulletin-detail-panel[hidden]{display:none!important}.bulletin-detail-select{width:15px;height:15px}.payslip-calc-modal .generation-dialog{width:min(860px,calc(100vw - 40px))}.payslip-calc-modal .generation-period{grid-template-columns:1fr 1fr 1.5fr 1fr}.payslip-calc-modal .generation-period>div strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:800px){.payslip-calc-modal .generation-period{grid-template-columns:1fr 1fr}.payslip-calc-modal .generation-period>div:nth-child(3){grid-column:1/-1}}

/* V32.33 — Fonctions liées depuis la fiche individuelle + consultation des cumuls salarié. */
.employee-related-action{width:100%;box-sizing:border-box;text-decoration:none!important;justify-content:flex-start}
.employee-actions-panel .employee-related-action.dark{background:#3b3b3b;color:#fff}
.employee-actions-panel .employee-related-action.dark:hover{background:#323232;filter:none}
.cumul-consult-page .cumul-consult-layout{grid-template-columns:300px 18px minmax(0,1fr) 205px!important}
.cumul-consult-list .list-head{height:65px;padding:0 16px;border-bottom:1px solid #edf0f5}
.cumul-consult-table-head,.cumul-consult-row{grid-template-columns:130px minmax(90px,1fr)!important;min-width:220px}
.cumul-consult-row{cursor:pointer}
.cumul-consult-card{overflow:auto}
.cumul-consult-content{padding:20px 22px 28px}
.cumul-consult-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin:0 0 14px;padding:13px 15px;border:1px solid #e2e7ef;border-radius:8px;background:#fafbfd}
.cumul-consult-heading>div:first-child{display:flex;flex-direction:column;gap:4px}.cumul-consult-heading strong{font-size:13px;color:#2b3853}.cumul-consult-heading span{font-size:9px;color:#7b879b}.cumul-consult-date{font-size:9px;color:#7b879b;white-space:nowrap}.cumul-consult-date b{display:block;color:#2f3c55;font-size:11px;margin-top:3px}
.cumul-consult-table-wrap{border:1px solid #e0e5ec;border-radius:7px;overflow:auto}.cumul-consult-table-wrap table{min-width:620px}.cumul-consult-table-wrap th{background:#eef2f6;color:#526079;font-size:9px}.cumul-consult-table-wrap td{font-size:10px;color:#46536d}.cumul-consult-table-wrap td strong{color:#2e3b56}.cumul-value-number{text-align:right;font-variant-numeric:tabular-nums;font-weight:700;color:#25334d!important}
.cumul-consult-actions .right-tree{margin-top:17px;padding-top:55px}.cumul-related-link{display:block;text-decoration:none;color:#34415c;font-size:10px;padding:6px 4px 6px 22px;position:relative}.cumul-related-link:before{content:"";position:absolute;left:8px;top:0;bottom:0;border-left:1px dotted #b9c2d1}.cumul-related-link i{font-style:normal;color:#1678ee;margin-right:7px}
@media(max-width:750px){.cumul-consult-page .cumul-consult-layout{grid-template-columns:1fr!important}.cumul-consult-heading{flex-direction:column}.cumul-consult-table-wrap table{min-width:0}.cumul-consult-table-head,.cumul-consult-row{grid-template-columns:1fr 1fr!important}}

/* NXPeople version under the brand */
.modern-sidebar .brand-text-wrap{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;line-height:1}
.modern-sidebar .brand-version{margin-top:5px;font-size:9px;font-weight:500;color:#8792a5;letter-spacing:.2px;white-space:nowrap}
.modern-sidebar .group-icon.other{font-size:17px;line-height:1}
/* V32.36 — logo NXPeople HR dans l'angle supérieur gauche */
.modern-sidebar .brand-dashboard{height:96px;padding:8px 14px 7px;align-items:center}
.modern-sidebar .brand-logo-wrap{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}
.modern-sidebar .brand-logo-image{display:block;width:202px;max-width:100%;height:auto;max-height:57px;object-fit:contain;object-position:left center}
.modern-sidebar .brand-logo-wrap .brand-version{margin-top:3px;font-size:9px;font-weight:500;color:#8792a5;letter-spacing:.2px;white-space:nowrap}
.modern-sidebar.collapsed .brand-logo-image{width:42px;object-fit:cover;object-position:left center}
.modern-sidebar.collapsed .brand-logo-wrap .brand-version{display:none}


/* V32.42 — Aperçu / impression du bulletin de paie, modèle A4 portrait. */
body:has(.payslip-print-page.embedded-print-page) .sidebar,body:has(.payslip-print-page.embedded-print-page) .topbar{display:none!important}
body:has(.payslip-print-page.embedded-print-page) .main{margin-left:0!important;width:100%!important}
body:has(.payslip-print-page.embedded-print-page) .content{padding:0!important}
body:has(.payslip-print-page.embedded-print-page) .payslip-print-page{min-height:100vh;background:#eef1f5;padding:0}
body:has(.payslip-print-page.embedded-print-page) .payslip-print-document{margin:24px auto 35px}
.payslip-print-toolbar{height:56px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 18px;background:#fff;border-bottom:1px solid #d9dfe8;box-sizing:border-box;color:#26344f;font:12px Inter,Segoe UI,Arial,sans-serif}
.payslip-print-toolbar>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.payslip-print-toolbar strong{font-size:14px}.payslip-print-toolbar span{font-size:10px;color:#7b879b}.payslip-print-toolbar-actions{display:flex;align-items:center;gap:8px}.payslip-print-toolbar a{text-decoration:none!important}.payslip-print-toolbar .primary{border:0;border-radius:7px;padding:9px 14px;background:#6754e8;color:#fff;font-weight:700;cursor:pointer}
.payslip-print-document{position:relative;width:210mm;min-height:297mm;margin:0 auto;background:#fff;box-sizing:border-box;padding:9mm 10mm 14mm;color:#111;font-family:Arial,Helvetica,sans-serif;font-size:10px;line-height:1.18;border:1px solid #202020}
.payslip-doc-header{display:grid;grid-template-columns:31% 69%;gap:7mm;min-height:37mm;align-items:stretch}
.payslip-company-logo-box{border:1.3px solid #1e1e1e;display:flex;align-items:center;justify-content:center;padding:5mm;box-sizing:border-box;min-height:35mm;overflow:hidden;background:#fff}
.payslip-company-logo-box img{display:block;max-width:100%;max-height:30mm;width:auto;height:auto;object-fit:contain}.payslip-company-logo-box strong{font-size:14px;text-align:center;line-height:1.25}
.payslip-doc-heading{padding-top:1mm}.payslip-doc-heading h1{margin:0 0 6mm;text-align:center;font-size:18px;font-weight:800;letter-spacing:.02em}.payslip-period{display:flex;justify-content:center;gap:7px;align-items:center;font-size:10px;margin-bottom:4mm;white-space:nowrap}.payslip-period b{font-weight:800}.payslip-head-meta{display:grid;grid-template-columns:1fr 1fr;column-gap:15mm;row-gap:2.2mm;font-size:10px;padding:0 7mm}.payslip-head-meta span{white-space:nowrap}.payslip-head-meta b{display:inline-block;min-width:25mm}
.payslip-identity-block{display:grid;grid-template-columns:43% 57%;min-height:37mm;margin-top:2mm}.payslip-identity-block>div:first-child{padding:4mm 4mm 2mm 2mm}.payslip-identity-block>div:first-child>strong{font-size:12px;margin-right:14mm}.payslip-identity-block>div:first-child>span{font-size:11px;font-weight:700}.payslip-identity-block>div:first-child>small{display:block;margin-top:8mm;font-size:10px}.payslip-company-meta{display:grid;grid-template-columns:1fr 1fr;gap:2.5mm 8mm;margin-top:4mm;font-size:9.5px}.payslip-company-meta b{display:inline-block;margin-right:3mm}.payslip-employee-card{margin:0 0 2mm 3mm;background:#f1f1f1;padding:5mm;display:flex;flex-direction:column;justify-content:center;gap:3mm}.payslip-employee-card strong{font-size:12px}.payslip-employee-card span{font-size:10px}
.payslip-lines-section{margin-top:1mm}.payslip-lines-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:9.3px}.payslip-lines-table th,.payslip-lines-table td{border:1px solid #111;padding:1.55mm 1.4mm;height:5.4mm;box-sizing:border-box}.payslip-lines-table thead th{background:#fff;text-align:center;font-weight:800}.payslip-lines-table th.code,.payslip-lines-table td:first-child{width:10%}.payslip-lines-table th.label,.payslip-lines-table td:nth-child(2){width:30%}.payslip-lines-table th:nth-child(3),.payslip-lines-table td:nth-child(3){width:15%}.payslip-lines-table th:nth-child(4),.payslip-lines-table td:nth-child(4),.payslip-lines-table th:nth-child(5),.payslip-lines-table td:nth-child(5),.payslip-lines-table th:nth-child(6),.payslip-lines-table td:nth-child(6),.payslip-lines-table th:nth-child(7),.payslip-lines-table td:nth-child(7){width:10%}.payslip-lines-table td{vertical-align:middle}.payslip-lines-table .num{text-align:right;font-variant-numeric:tabular-nums}.payslip-lines-table .amount{font-weight:500}.payslip-lines-table .empty{text-align:center;height:45mm}
.payslip-bottom-grid{display:grid;grid-template-columns:1fr 31mm;gap:4mm;margin-top:4mm;align-items:start}.payslip-cumul-box table,.payslip-leave-box table{width:100%;border-collapse:collapse;font-size:9px}.payslip-cumul-box th,.payslip-cumul-box td,.payslip-leave-box th,.payslip-leave-box td{border:1px solid #111;padding:1.4mm;text-align:center}.payslip-cumul-box th,.payslip-leave-box th{background:#eee;font-weight:800}.payslip-net-box{border:1px solid #111;min-height:16mm;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3mm}.payslip-net-box span{font-size:10px;font-weight:800}.payslip-net-box strong{font-size:13px}.payslip-leave-box{width:52%;margin-top:3mm}.payslip-legal{margin:2mm 0 0;font-size:8.2px}.payslip-doc-footer{position:absolute;left:10mm;right:10mm;bottom:4mm;height:9mm;border-top:1px solid #aaa;display:flex;align-items:flex-end;gap:3mm;font-size:7.5px;color:#777}.payslip-doc-footer img{width:28mm;height:7mm;object-fit:contain;object-position:left bottom}.payslip-doc-footer>span:nth-child(2){margin-bottom:1mm}.payslip-doc-footer .page-number{margin-left:auto;margin-bottom:1mm;font-weight:700;color:#444}.payslip-doc-footer .page-counter:after{content:counter(page)}
.payslip-print-modal .employee-print-workspace{background:#dfe3e8}.payslip-print-modal .employee-print-frame{width:min(100%,1320px);min-height:720px}.payslip-print-modal .employee-print-frame iframe{min-height:930px}.payslip-print-modal .employee-print-ruler span:first-child{font-weight:700}.payslip-print-modal .employee-print-statusbar{height:27px}
@media print{
  @page{size:A4 portrait;margin:8mm 10mm 12mm}
  body:has(.payslip-print-page) .sidebar,body:has(.payslip-print-page) .topbar,body:has(.payslip-print-page) .payslip-print-toolbar{display:none!important}
  body:has(.payslip-print-page) .main{margin-left:0!important;width:100%!important}
  body:has(.payslip-print-page) .content{padding:0!important}
  body:has(.payslip-print-page) .payslip-print-page{display:block!important;background:#fff!important;padding:0!important}
  .payslip-print-document{width:auto!important;min-height:0!important;margin:0!important;padding:0 0 12mm!important;border:0!important;box-shadow:none!important}
  .payslip-doc-footer{position:fixed;left:0;right:0;bottom:0;height:9mm;background:#fff}
  .payslip-lines-table thead{display:table-header-group}.payslip-lines-table tr{break-inside:avoid}
}


/* V32.43 — Bulletin de paie : rendu A4 portrait modernisé */
.payslip-print-document{font-family:Inter,Segoe UI,Arial,sans-serif!important;color:#18345a!important;background:#fff!important}
.payslip-doc-heading{text-align:right!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important}
.payslip-doc-heading h1{text-align:right!important;color:#17365d!important;letter-spacing:.02em!important}
.payslip-company-logo-box{border:0!important;background:transparent!important;box-shadow:none!important;display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;padding:0!important}
.payslip-company-logo-box img{max-width:48mm!important;max-height:31mm!important;object-fit:contain!important;object-position:left top!important}
.payslip-lines-table{border-collapse:separate!important;border-spacing:0!important;border:0!important;overflow:hidden!important;border-radius:4px!important}
.payslip-lines-table thead th{background:#dfeaf5!important;color:#17365d!important;border:0!important;border-bottom:1px solid #cbd9e8!important;padding:2.2mm 1.8mm!important;font-weight:750!important}
.payslip-lines-table tbody tr{border:0!important}
.payslip-lines-table tbody tr:nth-child(even){background:#f4f7fa!important}
.payslip-lines-table tbody tr:nth-child(odd){background:#fff!important}
.payslip-lines-table tbody td{border:0!important;border-bottom:0!important;padding:1.45mm 1.8mm!important;color:#203a5e!important;vertical-align:middle!important}
.payslip-lines-table .rang,.payslip-lines-table .rang-cell{width:14mm!important;text-align:center!important}
.payslip-lines-table .label{text-align:left!important}
.payslip-lines-table td.num,.payslip-lines-table th:not(.label):not(.rang){text-align:right!important}
.payslip-lines-table th.label{text-align:left!important}
.payslip-lines-table .amount{font-weight:600!important}
.payslip-bottom-grid table,.payslip-leave-box table{border-collapse:separate!important;border-spacing:0!important;border:0!important;overflow:hidden!important;border-radius:4px!important}
.payslip-cumul-box th,.payslip-cumul-box td,.payslip-leave-box th,.payslip-leave-box td{border:0!important;border-bottom:1px solid #dbe5ef!important;padding:1.7mm 1.8mm!important}
.payslip-cumul-box tr:last-child th,.payslip-cumul-box tr:last-child td,.payslip-leave-box tr:last-child th,.payslip-leave-box tr:last-child td{border-bottom:0!important}
.payslip-cumul-box th,.payslip-leave-box th{background:#dfeaf5!important;color:#17365d!important}
.payslip-cumul-box td,.payslip-leave-box td{background:#fff!important;text-align:right!important;color:#203a5e!important}
.payslip-net-box{border:0!important;background:#e8f2fb!important;border-radius:4px!important;color:#17365d!important}
.payslip-net-box span{font-size:10px!important}.payslip-net-box strong{font-size:16px!important}
.payslip-doc-footer{border-top:1px solid #b9cde0!important;color:#70839b!important}
.payslip-doc-footer img{width:26mm!important;height:6.5mm!important}
@media print{
  .payslip-print-document{width:210mm!important;min-height:297mm!important;margin:0!important;padding:9mm 10mm 14mm!important}
  .payslip-doc-heading h1{text-align:right!important}
  .payslip-lines-table tbody td{border:0!important}
  .payslip-lines-table tbody tr:nth-child(even){background:#f4f7fa!important}
}

/* V32.44 — Envoi du bulletin par e-mail depuis l'aperçu */
.payslip-print-ribbon-actions .print-tool-btn.email{background:#eef4fb!important;color:#17365d!important;border:1px solid #c9d9e8!important}
.payslip-print-ribbon-actions .print-tool-btn.email:hover{background:#e2edf8!important}
.payslip-email-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(15,28,45,.52);z-index:10050}
.payslip-email-modal.open{display:flex}
.payslip-email-window{width:min(680px,calc(100vw - 40px));background:#fff;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.28);overflow:hidden}
.payslip-email-head{display:flex;justify-content:space-between;gap:20px;padding:22px 24px 16px;border-bottom:1px solid #e2e8f0}.payslip-email-head h2{margin:4px 0 5px;color:#17365d;font-size:21px}.payslip-email-head p{margin:0;color:#738198;font-size:12px}.payslip-email-form{padding:20px 24px 8px;display:grid;gap:14px}.payslip-email-form label{display:grid;gap:6px;font-size:12px;font-weight:650;color:#34445d}.payslip-email-form input,.payslip-email-form textarea{width:100%;box-sizing:border-box;border:1px solid #d4dce7;border-radius:7px;padding:10px 11px;font:13px Inter,Segoe UI,Arial,sans-serif;color:#26344f;background:#fff}.payslip-email-form textarea{resize:vertical;min-height:135px}.payslip-email-footer{display:flex;justify-content:flex-end;gap:8px;padding:16px 24px 20px;border-top:1px solid #edf1f5}
@media(max-width:900px){.payslip-print-ribbon-actions .print-tool-btn.email span{display:none}}

/* V32.51 — Impression bulletin : fenêtre dédiée, sans dépendance à l'iframe d'aperçu. */
@media print{
  html,body{background:#fff!important;margin:0!important;padding:0!important;overflow:visible!important}
  body:has(.payslip-print-page) .sidebar,
  body:has(.payslip-print-page) .topbar,
  body:has(.payslip-print-page) .payslip-print-toolbar,
  body:has(.payslip-print-page) .employee-print-modal,
  body:has(.payslip-print-page) .payslip-email-modal{display:none!important}
  body:has(.payslip-print-page) .app{display:block!important}
  body:has(.payslip-print-page) .main{display:block!important;margin:0!important;width:100%!important}
  body:has(.payslip-print-page) .content{display:block!important;padding:0!important;margin:0!important}
  body:has(.payslip-print-page) .payslip-print-page{display:block!important;visibility:visible!important;background:#fff!important;padding:0!important;margin:0!important}
  body:has(.payslip-print-page) .payslip-print-document{display:block!important;visibility:visible!important;opacity:1!important}
}

/* V32.50 — Bulletin : colonnes calibrées et impression des seules rubriques imprimables */
.payslip-lines-table{table-layout:fixed!important;width:100%!important}
.payslip-lines-table col.col-rang{width:10%!important}
.payslip-lines-table col.col-label{width:30%!important}
.payslip-lines-table col.col-base{width:15%!important}
.payslip-lines-table col.col-rate{width:8%!important}
.payslip-lines-table col.col-amount{width:14.5%!important}
.payslip-lines-table th,.payslip-lines-table td{overflow:hidden}
.payslip-lines-table th{white-space:normal;line-height:1.1}
.payslip-lines-table td.rubric-label{white-space:normal;overflow-wrap:anywhere;text-align:left!important}
.payslip-lines-table td.num{white-space:nowrap;text-align:right!important;font-variant-numeric:tabular-nums}
.payslip-lines-table th:nth-child(1),.payslip-lines-table td:nth-child(1){width:auto!important}
.payslip-lines-table th:nth-child(2),.payslip-lines-table td:nth-child(2){width:auto!important}
.payslip-lines-table th:nth-child(3),.payslip-lines-table td:nth-child(3){width:auto!important}
.payslip-lines-table th:nth-child(4),.payslip-lines-table td:nth-child(4),.payslip-lines-table th:nth-child(6),.payslip-lines-table td:nth-child(6){width:auto!important}
.payslip-lines-table th:nth-child(5),.payslip-lines-table td:nth-child(5),.payslip-lines-table th:nth-child(7),.payslip-lines-table td:nth-child(7){width:auto!important}

/* V32.52 — Impression : conserver exactement le rendu de l'aperçu NXPeople */
.payslip-print-document,
.payslip-lines-table,
.payslip-cumul-box table,
.payslip-leave-box table,
.payslip-net-box,
.payslip-employee-card,
.payslip-lines-table thead th,
.payslip-lines-table tbody tr,
.payslip-cumul-box th,
.payslip-leave-box th,
.payslip-cumul-box td,
.payslip-leave-box td{
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
}

@media print{
  @page{size:A4 portrait;margin:0!important}
  html,body{width:210mm!important;min-width:210mm!important;background:#fff!important}
  body{margin:0!important;padding:0!important}
  body:has(.payslip-print-page) .payslip-print-page{
    width:210mm!important;
    min-height:297mm!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
  }
  body:has(.payslip-print-page) .payslip-print-document{
    width:210mm!important;
    min-height:297mm!important;
    margin:0!important;
    padding:9mm 10mm 14mm!important;
    box-sizing:border-box!important;
    background:#fff!important;
    color:#18345a!important;
    border:0!important;
    box-shadow:none!important;
    font-family:Inter,Segoe UI,Arial,sans-serif!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  .payslip-doc-header,.payslip-identity-block,.payslip-lines-section,
  .payslip-bottom-grid,.payslip-leave-box,.payslip-legal,.payslip-doc-footer{visibility:visible!important;opacity:1!important}
  .payslip-lines-table thead th{background:#dfeaf5!important;color:#17365d!important}
  .payslip-lines-table tbody tr:nth-child(even){background:#f4f7fa!important}
  .payslip-lines-table tbody tr:nth-child(odd){background:#fff!important}
  .payslip-employee-card{background:#f1f1f1!important}
  .payslip-net-box{background:#e8f2fb!important;color:#17365d!important}
  .payslip-cumul-box th,.payslip-leave-box th{background:#dfeaf5!important;color:#17365d!important}
}

/* V32.56 - Valeurs paramètres : même ergonomie que les Cumuls de paie. */
.parameter-values-page .parameter-chapter-head,.parameter-values-page .parameter-chapter-row{grid-template-columns:minmax(0,1fr)}
.parameter-values-page .parameter-chapter-row{min-height:46px}
.parameter-values-page .parameter-chapter-row strong{font-size:11px}
.parameter-values-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 205px!important}
.parameter-values-layout.left-collapsed .rubric-list{width:0!important;min-width:0!important;padding:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.parameter-values-form{padding-top:18px;max-width:none}
.parameter-table-wrap{border:1px solid #e1e6ed;border-radius:8px;overflow:auto;background:#fff}
.parameter-table{min-width:820px}
.parameter-head,.parameter-row{display:grid;grid-template-columns:155px minmax(220px,1fr) 180px 110px 175px;gap:10px;align-items:center;padding:0 12px}
.parameter-head{min-height:38px;background:#315e73;color:#fff;font-size:9px;font-weight:600}
.parameter-row{min-height:48px;border-bottom:1px solid #edf0f4;color:#45526d;font-size:10px}
.parameter-row:nth-child(odd){background:#f7f9fb}
.parameter-row:last-child{border-bottom:0}
.parameter-code b{color:#2f3c55;font-weight:700}
.parameter-row input,.parameter-row select{width:100%;height:32px;border:1px solid #dfe4ed;border-radius:6px;background:#f7f8fa;color:#2f3b57;font:inherit;font-size:10px;padding:0 8px;outline:0}
.parameter-values-form.crud-editing .parameter-row .parameter-value,.parameter-values-form.crud-editing .parameter-row .parameter-company{background:#fff}
.parameter-row .parameter-type{background:#f1f3f6;color:#68758e}
.parameter-row .parameter-company:disabled{opacity:.55;cursor:not-allowed}
.parameter-empty{padding:30px 18px;color:#8a95aa;font-size:10px}
.parameter-values-form .form-footer{gap:15px}
.parameter-values-form .form-footer>span{max-width:70%}
.parameter-values-form.crud-editing .crud-edit-footer{display:flex}
.parameter-values-page .rubric-actions-panel .action-btn{font-size:10px}
@media(max-width:900px){.parameter-values-layout{grid-template-columns:250px 18px minmax(0,1fr) 180px}.parameter-values-layout .rubric-actions-panel{width:180px}.parameter-values-layout .parameter-table{min-width:760px}}
@media(max-width:750px){.parameter-values-layout{grid-template-columns:1fr!important;grid-template-rows:auto!important}.parameter-values-layout>*{grid-column:1!important;grid-row:auto!important}.parameter-values-layout .rubric-collapse-bar{display:none}.parameter-values-layout .rubric-list{height:300px;min-height:0}.parameter-values-layout .rubric-rows{height:180px}.parameter-values-layout .rubric-card{height:auto;overflow:visible}.parameter-values-layout .rubric-actions-panel{height:auto;min-height:0;width:auto}.parameter-values-form .form-footer{align-items:flex-start;flex-direction:column}.parameter-values-form .form-footer>span{max-width:none}}

/* V32.57 — Gestion des utilisateurs */
.users-layout{display:grid;grid-template-columns:330px 18px minmax(0,1fr) 205px;grid-template-rows:minmax(650px,1fr);gap:0;align-items:stretch;width:100%;min-width:0}.users-page .rubric-list{grid-column:1;grid-row:1;padding:0;overflow:hidden;height:calc(100vh - 180px);min-height:650px}.users-table-head,.user-row{display:grid;grid-template-columns:58px minmax(80px,1fr) 82px 48px 92px;gap:6px}.users-table-head{padding:8px 12px;background:#fafbfe;color:#8a95aa;font-size:9px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5}.user-row{align-items:center;text-decoration:none;color:#45526d;padding:10px 12px;border-bottom:1px solid #f0f2f6;font-size:10px;min-height:43px}.user-row strong{color:#27334e;font-weight:600}.user-row:hover{background:#f7f6ff}.user-row.selected{background:#dfe6ea;border-left:3px solid #4c6d7c;padding-left:9px}.users-page .rubric-rows{height:calc(100% - 123px);overflow:auto}.users-page .rubric-collapse-bar{grid-column:2;grid-row:1}.users-page .rubric-card{grid-column:3;grid-row:1;min-width:0;overflow:auto}.users-page .rubric-actions-panel{grid-column:4;grid-row:1}.user-photo-large{width:92px;height:92px;border-radius:15px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#eeeaff,#dbe7ff);color:#496779;font-size:32px;font-weight:800;border:3px solid #fff;box-shadow:0 2px 8px rgba(28,40,75,.12);flex:0 0 92px}.user-photo-large img{width:100%;height:100%;object-fit:cover;padding:0;background:#fff;border-radius:12px;display:block}.users-page .rubric-top{min-height:150px}.lookup-field{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:5px}.lookup-btn{height:36px;border:1px solid #cfd6e2;border-radius:7px;background:#f4f6f9;color:#46556f;font-size:18px;cursor:pointer}.lookup-btn:hover{background:#eceff5;color:#5142d3}.user-associated-matricule input[readonly]{background:#f5f7f9;cursor:pointer}.employee-lookup-modal{position:fixed;inset:0;background:rgba(25,32,45,.42);z-index:5000;display:none;align-items:center;justify-content:center;padding:25px;box-sizing:border-box}.employee-lookup-modal.open{display:flex}.employee-lookup-window{width:min(1200px,96vw);max-height:min(820px,92vh);background:#fff;border-radius:12px;box-shadow:0 20px 60px rgba(20,30,50,.25);display:flex;flex-direction:column;overflow:hidden}.employee-lookup-head{display:flex;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid #e6eaf0}.employee-lookup-head h2{margin:3px 0 4px;color:#26344d;font-size:19px}.employee-lookup-head p{margin:0;color:#7a869b;font-size:10px}.employee-lookup-search{margin:14px 20px;border:1px solid #dce2eb;border-radius:8px;height:38px;display:flex;align-items:center;padding:0 10px;gap:8px;background:#fafbfc}.employee-lookup-search span{font-size:18px;color:#7b879b}.employee-lookup-search input,.employee-lookup-search .nx-search-edit{border:0;outline:0;background:transparent;width:100%;font:inherit;color:#33415d}.employee-lookup-table{margin:0 20px 14px;border:1px solid #e0e5ed;border-radius:7px;overflow:hidden;min-height:0}.employee-lookup-head-row,.employee-lookup-row{display:grid;grid-template-columns:58px 82px minmax(110px,1fr) minmax(110px,1fr) minmax(130px,1.15fr) minmax(110px,1fr) minmax(110px,1fr);gap:8px;align-items:center;padding:0 10px}.employee-lookup-head-row{min-height:36px;background:#315e73;color:#fff;font-size:9px;font-weight:600}.employee-lookup-rows{overflow:auto;max-height:54vh}.employee-lookup-row{width:100%;min-height:42px;border:0;border-bottom:1px solid #edf0f4;background:#fff;text-align:left;color:#45526d;font:inherit;font-size:10px;cursor:pointer}.employee-lookup-row:nth-child(odd){background:#f8fafc}.employee-lookup-row:hover{background:#eeeaff}.employee-lookup-row strong{color:#2f3c55}.lookup-status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#39a96b;margin-right:5px}.lookup-status-dot.inactive{background:#aab2bf}.employee-lookup-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-top:1px solid #e6eaf0;color:#7a869b;font-size:10px}.employee-lookup-footer button{margin-left:auto}.crud-close{border:0;background:transparent;font-size:27px;color:#7c8799;cursor:pointer}.crud-close:hover{color:#303d56}.user-tabs{display:flex;align-items:stretch;padding:0 22px;gap:2px;border-bottom:1px solid #e9edf4;background:#fff}.user-tabs .tab{padding:13px;border:0;border-bottom:2px solid transparent;background:transparent;color:#78849c;font-size:11px;font-family:inherit;cursor:pointer}.user-tabs .tab.active{color:#5848d9;border-bottom-color:#6654e8;font-weight:700}.user-tab-panel[hidden]{display:none!important}.user-form{padding-top:0}.user-tab-panel{padding:20px 22px}.user-ident-grid{grid-template-columns:1fr 1fr}.user-ident-grid label{font-size:10px;font-weight:600;color:#394860;display:flex;flex-direction:column;gap:5px}.user-ident-grid input,.user-ident-grid select{height:36px;border:1px solid #dfe4ed;border-radius:7px;background:#fff;padding:0 10px;color:#34435d;font-size:11px;box-sizing:border-box}.check-field{flex-direction:row!important;align-items:center;gap:9px!important}.check-field input[type=checkbox]{width:16px;height:16px}.user-help{font-size:10px;color:#6f7b92;margin:0 0 12px}.user-param-table-wrap,.user-company-table{border:1px solid #e1e6ed;border-radius:7px;overflow:auto;background:#fff}.user-param-table{min-width:850px}.user-param-head,.user-param-row{display:grid;grid-template-columns:170px 110px minmax(190px,1fr) 190px 105px;gap:10px;align-items:center;padding:0 10px}.user-param-head{min-height:38px;background:#315e73;color:#fff;font-size:9px;font-weight:600}.user-param-row{min-height:42px;border-bottom:1px solid #edf0f4;font-size:10px;color:#45526d}.user-param-row:nth-child(odd){background:#f7f9fb}.user-param-row strong{color:#2f3c55}.user-param-row input{height:31px;border:1px solid #dfe4ed;border-radius:6px;padding:0 8px;background:#f5f7f9;color:#2f3b57;font:inherit}.user-param-type{font-weight:600;color:#53617b}.user-company-head,.user-company-row{display:grid;grid-template-columns:150px minmax(200px,1fr) 170px;gap:12px;align-items:center;padding:9px 12px;font-size:10px}.user-company-head{background:#315e73;color:#fff;font-size:9px;font-weight:600}.user-company-row{border-bottom:1px solid #edf0f4;color:#45526d}.user-company-row:nth-child(odd){background:#f7f9fb}.user-company-row input{width:16px;height:16px}.user-all-companies{margin-bottom:12px}.users-page .form-footer{padding:0 22px 18px}.users-page .action-btn.dark{background:#3f4652;color:#fff}.users-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 205px!important}.users-layout.left-collapsed .rubric-list{width:0!important;min-width:0!important;padding:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
@media(max-width:1000px){.users-layout{grid-template-columns:260px 18px minmax(0,1fr) 185px}.users-page .rubric-actions-panel{width:185px}.users-table-head,.user-row{grid-template-columns:52px minmax(70px,1fr) 72px 45px 82px}.user-ident-grid{grid-template-columns:1fr}.user-param-table{min-width:760px}}
@media(max-width:750px){.users-layout{grid-template-columns:1fr!important;grid-template-rows:auto!important}.users-layout>*{grid-column:1!important;grid-row:auto!important}.users-page .rubric-collapse-bar{display:none}.users-page .rubric-list{height:350px;min-height:0}.users-page .rubric-rows{height:220px}.users-page .rubric-card,.users-page .rubric-actions-panel{height:auto;min-height:0;width:auto}.user-tab-panel{padding:14px 10px}.users-page .form-footer{padding:0 10px 14px}.user-param-table,.user-company-table{min-width:0}.user-param-head,.user-param-row{min-width:760px}.user-company-head,.user-company-row{min-width:560px}}

/* V32.59 - Photo utilisateur alignée sur la fiche individuelle. */
.users-page .user-rubric-top{display:flex;align-items:flex-start;gap:14px;min-height:150px;padding-top:14px}
.users-page .user-photo-zone{width:92px;flex:0 0 92px;display:flex;flex-direction:column;align-items:center;gap:6px}
.users-page .user-photo-zone .user-photo-large{width:92px;height:92px;flex:0 0 92px;border-radius:14px}
.users-page .user-photo-zone .user-photo-large img{width:100%;height:100%;object-fit:cover}
.users-page .user-photo-btn{display:block;text-align:center;white-space:nowrap}
.users-page .user-photo-btn input{display:none}
.users-page .user-photo-btn{cursor:pointer}

/* V32.60 — Affichage photo utilisateur : aucun contrôle fichier visible, uniquement Modifier la photo sous la photo. */
.users-page .user-photo-zone{align-items:center}
.users-page .user-photo-btn{display:block!important;font-size:9px;line-height:14px;color:#6352df;cursor:pointer;white-space:nowrap}
.users-page .user-photo-btn input[type=file]{display:none!important}
/* V32.62 - NXPeople HR authentication */
.nx-login-body{margin:0;min-height:100vh;background:#eef5fb;font-family:Inter,Segoe UI,Arial,sans-serif;color:#14254a;overflow:auto}.nx-login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,58%) minmax(520px,42%);background:#edf5fb}.nx-login-visual{position:relative;min-height:100vh;overflow:hidden}.nx-login-bg{position:absolute;inset:0;background-image:url('login-hr-bg-left.png');background-size:cover;background-position:center top;filter:saturate(.9)}.nx-login-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(244,250,255,.04),rgba(244,250,255,.10))}.nx-login-visual-content{display:none}.nx-login-logo{width:500px;max-width:72%;height:auto;object-fit:contain;object-position:left center}.nx-login-visual-content h1{margin:105px 0 20px;font-size:40px;line-height:1.16;letter-spacing:-1.5px;font-weight:750}.nx-login-line{display:block;width:64px;height:5px;border-radius:5px;background:linear-gradient(90deg,#13bfc1,#18a7dc);margin-bottom:25px}.nx-login-visual-content p{font-size:19px;line-height:1.5;color:#637998;margin:0}.nx-login-features{display:flex;gap:16px;margin-top:70px}.nx-login-features span{width:112px;height:112px;border-radius:17px;background:rgba(255,255,255,.58);box-shadow:0 10px 30px rgba(57,101,145,.07);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#1682d0;font-size:28px;text-align:center}.nx-login-features b{font-size:11px;line-height:1.35;color:#1d365e}.nx-login-panel{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:45px 5.5% 25px;box-sizing:border-box;background:linear-gradient(90deg,rgba(237,245,251,.35),rgba(247,251,255,.95))}.nx-login-lang{position:absolute;right:5%;top:28px;font-size:14px;font-weight:600;color:#233b62}.nx-login-card{width:min(560px,100%);box-sizing:border-box;background:rgba(255,255,255,.97);border-radius:16px;padding:42px 50px 48px;box-shadow:0 18px 55px rgba(39,72,111,.13);border:1px solid rgba(220,229,239,.75)}.nx-login-card h2{text-align:center;font-size:27px;margin:0 0 8px;color:#14234a}.nx-login-card-logo{display:block;width:280px;max-width:80%;height:auto;margin:0 auto 16px}.nx-login-card>p{text-align:center;color:#667a99;font-size:15px;margin:0 0 30px}.nx-login-card form>label{display:block;font-size:13px;font-weight:700;color:#172b52;margin:0 0 21px}.nx-login-input{height:54px;margin-top:8px;border:1px solid #d5dfeb;border-radius:11px;display:flex;align-items:center;gap:12px;padding:0 14px;background:#fff;box-sizing:border-box;transition:.15s}.nx-login-input:focus-within{border-color:#1595d8;box-shadow:0 0 0 3px rgba(21,149,216,.10)}.nx-login-input>span{font-size:21px;color:#1c4b84;width:22px;text-align:center}.nx-login-input input{border:0;outline:0;flex:1;min-width:0;height:100%;font-size:14px;color:#253a5d;background:transparent}.nx-login-input input::placeholder{color:#8a9ab0}.nx-login-input button{border:0;background:transparent;color:#7b8ca5;cursor:pointer;font-size:17px}.nx-login-options{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin:-2px 0 24px}.nx-check{display:flex;align-items:center;gap:7px;color:#263d60!important;font-weight:500!important;margin:0!important}.nx-check input{width:17px;height:17px}.nx-login-options a,.nx-login-reset a,.nx-login-back a{color:#0877e2;text-decoration:underline;cursor:pointer}.nx-login-submit{width:100%;height:56px;border:0;border-radius:12px;background:linear-gradient(90deg,#087bd7,#09a7d0);color:#fff;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 8px 18px rgba(8,130,208,.16)}.nx-login-submit:hover{filter:brightness(.97)}.nx-login-submit b{font-size:23px;margin-left:9px}.nx-login-or{display:flex;align-items:center;gap:14px;color:#8b98ab;font-size:12px;margin:27px 0}.nx-login-or:before,.nx-login-or:after{content:"";height:1px;background:#dce3ec;flex:1}.nx-login-reset{display:flex;align-items:center;gap:17px;background:#f1f6fc;border-radius:11px;padding:17px 18px}.nx-mail-icon{width:46px;height:46px;border-radius:50%;background:#e0efff;display:grid;place-items:center;color:#087fda;font-size:23px;flex:0 0 46px}.nx-login-reset strong{display:block;font-size:14px;color:#20365b;margin-bottom:5px}.nx-login-reset small{display:block;color:#647995;font-size:11px;margin-bottom:7px}.nx-login-reset a{font-size:12px;font-weight:600;text-decoration:none}.nx-login-card footer,.nx-login-panel footer{position:absolute;bottom:15px;left:5.5%;font-size:11px;color:#7890ad}.nx-login-panel footer span{margin:0 10px;color:#a5b0bf}.nx-login-alert{border-radius:8px;padding:10px 12px;margin:-12px 0 18px;font-size:12px}.nx-login-alert.error{background:#fff0f0;color:#a52727;border:1px solid #f2caca}.nx-login-alert.success{background:#edf9f1;color:#227344;border:1px solid #cbe8d5}.nx-forgot-card{max-width:560px}.nx-password-help{display:block;color:#71829a;font-size:11px;margin:-7px 0 22px;line-height:1.45}.nx-login-back{text-align:center;margin-top:20px;font-size:12px}.nx-login-card label{position:relative}@media(max-width:1100px){.nx-login-shell{grid-template-columns:1fr}.nx-login-visual{display:none}.nx-login-panel{min-height:100vh;background:linear-gradient(135deg,#edf6fc,#f8fbfe)}.nx-login-card{max-width:560px}.nx-login-panel footer{left:0;right:0;text-align:center}}@media(max-width:600px){.nx-login-panel{padding:70px 14px 40px}.nx-login-card{padding:30px 24px 32px;border-radius:14px}.nx-login-lang{top:20px;right:20px}.nx-login-card-logo{width:230px}.nx-login-card h2{font-size:23px}}

/* V32.64 - Menu utilisateur et mode clair/sombre. */
.profile-avatar{overflow:hidden}.profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}.profile-chevron{font-size:12px;color:#6e7891;transition:transform .18s ease}.profile.is-open .profile-chevron{transform:rotate(180deg)}
.nx-user-menu{position:fixed;right:22px;top:58px;width:285px;background:#fff;border:1px solid #e4e8f1;border-radius:12px;box-shadow:0 14px 35px rgba(25,35,60,.18);padding:7px;z-index:1000;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease}.nx-user-menu.open{opacity:1;visibility:visible;transform:translateY(0)}.nx-user-menu-item{width:100%;display:flex;align-items:center;gap:11px;padding:10px 11px;border:0;background:transparent;border-radius:8px;text-decoration:none;color:#293650;text-align:left;cursor:pointer;font:inherit}.nx-user-menu-item:hover{background:#f5f6fb}.nx-user-menu-item>span:first-child{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#efedff;color:#5e50df;flex:none;font-size:14px}.nx-user-menu-item b{display:block;font-size:11px;font-weight:650}.nx-user-menu-item small{display:block;color:#8993a9;font-size:9px;margin-top:3px}.nx-user-menu-item.danger{color:#d52e5d}.nx-user-menu-item.danger>span:first-child{background:#fff0f4;color:#e63f70}.nx-user-menu-separator{height:1px;background:#e9ecf2;margin:5px 7px}.theme-dark{background:#111827!important;color:#e6eaf2}.theme-dark .topbar,.theme-dark .panel,.theme-dark .metric,.theme-dark .nx-user-menu,.theme-dark .modal-window,.theme-dark .crud-dialog{background:#1b2435!important;color:#e7ebf3;border-color:#303b50}.theme-dark .search,.theme-dark input,.theme-dark select,.theme-dark textarea,.theme-dark .period,.theme-dark .panel-head select{background:#172033!important;color:#e7ebf3;border-color:#344056}.theme-dark .search input{background:transparent!important;color:#e7ebf3}.theme-dark .search input::placeholder,.theme-dark input::placeholder,.theme-dark textarea::placeholder{color:#7f8aa1}.theme-dark .breadcrumb,.theme-dark .page-head p,.theme-dark .metric-top,.theme-dark .profile-text small,.theme-dark .profile-breadcrumb,.theme-dark .identity-meta,.theme-dark .section-label,.theme-dark label,.theme-dark .nx-user-menu-item small{color:#9aa6bd}.theme-dark .nx-user-menu-item{color:#e7ebf3}.theme-dark .nx-user-menu-item:hover{background:#263149}.theme-dark .nx-user-menu-separator{background:#344056}.theme-dark .table-wrap table,.theme-dark td,.theme-dark th{color:#dce2ed;border-color:#303b50}.theme-dark th{background:#172033}.theme-dark .alert,.theme-dark .deadlines div{background:#172033}.theme-dark .employee-search,.theme-dark .rubric-table-head,.theme-dark .employee-table-head{background:#172033!important;color:#9aa6bd;border-color:#303b50}.theme-dark .rubric-row,.theme-dark .employee-row{color:#dce2ed;border-color:#303b50}.theme-dark .rubric-row.selected,.theme-dark .employee-row.selected{background:#2b3748}.theme-dark .form-content input,.theme-dark .form-content select,.theme-dark .form-content textarea{background:#172033;color:#e7ebf3;border-color:#344056}.theme-dark .form-footer{border-color:#303b50}.theme-dark .nx-user-menu-item>span:first-child{background:#2d3152}.theme-dark .nx-user-menu-item.danger>span:first-child{background:#3b2430}
@media(max-width:750px){.nx-user-menu{right:10px;top:58px;width:calc(100vw - 20px)}.profile-text{display:flex}.profile{max-width:220px}.profile-text strong{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Recherche globale salariés / fonctions */
.global-search-wrap{position:relative;max-width:675px;z-index:30;display:flex;align-items:center}
.global-search-icon{flex:none;margin-right:8px;color:#65728a}.global-search-wrap .global-search-edit{min-width:0;flex:1;height:100%;outline:0;border:0;background:transparent;color:inherit;font:inherit;line-height:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:text}.global-search-wrap .global-search-edit:empty::before{content:attr(data-placeholder);color:#8a94a8;opacity:1;pointer-events:none}.global-search-wrap .global-search-edit:focus{outline:0;box-shadow:none}
.global-search-results{position:absolute;left:-1px;right:-1px;top:43px;background:#fff;border:1px solid #e2e7f0;border-radius:10px;box-shadow:0 14px 35px rgba(24,37,70,.14);padding:7px;display:none;max-height:430px;overflow:auto}
.global-search-results.open{display:block}
.global-search-result-head{padding:7px 9px 5px;font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:#8b96aa;font-weight:750}
.global-search-result{display:flex;align-items:center;gap:10px;width:100%;padding:9px;border:0;background:#fff;border-radius:7px;text-decoration:none;color:#273450;text-align:left;cursor:pointer}
.global-search-result:hover,.global-search-result:focus{background:#f5f4ff;outline:0}
.global-search-result .gs-icon{width:29px;height:29px;border-radius:8px;background:#eeeaff;color:#5d4be0;display:grid;place-items:center;font-size:13px;font-weight:700;flex:none}
.global-search-result .gs-main{display:flex;flex-direction:column;min-width:0;flex:1}
.global-search-result .gs-main strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.global-search-result .gs-main small{font-size:9px;color:#8490a7;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.global-search-result .gs-type{font-size:8px;color:#8a95ab;flex:none}
.global-search-empty{padding:18px 10px;text-align:center;color:#8994a9;font-size:10px}

.employee-search .nx-search-edit:empty::before{content:attr(data-placeholder);color:#8a95ab;pointer-events:none}.employee-search .nx-search-edit:focus{box-shadow:none}.employee-search .nx-search-edit[contenteditable="true"]{cursor:text}
/* V32.71 - centrage vertical des textes dans les zones de recherche contenteditable */
.global-search-wrap .global-search-edit{display:flex;align-items:center;height:100%;min-height:0;line-height:1.2;padding:0;margin:0;}
.employee-search .nx-search-edit{display:flex;align-items:center;height:100%;min-height:0;line-height:1.2;padding:0;margin:0;}
.employee-lookup-search .nx-search-edit{display:flex;align-items:center;height:100%;min-height:0;line-height:1.2;padding:0;margin:0;}

/* V32.75 — Habillage bulletin : cadrage bleu, entête et pied de page inspirés du modèle validé.
   Les données et la structure fonctionnelle du bulletin V32.71 restent inchangées. */
.payslip-print-page{background:#f2f4f7!important}
.payslip-print-document{
  border:0!important;
  border-radius:0!important;
  box-shadow:0 2px 12px rgba(27,40,70,.10)!important;
  color:#17365d!important;
}
.payslip-doc-header{
  grid-template-columns:31% 69%!important;
  border-bottom:1.2px solid #7f9bb8!important;
  padding-bottom:4mm!important;
  min-height:37mm!important;
}
.payslip-company-logo-box{
  border:0!important;
  background:transparent!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
  padding:0!important;
}
.payslip-company-logo-box img{max-width:48mm!important;max-height:28mm!important;object-position:left top!important}
.payslip-company-logo-box strong{color:#17365d!important;text-align:left!important}
.payslip-doc-heading{padding-top:0!important;align-items:flex-end!important}
.payslip-doc-heading h1{
  color:#17365d!important;
  font-size:18px!important;
  letter-spacing:.01em!important;
  margin:0 0 2mm!important;
  text-align:right!important;
}
.payslip-period{color:#17365d!important;justify-content:flex-end!important;margin-bottom:2mm!important}
.payslip-head-meta{color:#405a77!important}
.payslip-identity-block{margin-top:4mm!important;gap:3mm!important}
.payslip-identity-block>div:first-child,
.payslip-employee-card{
  border:1px solid #b9c9d9!important;
  background:#fff!important;
}
.payslip-identity-block>div:first-child{padding:4mm!important}
.payslip-employee-card{margin:0!important;padding:4mm!important}
.payslip-lines-table{border-collapse:collapse!important;border:1px solid #aebfd0!important}
.payslip-lines-table th,.payslip-lines-table td{border:1px solid #aebfd0!important}
.payslip-lines-table thead th{
  background:#dfeaf5!important;
  color:#17365d!important;
  border-color:#aebfd0!important;
}
.payslip-lines-table tbody tr:nth-child(even){background:#f5f8fb!important}
.payslip-lines-table tbody tr:nth-child(odd){background:#fff!important}
.payslip-lines-table tbody td{color:#203a5e!important}
.payslip-cumul-box table,.payslip-leave-box table{border-collapse:collapse!important}
.payslip-cumul-box th,.payslip-cumul-box td,
.payslip-leave-box th,.payslip-leave-box td{border:1px solid #aebfd0!important}
.payslip-cumul-box th,.payslip-leave-box th{background:#dfeaf5!important;color:#17365d!important}
.payslip-net-box{border:1px solid #8fa9c2!important;background:#e8f2fb!important;color:#17365d!important}
.payslip-doc-footer{
  border-top:1px solid #9eb5cc!important;
  color:#6f8298!important;
}
.payslip-doc-footer img{width:26mm!important;height:6.5mm!important}
.payslip-doc-footer>span:nth-child(2){color:#17365d!important}
.payslip-doc-footer .page-number{color:#526b85!important}
@media print{
  .payslip-print-document{border:0!important;box-shadow:none!important}
  .payslip-doc-header{border-bottom-color:#7f9bb8!important}
  .payslip-lines-table thead th,.payslip-cumul-box th,.payslip-leave-box th{background:#dfeaf5!important;color:#17365d!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .payslip-lines-table tbody tr:nth-child(even){background:#f5f8fb!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .payslip-net-box{background:#e8f2fb!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* V32.76 — Cadrage renforcé des tableaux du bulletin */
.payslip-identity-block>div:first-child,
.payslip-employee-card,
.payslip-lines-table,
.payslip-cumul-box table,
.payslip-leave-box table,
.payslip-net-box{
  border:1px solid #8fa9c2!important;
}
.payslip-lines-table th,
.payslip-lines-table td,
.payslip-cumul-box th,
.payslip-cumul-box td,
.payslip-leave-box th,
.payslip-leave-box td{
  border:1px solid #aebfd0!important;
}
.payslip-lines-table thead th,
.payslip-cumul-box thead th,
.payslip-leave-box thead th{
  border-color:#8fa9c2!important;
}
.payslip-cumul-box,
.payslip-leave-box{
  border:0!important;
}
.payslip-bottom-grid{gap:8mm!important}

/* V32.77 — Bulletin : cadrage monochrome, colonnes équilibrées et typographie renforcée. */
.payslip-print-document{
  color:#222!important;
  font-size:11.5px!important;
  line-height:1.24!important;
  border:1px solid #555!important;
  box-shadow:none!important;
}
.payslip-doc-header{
  grid-template-columns:42% 58%!important;
  gap:6mm!important;
  min-height:39mm!important;
  border-bottom:1.2px solid #333!important;
  padding-bottom:4mm!important;
}
.payslip-company-logo-box{color:#222!important}
.payslip-company-logo-box strong{color:#222!important;font-size:16px!important}
.payslip-company-logo-box img{max-width:50mm!important;max-height:30mm!important}
.payslip-doc-heading{color:#222!important;padding-top:0!important;justify-content:flex-start!important}
.payslip-doc-heading h1{
  color:#222!important;
  font-size:21px!important;
  font-weight:800!important;
  margin:0 0 3mm!important;
  text-align:right!important;
  width:100%!important;
}
.payslip-period{
  color:#333!important;
  font-size:11px!important;
  margin-bottom:3mm!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
}
.payslip-head-meta{
  color:#333!important;
  font-size:10.5px!important;
  padding:0!important;
  column-gap:8mm!important;
  row-gap:2.5mm!important;
  width:100%!important;
}
.payslip-head-meta b{min-width:24mm!important}
.payslip-identity-block{
  grid-template-columns:1fr 1fr!important;
  gap:4mm!important;
  min-height:39mm!important;
  margin-top:4mm!important;
}
.payslip-identity-block>div:first-child,
.payslip-employee-card{
  border:1px solid #777!important;
  background:#fff!important;
  color:#222!important;
  min-width:0!important;
}
.payslip-identity-block>div:first-child{padding:4.5mm!important}
.payslip-identity-block>div:first-child>strong{font-size:13px!important}
.payslip-identity-block>div:first-child>span{font-size:11px!important}
.payslip-identity-block>div:first-child>small{font-size:10.5px!important;margin-top:6mm!important}
.payslip-company-meta{font-size:10px!important;gap:2.5mm 5mm!important}
.payslip-employee-card{padding:4.5mm!important;margin:0!important;gap:3mm!important}
.payslip-employee-card strong{font-size:13px!important}
.payslip-employee-card span{font-size:10.5px!important}
.payslip-lines-section{margin-top:4mm!important}
.payslip-lines-table{
  border:1px solid #555!important;
  color:#222!important;
  font-size:10.5px!important;
}
.payslip-lines-table th,.payslip-lines-table td{
  border:1px solid #888!important;
  padding:2mm 1.8mm!important;
  height:6.2mm!important;
  color:#222!important;
}
.payslip-lines-table thead th{
  background:#e8e8e8!important;
  color:#222!important;
  border-color:#777!important;
  font-size:10.5px!important;
}
.payslip-lines-table tbody tr:nth-child(even),
.payslip-lines-table tbody tr:nth-child(odd){background:#fff!important}
.payslip-bottom-grid{gap:6mm!important;margin-top:5mm!important}
.payslip-cumul-box table,.payslip-leave-box table{font-size:10px!important}
.payslip-cumul-box th,.payslip-cumul-box td,
.payslip-leave-box th,.payslip-leave-box td{
  border:1px solid #888!important;
  padding:1.8mm!important;
  color:#222!important;
}
.payslip-cumul-box th,.payslip-leave-box th{background:#e8e8e8!important;color:#222!important}
.payslip-net-box{
  border:1px solid #555!important;
  background:#f3f3f3!important;
  color:#222!important;
  min-height:18mm!important;
}
.payslip-net-box span{font-size:11px!important}
.payslip-net-box strong{font-size:15px!important}
.payslip-leave-box{width:58%!important;margin-top:4mm!important}
.payslip-legal{font-size:9px!important;color:#444!important}
.payslip-doc-footer{
  border-top:1px solid #777!important;
  color:#555!important;
  font-size:8.5px!important;
}
.payslip-doc-footer>span:nth-child(2),.payslip-doc-footer .page-number{color:#444!important}
@media print{
  .payslip-print-document{border:0!important;box-shadow:none!important;color:#222!important}
  .payslip-doc-header{border-bottom-color:#333!important}
  .payslip-lines-table thead th,
  .payslip-cumul-box th,
  .payslip-leave-box th,
  .payslip-net-box{
    background:#e8e8e8!important;
    color:#222!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
}

/* V32.78 — Aperçu bulletin : espace de travail gris foncé comme le modèle validé.
   Le document A4 reste blanc ; seul l'arrière-plan de l'aperçu est assombri.
   Le mode impression conserve son fond blanc. */
.payslip-print-modal .employee-print-workspace{
  background:#3b3f43!important;
}
.payslip-print-modal .employee-print-frame iframe{
  background:#fff!important;
  box-shadow:0 8px 28px rgba(0,0,0,.30)!important;
}
@media print{
  .payslip-print-modal .employee-print-workspace{
    background:#fff!important;
  }
}


/* V32.79 — Aperçu NXPRINT : 100 % par défaut, fond de travail gris foncé, paysage optionnel. */
.payslip-print-modal .employee-print-workspace{
  background:#3b3f43!important;
  padding:28px 40px 45px!important;
}
.payslip-print-modal .employee-print-frame{
  width:min(100%,1320px)!important;
  margin:0 auto!important;
  display:flex!important;
  justify-content:center!important;
  align-items:flex-start!important;
}
.payslip-print-modal .employee-print-frame iframe{
  display:block!important;
  background:#fff!important;
  box-shadow:0 8px 30px rgba(0,0,0,.34)!important;
  border:0!important;
}
.payslip-print-modal .print-tool-btn.orientation-btn{min-width:92px!important}
.payslip-print-modal .print-tool-btn.orientation-btn.active{background:#e9e9e9!important;border-color:#777!important;color:#222!important}
@media print{
  .payslip-print-modal .employee-print-workspace{background:#fff!important}
}


/* =========================================================
   V32.79 — Fiche individuelle : barre d'actions compacte
   ========================================================= */
@media (min-width: 751px){
  .employee-page .employee-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 160px !important;
  }
  .employee-page .employee-actions-panel{
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
    padding:10px 5px 10px !important;
    box-sizing:border-box;
    overflow-x:hidden;
  }
  .employee-page .right-actions{
    width:150px;
    display:flex;
    flex-direction:column;
    gap:5px;
  }
  .employee-page .right-actions .action-btn{
    width:150px !important;
    height:25px !important;
    min-height:25px !important;
    max-height:25px !important;
    border-radius:5px !important;
    padding:0 8px !important;
    font-size:9px !important;
    line-height:25px;
    gap:7px !important;
    box-sizing:border-box;
  }
  .employee-page .right-actions .action-btn span{
    width:15px !important;
    min-width:15px !important;
    font-size:13px !important;
    line-height:1;
  }
  .employee-page .right-actions .action-btn.new{background:#20bce8;color:#fff}
  .employee-page .right-actions .action-btn.edit{background:#ddd9d5;color:#25314a}
  .employee-page .right-actions .action-btn.delete{background:#f40086;color:#fff}
  .employee-page .right-actions .action-btn.copy{background:#ddd9d5;color:#25314a}
  .employee-page .right-actions .action-btn.dark{background:#3b3b3b;color:#fff}
  .employee-page .employee-side-edit-actions{
    width:150px;
    display:none;
    flex-direction:column;
    gap:5px;
    margin-top:0;
  }
  .employee-page .employee-side-edit-actions .save-side{
    background:#35a96b !important;
    color:#fff !important;
  }
  .employee-page .employee-side-edit-actions .cancel-side{
    background:#f2f3f5 !important;
    color:#536079 !important;
    border:1px solid #e3e6eb !important;
  }
  .employee-page .employee-actions-panel.crud-editing .employee-side-edit-actions{
    display:flex;
  }
  .employee-page .right-menu-title.quit-function{
    width:150px;
    margin:0 0 8px;
  }
}

/* Toujours afficher la version courante sous le logo. */
.modern-sidebar .brand-version{
  display:block !important;
}


/* =========================================================
   V32.79 V9 — Volet d'actions fixe et sans espace résiduel
   ========================================================= */
@media (min-width:751px){
  .employee-page .employee-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 160px !important;
    width:100% !important;
    box-sizing:border-box;
  }

  .employee-page .employee-actions-panel{
    grid-column:4 !important;
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
    box-sizing:border-box !important;
    justify-self:stretch !important;
    align-self:stretch !important;
    padding:10px 5px !important;
    border:1px solid #e1e5eb !important;
    border-radius:7px !important;
    background:#fff !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }

  .employee-page .employee-actions-panel .right-actions{
    width:150px !important;
    max-width:150px !important;
    margin:0 auto !important;
  }

  .employee-page .employee-actions-panel .right-menu-title.quit-function{
    width:150px !important;
    max-width:150px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* Le volet droit ne participe jamais au redimensionnement de la liste gauche. */
@media (min-width:751px){
  .employee-page .left-collapse-bar{
    grid-column:2 !important;
  }
  .employee-page .employee-list{
    grid-column:1 !important;
  }
  .employee-page .employee-card{
    grid-column:3 !important;
    min-width:0 !important;
  }
  .employee-page .employee-actions-panel{
    grid-column:4 !important;
  }
}


/* =========================================================
   V32.79 V10 — Barre de réduction du volet d'actions
   ========================================================= */
@media (min-width:751px){
  .employee-page .employee-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 160px !important;
    gap:0 !important;
    align-items:stretch !important;
  }

  .employee-page .employee-list{grid-column:1 !important}
  .employee-page .left-collapse-bar{grid-column:2 !important}
  .employee-page .employee-card{grid-column:3 !important;min-width:0 !important}
  .employee-page .right-collapse-bar{
    grid-column:4 !important;
    grid-row:1 !important;
    width:18px !important;
    min-width:18px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    background:#f7f8fa !important;
    border-left:1px solid #dfe3e9 !important;
    border-right:1px solid #dfe3e9 !important;
    cursor:col-resize !important;
    box-sizing:border-box !important;
    z-index:5 !important;
  }
  .employee-page .right-collapse-bar:before{
    content:"" !important;
    position:absolute !important;
    top:0 !important;
    bottom:0 !important;
    left:7px !important;
    width:3px !important;
    background:#d9dde4 !important;
    border-left:1px solid #cbd0d8 !important;
    border-right:1px solid #cbd0d8 !important;
  }
  .employee-page .right-collapse-bar button{
    position:relative !important;
    z-index:2 !important;
    width:18px !important;
    height:44px !important;
    margin:0 !important;
    padding:0 0 2px !important;
    border:0 !important;
    border-radius:3px !important;
    background:#fff !important;
    color:#4d5a73 !important;
    box-shadow:0 1px 4px rgba(25,35,55,.20) !important;
    font-size:22px !important;
    line-height:1 !important;
    cursor:pointer !important;
  }
  .employee-page .right-collapse-bar button:hover{
    background:#eef1f6 !important;
    color:#5142d3 !important;
  }

  .employee-page .employee-actions-panel{
    grid-column:5 !important;
    grid-row:1 !important;
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
    box-sizing:border-box !important;
    justify-self:stretch !important;
    align-self:stretch !important;
    padding:10px 5px !important;
    border:1px solid #e1e5eb !important;
    border-radius:7px !important;
    background:#fff !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }

  /* Volet replié : aucune largeur vide ne reste côté droit. */
  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 0px !important;
  }
  .employee-page .employee-layout.actions-collapsed .employee-actions-panel{
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
}


/* =========================================================
   V32.79 V11 — suppression de la colonne/zone vide à droite
   et synchronisation avec la barre de réduction.
   ========================================================= */
@media (min-width:751px){
  .employee-page .employee-layout{
    column-gap:0 !important;
    row-gap:0 !important;
  }
  .employee-page .employee-actions-panel{
    margin:0 !important;
    justify-self:stretch !important;
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
  }
  .employee-page .right-collapse-bar{
    margin:0 !important;
  }
  .employee-page .employee-card{
    margin-right:0 !important;
  }
  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 0px !important;
  }
  .employee-page .employee-layout.actions-collapsed .employee-actions-panel{
    display:block !important;
    visibility:hidden !important;
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
  }
}


/* =========================================================
   V32.79 V12 — dimensions finales du volet d'actions
   ========================================================= */
@media (min-width:751px){
  .employee-page .employee-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 144px !important;
    column-gap:0 !important;
  }

  .employee-page .employee-actions-panel{
    width:144px !important;
    min-width:144px !important;
    max-width:144px !important;
    padding:10px 2px !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }

  .employee-page .employee-actions-panel .right-actions,
  .employee-page .employee-actions-panel .employee-side-edit-actions{
    width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .employee-page .employee-actions-panel .action-btn{
    width:140px !important;
    max-width:140px !important;
    box-sizing:border-box !important;
  }

  .employee-page .employee-actions-panel .right-menu-title.quit-function{
    width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  /* When collapsed, the action column and its separator disappear from
     the layout so the fiche uses the available width without a blank strip. */
  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0px 0px !important;
  }

  .employee-page .employee-layout.actions-collapsed .right-collapse-bar{
    width:0 !important;
    min-width:0 !important;
    border:0 !important;
    overflow:visible !important;
    background:transparent !important;
  }

  .employee-page .employee-layout.actions-collapsed .right-collapse-bar button{
    position:absolute !important;
    right:-18px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
  }

  .employee-page .employee-layout.actions-collapsed .employee-actions-panel{
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }
}


/* =========================================================
   V32.79 V13 — volet 142 px + menus inférieurs alignés
   ========================================================= */
@media (min-width:751px){
  .employee-page .employee-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
    column-gap:0 !important;
  }
  .employee-page .employee-actions-panel{
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
    padding-left:1px !important;
    padding-right:1px !important;
  }
  .employee-page .employee-actions-panel .right-actions,
  .employee-page .employee-actions-panel .employee-side-edit-actions,
  .employee-page .employee-actions-panel .right-menu-title.quit-function,
  .employee-page .employee-actions-panel .right-tree{
    width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }

  /* Fonctions / Sélection commencent exactement à gauche des boutons. */
  .employee-page .employee-actions-panel .right-tree{
    padding-left:0 !important;
    padding-right:0 !important;
    margin-top:17px !important;
    text-align:left !important;
  }
  .employee-page .employee-actions-panel .right-tree .tree-title{
    margin-left:0 !important;
    padding-left:0 !important;
    width:140px !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-actions-panel .right-tree button{
    width:140px !important;
    box-sizing:border-box !important;
    padding-left:22px !important;
    padding-right:0 !important;
  }

  /* État réduit : aucune colonne résiduelle. */
  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
}

/* Le volet droit ne doit jamais créer une marge horizontale externe. */
.employee-page .employee-actions-panel{
  margin-right:0 !important;
}


/* =========================================================
   NXPeople V32.79 — même volet d'actions que Fiche individuelle
   pour Bulletins de paie et Mois de paie
   ========================================================= */
@media (min-width:751px){
  .employee-page .payroll-month-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
    column-gap:0 !important;
  }
  .employee-page .payroll-month-actions-panel{
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
    margin:0 !important;
    padding:10px 1px !important;
    border:1px solid #e1e5eb !important;
    border-radius:8px !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
    grid-column:5 !important;
  }
  .employee-page .payroll-month-layout > .payroll-right-collapse-bar,
  .employee-page .payroll-month-layout > .payslip-right-collapse-bar{
    grid-column:4 !important;
    width:18px !important;
    min-width:18px !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#f7f8fa !important;
    border-left:1px solid #dfe3e9 !important;
    border-right:1px solid #dfe3e9 !important;
    position:relative !important;
    z-index:5 !important;
  }
  .employee-page .payroll-month-layout > .payroll-right-collapse-bar:before,
  .employee-page .payroll-month-layout > .payslip-right-collapse-bar:before{
    content:"" !important;
    position:absolute !important;
    top:0 !important;bottom:0 !important;left:7px !important;
    width:3px !important;background:#d9dde4 !important;
    border-left:1px solid #cbd0d8 !important;
    border-right:1px solid #cbd0d8 !important;
  }
  .employee-page .payroll-month-layout > .payroll-right-collapse-bar button,
  .employee-page .payroll-month-layout > .payslip-right-collapse-bar button{
    position:relative !important;z-index:2 !important;
    width:18px !important;height:44px !important;padding:0 !important;
    border:0 !important;border-radius:3px !important;background:#fff !important;
    color:#4d5a73 !important;font-size:22px !important;
    box-shadow:0 1px 4px rgba(25,35,55,.20) !important;cursor:pointer !important;
  }
  .employee-page .payroll-month-actions-panel .right-actions,
  .employee-page .payroll-month-actions-panel .right-tree,
  .employee-page .payroll-month-actions-panel .right-menu-title.quit-function{
    width:140px !important;max-width:140px !important;
    margin-left:0 !important;margin-right:0 !important;
    box-sizing:border-box !important;
  }
  .employee-page .payroll-month-actions-panel .right-tree{
    padding-left:0 !important;padding-right:0 !important;
  }
  .employee-page .payroll-month-actions-panel .right-tree .tree-title{
    margin-left:0 !important;padding-left:0 !important;
  }
  .employee-page .payroll-month-actions-panel .right-tree button{
    width:140px !important;box-sizing:border-box !important;
  }

  .employee-page .payroll-month-layout.payroll-actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
  .employee-page .payroll-month-layout.payroll-actions-collapsed .payroll-month-actions-panel{
    width:0 !important;min-width:0 !important;max-width:0 !important;
    padding:0 !important;border:0 !important;overflow:hidden !important;
  }
  .employee-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar,
  .employee-page .payroll-month-layout.payroll-actions-collapsed > .payslip-right-collapse-bar{
    width:0 !important;min-width:0 !important;border:0 !important;
    background:transparent !important;overflow:visible !important;
  }
  .employee-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar button,
  .employee-page .payroll-month-layout.payroll-actions-collapsed > .payslip-right-collapse-bar button{
    position:absolute !important;right:-18px !important;top:50% !important;
    transform:translateY(-50%) !important;
  }
}

/* =========================================================
   NXPeople V32.79 — Bulletins de paie : volet d'actions V13
   Même présentation et fonctionnement que Fiche individuelle.
   ========================================================= */
@media (min-width:751px){
  .payslip-salary-page .payslip-salary-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
    column-gap:0 !important;
    align-items:stretch !important;
  }

  .payslip-salary-page .payslip-salary-list{grid-column:1 !important;}
  .payslip-salary-page .payslip-salary-collapse-bar{grid-column:2 !important;}
  .payslip-salary-page .payslip-salary-card{
    grid-column:3 !important;
    min-width:0 !important;
  }

  /* Barre de réduction placée entre la fiche bulletin et le volet. */
  .payslip-salary-page .payslip-right-collapse-bar{
    grid-column:4 !important;
    grid-row:1 !important;
    width:18px !important;
    min-width:18px !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#f7f8fa !important;
    border-left:1px solid #dfe3e9 !important;
    border-right:1px solid #dfe3e9 !important;
    position:relative !important;
    z-index:5 !important;
  }
  .payslip-salary-page .payslip-right-collapse-bar:before{
    content:"" !important;
    position:absolute !important;
    top:0 !important;
    bottom:0 !important;
    left:7px !important;
    width:3px !important;
    background:#d9dde4 !important;
    border-left:1px solid #cbd0d8 !important;
    border-right:1px solid #cbd0d8 !important;
  }
  .payslip-salary-page .payslip-right-collapse-bar button{
    position:relative !important;
    z-index:2 !important;
    width:18px !important;
    height:44px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:3px !important;
    background:#fff !important;
    color:#4d5a73 !important;
    font-size:22px !important;
    line-height:1 !important;
    box-shadow:0 1px 4px rgba(25,35,55,.20) !important;
    cursor:pointer !important;
  }

  /* Volet V13 : 142 px, avec contenu aligné sur 140 px. */
  .payslip-salary-page .payslip-salary-actions{
    grid-column:5 !important;
    grid-row:1 !important;
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
    height:calc(100vh - 180px) !important;
    min-height:650px !important;
    margin:0 !important;
    padding:10px 1px !important;
    box-sizing:border-box !important;
    border:1px solid #e1e5eb !important;
    border-radius:8px !important;
    background:#fff !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }
  .payslip-salary-page .payslip-salary-actions .right-actions,
  .payslip-salary-page .payslip-salary-actions .right-menu-title.quit-function,
  .payslip-salary-page .payslip-salary-actions .right-tree{
    width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
  .payslip-salary-page .payslip-salary-actions .right-actions{
    padding:0 !important;
    gap:7px !important;
  }
  .payslip-salary-page .payslip-salary-actions .action-btn{
    width:140px !important;
    max-width:140px !important;
    height:35px !important;
    min-height:35px !important;
    box-sizing:border-box !important;
    border-radius:0 !important;
    padding:0 10px !important;
    text-align:left !important;
    font-size:10px !important;
  }
  .payslip-salary-page .payslip-salary-actions .right-menu-title.quit-function{
    padding:0 3px 12px !important;
    margin-bottom:10px !important;
  }
  .payslip-salary-page .payslip-salary-actions .right-tree{
    padding:0 !important;
    margin-top:17px !important;
    text-align:left !important;
  }
  .payslip-salary-page .payslip-salary-actions .right-tree .tree-title{
    width:140px !important;
    margin-left:0 !important;
    padding-left:0 !important;
    box-sizing:border-box !important;
  }
  .payslip-salary-page .payslip-salary-actions .right-tree button{
    width:140px !important;
    box-sizing:border-box !important;
    padding-left:22px !important;
    padding-right:0 !important;
  }

  /* Réduction : aucune colonne vide ne reste à droite. */
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed .payslip-salary-actions{
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    height:0 !important;
    min-height:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed .payslip-right-collapse-bar{
    width:0 !important;
    min-width:0 !important;
    border:0 !important;
    background:transparent !important;
    overflow:visible !important;
  }
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed .payslip-right-collapse-bar button{
    position:absolute !important;
    right:-18px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
  }
}

/* =========================================================
   V32.79 — Bulletins de paie + Mois de paie : volet V13 FINAL
   Dimensions identiques à la Fiche individuelle V13.
   ========================================================= */
@media (min-width:751px){
  .payroll-month-page .payroll-month-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 160px !important;
    grid-template-rows:minmax(650px,1fr) !important;
    column-gap:0 !important;
    row-gap:0 !important;
  }

  .payroll-month-page .payroll-month-actions-panel,
  .payslip-salary-page .payslip-salary-actions{
    grid-column:5 !important;
    grid-row:1 !important;
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    height:calc(100vh - 180px) !important;
    min-height:650px !important;
    margin:0 !important;
    padding:10px 1px !important;
    box-sizing:border-box !important;
    border:1px solid #e1e5eb !important;
    border-radius:7px !important;
    background:#fff !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }

  .payroll-month-page .payroll-month-actions-panel .right-actions,
  .payroll-month-page .payroll-month-actions-panel .right-menu-title.quit-function,
  .payroll-month-page .payroll-month-actions-panel .right-tree,
  .payslip-salary-page .payslip-salary-actions .right-actions,
  .payslip-salary-page .payslip-salary-actions .right-menu-title.quit-function,
  .payslip-salary-page .payslip-salary-actions .right-tree{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }

  /* Tous les boutons du volet : 140 x 25 px, petit arrondi. */
  .payroll-month-page .payroll-month-actions-panel .action-btn,
  .payslip-salary-page .payslip-salary-actions .action-btn,
  .payroll-month-page .payroll-month-actions-panel .right-tree button,
  .payslip-salary-page .payslip-salary-actions .right-tree button,
  .payroll-month-page .payroll-month-actions-panel .right-menu-title.quit-function,
  .payslip-salary-page .payslip-salary-actions .right-menu-title.quit-function{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    height:25px !important;
    min-height:25px !important;
    max-height:25px !important;
    border-radius:5px !important;
    box-sizing:border-box !important;
  }

  .payroll-month-page .payroll-month-actions-panel .action-btn,
  .payslip-salary-page .payslip-salary-actions .action-btn{
    padding:0 8px !important;
    font-size:9px !important;
    line-height:25px !important;
    text-align:left !important;
  }

  .payroll-month-page .payroll-month-actions-panel .right-actions,
  .payslip-salary-page .payslip-salary-actions .right-actions{
    padding:0 !important;
    gap:5px !important;
  }

  .payroll-month-page .payroll-month-actions-panel .right-tree,
  .payslip-salary-page .payslip-salary-actions .right-tree{
    padding:0 !important;
    margin-top:17px !important;
    text-align:left !important;
  }

  .payroll-month-page .payroll-month-actions-panel .right-tree .tree-title,
  .payslip-salary-page .payslip-salary-actions .right-tree .tree-title{
    width:140px !important;
    margin-left:0 !important;
    padding-left:0 !important;
    box-sizing:border-box !important;
  }

  .payroll-month-page .payroll-month-layout > .payroll-right-collapse-bar,
  .payroll-month-page .payroll-month-layout > .payslip-right-collapse-bar{
    grid-column:4 !important;
    grid-row:1 !important;
    width:18px !important;
    min-width:18px !important;
    height:calc(100vh - 180px) !important;
    min-height:650px !important;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    box-sizing:border-box !important;
  }

  /* Réduction du volet : aucune zone blanche supplémentaire. */
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }

  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed .payroll-month-actions-panel,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed .payslip-salary-actions{
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }

  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-right-collapse-bar{
    width:0 !important;
    min-width:0 !important;
    border:0 !important;
    overflow:visible !important;
  }
}

/* V32.79 V5 — volet droit 160px, aucune colonne vide après le volet. */
@media (min-width:751px){
  .payroll-month-page .payroll-month-layout,
  .payslip-salary-page .payslip-salary-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 160px !important;
  }
  .payroll-month-page .payroll-month-actions-panel,
  .payslip-salary-page .payslip-salary-actions{
    width:160px !important; min-width:160px !important; max-width:160px !important;
    margin-right:0 !important;
  }
  .payroll-month-page .payroll-month-actions-panel .right-actions,
  .payroll-month-page .payroll-month-actions-panel .right-tree,
  .payroll-month-page .payroll-month-actions-panel .right-menu-title.quit-function,
  .payslip-salary-page .payslip-salary-actions .right-actions,
  .payslip-salary-page .payslip-salary-actions .right-tree,
  .payslip-salary-page .payslip-salary-actions .right-menu-title.quit-function{
    width:140px !important; min-width:140px !important; max-width:140px !important;
    margin-left:0 !important; margin-right:auto !important;
  }
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
}

/* V32.79 V6 — volet d'actions : alignement final */
@media (min-width:751px){
  .payroll-month-page .payroll-month-layout,
  .payslip-salary-page .payslip-salary-layout{
    width:100% !important;
    grid-template-columns:minmax(220px,auto) 18px minmax(0,1fr) 18px 160px !important;
    column-gap:0 !important;
  }
  .payroll-month-page .payroll-month-actions-panel,
  .payslip-salary-page .payslip-salary-actions{
    grid-column:5 !important;
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding:10px 9px !important;
    box-sizing:border-box !important;
    justify-self:stretch !important;
  }
  .payroll-month-page .payroll-month-actions-panel .right-actions,
  .payroll-month-page .payroll-month-actions-panel .right-tree,
  .payroll-month-page .payroll-month-actions-panel .right-menu-title.quit-function,
  .payslip-salary-page .payslip-salary-actions .right-actions,
  .payslip-salary-page .payslip-salary-actions .right-tree,
  .payslip-salary-page .payslip-salary-actions .right-menu-title.quit-function{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
  .payroll-month-page .payroll-month-actions-panel .right-tree,
  .payslip-salary-page .payslip-salary-actions .right-tree{
    text-align:left !important;
  }
  .payroll-month-page .payroll-month-actions-panel .right-tree .tree-title,
  .payslip-salary-page .payslip-salary-actions .right-tree .tree-title,
  .payroll-month-page .payroll-month-actions-panel .right-tree button,
  .payslip-salary-page .payslip-salary-actions .right-tree button{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed{
    grid-template-columns:minmax(220px,auto) 18px minmax(0,1fr) 0 0 !important;
  }
}

/* V32.79 V7 — Volet Bulletins / Mois de paie : alignement identique à la Fiche V13 */
@media (min-width:751px){
  .employee-page .payroll-month-layout{
    display:grid !important;
    grid-template-columns:300px 18px minmax(0,1fr) 18px 160px !important;
    grid-template-rows:minmax(650px,1fr) !important;
    gap:0 !important;
    width:100% !important;
    margin-right:0 !important;
    min-width:0 !important;
    align-items:stretch !important;
  }

  .employee-page .payroll-month-layout > .payroll-month-actions-panel,
  .employee-page .payroll-month-layout > .payslip-salary-actions{
    grid-column:5 !important;
    grid-row:1 !important;
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
    justify-self:end !important;
    margin:0 !important;
    padding:10px 9px !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }

  /* Tous les boutons restent strictement à 140 x 25 px et sont centrés. */
  .employee-page .payroll-month-actions-panel .right-menu-title.quit-function,
  .employee-page .payroll-month-actions-panel .right-actions,
  .employee-page .payroll-month-actions-panel .right-tree,
  .employee-page .payslip-salary-actions .right-menu-title.quit-function,
  .employee-page .payslip-salary-actions .right-actions,
  .employee-page .payslip-salary-actions .right-tree{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }

  .employee-page .payroll-month-actions-panel .action-btn,
  .employee-page .payslip-salary-actions .action-btn,
  .employee-page .payroll-month-actions-panel .right-tree button,
  .employee-page .payslip-salary-actions .right-tree button{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    height:25px !important;
    min-height:25px !important;
    max-height:25px !important;
    border-radius:5px !important;
    box-sizing:border-box !important;
  }

  .employee-page .payroll-month-actions-panel .right-actions,
  .employee-page .payslip-salary-actions .right-actions{
    gap:5px !important;
    padding:0 !important;
  }

  .employee-page .payroll-month-actions-panel .right-tree,
  .employee-page .payslip-salary-actions .right-tree{
    padding:0 !important;
    margin-top:17px !important;
    text-align:left !important;
  }

  /* Les menus du dessous commencent exactement au bord gauche des boutons. */
  .employee-page .payroll-month-actions-panel .right-tree .tree-title,
  .employee-page .payslip-salary-actions .right-tree .tree-title{
    width:140px !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    box-sizing:border-box !important;
    text-align:left !important;
  }

  .employee-page .payroll-month-actions-panel .right-tree button,
  .employee-page .payslip-salary-actions .right-tree button{
    margin-left:0 !important;
    margin-right:0 !important;
    text-align:left !important;
  }

  /* Barre de réduction : toujours entre le contenu et le volet. */
  .employee-page .payroll-month-layout > .payroll-right-collapse-bar,
  .employee-page .payroll-month-layout > .payslip-right-collapse-bar{
    grid-column:4 !important;
    grid-row:1 !important;
    width:18px !important;
    min-width:18px !important;
    max-width:18px !important;
  }

  /* Volet réduit : la barre reste visible, sans colonne blanche après elle. */
  .employee-page .payroll-month-layout.payroll-actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 0 !important;
  }
  .employee-page .payroll-month-layout.payroll-actions-collapsed > .payroll-month-actions-panel,
  .employee-page .payroll-month-layout.payroll-actions-collapsed > .payslip-salary-actions{
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }
  .employee-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar,
  .employee-page .payroll-month-layout.payroll-actions-collapsed > .payslip-right-collapse-bar{
    width:18px !important;
    min-width:18px !important;
    max-width:18px !important;
    border-left:1px solid #dfe3e9 !important;
    border-right:1px solid #dfe3e9 !important;
    background:#f7f8fa !important;
    overflow:visible !important;
  }
}

/* V32.79 V9 — Bulletins / Mois de paie : suppression du vide du conteneur principal.
   Les écrans occupent toute la largeur disponible : aucune marge/padding à droite ni au-dessus. */
@media (min-width:751px){
  body:has(.payroll-month-page) .content{
    padding:0 !important;
    margin:0 !important;
    width:100% !important;
    max-width:none !important;
  }
  body:has(.payroll-month-page) .payroll-month-page{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
  }
  body:has(.payroll-month-page) .payroll-month-layout,
  body:has(.payslip-salary-page) .payslip-salary-layout{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
  }
}


/* V32.79 V10 — Bulletins / Mois : liste gauche plus compacte et aucun overflow horizontal navigateur. */
@media (min-width:751px){
  body:has(.payroll-month-page),
  html:has(.payroll-month-page){overflow-x:hidden !important;}
  body:has(.payroll-month-page) .main,
  body:has(.payroll-month-page) .content,
  body:has(.payroll-month-page) .payroll-month-page,
  body:has(.payroll-month-page) .payroll-month-layout,
  body:has(.payslip-salary-page) .payslip-salary-page,
  body:has(.payslip-salary-page) .payslip-salary-layout{min-width:0 !important;max-width:100vw !important;overflow-x:hidden !important;}

  .payroll-month-page .payroll-month-layout,
  .payslip-salary-page .payslip-salary-layout{
    grid-template-columns:260px 18px minmax(0,1fr) 18px 160px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  .payroll-month-page .payroll-month-list,
  .payslip-salary-page .payslip-salary-list{
    width:260px !important;
    min-width:260px !important;
    max-width:260px !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }
  .payroll-month-page .payroll-month-table-head,
  .payroll-month-page .payroll-month-row,
  .payslip-salary-page .payslip-salary-table-head,
  .payslip-salary-page .payslip-salary-row{
    min-width:0 !important;
    width:100% !important;
    box-sizing:border-box !important;
  }

  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed{
    grid-template-columns:260px 18px minmax(0,1fr) 18px 0 !important;
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-month-actions-panel,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-salary-actions{
    width:0 !important;min-width:0 !important;max-width:0 !important;
    padding:0 !important;margin:0 !important;border:0 !important;
    overflow:hidden !important;
  }
}

/* V32.79 V11 — alignement strict du contenu avec le menu principal.
   Les écrans Bulletins/Mois de paie commencent à droite du menu fixe,
   sans chevauchement ni passage sous la navigation. */
@media (min-width:751px){
  .modern-sidebar{width:250px !important;min-width:250px !important;}
  .main{margin-left:250px !important;width:calc(100% - 250px) !important;min-width:0 !important;}
  .sidebar.collapsed + .main{margin-left:65px !important;width:calc(100% - 65px) !important;}
  body:has(.payroll-month-page) .main{margin-left:250px !important;width:calc(100% - 250px) !important;}
  body:has(.payroll-month-page) .content{padding-left:0 !important;padding-right:0 !important;}
  body:has(.payroll-month-page) .payroll-month-page{position:relative;left:0 !important;}
  body:has(.payroll-month-page) .payroll-month-layout{margin-left:0 !important;}
  .payroll-month-page .payroll-month-layout,
  .payslip-salary-page .payslip-salary-layout{
    grid-template-columns:260px 18px minmax(0,1fr) 18px 160px !important;
    width:100% !important;max-width:100% !important;min-width:0 !important;
  }
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed{
    grid-template-columns:260px 18px minmax(0,1fr) 0 0 !important;
    width:100% !important;max-width:100% !important;overflow:hidden !important;
  }
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-right-collapse-bar{
    display:none !important;
  }
}

/* V32.79 V12 — correction définitive du volet d'actions réduit.
   La barre de réduction doit rester visible pour permettre la réouverture.
   Aucun espace vide n'est conservé à droite. */
@media (min-width:751px){
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed{
    grid-template-columns:260px 18px minmax(0,1fr) 18px 0 !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }

  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-right-collapse-bar{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    grid-column:4 !important;
    width:18px !important;
    min-width:18px !important;
    max-width:18px !important;
    overflow:visible !important;
    position:relative !important;
    z-index:50 !important;
  }

  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar button,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-right-collapse-bar button{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    width:24px !important;
    height:56px !important;
    min-width:24px !important;
    min-height:56px !important;
    align-items:center !important;
    justify-content:center !important;
    cursor:pointer !important;
    pointer-events:auto !important;
    position:absolute !important;
    left:50% !important;
    top:50% !important;
    transform:translate(-50%,-50%) !important;
    z-index:60 !important;
  }

  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-month-actions-panel,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-salary-actions{
    display:block !important;
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }
}

/* V32.79 V13 — combinaison indépendante des deux volets Bulletins/Mois.
   La réduction de la liste gauche ne doit jamais réouvrir ni réserver la colonne
   du volet d'actions. La réduction du volet d'actions doit rendre tout l'espace
   disponible à la fiche centrale, y compris lorsque la liste gauche est réduite. */
@media (min-width:751px){
  .payroll-month-page .payroll-month-layout,
  .payslip-salary-page .payslip-salary-layout{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
  }

  .payroll-month-page .payroll-month-layout.left-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 18px 160px !important;
  }
  .payslip-salary-page .payslip-salary-layout.left-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 18px 160px !important;
  }

  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed{
    grid-template-columns:260px 18px minmax(0,1fr) 18px 0 !important;
  }
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed{
    grid-template-columns:260px 18px minmax(0,1fr) 18px 0 !important;
  }

  .payroll-month-page .payroll-month-layout.left-collapsed.payroll-actions-collapsed,
  .payslip-salary-page .payslip-salary-layout.left-collapsed.payroll-actions-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 18px 0 !important;
  }

  .payroll-month-page .payroll-month-layout.left-collapsed > .payroll-month-actions-panel,
  .payslip-salary-page .payslip-salary-layout.left-collapsed > .payslip-salary-actions{
    grid-column:5 !important;
  }

  .payroll-month-page .payroll-month-layout.left-collapsed.payroll-actions-collapsed > .payroll-month-actions-panel,
  .payslip-salary-page .payslip-salary-layout.left-collapsed.payroll-actions-collapsed > .payslip-salary-actions{
    grid-column:5 !important;
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
  }

  .payroll-month-page .payroll-month-layout.left-collapsed.payroll-actions-collapsed > .payroll-right-collapse-bar,
  .payslip-salary-page .payslip-salary-layout.left-collapsed.payroll-actions-collapsed > .payslip-right-collapse-bar{
    grid-column:4 !important;
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
  }
}

/* V32.79 V14 — volet d'actions : la barre reste superposée au bord droit
   sans réserver de colonne lorsque le volet est réduit. */
@media (min-width:751px){
  .payroll-month-page .payroll-month-layout,
  .payslip-salary-page .payslip-salary-layout{position:relative !important;}

  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed{
    grid-template-columns:260px 18px minmax(0,1fr) 0 0 !important;
    width:100% !important; max-width:100% !important; min-width:0 !important;
    overflow:hidden !important;
  }
  .payroll-month-page .payroll-month-layout.left-collapsed.payroll-actions-collapsed,
  .payslip-salary-page .payslip-salary-layout.left-collapsed.payroll-actions-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 0 0 !important;
  }
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-month-actions-panel,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-salary-actions{
    width:0 !important; min-width:0 !important; max-width:0 !important;
    padding:0 !important; margin:0 !important; border:0 !important; overflow:hidden !important;
  }
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-right-collapse-bar{
    position:absolute !important; right:0 !important; top:50% !important;
    transform:translateY(-50%) !important;
    width:18px !important; min-width:18px !important; max-width:18px !important;
    height:56px !important; min-height:56px !important;
    display:flex !important; visibility:visible !important; opacity:1 !important;
    z-index:100 !important; pointer-events:auto !important; grid-column:auto !important;
  }
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar button,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-right-collapse-bar button{
    position:absolute !important; left:50% !important; top:50% !important;
    transform:translate(-50%,-50%) !important;
    width:24px !important; height:56px !important; min-width:24px !important; min-height:56px !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
    pointer-events:auto !important; cursor:pointer !important; z-index:101 !important;
  }
}

/* V32.79 V15 — volet actions : en mode réduit, la barre est hors grille,
   collée à l'extrême droite de la zone navigateur. La fiche centrale récupère
   intégralement la largeur libérée par le volet. */
@media (min-width:751px){
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed{
    grid-template-columns:260px 18px minmax(0,1fr) 0 0 !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
    position:relative !important;
  }
  .payroll-month-page .payroll-month-layout.left-collapsed.payroll-actions-collapsed,
  .payslip-salary-page .payslip-salary-layout.left-collapsed.payroll-actions-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 0 0 !important;
  }
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-right-collapse-bar{
    position:absolute !important;
    right:0 !important;
    top:0 !important;
    bottom:0 !important;
    width:18px !important;
    min-width:18px !important;
    max-width:18px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    grid-column:auto !important;
    z-index:100 !important;
    pointer-events:none !important;
    background:transparent !important;
  }
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar button,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-right-collapse-bar button{
    pointer-events:auto !important;
    position:absolute !important;
    right:0 !important;
    left:auto !important;
    top:50% !important;
    transform:translate(0,-50%) !important;
    width:24px !important;
    height:56px !important;
    min-width:24px !important;
    min-height:56px !important;
    margin:0 !important;
  }
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-month-actions-panel,
  .payslip-salary-page .payslip-salary-layout.payroll-actions-collapsed > .payslip-salary-actions{
    display:none !important;
  }
}


/* V32.79 V16 — hauteur compacte et paramétrable des enregistrements des listes gauche. */
:root{--nx-list-row-height:24px;}
@media (min-width:751px){
  .employee-list .employee-row,
  .company-list .company-row,
  .payroll-month-list .payroll-month-row,
  .payslip-salary-list .payslip-salary-row,
  .rubric-list .rubric-row,
  .users-page .rubric-list .user-row,
  .profile-list .profile-row,
  .profile-variable-list .profile-variable-row,
  .variable-list .variable-row,
  .variable-profile-list .variable-profile-row,
  .employee-contract-list .employee-contract-row,
  .employee-history-list .employee-history-row{
    min-height:var(--nx-list-row-height) !important;
    height:var(--nx-list-row-height) !important;
    padding-top:4px !important;
    padding-bottom:4px !important;
    box-sizing:border-box !important;
  }
}


/* V32.79 V18 — menu principal : pas d'animation de réouverture au changement de ligne. */
.modern-sidebar .group-items,
.modern-sidebar .tree-children{
  transition:none !important;
}

/* V32.79 V19 — hauteur du menu principal, pilotée par Valeurs paramètres > Superviseur. */
.modern-sidebar .nav-item{
  min-height:var(--nx-menu-height,32px) !important;
  height:var(--nx-menu-height,32px) !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  box-sizing:border-box !important;
}
.modern-sidebar .tree-toggle{
  min-height:var(--nx-menu-height,32px) !important;
  height:var(--nx-menu-height,32px) !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}
.modern-sidebar .tree-item{
  min-height:var(--nx-menu-height,32px) !important;
  height:var(--nx-menu-height,32px) !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  box-sizing:border-box !important;
}


/* =========================================================
   NXPeople V32.79 V21 — Sociétés : volet d'actions identique
   à la Fiche individuelle (142 px / boutons 140 px)
   ========================================================= */
@media (min-width:751px){
  .company-page .company-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
    column-gap:0 !important;
    row-gap:0 !important;
  }
  .company-page .company-list{grid-column:1 !important;grid-row:1 !important;}
  .company-page .company-collapse-bar{grid-column:2 !important;grid-row:1 !important;}
  .company-page .company-card{grid-column:3 !important;grid-row:1 !important;min-width:0 !important;}

  .company-page .company-right-collapse-bar{
    grid-column:4 !important;
    grid-row:1 !important;
    width:18px !important;
    min-width:18px !important;
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#f7f8fa !important;
    border-left:1px solid #dfe3e9 !important;
    border-right:1px solid #dfe3e9 !important;
    cursor:col-resize !important;
    box-sizing:border-box !important;
    user-select:none !important;
    z-index:5 !important;
  }
  .company-page .company-right-collapse-bar:before{
    content:"" !important;
    position:absolute !important;
    top:0 !important;
    bottom:0 !important;
    left:7px !important;
    width:3px !important;
    background:#d9dde4 !important;
    border-left:1px solid #cbd0d8 !important;
    border-right:1px solid #cbd0d8 !important;
  }
  .company-page .company-right-collapse-bar button{
    position:relative !important;
    z-index:2 !important;
    width:18px !important;
    height:44px !important;
    margin:0 !important;
    padding:0 0 2px !important;
    border:0 !important;
    border-radius:3px !important;
    background:#fff !important;
    color:#4d5a73 !important;
    box-shadow:0 1px 4px rgba(25,35,55,.20) !important;
    font-size:22px !important;
    line-height:1 !important;
    cursor:pointer !important;
  }
  .company-page .company-right-collapse-bar button:hover{background:#eef1f6 !important;color:#5142d3 !important;}

  .company-page .company-actions-panel{
    grid-column:5 !important;
    grid-row:1 !important;
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
    margin:0 !important;
    padding:10px 1px !important;
    box-sizing:border-box !important;
    justify-self:stretch !important;
    align-self:stretch !important;
    border:1px solid #e1e5eb !important;
    border-radius:8px !important;
    background:#fff !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }
  .company-page .company-actions-panel .right-actions,
  .company-page .company-actions-panel .right-menu-title.quit-function,
  .company-page .company-actions-panel .right-tree{
    width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
  .company-page .company-actions-panel .action-btn{
    width:140px !important;
    max-width:140px !important;
    min-height:25px !important;
    box-sizing:border-box !important;
    border-radius:5px !important;
  }
  .company-page .company-actions-panel .right-menu-title.quit-function{
    min-height:25px !important;
  }
  .company-page .company-actions-panel .right-tree{
    padding-left:0 !important;
    padding-right:0 !important;
    margin-top:17px !important;
    text-align:left !important;
  }
  .company-page .company-actions-panel .right-tree .tree-title{
    width:140px !important;
    margin-left:0 !important;
    padding-left:0 !important;
    box-sizing:border-box !important;
  }
  .company-page .company-actions-panel .right-tree button{
    width:140px !important;
    box-sizing:border-box !important;
    padding-left:22px !important;
    padding-right:0 !important;
  }

  /* Volet droit replié : aucune largeur vide ne reste. */
  .company-page .company-layout.company-actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
  .company-page .company-layout.company-actions-collapsed .company-right-collapse-bar{
    width:0 !important;
    min-width:0 !important;
    border:0 !important;
    background:transparent !important;
    overflow:visible !important;
  }
  .company-page .company-layout.company-actions-collapsed .company-right-collapse-bar button{
    position:absolute !important;
    right:-18px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
  }
  .company-page .company-layout.company-actions-collapsed .company-actions-panel{
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
}
@media (min-width:751px) and (max-width:1250px){
  .company-page .company-layout{grid-template-columns:260px 18px minmax(0,1fr) 18px 150px !important;}
  .company-page .company-layout.company-actions-collapsed{grid-template-columns:260px 18px minmax(0,1fr) 0 0 !important;}
}
@media (max-width:750px){
  .company-page .company-right-collapse-bar{display:none !important;}
}

/* V32.79 V22 — Sociétés : boutons du volet à 25 px et liste gauche sans retour à la ligne. */
@media (min-width:751px){
  .company-page .company-actions-panel .action-btn,
  .company-page .company-actions-panel .right-menu-title.quit-function,
  .company-page .company-actions-panel .right-tree button{
    height:25px !important;
    min-height:25px !important;
    max-height:25px !important;
    line-height:23px !important;
    white-space:nowrap !important;
  }
  .company-page .company-list .company-row,
  .company-page .company-list .company-row *{
    white-space:nowrap !important;
  }
  .company-page .company-list .company-row{
    overflow:hidden !important;
  }
  .company-page .company-list .company-row > *{
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
}

/* V32.79 V23 — Sociétés : onglet Informations financières / données bancaires. */
.company-financial-tab{display:none;}
.company-tabs .tab{cursor:pointer;}
.company-tabs .tab.active{font-weight:600;}
.company-bank-section{padding:0 0 18px;}
.company-bank-table-wrap{width:100%;overflow:auto;border:1px solid #e8ebf2;border-radius:8px;background:#fff;}
.company-bank-table{width:100%;min-width:760px;border-collapse:collapse;table-layout:fixed;font-size:11px;color:#45526d;}
.company-bank-table th{height:32px;padding:6px 8px;text-align:left;background:#f5f6fa;border-bottom:1px solid #e5e8ef;font-weight:600;white-space:nowrap;}
.company-bank-table td{height:32px;padding:5px 8px;border-bottom:1px solid #f0f2f6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.company-bank-table tbody tr:last-child td{border-bottom:0;}
.company-bank-table th:nth-child(1),.company-bank-table td:nth-child(1){width:80px;}
.company-bank-table th:nth-child(2),.company-bank-table td:nth-child(2){width:170px;}
.company-bank-table th:nth-child(3),.company-bank-table td:nth-child(3){width:190px;}
.company-bank-table th:nth-child(4),.company-bank-table td:nth-child(4){width:80px;}
.company-bank-table th:nth-child(5),.company-bank-table td:nth-child(5){width:80px;}
.company-bank-table th:nth-child(6),.company-bank-table td:nth-child(6){width:100px;}
.company-bank-table th:nth-child(7),.company-bank-table td:nth-child(7){width:80px;}
.company-bank-empty{padding:18px 12px;text-align:center;color:#8791a5;font-size:11px;}


/* V32.79 V24 — Sociétés : liste déroulante des banques tunisiennes. */
.company-bank-select{
  width:100%;
  min-width:150px;
  height:26px;
  padding:2px 24px 2px 7px;
  border:1px solid #dfe4ec;
  border-radius:5px;
  background:#fff;
  color:#45526d;
  font:inherit;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-sizing:border-box;
}
.company-bank-select:focus{outline:none;border-color:#aeb8c9;box-shadow:0 0 0 2px rgba(80,100,130,.08);}

/* V32.79 V25 — Sociétés : édition des données bancaires + actions latérales */
.company-side-edit-actions{
  display:none;
  width:140px !important;
  max-width:140px !important;
  flex-direction:column !important;
  gap:7px !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}
.company-actions-panel.crud-editing .company-side-edit-actions{display:flex;}
.company-actions-panel .company-side-edit-actions .action-btn{
  width:140px !important;
  max-width:140px !important;
  height:25px !important;
  min-height:25px !important;
  max-height:25px !important;
  border-radius:5px !important;
  box-sizing:border-box !important;
}
.company-actions-panel .company-side-edit-actions .save-side{background:#5142d3 !important;color:#fff !important;}
.company-actions-panel .company-side-edit-actions .cancel-side{background:#fff !important;color:#45526d !important;border:1px solid #dfe3e9 !important;}
.company-bank-table .company-bank-field{
  width:100% !important;
  height:24px !important;
  min-height:24px !important;
  padding:2px 5px !important;
  margin:0 !important;
  box-sizing:border-box !important;
  border:1px solid transparent !important;
  border-radius:3px !important;
  background:transparent !important;
  color:#45526d !important;
  font-size:11px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.company-bank-table .company-bank-field:disabled{opacity:1 !important;color:#45526d !important;cursor:default !important;}
.company-card.crud-editing .company-bank-field:not([data-company-bank-field="code"]){background:#fff !important;border-color:#dfe3e9 !important;}

/* V27 — tableaux financiers Sociétés : édition, ajout/suppression et Sites / Regroupement */
.company-section-heading{display:flex !important;align-items:center;justify-content:space-between;gap:10px;}
.company-table-add{display:none;align-items:center;justify-content:center;height:25px;min-height:25px;padding:0 10px;border:1px solid #dfe3e9;border-radius:5px;background:#fff;color:#45526d;font-size:11px;font-weight:600;cursor:pointer;}
.company-table-add:hover{background:#f5f6fa;}
.company-table-delete{display:none;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:1px solid #dfe3e9;border-radius:4px;background:#fff;color:#45526d;font-size:16px;line-height:1;cursor:pointer;}
.company-table-delete:hover{background:#f5f6fa;color:#c0392b;}
.company-card.crud-editing .company-table-add,.company-card.crud-editing .company-table-delete{display:inline-flex;}
.company-sites-heading{margin-top:18px;}
.company-sites-table{width:100%;min-width:520px;border-collapse:collapse;table-layout:fixed;font-size:11px;color:#45526d;}
.company-sites-table th{height:32px;padding:6px 8px;text-align:left;background:#f5f6fa;border-bottom:1px solid #e5e8ef;font-weight:600;white-space:nowrap;}
.company-sites-table td{height:32px;padding:5px 8px;border-bottom:1px solid #f0f2f6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.company-sites-table th:nth-child(1),.company-sites-table td:nth-child(1){width:100px;}
.company-sites-table th:nth-child(2),.company-sites-table td:nth-child(2){width:auto;}
.company-sites-table th:nth-child(3),.company-sites-table td:nth-child(3){width:130px;}
.company-sites-table th:nth-child(4),.company-sites-table td:nth-child(4){width:60px;}
.company-bank-table th:nth-child(8),.company-bank-table td:nth-child(8){width:58px;}
.company-bank-table td.company-table-action,.company-sites-table td.company-table-action{text-align:center;overflow:visible;}

/* V29 - Rubriques de paie : même volet d'actions que la Fiche individuelle */
@media (min-width:751px){
  .rubric-page .rubric-layout{
    grid-template-columns:330px 18px minmax(0,1fr) 18px 160px !important;
  }
  .rubric-page .rubric-actions-panel{
    grid-column:5 !important;
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
    padding:10px 5px 10px !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
  }
  .rubric-page .rubric-right-collapse-bar{
    grid-column:4 !important;
    grid-row:1 !important;
    width:18px !important;
    min-width:18px !important;
    height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    background:#f7f8fa !important;
    border-left:1px solid #dfe3e9 !important;
    border-right:1px solid #dfe3e9 !important;
    cursor:col-resize !important;
    user-select:none !important;
  }
  .rubric-page .rubric-right-collapse-bar:before{
    content:"";position:absolute;top:0;bottom:0;left:7px;width:3px;
    background:#d9dde4;border-left:1px solid #cbd0d8;border-right:1px solid #cbd0d8;
  }
  .rubric-page .rubric-right-collapse-bar button{
    position:relative;z-index:2;width:18px;height:44px;border:0;border-radius:3px;
    background:#fff;color:#4d5a73;box-shadow:0 1px 4px rgba(25,35,55,.20);
    font-size:24px;line-height:1;padding:0 0 3px;cursor:pointer;
  }
  .rubric-page .right-actions{
    width:140px !important;display:flex !important;flex-direction:column !important;gap:5px !important;
  }
  .rubric-page .right-actions .action-btn{
    width:140px !important;max-width:140px !important;height:25px !important;min-height:25px !important;max-height:25px !important;
    border-radius:5px !important;padding:0 8px !important;font-size:9px !important;line-height:25px !important;
    gap:7px !important;box-sizing:border-box !important;
  }
  .rubric-page .right-actions .action-btn span{width:15px !important;min-width:15px !important;font-size:13px !important;line-height:1 !important;}
  .rubric-page .right-actions .action-btn.new{background:#20bce8 !important;color:#fff !important;}
  .rubric-page .right-actions .action-btn.edit{background:#ddd9d5 !important;color:#25314a !important;}
  .rubric-page .right-actions .action-btn.delete{background:#f40086 !important;color:#fff !important;}
  .rubric-page .right-actions .action-btn.copy{background:#ddd9d5 !important;color:#25314a !important;}
  .rubric-page .rubric-side-edit-actions{
    width:140px !important;max-width:140px !important;display:none;flex-direction:column;gap:5px;margin-top:0;
  }
  .rubric-page .rubric-actions-panel.crud-editing .rubric-side-edit-actions{display:flex;}
  .rubric-page .rubric-side-edit-actions .action-btn{width:140px !important;max-width:140px !important;height:25px !important;min-height:25px !important;border-radius:5px !important;box-sizing:border-box !important;}
  .rubric-page .rubric-side-edit-actions .save-side{background:#35a96b !important;color:#fff !important;}
  .rubric-page .rubric-side-edit-actions .cancel-side{background:#f2f3f5 !important;color:#536079 !important;border:1px solid #e3e6eb !important;}
  .rubric-page .rubric-actions-panel.crud-editing .right-actions > .crud-new,
  .rubric-page .rubric-actions-panel.crud-editing .right-actions > .crud-edit,
  .rubric-page .rubric-actions-panel.crud-editing .right-actions > .crud-delete,
  .rubric-page .rubric-actions-panel.crud-editing .right-actions > .copy{opacity:.38;pointer-events:none;}
  .rubric-page .right-menu-title.quit-function{width:150px !important;margin:0 0 8px !important;}
  .rubric-page .rubric-layout.rubric-actions-collapsed{grid-template-columns:330px 18px minmax(0,1fr) 18px 0 !important;}
  .rubric-page .rubric-layout.rubric-actions-collapsed .rubric-actions-panel{width:0 !important;min-width:0 !important;max-width:0 !important;padding:0 !important;border:0 !important;overflow:hidden !important;}
}
@media (max-width:1250px) and (min-width:751px){
  .rubric-page .rubric-layout{grid-template-columns:260px 18px minmax(0,1fr) 18px 160px !important;}
}
@media (max-width:750px){
  .rubric-page .rubric-right-collapse-bar{display:none !important;}
}

/* V30 — Rubriques de paie : volet gauche identique à Sociétés + aucun espace résiduel */
@media (min-width:751px){
  .rubric-page .rubric-layout{
    position:relative !important;
    grid-template-columns:260px 18px minmax(0,1fr) 18px 160px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    gap:0 !important;
  }
  .rubric-page .rubric-list{
    grid-column:1 !important;
    width:260px !important;
    min-width:260px !important;
    max-width:260px !important;
    min-height:0 !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }
  .rubric-page .rubric-collapse-bar{
    grid-column:2 !important;
    width:18px !important;
    min-width:18px !important;
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#f7f8fa !important;
    border-left:1px solid #dfe3e9 !important;
    border-right:1px solid #dfe3e9 !important;
    cursor:col-resize !important;
    user-select:none !important;
  }
  .rubric-page .rubric-layout.left-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 18px 160px !important;
  }
  .rubric-page .rubric-layout.left-collapsed .rubric-list{
    width:0 !important; min-width:0 !important; max-width:0 !important;
    opacity:0 !important; overflow:hidden !important; padding:0 !important;
    border:0 !important; pointer-events:none !important;
  }
  .rubric-page .rubric-layout.left-collapsed .rubric-collapse-bar{cursor:default !important;}

  /* Volet droit replié : la zone centrale récupère toute la largeur. */
  .rubric-page .rubric-layout.rubric-actions-collapsed{
    grid-template-columns:260px 18px minmax(0,1fr) 0 0 !important;
  }
  .rubric-page .rubric-layout.left-collapsed.rubric-actions-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 0 0 !important;
  }
  .rubric-page .rubric-layout.rubric-actions-collapsed .rubric-right-collapse-bar{
    width:0 !important;
    min-width:0 !important;
    border:0 !important;
    background:transparent !important;
    overflow:visible !important;
  }
  .rubric-page .rubric-layout.rubric-actions-collapsed .rubric-right-collapse-bar button{
    position:absolute !important;
    right:-18px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    z-index:20 !important;
  }
  .rubric-page .rubric-layout.rubric-actions-collapsed .rubric-actions-panel{
    width:0 !important; min-width:0 !important; max-width:0 !important;
    padding:0 !important; margin:0 !important; border:0 !important;
    overflow:hidden !important; opacity:0 !important; pointer-events:none !important;
  }
}
@media (min-width:751px) and (max-width:1250px){
  .rubric-page .rubric-layout{grid-template-columns:260px 18px minmax(0,1fr) 18px 160px !important;}
  .rubric-page .rubric-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 18px 160px !important;}
  .rubric-page .rubric-layout.rubric-actions-collapsed{grid-template-columns:260px 18px minmax(0,1fr) 0 0 !important;}
  .rubric-page .rubric-layout.left-collapsed.rubric-actions-collapsed{grid-template-columns:0 18px minmax(0,1fr) 0 0 !important;}
}

/* V32 — Rubriques : liste verticale pleine hauteur + éditeur de formules */
@media (min-width:751px){
  .rubric-page .rubric-layout{
    height:calc(100vh - 150px) !important;
    min-height:calc(100vh - 150px) !important;
    grid-template-rows:minmax(0,1fr) !important;
  }
  .rubric-page .rubric-list,
  .rubric-page .rubric-actions-panel{
    height:100% !important;
    min-height:0 !important;
  }
  .rubric-page .rubric-rows{height:auto !important;min-height:0 !important;flex:1 1 auto;}
  .rubric-page .rubric-list{display:flex !important;flex-direction:column !important;}
  .rubric-page .rubric-card{height:100% !important;min-height:0 !important;}
}
.formula-input-wrap{display:flex;align-items:center;width:100%;position:relative;}
.formula-input-wrap input{flex:1 1 auto;min-width:0 !important;padding-right:34px !important;}
.formula-builder-btn{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:27px;height:27px;min-width:27px;padding:0;border:1px solid #d9dee8;border-radius:5px;background:#f7f8fa;color:#58657d;display:grid;place-items:center;cursor:pointer;box-sizing:border-box;}
.formula-builder-btn:hover{background:#eef1f6;color:#3f506b;border-color:#c9d0dc;}
.formula-builder-btn:disabled{opacity:.45;cursor:default;}
.formula-builder-btn span{font-size:14px;line-height:1;font-weight:700;letter-spacing:-2px;transform:scaleX(.9);}
.formula-editor-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;}
.formula-editor-modal[hidden]{display:none !important;}
.formula-editor-backdrop{position:absolute;inset:0;background:rgba(28,37,55,.48);backdrop-filter:blur(2px);}
.formula-editor-dialog{position:relative;width:min(1040px,calc(100vw - 48px));height:min(700px,calc(100vh - 48px));background:#fff;border:1px solid #dfe4ec;border-radius:12px;box-shadow:0 18px 55px rgba(22,31,49,.25);display:flex;flex-direction:column;overflow:hidden;}
.formula-editor-head{height:76px;min-height:76px;padding:12px 18px;border-bottom:1px solid #e9edf3;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;background:#fbfcfe;}
.formula-editor-kicker{font-size:8px;font-weight:700;letter-spacing:.12em;color:#8994a9;margin-bottom:3px;}
.formula-editor-head h3{margin:0;color:#27344e;font-size:18px;line-height:1.2;}
.formula-editor-head p{margin:3px 0 0;color:#7b879d;font-size:10px;}
.formula-editor-close{width:32px;height:32px;border:0;border-radius:6px;background:#f0f2f6;color:#5c6880;font-size:22px;line-height:1;cursor:pointer;}
.formula-editor-close:hover{background:#e7eaf0;}
.formula-editor-body{display:grid;grid-template-columns:minmax(0,1fr) 250px;min-height:0;flex:1;overflow:hidden;}
.formula-editor-main{padding:16px;min-width:0;display:flex;flex-direction:column;overflow:hidden;}
.formula-editor-label{font-size:10px;font-weight:700;color:#4d5b73;display:flex;flex-direction:column;gap:6px;}
.formula-editor-label textarea{width:100%;height:86px;min-height:86px;resize:vertical;box-sizing:border-box;border:1px solid #cfd6e2;border-radius:7px;padding:10px 12px;background:#fff;color:#25324b;font:12px/1.45 Consolas,Monaco,monospace;outline:none;}
.formula-editor-label textarea:focus{border-color:#8b98ab;box-shadow:0 0 0 2px rgba(92,108,135,.10);}
.formula-editor-toolbar{display:flex;gap:5px;margin:12px 0 8px;flex-wrap:wrap;}
.formula-tool{height:28px;padding:0 11px;border:1px solid #dce1e9;border-radius:5px;background:#f7f8fa;color:#526078;font-size:10px;font-weight:600;cursor:pointer;}
.formula-tool:hover{background:#eef1f5;}
.formula-tool.active{background:#3f5368;color:#fff;border-color:#3f5368;}
.formula-editor-search{height:32px;min-height:32px;border:1px solid #dfe4ec;border-radius:6px;display:flex;align-items:center;gap:7px;padding:0 9px;background:#fff;margin-bottom:8px;}
.formula-editor-search span{color:#8792a7;font-size:15px;}
.formula-editor-search input{border:0;outline:0;width:100%;font-size:10px;color:#36445e;background:transparent;}
.formula-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;overflow:auto;padding:2px 2px 8px;min-height:0;}
.formula-palette-item{min-height:38px;padding:6px 8px;text-align:left;border:1px solid #e1e5ec;border-radius:6px;background:#fff;color:#33425c;cursor:pointer;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;}
.formula-palette-item:hover{background:#f6f8fa;border-color:#cbd3df;}
.formula-palette-item code{font:600 10px Consolas,Monaco,monospace;color:#25344e;}
.formula-palette-item small{font-size:8px;color:#8994a9;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.formula-editor-side{border-left:1px solid #e9edf3;background:#f8f9fb;padding:16px;overflow:auto;}
.formula-side-title{font-size:9px;font-weight:700;color:#6e7a90;text-transform:uppercase;letter-spacing:.08em;margin:0 0 9px;}
.formula-example{display:flex;flex-direction:column;gap:6px;margin-bottom:22px;}
.formula-example b{font-size:9px;color:#4d5b73;margin-bottom:2px;}
.formula-example span{font:10px Consolas,Monaco,monospace;background:#fff;border:1px solid #e1e5ec;border-radius:5px;padding:6px 7px;color:#33425b;}
.formula-function-info{font-size:10px;line-height:1.5;color:#69768d;}
.formula-editor-help{margin-top:auto;padding:8px 10px;border:1px solid #e3e7ee;border-radius:6px;background:#f8f9fb;color:#78849a;font-size:9px;line-height:1.45;}
.formula-editor-help code{font:600 9px Consolas,Monaco,monospace;color:#46546d;}
.formula-editor-foot{height:54px;min-height:54px;padding:0 16px;border-top:1px solid #e9edf3;display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;background:#fff;}
.formula-editor-foot>span{font-size:9px;color:#8490a4;}
.formula-editor-foot>div{display:flex;gap:7px;}
.formula-editor-foot button{height:25px;min-height:25px;border-radius:5px;padding:0 12px;font-size:9px;}
@media (max-width:750px){
  .formula-editor-dialog{width:calc(100vw - 24px);height:calc(100vh - 24px);}
  .formula-editor-body{grid-template-columns:1fr;}
  .formula-editor-side{display:none;}
  .formula-palette{grid-template-columns:1fr;}
}

/* V35 — Rubriques de paie : conserver l'entête de l'application et réduire les espaces à 2px */
@media (min-width:751px){
  body:has(.rubric-page) .content{
    padding:2px !important;
    margin:0 !important;
    width:100% !important;
    max-width:none !important;
  }
  body:has(.rubric-page) .rubric-page{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
  }
  body:has(.rubric-page) .rubric-page .rubric-layout{
    height:calc(100vh - 72px) !important;
    min-height:0 !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
  }
  body:has(.rubric-page) .rubric-page .rubric-list,
  body:has(.rubric-page) .rubric-page .rubric-card,
  body:has(.rubric-page) .rubric-page .rubric-actions-panel{
    height:100% !important;
    min-height:0 !important;
  }
}

/* V36 — Rubriques : rang compact, intitulé élargi et tableau des profils */
@media (min-width:751px){
  .rubric-page .rubric-ident-grid{
    grid-template-columns:1fr .225fr 1.475fr !important;
  }
}
.rubric-page .rubric-condition-field .formula-input-wrap{
  width:100%;
}
.rubric-page .rubric-condition-field .formula-builder-btn{
  flex:0 0 34px;
  width:34px !important;
  min-width:34px !important;
  height:32px !important;
  min-height:32px !important;
}
.rubric-profiles-box{
  width:100%;
  border:1px solid #e1e5ec;
  border-radius:7px;
  overflow:hidden;
  background:#fff;
}
.rubric-profiles-head,
.rubric-profile-row{
  display:grid;
  grid-template-columns:120px minmax(0,1fr) 90px;
  align-items:center;
}
.rubric-profiles-head{
  min-height:32px;
  padding:0 12px;
  background:#f5f6fa;
  color:#7f8aa0;
  font-size:10px;
  font-weight:600;
  border-bottom:1px solid #e5e8ef;
}
.rubric-profile-row{
  min-height:38px;
  padding:0 12px;
  color:#45526d;
  font-size:11px;
  border-bottom:1px solid #f0f2f6;
}
.rubric-profile-row:last-child{border-bottom:0;}
.rubric-profile-row strong{color:#27334e;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rubric-profile-active{
  margin:0 !important;
  justify-content:center !important;
  height:32px !important;
}
.rubric-profile-active input{width:15px !important;height:15px !important;min-width:15px !important;}
.rubric-profile-help{display:block;margin-top:8px;color:#8490a4;font-size:9px;}

/* V37 — Rubriques : affichage du tableau des profils dans l’onglet Profils */
.rubric-profiles-empty{padding:18px 12px;color:#8a95aa;font-size:11px;text-align:center;}
.rubric-profiles-hint{margin-top:8px;font-size:9px;color:#8994ab;}
.rubric-profiles-box input[type="checkbox"]{width:15px;height:15px;margin:0;accent-color:#4c42d8;cursor:pointer;}
.rubric-form:not(.crud-editing) .rubric-profiles-box input[type="checkbox"]{cursor:default;}

/* V38 — Rubriques : redimensionnement réel de la liste gauche + barre d'actions repliée à droite de l'écran */
@media (min-width:751px){
  body:has(.rubric-page),
  html:has(.rubric-page){overflow-x:hidden !important;}

  body:has(.rubric-page) .rubric-page .rubric-layout{
    --rubric-list-width:330px;
    grid-template-columns:var(--rubric-list-width) 18px minmax(0,1fr) 18px 160px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }

  body:has(.rubric-page) .rubric-page .rubric-list{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    grid-column:1 !important;
    overflow:hidden !important;
  }

  body:has(.rubric-page) .rubric-page .rubric-collapse-bar{
    grid-column:2 !important;
    width:18px !important;
    min-width:18px !important;
  }

  body:has(.rubric-page) .rubric-page .rubric-card{grid-column:3 !important;min-width:0 !important;}
  body:has(.rubric-page) .rubric-page .rubric-right-collapse-bar{grid-column:4 !important;}
  body:has(.rubric-page) .rubric-page .rubric-actions-panel{grid-column:5 !important;}

  /* Quand la liste est redimensionnée, son contenu suit exactement la largeur du rail. */
  body:has(.rubric-page) .rubric-page .rubric-table-head,
  body:has(.rubric-page) .rubric-page .rubric-row{
    min-width:0 !important;
  }

  /* Volet droit replié : la poignée reste toujours accessible à l'extrême droite,
     sans créer de débordement horizontal ni nécessiter de défilement. */
  body:has(.rubric-page) .rubric-page .rubric-layout.rubric-actions-collapsed{
    grid-template-columns:var(--rubric-list-width,330px) 18px minmax(0,1fr) 0 0 !important;
    overflow:visible !important;
  }
  body:has(.rubric-page) .rubric-page .rubric-layout.left-collapsed.rubric-actions-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 0 0 !important;
  }
  body:has(.rubric-page) .rubric-page .rubric-layout.rubric-actions-collapsed .rubric-right-collapse-bar{
    position:fixed !important;
    right:0 !important;
    top:68px !important;
    bottom:0 !important;
    width:18px !important;
    min-width:18px !important;
    height:auto !important;
    z-index:1000 !important;
    display:flex !important;
    overflow:visible !important;
    background:#f7f8fa !important;
    border-left:1px solid #dfe3e9 !important;
    border-right:1px solid #dfe3e9 !important;
  }
  body:has(.rubric-page) .rubric-page .rubric-layout.rubric-actions-collapsed .rubric-right-collapse-bar:before{
    top:0 !important;
    bottom:0 !important;
  }
  body:has(.rubric-page) .rubric-page .rubric-layout.rubric-actions-collapsed .rubric-right-collapse-bar button{
    position:absolute !important;
    right:0 !important;
    left:0 !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    margin:0 !important;
    z-index:1001 !important;
  }
}
/* V32.79 V48 — Simulation de calcul pas à pas du bulletin. */
.payslip-step-dialog{width:min(1500px,96vw)!important;max-width:1500px!important;height:min(88vh,900px);display:flex;flex-direction:column}
.payslip-step-dialog .payslip-step-table-wrap{flex:1;min-height:220px;overflow:auto;border:1px solid #e3e6eb;border-radius:8px;background:#fff}
.payslip-step-table{width:100%;border-collapse:collapse;font-size:12px;min-width:1080px}
.payslip-step-table th{position:sticky;top:0;z-index:2;background:#f5f6f8;color:#4b5567;font-weight:700;text-align:left;padding:8px;border-bottom:1px solid #dfe3e8}
.payslip-step-table td{padding:7px 8px;border-bottom:1px solid #edf0f3;vertical-align:top;color:#303848}
.payslip-step-table tr.step-ok td:first-child{border-left:3px solid #35a96b}.payslip-step-table tr.step-zero td:first-child{border-left:3px solid #d6a33b}.payslip-step-table tr.step-no td:first-child{border-left:3px solid #c7ccd4}
.payslip-step-table .step-code{font-weight:700;white-space:nowrap}.payslip-step-table .step-condition{max-width:260px;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.payslip-step-table .step-values{max-width:280px;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.payslip-step-table .step-diagnostic{min-width:230px}.step-toolbar{display:flex;align-items:center;gap:12px;margin:10px 0}.step-toolbar span{font-size:12px;color:#667085}.step-legend{display:flex;gap:18px;font-size:11px;color:#667085;padding-top:8px}.step-legend span:first-child{color:#35a96b}.step-legend span:nth-child(2){color:#b07b00}.step-legend span:nth-child(3){color:#667085}
/* V32.79 V55 — Affichage des valeurs numériques du bulletin selon l'arrondi de calcul. */
.payslip-salary-page .payslip-table-wrap table td.num-cell,
.payslip-salary-page .payslip-table-wrap table th.num-cell,
.payslip-salary-page .payslip-step-table td.step-number,
.payslip-salary-page .payslip-step-table th.step-number{
  text-align:right !important;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.payslip-step-table td.step-number{text-align:right !important;}


/* =========================================================
   NXPeople V32.79 V57 — Sites / Regroupements
   Même ergonomie que Sociétés : liste gauche, barre de réduction,
   fiche centrale et volet d'actions 142 px.
   ========================================================= */
.site-page{width:100%;min-width:0}
.site-layout{display:grid;grid-template-columns:300px 18px minmax(0,1fr) 18px 150px;grid-template-rows:minmax(650px,1fr);gap:0;align-items:stretch;width:100%;min-width:0;position:relative}
.site-list{grid-column:1;grid-row:1;min-width:0;padding:0;overflow:hidden;height:calc(100vh - 180px);min-height:650px}
.site-table-head,.site-row{display:grid;grid-template-columns:75px minmax(130px,1fr) 95px}
.site-table-head{padding:8px 12px;background:#fafbfe;color:#8a95aa;font-size:9px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5}
.site-rows{height:calc(100% - 123px);overflow:auto}
.site-row{align-items:center;text-decoration:none;color:#45526d;padding:10px 12px;border-bottom:1px solid #f0f2f6;font-size:10px;min-height:42px;white-space:nowrap}
.site-row strong{color:#27334e;font-size:10px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-row:hover{background:#f7f6ff}.site-row.selected{background:#eeeaff;border-left:3px solid #6654e8;padding-left:9px}.site-row.selected strong{color:#5142d3}
.site-collapse-bar{grid-column:2;grid-row:1;width:18px;min-width:18px;position:relative;display:flex;justify-content:center;align-items:center;background:#f7f8fa;border-left:1px solid #dfe3e9;border-right:1px solid #dfe3e9;cursor:col-resize;user-select:none}
.site-collapse-bar:before{content:"";position:absolute;top:0;bottom:0;left:7px;width:3px;background:#d9dde4;border-left:1px solid #cbd0d8;border-right:1px solid #cbd0d8}
.site-collapse-bar button,.site-right-collapse-bar button{position:relative;z-index:2;width:18px;height:44px;border:0;border-radius:3px;background:#fff;color:#4d5a73;box-shadow:0 1px 4px rgba(25,35,55,.20);font-size:24px;line-height:1;padding:0 0 3px;cursor:pointer}
.site-collapse-bar button:hover,.site-right-collapse-bar button:hover{background:#eef1f6;color:#5142d3}
.site-card{grid-column:3;grid-row:1;min-width:0;overflow:auto;background:#fff}
.site-top{padding:20px 22px;display:flex;align-items:center;gap:17px;border-bottom:1px solid #e9edf4;min-height:150px}
.site-symbol{width:78px;height:78px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#eeeaff,#dbe7ff);color:#5c4bdf;font-size:32px;border:3px solid #fff;box-shadow:0 2px 8px rgba(28,40,75,.12);flex:none}
.site-breadcrumb{font-size:10px;color:#8994ab;margin-bottom:10px}.site-top .identity h2{font-size:24px;line-height:1.15;margin:2px 0 5px;color:#25334d;font-weight:700}.site-top .identity p{font-size:12px;color:#66738b;margin:0}
.site-form{padding:0 22px}.site-tabs{display:flex;align-items:stretch;border-bottom:1px solid #e9edf4;background:#fff;margin:0 -22px;padding:0 22px}.site-tab{padding:13px 13px 11px;border:0;border-bottom:2px solid #6654e8;background:transparent;color:#5848d9;font-size:11px;font-family:inherit;font-weight:700;white-space:nowrap}.site-content{padding:22px 0}.site-ident-grid{grid-template-columns:.8fr 1.3fr 1.4fr}.site-section-separator{height:18px}.site-form input,.site-form select{width:100%;box-sizing:border-box}.site-form .full-field{font-size:9px;color:#68758e;display:flex;flex-direction:column;gap:5px;margin-bottom:13px}.site-accounting-box{border:1px solid #e1e6ed;border-radius:8px;background:#fff;padding:16px;display:grid;grid-template-columns:220px minmax(250px,420px);gap:24px;align-items:center}.site-financial-check{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:650;color:#33415d}.site-financial-check input{width:18px;height:18px}.site-financial-link label{font-size:10px;color:#68758e;display:flex;flex-direction:column;gap:5px}.site-financial-link small{display:block;font-size:9px;color:#8994ab;margin-top:5px}.site-financial-link select{height:36px;border:1px solid #dfe4ed;border-radius:7px;background:#fff;padding:0 10px;color:#34435d;font-size:11px}.site-right-collapse-bar{grid-column:4;grid-row:1;width:18px;min-width:18px;position:relative;display:flex;align-items:center;justify-content:center;background:#f7f8fa;border-left:1px solid #dfe3e9;border-right:1px solid #dfe3e9;cursor:col-resize;user-select:none;box-sizing:border-box;z-index:5}.site-right-collapse-bar:before{content:"";position:absolute;top:0;bottom:0;left:7px;width:3px;background:#d9dde4;border-left:1px solid #cbd0d8;border-right:1px solid #cbd0d8}
.site-actions-panel{grid-column:5;grid-row:1;width:150px;min-width:150px;max-width:150px;margin:0;padding:10px 1px;box-sizing:border-box;justify-self:stretch;align-self:stretch;border:1px solid #e1e5eb;border-radius:8px;background:#fff;overflow-x:hidden;overflow-y:auto}.site-actions-panel .right-actions,.site-actions-panel .right-menu-title.quit-function,.site-actions-panel .right-tree{width:140px;max-width:140px;margin-left:auto;margin-right:auto;box-sizing:border-box}.site-actions-panel .action-btn{width:140px;max-width:140px;height:25px;min-height:25px;max-height:25px;box-sizing:border-box;border-radius:5px;line-height:23px;white-space:nowrap}.site-actions-panel .right-menu-title.quit-function{min-height:25px;height:25px;line-height:23px;white-space:nowrap}.site-actions-panel .right-tree{margin-top:17px;text-align:left}.site-actions-panel .right-tree .tree-title{width:140px;margin-left:0;padding-left:0;box-sizing:border-box}.site-actions-panel .right-tree button{width:140px;box-sizing:border-box;padding-left:22px;padding-right:0;height:25px;min-height:25px;white-space:nowrap}.site-actions-panel .site-side-edit-actions{display:none;gap:0;flex-direction:column}.site-actions-panel.crud-editing .site-crud-new,.site-actions-panel.crud-editing .site-crud-edit,.site-actions-panel.crud-editing .site-crud-delete,.site-actions-panel.crud-editing .site-crud-copy{opacity:.38;pointer-events:none}.site-form.crud-editing input,.site-form.crud-editing select{background:#fff}
.site-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 18px 150px!important}.site-layout.left-collapsed .site-list{width:0!important;min-width:0!important;padding:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}.site-layout.site-actions-collapsed{grid-template-columns:300px 18px minmax(0,1fr) 0 0!important}.site-layout.site-actions-collapsed.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 0 0!important}.site-layout.site-actions-collapsed .site-right-collapse-bar{width:0!important;min-width:0!important;border:0!important;background:transparent!important;overflow:visible!important}.site-layout.site-actions-collapsed .site-right-collapse-bar button{position:absolute!important;right:-18px!important;top:50%;transform:translateY(-50%)}.site-layout.site-actions-collapsed .site-actions-panel{width:0!important;min-width:0!important;max-width:0!important;padding:0!important;border:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
@media (min-width:751px) and (max-width:1250px){.site-layout{grid-template-columns:260px 18px minmax(0,1fr) 18px 150px!important}.site-layout.site-actions-collapsed{grid-template-columns:260px 18px minmax(0,1fr) 0 0!important}.site-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 18px 150px!important}.site-layout.left-collapsed.site-actions-collapsed{grid-template-columns:0 18px minmax(0,1fr) 0 0!important}}
@media(max-width:750px){.site-layout{grid-template-columns:1fr!important;grid-template-rows:auto!important}.site-layout>*{grid-column:1!important;grid-row:auto!important}.site-collapse-bar,.site-right-collapse-bar{display:none!important}.site-list{height:350px;min-height:0}.site-card{height:auto;min-height:0}.site-actions-panel{width:auto;min-width:0;max-width:none;height:auto;min-height:0}.site-accounting-box{grid-template-columns:1fr}.site-ident-grid{grid-template-columns:1fr}.site-form{padding:0 10px}.site-tabs{margin:0 -10px;padding:0 10px}}


/* V32.79 V58 - Sites - Regroupements : volet d'actions forcé visible sur desktop. */
@media (min-width:751px){
  .site-page .site-layout{grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;column-gap:0 !important;row-gap:0 !important;}
  .site-page .site-list{grid-column:1 !important;grid-row:1 !important;}
  .site-page .site-collapse-bar{grid-column:2 !important;grid-row:1 !important;}
  .site-page .site-card{grid-column:3 !important;grid-row:1 !important;min-width:0 !important;}
  .site-page .site-right-collapse-bar{grid-column:4 !important;grid-row:1 !important;width:18px !important;min-width:18px !important;display:flex !important;visibility:visible !important;position:relative !important;z-index:20 !important;}
  .site-page .site-actions-panel{grid-column:5 !important;grid-row:1 !important;display:block !important;visibility:visible !important;width:150px !important;min-width:150px !important;max-width:150px !important;height:auto !important;min-height:650px !important;opacity:1 !important;position:relative !important;z-index:10 !important;margin:0 !important;padding:10px 1px !important;box-sizing:border-box !important;overflow-x:hidden !important;overflow-y:auto !important;}
  .site-page .site-actions-panel .right-actions,
  .site-page .site-actions-panel .right-menu-title.quit-function,
  .site-page .site-actions-panel .right-tree{width:140px !important;max-width:140px !important;margin-left:auto !important;margin-right:auto !important;box-sizing:border-box !important;}
  .site-page .site-actions-panel .action-btn{width:140px !important;max-width:140px !important;height:25px !important;min-height:25px !important;max-height:25px !important;box-sizing:border-box !important;border-radius:5px !important;white-space:nowrap !important;}
  .site-page .site-actions-panel .right-menu-title.quit-function{height:25px !important;min-height:25px !important;white-space:nowrap !important;}
  .site-page .site-actions-panel .right-tree{margin-top:17px !important;text-align:left !important;}
  .site-page .site-actions-panel .right-tree button{width:140px !important;max-width:140px !important;height:25px !important;min-height:25px !important;white-space:nowrap !important;}
  .site-page .site-actions-panel.crud-editing .site-side-edit-actions{display:flex !important;flex-direction:column !important;}
  .site-page .site-actions-panel .site-side-edit-actions{gap:0 !important;}
}

/* V32.79 V59 — Sites - Regroupements : affichage desktop robuste et hauteur des lignes pilotée par le paramètre. */
@media (min-width:751px){
  body:has(.site-page),
  html:has(.site-page){overflow-x:hidden !important;}
  body:has(.site-page) .main,
  body:has(.site-page) .content,
  body:has(.site-page) .site-page,
  body:has(.site-page) .site-layout{
    min-width:0 !important;
    max-width:100vw !important;
  }
  body:has(.site-page) .content{
    padding-left:0 !important;
    padding-right:0 !important;
    overflow-x:hidden !important;
  }
  body:has(.site-page) .main{
    margin-left:250px !important;
    width:calc(100% - 250px) !important;
    overflow-x:hidden !important;
  }
  body:has(.site-page) .site-page{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    overflow:visible !important;
  }
  body:has(.site-page) .site-layout{
    display:grid !important;
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
    grid-template-rows:minmax(650px,1fr) !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    gap:0 !important;
    overflow:visible !important;
  }
  body:has(.site-page) .site-actions-panel{
    display:block !important;
    visibility:visible !important;
    grid-column:5 !important;
    grid-row:1 !important;
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
    min-height:650px !important;
    height:calc(100vh - 180px) !important;
    opacity:1 !important;
    position:relative !important;
    z-index:30 !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }
  body:has(.site-page) .site-right-collapse-bar{
    display:flex !important;
    visibility:visible !important;
    grid-column:4 !important;
    grid-row:1 !important;
    width:18px !important;
    min-width:18px !important;
    max-width:18px !important;
    z-index:31 !important;
  }
  body:has(.site-page) .site-list .site-row{
    min-height:var(--nx-list-row-height) !important;
    height:var(--nx-list-row-height) !important;
    padding-top:4px !important;
    padding-bottom:4px !important;
    box-sizing:border-box !important;
  }
}

/* V32.79 V61 — Sites - Regroupements : volet d'actions 150px et interligne 5px. */
@media (min-width:751px){
  .site-page .site-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
  }
  .site-page .site-layout.left-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 18px 150px !important;
  }
  .site-page .site-actions-panel{
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    box-sizing:border-box !important;
  }
  .site-page .site-actions-panel .right-actions{
    width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    display:flex !important;
    flex-direction:column !important;
    gap:5px !important;
  }
  .site-page .site-actions-panel .right-actions .action-btn{
    width:140px !important;
    max-width:140px !important;
    margin:0 !important;
  }
  .site-page .site-actions-panel .site-side-edit-actions{
    gap:5px !important;
  }
  .site-page .site-actions-panel .right-tree{
    width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  .site-page .site-actions-panel .right-tree button{
    margin-bottom:5px !important;
  }
  .site-page .site-actions-panel .site-crud-save,
  .site-page .site-actions-panel .save-side,
  .site-page .site-actions-panel .crud-side-save{
    background:#35a96b !important;
    color:#fff !important;
  }
}

/* V32.79 V62 — Sites - Regroupements : volet 150px, boutons 140px centrés. */
@media (min-width:751px){
  .site-page .site-layout,
  body:has(.site-page) .site-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
  }
  .site-page .site-layout.left-collapsed,
  body:has(.site-page) .site-layout.left-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 18px 150px !important;
  }
  .site-page .site-actions-panel,
  body:has(.site-page) .site-actions-panel{
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    box-sizing:border-box !important;
    justify-self:stretch !important;
  }
  .site-page .site-actions-panel .right-actions,
  .site-page .site-actions-panel .right-menu-title.quit-function,
  .site-page .site-actions-panel .right-tree{
    width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
  .site-page .site-actions-panel .action-btn,
  .site-page .site-actions-panel .right-tree button{
    width:140px !important;
    max-width:140px !important;
    box-sizing:border-box !important;
  }
  .site-page .site-actions-panel .right-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:5px !important;
  }
  .site-page .site-actions-panel .site-side-edit-actions{
    width:140px !important;
    max-width:140px !important;
    align-items:center !important;
    gap:5px !important;
  }
}

/* V32.79 V64 — Tableau Sites - Regroupements dans Sociétés : lecture seule. */
.company-sites-readonly-table td{height:24px;padding:5px 8px;border-bottom:1px solid #f0f2f6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#45526d;}
.company-sites-readonly-table td:nth-child(1){font-weight:650;color:#27334e;}
.company-sites-readonly-table td:nth-child(4){text-align:center;}
.company-sites-empty td{text-align:center;color:#8994ab;font-style:italic;padding:10px;}

/* V32.79 V65 - Variables de paie : volet d'actions identique au design Sociétés, 150px. */
@media(min-width:751px){
  .variable-layout{grid-template-columns:300px 18px minmax(0,1fr) 18px 150px!important;grid-template-rows:minmax(650px,1fr)!important;}
  .variable-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 18px 150px!important;}
  .variable-layout.variable-actions-collapsed{grid-template-columns:300px 18px minmax(0,1fr) 18px 0!important;}
  .variable-layout.left-collapsed.variable-actions-collapsed{grid-template-columns:0 18px minmax(0,1fr) 18px 0!important;}
  .variable-actions-panel{grid-column:5!important;grid-row:1!important;width:150px!important;min-width:150px!important;align-self:stretch!important;overflow:auto!important;}
  .variable-right-collapse-bar{grid-column:4!important;grid-row:1!important;width:18px;min-width:18px;position:relative;display:flex;justify-content:center;align-items:center;background:#f7f8fa;border-left:1px solid #dfe3e9;border-right:1px solid #dfe3e9;cursor:pointer;user-select:none;}
  .variable-right-collapse-bar:before{content:"";position:absolute;top:0;bottom:0;left:7px;width:3px;background:#d9dde4;border-left:1px solid #cbd0d8;border-right:1px solid #cbd0d8;}
  .variable-right-collapse-bar button{position:relative;z-index:2;width:18px;height:44px;border:0;border-radius:3px;background:#fff;color:#4d5a73;box-shadow:0 1px 4px rgba(25,35,55,.20);font-size:24px;line-height:1;padding:0 0 3px;cursor:pointer;}
  .variable-right-collapse-bar button:hover{background:#eef1f6;color:#5142d3;}
  .variable-actions-panel .right-actions{display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 5px!important;}
  .variable-actions-panel .action-btn{width:140px!important;min-width:140px!important;height:25px!important;min-height:25px!important;box-sizing:border-box!important;text-align:left;}
  .variable-actions-panel .variable-side-edit-actions{display:none;flex-direction:column;align-items:center;gap:5px;width:100%;}
  .variable-actions-panel.crud-editing .variable-side-edit-actions{display:flex;}
  .variable-actions-panel.crud-editing .right-actions>.crud-new,.variable-actions-panel.crud-editing .right-actions>.crud-edit,.variable-actions-panel.crud-editing .right-actions>.crud-delete,.variable-actions-panel.crud-editing .right-actions>.copy{opacity:.38;pointer-events:none;}
  .variable-actions-panel .crud-side-save{background:#35a96b!important;color:#fff!important;}
  .variable-actions-panel .crud-side-cancel{background:#f2f3f5!important;color:#536079!important;border:1px solid #e3e6eb!important;}
}
@media(max-width:1250px) and (min-width:751px){.variable-layout{grid-template-columns:260px 18px minmax(0,1fr) 18px 150px!important}.variable-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 18px 150px!important}.variable-actions-panel{width:150px!important;min-width:150px!important}}
@media(max-width:750px){.variable-right-collapse-bar{display:none!important}.variable-actions-panel{width:auto!important;min-width:0!important}}

/* V65 - Liste Variables de paie : Code, Intitulé, Zone de saisie, Conservé. */
.variable-table-head,.variable-row{grid-template-columns:90px minmax(120px,1fr) 115px 65px!important}.variable-row{min-height:24px!important;height:var(--nx-list-row-height,24px)!important;padding-top:0!important;padding-bottom:0!important}.variable-rows{height:calc(100% - 123px)!important}

/* V32.79 V66 — listes gauche sans retour à la ligne. */
@media (min-width:751px){
  .employee-list .employee-row, .company-list .company-row, .payroll-month-list .payroll-month-row,
  .payslip-salary-list .payslip-salary-row, .rubric-list .rubric-row, .profile-list .profile-row,
  .profile-variable-list .profile-variable-row, .variable-list .variable-row, .cumul-list .cumul-row,
  .employee-contract-list .employee-contract-row, .employee-history-list .employee-history-row,
  .sites-list .sites-row{white-space:nowrap !important;overflow:hidden !important;}
  .employee-list .employee-row > *, .company-list .company-row > *, .payroll-month-list .payroll-month-row > *,
  .payslip-salary-list .payslip-salary-row > *, .rubric-list .rubric-row > *, .profile-list .profile-row > *,
  .profile-variable-list .profile-variable-row > *, .variable-list .variable-row > *, .cumul-list .cumul-row > *,
  .employee-contract-list .employee-contract-row > *, .employee-history-list .employee-history-row > *,
  .sites-list .sites-row > *{min-width:0 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}
}


/* V68 - Variables de paie : volet actions corrigé, identique au principe Sociétés. */
@media (min-width:751px){
  .variable-page .variable-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
  }
  .variable-page .variable-layout.left-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 18px 150px !important;
  }
  .variable-page .variable-layout.variable-actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
  .variable-page .variable-layout.left-collapsed.variable-actions-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 0 0 !important;
  }
  .variable-page .variable-actions-panel{
    grid-column:5 !important;
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
  }
  .variable-page .variable-layout.variable-actions-collapsed .variable-actions-panel{
    width:0 !important; min-width:0 !important; max-width:0 !important;
    padding:0 !important; border:0 !important; overflow:hidden !important;
  }
  .variable-page .variable-actions-panel .right-actions{
    display:flex !important; flex-direction:column !important; align-items:center !important;
    gap:5px !important; padding:12px 5px !important;
  }
  .variable-page .variable-actions-panel .action-btn,
  .variable-page .variable-actions-panel .right-menu-title.quit-function,
  .variable-page .variable-actions-panel .right-tree button{
    width:140px !important; min-width:140px !important; max-width:140px !important;
    height:25px !important; min-height:25px !important; max-height:25px !important;
    box-sizing:border-box !important; white-space:nowrap !important;
  }
  .variable-page .variable-actions-panel .right-menu-title.quit-function{
    margin-left:auto !important; margin-right:auto !important;
  }
  .variable-page .variable-actions-panel .right-tree{
    display:flex !important; flex-direction:column !important; align-items:center !important;
    gap:5px !important;
  }
  .variable-page .variable-actions-panel .variable-side-edit-actions{
    width:140px !important; max-width:140px !important;
    align-items:center !important; gap:5px !important; margin:0 auto !important;
  }
  .variable-page .variable-actions-panel .crud-side-save{background:#35a96b !important;color:#fff !important;}
  .variable-page .variable-actions-panel .crud-side-cancel{background:#f2f3f5 !important;color:#536079 !important;border:1px solid #e3e6eb !important;}
}
@media (min-width:751px) and (max-width:1250px){
  .variable-page .variable-layout{grid-template-columns:260px 18px minmax(0,1fr) 18px 150px !important;}
  .variable-page .variable-layout.left-collapsed{grid-template-columns:0 18px minmax(0,1fr) 18px 150px !important;}
}

/* V69 — Mois de paie : volet actions identique à la fiche individuelle, 150 px. */
@media (min-width:751px){
  .payroll-month-page .payroll-month-layout:not(.payslip-salary-layout){
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
  }
  .payroll-month-page .payroll-month-layout:not(.payslip-salary-layout).left-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 18px 150px !important;
  }
  .payroll-month-page .payroll-month-layout:not(.payslip-salary-layout).payroll-actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
  .payroll-month-page .payroll-month-layout:not(.payslip-salary-layout).left-collapsed.payroll-actions-collapsed{
    grid-template-columns:0 18px minmax(0,1fr) 0 0 !important;
  }
  .payroll-month-page .payroll-month-actions-panel{
    grid-column:5 !important;width:150px !important;min-width:150px !important;max-width:150px !important;
    box-sizing:border-box !important;margin:0 !important;padding:10px 5px !important;border:1px solid #e1e5eb !important;border-radius:7px !important;background:#fff !important;
  }
  .payroll-month-page .payroll-month-actions-panel .right-actions,
  .payroll-month-page .payroll-month-actions-panel .right-tree,
  .payroll-month-page .payroll-month-actions-panel .right-menu-title.quit-function{
    width:140px !important;min-width:140px !important;max-width:140px !important;margin-left:auto !important;margin-right:auto !important;box-sizing:border-box !important;
  }
  .payroll-month-page .payroll-month-actions-panel .action-btn,
  .payroll-month-page .payroll-month-actions-panel .right-tree button,
  .payroll-month-page .payroll-month-actions-panel .right-menu-title.quit-function{
    width:140px !important;min-width:140px !important;max-width:140px !important;height:25px !important;min-height:25px !important;max-height:25px !important;
    box-sizing:border-box !important;border-radius:5px !important;white-space:nowrap !important;
  }
  .payroll-month-page .payroll-month-actions-panel .right-actions{display:flex !important;flex-direction:column !important;align-items:center !important;gap:5px !important;padding:0 !important;}
  .payroll-month-page .payroll-month-actions-panel .right-tree{display:flex !important;flex-direction:column !important;align-items:center !important;gap:5px !important;padding:0 !important;margin-top:17px !important;}
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed .payroll-month-actions-panel{width:0 !important;min-width:0 !important;max-width:0 !important;padding:0 !important;border:0 !important;overflow:hidden !important;}
  .payroll-month-page .payroll-month-layout > .payroll-right-collapse-bar{grid-column:4 !important;width:18px !important;min-width:18px !important;display:flex !important;align-items:center !important;justify-content:center !important;}
  .payroll-month-page .payroll-month-layout.payroll-actions-collapsed > .payroll-right-collapse-bar{width:0 !important;min-width:0 !important;border:0 !important;overflow:visible !important;}
}

/* V69 — Saisie des variables en masse. */
.mass-variable-entry{display:grid;grid-template-columns:1.5fr 1fr .9fr .9fr;gap:14px;margin-top:18px;padding:15px;border:1px solid #e5e8ef;border-radius:10px;background:#fff;}
.mass-variable-entry label{display:flex;flex-direction:column;gap:6px;color:#59667e;font-size:10px;font-weight:600;}
.mass-variable-entry select,.mass-variable-entry input{height:35px;border:1px solid #dfe4ec;border-radius:7px;padding:0 9px;background:#fff;color:#303b54;font-size:11px;outline:none;box-sizing:border-box;}
.mass-variable-dialog{width:min(900px,calc(100vw - 40px));}
.mass-variable-dialog .generation-grid{grid-template-columns:repeat(2,1fr);}
.mass-variable-dialog .generation-period{grid-template-columns:1fr;}
.mass-variable-dialog .generation-result{margin-top:16px;}
@media(max-width:700px){.mass-variable-entry,.mass-variable-dialog .generation-grid{grid-template-columns:1fr;}}

/* V70 — Saisie variables en masse : code saisissable avec liste et type de valeur conditionnel. */
.mass-variable-entry label input[name="code_variable"]{width:100%;}
.mass-variable-entry select[name="type_valeur"]:disabled{background:#eef0f3 !important;color:#8a93a3 !important;cursor:not-allowed;opacity:1;}

/* V32.79 V72 — fiche individuelle : volet d'actions 150 px / boutons 140 x 25 / 5 px */
@media (min-width:751px){
  .employee-page .employee-layout{grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;}
  .employee-page .employee-actions-panel{grid-column:5 !important;width:150px !important;min-width:150px !important;max-width:150px !important;padding:10px 5px !important;box-sizing:border-box !important;}
  .employee-page .employee-actions-panel .right-actions,
  .employee-page .employee-actions-panel .employee-side-edit-actions{width:140px !important;min-width:140px !important;max-width:140px !important;margin-left:auto !important;margin-right:auto !important;display:flex !important;flex-direction:column !important;align-items:center !important;gap:5px !important;}
  .employee-page .employee-actions-panel .action-btn,
  .employee-page .employee-actions-panel .right-menu-title.quit-function{width:140px !important;min-width:140px !important;max-width:140px !important;height:25px !important;min-height:25px !important;max-height:25px !important;box-sizing:border-box !important;}
  .employee-page .employee-actions-panel .right-tree{width:140px !important;max-width:140px !important;margin-left:auto !important;margin-right:auto !important;}
  .employee-page .employee-layout.actions-collapsed{grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;}
  .employee-page .employee-layout.actions-collapsed .employee-actions-panel{width:0 !important;min-width:0 !important;max-width:0 !important;padding:0 !important;border:0 !important;overflow:hidden !important;}
}

/* V72 — avatar par défaut */
.employee-photo .employee-avatar-fallback{width:100%;height:100%;object-fit:cover;display:block;}
.print-photo .employee-avatar-fallback{width:100%;height:100%;object-fit:cover;display:block;}

/* V72 — enfants à charge */
.employee-children-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 6px;}
.employee-children-toolbar span{font-size:12px;font-weight:600;color:#46536a;}
.employee-child-add{height:25px;padding:0 10px;font-size:12px;}
.employee-children-table{border:1px solid #e1e5eb;border-radius:6px;background:#fff;overflow:auto;}
.employee-children-table table{width:100%;border-collapse:collapse;min-width:760px;font-size:12px;}
.employee-children-table th{background:#f1f3f6;color:#47536a;font-weight:600;text-align:left;padding:6px 7px;border-bottom:1px solid #dfe3e9;white-space:nowrap;}
.employee-children-table td{padding:4px 6px;border-bottom:1px solid #edf0f4;vertical-align:middle;}
.employee-children-table tr:last-child td{border-bottom:0;}
.employee-children-table input,.employee-children-table select{width:100%;height:26px;box-sizing:border-box;}
.employee-children-table .child-checkbox{text-align:center;width:75px;}
.employee-children-table .child-checkbox label{display:flex;justify-content:center;align-items:center;}
.employee-children-table .child-checkbox input{width:16px;height:16px;}
.employee-child-actions{white-space:nowrap;text-align:center;width:145px;}
.employee-child-actions button{height:24px;margin:0 2px;padding:0 7px;border:1px solid #d8dde5;border-radius:4px;background:#fff;color:#35435b;font-size:11px;cursor:pointer;}
.employee-child-actions .child-delete{color:#b00062;}
.employee-children-empty{text-align:center;color:#7b8595;padding:10px;font-size:12px;}
.print-children-table{width:100%;border-collapse:collapse;margin-top:6px;font-size:10px;}
.print-children-table th,.print-children-table td{border:1px solid #dfe3e9;padding:4px 5px;text-align:left;}
.print-children-table th{background:#f1f3f6;}


/* =========================================================
   V32.79 V73 — Fiche individuelle : liste gauche complète
   ========================================================= */
@media (min-width:751px){
  .employee-page .employee-list{
    height:100% !important;
    min-height:0 !important;
    align-self:stretch !important;
    display:flex !important;
    flex-direction:column !important;
  }
  .employee-page .employee-table-head{
    grid-template-columns:70px minmax(90px,1fr) minmax(90px,1fr) minmax(85px,1fr) minmax(75px,1fr) minmax(70px,1fr) !important;
    flex:0 0 auto !important;
  }
  .employee-page .employee-rows{
    height:auto !important;
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }
  .employee-page .employee-row{
    grid-template-columns:70px minmax(90px,1fr) minmax(90px,1fr) minmax(85px,1fr) minmax(75px,1fr) minmax(70px,1fr) !important;
    padding:8px 10px !important;
    min-height:24px !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-row > span,.employee-page .employee-row > strong{
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
}
@media (max-width:750px){
  .employee-page .employee-table-head,.employee-page .employee-row{grid-template-columns:58px 1fr 1fr !important;}
  .employee-page .employee-row > :nth-child(n+4),.employee-page .employee-table-head > :nth-child(n+4){display:none !important;}
}

/* =========================================================
   V32.79 V74 — Fiche individuelle : hauteur navigateur + volet 150 px
   ========================================================= */
@media (min-width:751px){
  /* Le bloc fiche/liste s'arrête exactement dans la zone visible du navigateur. */
  .employee-page .employee-layout{
    height:calc(100vh - 133px) !important;
    min-height:0 !important;
    max-height:calc(100vh - 133px) !important;
    align-items:stretch !important;
  }
  .employee-page .employee-list{
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    overflow:hidden !important;
  }
  .employee-page .employee-rows{
    min-height:0 !important;
    height:auto !important;
    flex:1 1 auto !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }

  /* Volet des boutons : largeur totale 150 px. */
  .employee-page .employee-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
  }
  .employee-page .employee-actions-panel{
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    box-sizing:border-box !important;
    align-self:stretch !important;
  }
  .employee-page .employee-actions-panel .right-actions,
  .employee-page .employee-actions-panel .employee-side-edit-actions,
  .employee-page .employee-actions-panel .right-menu-title.quit-function{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  .employee-page .employee-actions-panel .action-btn,
  .employee-page .employee-actions-panel .right-menu-title.quit-function{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    height:25px !important;
    min-height:25px !important;
    max-height:25px !important;
  }
  .employee-page .employee-actions-panel .right-actions,
  .employee-page .employee-actions-panel .employee-side-edit-actions{
    gap:5px !important;
  }

  /* Replié : aucune largeur résiduelle à droite. */
  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
}

/* =========================================================
   V32.79 V75 — Fiche individuelle : défilement vertical de la fiche
   La liste gauche reste limitée à la hauteur visible ; le contenu de
   la fiche centrale peut défiler indépendamment jusqu'en bas.
   ========================================================= */
@media (min-width:751px){
  .employee-page .employee-layout{
    overflow:hidden !important;
  }
  .employee-page .employee-card{
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    scrollbar-gutter:stable !important;
  }
  .employee-page .employee-list{
    overflow:hidden !important;
  }
  .employee-page .employee-rows{
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }
}


/* V76 — Fiche individuelle : ajustements finaux des actions, onglets et enfants. */
@media (min-width:751px){
  .employee-page .employee-actions-panel{width:150px!important;min-width:150px!important;max-width:150px!important;}
  .employee-page .employee-actions-panel .right-actions{width:140px!important;min-width:140px!important;max-width:140px!important;margin-left:auto!important;margin-right:auto!important;align-items:center!important;gap:5px!important;}
  .employee-page .employee-actions-panel .action-btn,
  .employee-page .employee-actions-panel .right-menu-title.quit-function{width:140px!important;min-width:140px!important;max-width:140px!important;}
  .employee-page .employee-actions-panel .employee-side-edit-actions{display:none!important;width:140px!important;min-width:140px!important;max-width:140px!important;margin-left:auto!important;margin-right:auto!important;align-items:center!important;gap:5px!important;}
  .employee-page .employee-actions-panel.crud-editing .employee-side-edit-actions{display:flex!important;}
}
.employee-page .employee-tabs{display:flex!important;flex-wrap:nowrap!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;}
.employee-page .employee-tabs .tab{flex:0 0 auto!important;white-space:nowrap!important;}
.employee-page .employee-chef-famille{margin:4px 0 12px!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;white-space:nowrap!important;}
.employee-page .employee-chef-famille input{width:15px!important;height:15px!important;}
.employee-children-table .employee-child-actions{width:52px!important;text-align:center!important;}
.employee-children-table .employee-child-actions .child-delete{width:26px!important;height:26px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;font-size:15px!important;line-height:26px!important;cursor:pointer!important;}
.employee-children-table .employee-child-actions .child-delete:hover{background:#fce8f3!important;border-radius:5px!important;}


/* V77 — Fiche individuelle : onglets sans Notes/Personnalisé et volet d'actions aligné sur Sociétés. */
@media (min-width:751px){
  .employee-page .employee-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 142px !important;
    column-gap:0 !important;
    row-gap:0 !important;
  }
  .employee-page .employee-list{grid-column:1 !important;grid-row:1 !important;}
  .employee-page .left-collapse-bar{grid-column:2 !important;grid-row:1 !important;}
  .employee-page .employee-card{grid-column:3 !important;grid-row:1 !important;min-width:0 !important;}
  .employee-page .right-collapse-bar{
    grid-column:4 !important;
    grid-row:1 !important;
    width:18px !important;
    min-width:18px !important;
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#f7f8fa !important;
    border-left:1px solid #dfe3e9 !important;
    border-right:1px solid #dfe3e9 !important;
    cursor:col-resize !important;
    box-sizing:border-box !important;
    user-select:none !important;
    z-index:5 !important;
  }
  .employee-page .right-collapse-bar:before{
    content:"" !important;
    position:absolute !important;
    top:0 !important;
    bottom:0 !important;
    left:7px !important;
    width:3px !important;
    background:#d9dde4 !important;
    border-left:1px solid #cbd0d8 !important;
    border-right:1px solid #cbd0d8 !important;
  }
  .employee-page .right-collapse-bar button{
    position:relative !important;
    z-index:2 !important;
    width:18px !important;
    height:44px !important;
    margin:0 !important;
    padding:0 0 2px !important;
    border:0 !important;
    border-radius:3px !important;
    background:#fff !important;
    color:#4d5a73 !important;
    box-shadow:0 1px 4px rgba(25,35,55,.20) !important;
    font-size:22px !important;
    line-height:1 !important;
    cursor:pointer !important;
  }
  .employee-page .right-collapse-bar button:hover{background:#eef1f6 !important;color:#5142d3 !important;}
  .employee-page .employee-actions-panel{
    grid-column:5 !important;
    grid-row:1 !important;
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
    margin:0 !important;
    padding:10px 1px !important;
    box-sizing:border-box !important;
    justify-self:stretch !important;
    align-self:stretch !important;
    border:1px solid #e1e5eb !important;
    border-radius:8px !important;
    background:#fff !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }
  .employee-page .employee-actions-panel .right-actions,
  .employee-page .employee-actions-panel .right-menu-title.quit-function,
  .employee-page .employee-actions-panel .right-tree{
    width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-actions-panel .right-actions{align-items:center !important;gap:5px !important;}
  .employee-page .employee-actions-panel .action-btn{
    width:140px !important;
    max-width:140px !important;
    min-height:25px !important;
    height:25px !important;
    box-sizing:border-box !important;
    border-radius:5px !important;
  }
  .employee-page .employee-actions-panel .right-menu-title.quit-function{min-height:25px !important;}
  .employee-page .employee-actions-panel .right-tree{
    padding-left:0 !important;
    padding-right:0 !important;
    margin-top:17px !important;
    text-align:left !important;
  }
  .employee-page .employee-actions-panel .right-tree .tree-title{
    width:140px !important;
    margin-left:0 !important;
    padding-left:0 !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-actions-panel .right-tree button{
    width:140px !important;
    box-sizing:border-box !important;
    padding-left:22px !important;
    padding-right:0 !important;
  }
  .employee-page .employee-actions-panel .employee-side-edit-actions{
    display:none !important;
    width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    align-items:center !important;
    gap:5px !important;
  }
  .employee-page .employee-actions-panel.crud-editing .employee-side-edit-actions{display:flex !important;}
  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
  .employee-page .employee-layout.actions-collapsed .right-collapse-bar{
    width:0 !important;min-width:0 !important;border:0 !important;background:transparent !important;overflow:visible !important;
  }
  .employee-page .employee-layout.actions-collapsed .right-collapse-bar button{
    position:absolute !important;right:-18px !important;top:50% !important;transform:translateY(-50%) !important;
  }
  .employee-page .employee-layout.actions-collapsed .employee-actions-panel{
    width:0 !important;min-width:0 !important;max-width:0 !important;padding:0 !important;border:0 !important;overflow:hidden !important;opacity:0 !important;pointer-events:none !important;
  }
  .employee-page .employee-tabs{
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
  }
  .employee-page .employee-tabs .tab{
    min-width:0 !important;
    width:100% !important;
    padding-left:6px !important;
    padding-right:6px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
    text-align:center !important;
  }
}
@media (min-width:751px) and (max-width:1250px){
  .employee-page .employee-layout{grid-template-columns:260px 18px minmax(0,1fr) 18px 142px !important;}
  .employee-page .employee-layout.actions-collapsed{grid-template-columns:260px 18px minmax(0,1fr) 0 0 !important;}
}
@media (max-width:750px){
  .employee-page .employee-tabs{overflow:hidden !important;white-space:normal !important;flex-wrap:wrap !important;}
  .employee-page .employee-tabs .tab{flex:1 1 auto !important;white-space:nowrap !important;}
}


/* V78 — Fiche individuelle : onglets répartis et volet d'actions 150/140. */
@media (min-width:751px){
  .employee-page .employee-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
    column-gap:0 !important;
    row-gap:0 !important;
  }
  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
  .employee-page .employee-actions-panel{
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    padding:5px 0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
    justify-self:stretch !important;
    overflow-x:hidden !important;
  }
  .employee-page .employee-actions-panel .right-actions,
  .employee-page .employee-actions-panel .employee-side-edit-actions,
  .employee-page .employee-actions-panel .right-menu-title.quit-function,
  .employee-page .employee-actions-panel .right-tree{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-actions-panel .right-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:5px !important;
    padding:0 !important;
  }
  .employee-page .employee-actions-panel .action-btn,
  .employee-page .employee-actions-panel .right-menu-title.quit-function{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    height:25px !important;
    min-height:25px !important;
    max-height:25px !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
  }
  .employee-page .employee-actions-panel .right-tree{
    margin-top:17px !important;
    padding:0 !important;
    text-align:left !important;
  }
  .employee-page .employee-actions-panel .right-tree .tree-title{
    width:140px !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-actions-panel .right-tree button{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
  }
  .employee-page .employee-actions-panel .employee-side-edit-actions{
    display:none !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:5px !important;
    padding:0 !important;
  }
  .employee-page .employee-actions-panel.crud-editing .employee-side-edit-actions{
    display:flex !important;
  }

  /* Les 6 onglets occupent exactement toute la largeur disponible. */
  .employee-page .employee-tabs{
    display:flex !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    padding-left:0 !important;
    padding-right:0 !important;
    gap:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-tabs .tab{
    flex:1 1 0 !important;
    width:16.6666667% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding-left:4px !important;
    padding-right:4px !important;
    text-align:center !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
    box-sizing:border-box !important;
  }
}
@media (min-width:751px) and (max-width:1250px){
  .employee-page .employee-layout{grid-template-columns:260px 18px minmax(0,1fr) 18px 150px !important;}
  .employee-page .employee-layout.actions-collapsed{grid-template-columns:260px 18px minmax(0,1fr) 0 0 !important;}
}
@media (max-width:750px){
  .employee-page .employee-tabs{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    width:100% !important;
    padding:0 !important;
    gap:0 !important;
    overflow:hidden !important;
    white-space:normal !important;
  }
  .employee-page .employee-tabs .tab{
    width:100% !important;
    min-width:0 !important;
    white-space:nowrap !important;
    text-align:center !important;
  }
}


/* V79 — Fiche individuelle : correction stricte du volet d'actions et des onglets. */
@media (min-width:751px){
  /* Grille : 5 px visuels entre le contenu et les bordures des panneaux,
     sans réduire la largeur utile des boutons. */
  .employee-page .employee-layout{
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
    column-gap:0 !important;
    row-gap:0 !important;
  }
  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
  .employee-page .employee-actions-panel{
    grid-column:5 !important;
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    margin:0 !important;
    padding:5px 0 !important;
    border:1px solid #e1e5eb !important;
    border-radius:7px !important;
    box-sizing:border-box !important;
    justify-self:stretch !important;
    align-self:stretch !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }
  /* 150 - 2*1 px de bordure = 148 px utiles ; 140 px bouton = 4 px
     de chaque côté dans le contenu. Le rendu visuel reste à ~5 px. */
  .employee-page .employee-actions-panel .right-actions,
  .employee-page .employee-actions-panel .employee-side-edit-actions,
  .employee-page .employee-actions-panel .right-menu-title.quit-function,
  .employee-page .employee-actions-panel .right-tree{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-actions-panel .right-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:5px !important;
    padding:0 !important;
  }
  .employee-page .employee-actions-panel .action-btn,
  .employee-page .employee-actions-panel .right-menu-title.quit-function{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    height:25px !important;
    min-height:25px !important;
    max-height:25px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
  }
  .employee-page .employee-actions-panel .right-menu-title.quit-function{
    margin-top:0 !important;
    margin-bottom:8px !important;
  }
  .employee-page .employee-actions-panel .right-tree{
    margin-top:17px !important;
    padding:0 !important;
    text-align:left !important;
  }
  .employee-page .employee-actions-panel .right-tree .tree-title{
    width:140px !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-actions-panel .right-tree button{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
    overflow:hidden !important;
  }
  .employee-page .employee-actions-panel .employee-side-edit-actions{
    display:none !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:5px !important;
    padding:0 !important;
  }
  .employee-page .employee-actions-panel.crud-editing .employee-side-edit-actions{
    display:flex !important;
  }

  /* Onglets : alignés à gauche, largeur naturelle, aucune répartition
     sur toute la fiche et aucun scroll horizontal. */
  .employee-page .employee-tabs{
    display:flex !important;
    flex-wrap:nowrap !important;
    width:auto !important;
    max-width:max-content !important;
    padding-left:22px !important;
    padding-right:0 !important;
    gap:4px !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
    justify-content:flex-start !important;
  }
  .employee-page .employee-tabs .tab{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:auto !important;
    max-width:none !important;
    margin:0 !important;
    padding:13px 13px 11px !important;
    text-align:left !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    box-sizing:border-box !important;
  }
}

@media (min-width:751px) and (max-width:1250px){
  .employee-page .employee-layout{
    grid-template-columns:260px 18px minmax(0,1fr) 18px 150px !important;
  }
  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:260px 18px minmax(0,1fr) 0 0 !important;
  }
}

@media (max-width:750px){
  .employee-page .employee-tabs{
    display:flex !important;
    flex-wrap:nowrap !important;
    width:auto !important;
    max-width:none !important;
    padding:0 22px !important;
    gap:4px !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    justify-content:flex-start !important;
  }
  .employee-page .employee-tabs .tab{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:auto !important;
    white-space:nowrap !important;
    text-align:left !important;
  }
}

/* =========================================================
   NXPeople V32.79 V80 — Fiche individuelle : dimensions exactes
   Référence visuelle validée : volet 150 px / boutons 140 x 25 px.
   ========================================================= */
@media (min-width:751px){
  .employee-page .employee-layout{
    display:grid !important;
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
    grid-template-rows:minmax(0,1fr) !important;
    gap:0 !important;
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
  }

  .employee-page .employee-list,
  .employee-page .employee-card,
  .employee-page .employee-actions-panel{
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  /* Les trois panneaux gardent 5 px d'espace intérieur visuel. */
  .employee-page .employee-list{
    padding:5px !important;
    overflow:hidden !important;
  }
  .employee-page .employee-card{
    padding:5px !important;
    overflow:hidden !important;
  }
  .employee-page .employee-card > *{
    min-width:0 !important;
  }

  /* Volet : 150 px TOTAL, bordure comprise. */
  .employee-page .employee-actions-panel{
    grid-column:5 !important;
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    margin:0 !important;
    padding:5px 4px !important;
    border:1px solid #e1e5eb !important;
    border-radius:7px !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    justify-self:stretch !important;
    align-self:stretch !important;
  }

  /* 140 px TOTAL pour chaque bouton : 5 px de marge visuelle de chaque côté. */
  .employee-page .employee-actions-panel .right-actions,
  .employee-page .employee-actions-panel .employee-side-edit-actions,
  .employee-page .employee-actions-panel .right-menu-title.quit-function,
  .employee-page .employee-actions-panel .right-tree{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }

  .employee-page .employee-actions-panel .right-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:5px !important;
    padding:0 !important;
  }

  .employee-page .employee-actions-panel .action-btn,
  .employee-page .employee-actions-panel .right-menu-title.quit-function{
    display:flex !important;
    align-items:center !important;
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    height:25px !important;
    min-height:25px !important;
    max-height:25px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding:0 7px !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
    flex:0 0 25px !important;
  }

  .employee-page .employee-actions-panel .action-btn span{
    flex:0 0 16px !important;
    width:16px !important;
    min-width:16px !important;
    max-width:16px !important;
    text-align:center !important;
    line-height:1 !important;
  }

  .employee-page .employee-actions-panel .right-menu-title.quit-function{
    margin-top:0 !important;
    margin-bottom:8px !important;
  }

  .employee-page .employee-actions-panel .right-tree{
    margin-top:17px !important;
    padding:0 !important;
    text-align:left !important;
  }
  .employee-page .employee-actions-panel .right-tree .tree-title{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-actions-panel .right-tree button{
    display:flex !important;
    align-items:center !important;
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    min-height:25px !important;
    box-sizing:border-box !important;
    padding:0 7px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  /* Enregistrer / Annuler uniquement en mode Nouveau / Modifier. */
  .employee-page .employee-actions-panel .employee-side-edit-actions{
    display:none !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:5px !important;
    padding:0 !important;
  }
  .employee-page .employee-actions-panel.crud-editing .employee-side-edit-actions{
    display:flex !important;
  }

  /* Onglets : largeur naturelle, alignés à gauche, sans scroll horizontal. */
  .employee-page .employee-tabs{
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-start !important;
    align-items:stretch !important;
    width:auto !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    gap:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-tabs .tab{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:13px 13px 11px !important;
    white-space:nowrap !important;
    text-align:left !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }

  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
  .employee-page .employee-layout.actions-collapsed .employee-actions-panel{
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }
}

@media (min-width:751px) and (max-width:1250px){
  .employee-page .employee-layout{
    grid-template-columns:260px 18px minmax(0,1fr) 18px 150px !important;
  }
  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:260px 18px minmax(0,1fr) 0 0 !important;
  }
}

/* =========================================================
   NXPeople V32.79 V81 — Fiche individuelle
   Dimensions verrouillées : panneau 150px / bouton 140x25px.
   Cette règle finale neutralise les anciennes règles historiques.
   ========================================================= */
@media (min-width:751px){
  .employee-page > .employee-layout,
  .employee-page .employee-layout{
    display:grid !important;
    grid-template-columns:300px 18px minmax(0,1fr) 18px 150px !important;
    column-gap:0 !important;
    row-gap:0 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    box-sizing:border-box !important;
  }

  .employee-page .employee-layout > .employee-list{
    grid-column:1 !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:5px !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-layout > .left-collapse-bar{
    grid-column:2 !important;
    width:18px !important;
    min-width:18px !important;
    max-width:18px !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-layout > .employee-card{
    grid-column:3 !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:5px !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-layout > .right-collapse-bar{
    grid-column:4 !important;
    width:18px !important;
    min-width:18px !important;
    max-width:18px !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }

  /* 150px = largeur extérieure totale du volet, bordure comprise. */
  .employee-page .employee-layout > .employee-actions-panel{
    grid-column:5 !important;
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    margin:0 !important;
    padding:5px 4px !important;
    border:1px solid #e1e5eb !important;
    border-radius:7px !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    justify-self:stretch !important;
    align-self:stretch !important;
  }

  /* 140px = largeur extérieure totale de chaque bouton. */
  .employee-page .employee-actions-panel .right-actions,
  .employee-page .employee-actions-panel .employee-side-edit-actions,
  .employee-page .employee-actions-panel .right-menu-title.quit-function,
  .employee-page .employee-actions-panel .right-tree{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }

  .employee-page .employee-actions-panel .right-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:5px !important;
    padding:0 !important;
  }

  .employee-page .employee-actions-panel .action-btn,
  .employee-page .employee-actions-panel .right-menu-title.quit-function{
    display:flex !important;
    flex:0 0 25px !important;
    align-items:center !important;
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    height:25px !important;
    min-height:25px !important;
    max-height:25px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding:0 7px !important;
    border-radius:5px !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
  }

  .employee-page .employee-actions-panel .action-btn span{
    flex:0 0 16px !important;
    width:16px !important;
    min-width:16px !important;
    max-width:16px !important;
    margin-right:4px !important;
    text-align:center !important;
    line-height:1 !important;
  }

  .employee-page .employee-actions-panel .right-menu-title.quit-function{
    margin-top:0 !important;
    margin-bottom:8px !important;
  }

  .employee-page .employee-actions-panel .right-tree{
    margin-top:17px !important;
    padding:0 !important;
    text-align:left !important;
  }
  .employee-page .employee-actions-panel .right-tree .tree-title{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-actions-panel .right-tree button{
    display:flex !important;
    align-items:center !important;
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    min-height:25px !important;
    height:25px !important;
    box-sizing:border-box !important;
    padding:0 7px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
  }

  /* 5px entre le bord du volet et le bouton : 1px bordure + 4px padding. */
  .employee-page .employee-actions-panel .right-actions > *,
  .employee-page .employee-actions-panel .employee-side-edit-actions > *{
    max-width:140px !important;
  }

  /* Enregistrer / Annuler seulement après Nouveau ou Modifier. */
  .employee-page .employee-actions-panel .employee-side-edit-actions{
    display:none !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:5px !important;
    padding:0 !important;
  }
  .employee-page .employee-actions-panel.crud-editing .employee-side-edit-actions{
    display:flex !important;
  }

  /* Onglets : largeur naturelle, alignés à gauche, sans scroll horizontal. */
  .employee-page .employee-tabs{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    justify-content:flex-start !important;
    align-items:stretch !important;
    width:max-content !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    gap:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-tabs .tab{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:13px 13px 11px !important;
    white-space:nowrap !important;
    text-align:left !important;
  }

  /* Réduction du volet : disparition totale de sa colonne. */
  .employee-page .employee-layout.actions-collapsed{
    grid-template-columns:300px 18px minmax(0,1fr) 0 0 !important;
  }
  .employee-page .employee-layout.actions-collapsed > .right-collapse-bar{
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    border:0 !important;
    overflow:visible !important;
  }
  .employee-page .employee-layout.actions-collapsed > .employee-actions-panel{
    width:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
}

/* =========================================================
   NXPeople V32.79 V82 — Fiche individuelle : défilement vertical réel
   Le conteneur de la fiche est borné à la hauteur de la fenêtre.
   Seul le contenu central .employee-card défile ; liste et volet restent fixes.
   ========================================================= */
@media (min-width:751px){
  .employee-page{
    height:calc(100vh - 133px) !important;
    min-height:0 !important;
    max-height:calc(100vh - 133px) !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }
  .employee-page .employee-layout{
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    overflow:hidden !important;
    grid-template-rows:minmax(0,1fr) !important;
    align-items:stretch !important;
  }
  .employee-page .employee-list{
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    overflow:hidden !important;
  }
  .employee-page .employee-rows{
    min-height:0 !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }
  .employee-page .employee-card{
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    scrollbar-gutter:stable !important;
    align-self:stretch !important;
  }
  .employee-page .employee-card > .employee-form{
    min-height:max-content !important;
  }
  .employee-page .employee-actions-panel{
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }
}


/* =========================================================
   NXPeople V32.79 V83 — Fiche individuelle : marge périphérique 5px
   Les espaces indiqués autour de la liste, de la fiche et du volet
   d'actions doivent être de 5px. Le contenu général conserve ses
   marges habituelles sur les autres écrans.
   ========================================================= */
@media (min-width:751px){
  .content:has(.employee-page){
    padding:5px !important;
    box-sizing:border-box !important;
  }
  .content:has(.employee-page) .employee-page{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }
  .content:has(.employee-page) .employee-page .employee-layout{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }
}

/* V84 — Fiche individuelle : marge basse exacte de 5px.
   La zone .content reçoit une hauteur déterminée par la fenêtre afin que
   le panneau employee puisse occuper exactement l'espace disponible,
   avec 5px en haut et 5px en bas. */
@media (min-width:751px){
  body:has(.employee-page) .main{
    display:flex !important;
    flex-direction:column !important;
    min-height:0 !important;
    height:100vh !important;
  }
  body:has(.employee-page) .content{
    flex:1 1 auto !important;
    height:calc(100vh - 68px) !important;
    min-height:0 !important;
    padding:5px !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }
  body:has(.employee-page) .employee-page{
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    box-sizing:border-box !important;
    margin:0 !important;
  }
  body:has(.employee-page) .employee-page .employee-layout{
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
  }
}

/* V85 — NXprint V2 pour la fiche individuelle : toolbar et espace papier identiques à NXprint. */
.employee-print-modal .employee-print-modal-window{border:0!important;border-radius:0!important;background:#353535!important;box-shadow:none!important}
.employee-print-modal .employee-print-ribbon{height:64px!important;flex:0 0 64px!important;background:#171717!important;color:#fff!important;border-bottom:1px solid #252525!important;padding:0 18px!important}
.employee-print-modal .employee-print-ribbon-title{gap:10px!important}
.employee-print-modal .ribbon-app-mark{width:auto!important;height:auto!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:22px!important;font-weight:700!important;color:#fff!important}
.employee-print-modal .ribbon-app-mark:after{content:'Xprint'!important}
.employee-print-modal .ribbon-app-mark{font-size:0!important}
.employee-print-modal .ribbon-app-mark:before{content:'N'!important;font-size:22px!important}
.employee-print-modal .employee-print-ribbon-title strong{color:#fff!important;font-size:22px!important;letter-spacing:.2px!important}
.employee-print-modal .employee-print-ribbon-title small{color:#aaa!important;font-size:11px!important}
.employee-print-modal .employee-print-ribbon-actions{gap:7px!important}
.employee-print-modal .print-tool-btn{height:36px!important;min-width:38px!important;border:1px solid #555!important;background:#303030!important;color:#fff!important;border-radius:5px!important;padding:0 12px!important;font:600 13px Arial,Helvetica,sans-serif!important}
.employee-print-modal .print-tool-btn:hover{background:#414141!important}
.employee-print-modal .print-tool-btn.primary{background:#f0f0f0!important;border-color:#ddd!important;color:#111!important;padding:0 13px!important}
.employee-print-modal .print-tool-btn.email{background:#303030!important;border-color:#555!important;color:#fff!important}
.employee-print-modal .print-tool-btn.close{background:#303030!important;color:#fff!important}
.employee-print-modal .employee-print-ribbon-actions>span:not(.print-tool-separator){color:#ddd!important;min-width:52px!important;font-size:13px!important}
.employee-print-modal .print-tool-separator{height:24px!important;background:#555!important}
.employee-print-modal .employee-print-workspace{background:#353535!important;padding:34px 40px 60px!important}
.employee-print-modal .employee-print-ruler{display:none!important}
.employee-print-modal .employee-print-frame{width:min(100%,920px)!important;min-height:720px!important;margin:0 auto!important}
.employee-print-modal .employee-print-frame iframe{background:#fff!important;box-shadow:0 3px 18px rgba(0,0,0,.45)!important}
.employee-print-modal .employee-print-statusbar{display:none!important}
@media(max-width:900px){.employee-print-modal .employee-print-ribbon{height:auto!important;min-height:64px!important;flex-wrap:wrap!important;padding:10px!important}.employee-print-modal .employee-print-ribbon-actions{flex-wrap:wrap!important}.employee-print-modal .employee-print-workspace{padding:20px 10px 40px!important}}

/* V86 — NXprint fiche individuelle : iframe charge explicitement NXPRINT/V2 et ne doit jamais afficher le code PHP du modèle. */
.employee-print-modal .employee-print-frame iframe{display:block!important;width:100%!important;min-height:720px!important;border:0!important;background:#fff!important;}
/* V87 — bouton PDF direct NXprint V2 */
.employee-print-modal .print-tool-btn.pdf{background:#303030!important;border-color:#555!important;color:#fff!important;font-weight:700!important}
.employee-print-modal .print-tool-btn.pdf:hover{background:#414141!important}

/* V88 — NXprint/PDF preview: reproduction du design fourni par l'utilisateur. */
.employee-print-modal{position:fixed!important;inset:0!important;z-index:3000!important;display:none!important;background:rgba(15,23,42,.28)!important;padding:8px!important;backdrop-filter:none!important}
.employee-print-modal.open{display:flex!important;align-items:center!important;justify-content:center!important}
.employee-print-modal .employee-print-modal-window{width:calc(100vw - 16px)!important;height:calc(100vh - 16px)!important;max-width:none!important;background:#fff!important;border:1px solid #d6d9df!important;border-radius:7px!important;overflow:hidden!important;box-shadow:0 10px 35px rgba(0,0,0,.25)!important;display:flex!important;flex-direction:column!important}
.nxprint-preview-titlebar{height:45px!important;flex:0 0 45px!important;background:#fff!important;border-bottom:1px solid #cfd2d8!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 14px 0 20px!important;color:#1b1b1b!important}
.nxprint-preview-titlebar>div{display:flex!important;flex-direction:column!important;gap:2px!important}
.nxprint-preview-titlebar strong{font-size:15px!important;font-weight:700!important}
.nxprint-preview-titlebar small{font-size:11px!important;color:#7b8190!important}
.nxprint-preview-close{width:27px!important;height:27px!important;border:1px solid #cfd2d8!important;border-radius:4px!important;background:#f6f6f6!important;color:#666!important;font-size:20px!important;line-height:22px!important;padding:0!important;cursor:pointer!important}
.nxprint-preview-close:hover{background:#e9e9e9!important}
.employee-print-modal .nxprint-pdf-toolbar{height:64px!important;flex:0 0 64px!important;background:#3b3b3b!important;color:#fff!important;border:0!important;padding:0 18px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.employee-print-modal .nxprint-doc-title{display:flex!important;flex-direction:row!important;align-items:center!important;gap:14px!important;min-width:250px!important;color:#fff!important}
.employee-print-modal .nxprint-doc-title strong{font-size:17px!important;color:#fff!important}
.employee-print-modal .nxprint-doc-title>span{font-size:14px!important;color:#fff!important;font-weight:600!important}
.nxprint-menu-circle{width:42px!important;height:42px!important;border:2px solid #aeb4bb!important;border-radius:50%!important;background:transparent!important;color:#fff!important;font-size:20px!important;cursor:pointer!important}
.employee-print-modal .nxprint-pdf-actions{gap:7px!important;justify-content:flex-end!important;white-space:nowrap!important}
.employee-print-modal .nxprint-pdf-actions .print-tool-btn{height:36px!important;min-width:36px!important;padding:0 11px!important;border:1px solid #5d5d5d!important;background:#303030!important;color:#fff!important;border-radius:5px!important;font:600 13px Arial,Helvetica,sans-serif!important;cursor:pointer!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.employee-print-modal .nxprint-pdf-actions .print-tool-btn:hover{background:#474747!important}
.employee-print-modal .nxprint-pdf-actions .page-current{background:#171717!important;border-color:#171717!important;min-width:30px!important}
.employee-print-modal .nxprint-pdf-actions .nxprint-icon-btn{font-size:18px!important;padding:0!important;width:38px!important}
.employee-print-modal .nxprint-pdf-actions .nxprint-muted-tool{color:#777!important}
.employee-print-modal .nxprint-pdf-actions>span:not(.print-tool-separator){color:#fff!important;min-width:auto!important;font-size:13px!important;text-align:center!important}
.employee-print-modal .nxprint-pdf-actions .nxprint-page-total{margin-left:-3px!important;margin-right:4px!important}
.employee-print-modal .nxprint-pdf-actions .print-tool-separator{height:28px!important;width:1px!important;background:#626262!important;margin:0 5px!important}
.employee-print-modal .nxprint-pdf-workspace{position:relative!important;display:flex!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;background:#333!important;padding:0!important}
.employee-print-modal .nxprint-thumbnails{width:375px!important;min-width:375px!important;background:#3b3b3b!important;border-right:1px solid #292929!important;overflow-y:auto!important;overflow-x:hidden!important;padding:20px 22px!important;display:flex!important;justify-content:flex-start!important;align-items:center!important;flex-direction:column!important}
.employee-print-modal .nxprint-thumb{width:155px!important;text-align:center!important;color:#fff!important;font-size:13px!important;padding:0 0 12px!important}
.employee-print-modal .nxprint-thumb-paper{width:145px!important;height:205px!important;background:#fff!important;margin:0 auto 7px!important;border:1px solid #aaa!important;box-shadow:0 2px 7px rgba(0,0,0,.35)!important;position:relative!important;padding:13px 9px!important;color:#1f3d68!important;font-size:7px!important;text-align:left!important}
.employee-print-modal .nxprint-thumb-paper span{font-weight:700!important;font-size:8px!important}.nxprint-thumb-paper i{display:block!important;height:1px!important;background:#777!important;margin:9px 4px!important}.nxprint-thumb-paper i:nth-child(3){width:75%!important}.nxprint-thumb-paper i:nth-child(4){width:60%!important}.nxprint-thumb-paper i:nth-child(5){width:82%!important}
.employee-print-modal .nxprint-thumb.active .nxprint-thumb-paper{outline:3px solid #79aef7!important;outline-offset:0!important}
.employee-print-modal .nxprint-thumb strong{font-size:13px!important;color:#fff!important}
.employee-print-modal .nxprint-pdf-frame{flex:1 1 auto!important;width:auto!important;min-width:0!important;min-height:0!important;margin:0!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;overflow:auto!important;padding:28px 35px 35px!important;background:#333!important}
.employee-print-modal .nxprint-pdf-frame iframe{display:block!important;flex:0 0 auto!important;width:900px!important;height:1150px!important;min-height:1150px!important;border:0!important;background:#fff!important;box-shadow:0 3px 18px rgba(0,0,0,.45)!important;transform-origin:top center!important}
@media(max-width:1000px){.employee-print-modal .nxprint-thumbnails{width:150px!important;min-width:150px!important}.employee-print-modal .nxprint-doc-title{min-width:180px!important}.employee-print-modal .nxprint-pdf-actions .nxprint-muted-tool{display:none!important}}
@media(max-width:700px){.employee-print-modal{padding:0!important}.employee-print-modal .employee-print-modal-window{width:100vw!important;height:100vh!important;border-radius:0!important}.nxprint-thumbnails{display:none!important}.employee-print-modal .nxprint-doc-title>span{display:none!important}.employee-print-modal .nxprint-pdf-actions .print-tool-separator{display:none!important}}

/* V89 — Aperçu avant impression simple, sans NXprint V2. */
.simple-print-preview{position:fixed!important;inset:0!important;z-index:4000!important;display:none!important;background:rgba(15,23,42,.45)!important;padding:18px!important;align-items:center!important;justify-content:center!important}
.simple-print-preview.open{display:flex!important}
.simple-print-preview .employee-print-modal-window{width:calc(100vw - 36px)!important;height:calc(100vh - 36px)!important;max-width:1500px!important;background:#fff!important;border:1px solid #d9e0ea!important;border-radius:10px!important;overflow:hidden!important;box-shadow:0 20px 60px rgba(0,0,0,.25)!important;display:flex!important;flex-direction:column!important}
.simple-print-header{height:72px;flex:0 0 72px;background:#fff;border-bottom:1px solid #e1e6ee;padding:0 20px;display:flex;align-items:center;justify-content:space-between}
.simple-print-title{display:flex;align-items:center;gap:12px}.simple-print-icon{width:42px;height:42px;border-radius:8px;background:#5b4ce8;color:#fff;display:grid;place-items:center;font-size:22px}.simple-print-title strong{display:block;font-size:19px;color:#182541}.simple-print-title small{display:block;margin-top:3px;color:#748199;font-size:12px}.simple-print-close{width:40px;height:40px;border:1px solid #d5dce7;border-radius:7px;background:#fff;font-size:24px;color:#33415c;cursor:pointer}
.simple-print-toolbar{height:58px;flex:0 0 58px;border-bottom:1px solid #e1e6ee;background:#fff;display:flex;align-items:center;padding:0 16px;gap:8px}.simple-tool{height:38px;border:1px solid #d5dce7;background:#fff;border-radius:7px;padding:0 12px;color:#26334d;cursor:pointer}.simple-tool:hover,.simple-tool.active{background:#eef3ff;border-color:#6c8ff0}.simple-print-nav,.simple-print-zoom,.simple-orientation{display:flex;align-items:center;gap:6px}.simple-print-nav span,.simple-print-zoom span{min-width:58px;text-align:center;font-size:13px}.simple-fit{margin-left:8px}.simple-orientation{margin-left:auto}
.simple-print-workspace{flex:1;min-height:0;display:grid;grid-template-columns:170px minmax(0,1fr) 235px;background:#35383d}.simple-print-thumbs{background:#f7f9fc;border-right:1px solid #dce2eb;padding:16px 12px;overflow:auto}.simple-print-thumbs h3,.simple-print-options h3{margin:0 0 14px;font-size:15px;color:#24314b}.simple-thumb{text-align:center;margin-bottom:15px;color:#41506b;font-size:12px}.simple-thumb-paper{width:120px;height:170px;margin:0 auto 7px;background:#fff;border:1px solid #d2d8e2;box-shadow:0 3px 9px rgba(0,0,0,.12);position:relative}.simple-thumb-paper:before{content:'NXPeople HR';position:absolute;left:10px;right:10px;top:14px;height:10px;background:#e6effc;color:#2e568d;font-size:6px}.simple-thumb-paper:after{content:'';position:absolute;left:10px;right:10px;top:40px;height:90px;background:repeating-linear-gradient(to bottom,#e5e9ef 0 2px,transparent 2px 12px)}.simple-thumb.active .simple-thumb-paper{outline:2px solid #5b91f5}
.simple-print-viewer{min-width:0;overflow:auto;background:#35383d;padding:26px;display:flex;justify-content:center;align-items:flex-start}.simple-print-frame{min-width:0;display:flex;justify-content:center;align-items:flex-start}.simple-print-frame iframe{display:block;border:0;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.42);transform-origin:top center}
.simple-print-options{background:#fff;border-left:1px solid #dce2eb;padding:18px;overflow:auto}.simple-print-options label{display:block;font-size:12px;font-weight:700;color:#5d6980;margin-bottom:16px}.simple-print-options select{display:block;width:100%;height:38px;margin-top:7px;border:1px solid #d5dce7;border-radius:7px;background:#fff;padding:0 9px;color:#26334d}.simple-option-label{font-size:12px;font-weight:700;color:#5d6980;margin-bottom:7px}.simple-choice{display:flex;gap:7px;margin-bottom:17px}.simple-choice button,.simple-side-zoom button{height:38px;border:1px solid #d5dce7;background:#fff;border-radius:7px;cursor:pointer}.simple-choice button{flex:1}.simple-choice button.active{background:#eef3ff;border-color:#5b91f5;color:#215bb9;font-weight:700}.simple-side-zoom{display:grid;grid-template-columns:40px 1fr 40px;gap:7px;margin-bottom:20px}.simple-side-zoom span{height:38px;border:1px solid #d5dce7;border-radius:7px;display:grid;place-items:center;font-size:13px}.simple-actions{display:flex;flex-direction:column;gap:9px}.simple-action{height:43px;border:0;border-radius:7px;font-weight:700;cursor:pointer}.simple-action.print{background:#5144df;color:#fff}.simple-action.pdf{background:#13a66a;color:#fff}.simple-action.email{background:#2e78df;color:#fff}.simple-action.close{background:#f3f5f8;color:#26334d;border:1px solid #d5dce7}
@media(max-width:900px){.simple-print-preview{padding:0!important}.simple-print-preview .employee-print-modal-window{width:100vw!important;height:100vh!important;border-radius:0!important}.simple-print-workspace{grid-template-columns:0 minmax(0,1fr) 210px}.simple-print-thumbs{display:none}.simple-print-toolbar{overflow:auto}.simple-orientation{margin-left:8px}.simple-print-title small{display:none}}

/* V90 — Aperçu impression : commandes compactes 25px, sans doublon Portrait/Paysage. */
.simple-print-preview .simple-print-toolbar .simple-tool{
  height:25px!important;min-height:25px!important;max-height:25px!important;padding:0 10px!important;line-height:23px!important;
}
.simple-print-preview .simple-print-toolbar .simple-print-nav,
.simple-print-preview .simple-print-toolbar .simple-print-zoom{gap:5px!important}
.simple-print-preview .simple-print-toolbar .simple-print-nav span,
.simple-print-preview .simple-print-toolbar .simple-print-zoom span{line-height:25px!important;min-height:25px!important}
.simple-print-preview .simple-print-toolbar .simple-fit{margin-left:5px!important}
.simple-print-preview .simple-print-options .simple-choice{gap:5px!important}
.simple-print-preview .simple-print-options .simple-choice button,
.simple-print-preview .simple-print-options .simple-side-zoom button,
.simple-print-preview .simple-print-options .simple-side-zoom span{
  height:25px!important;min-height:25px!important;max-height:25px!important;line-height:23px!important;padding:0 7px!important;
}
.simple-print-preview .simple-print-options .simple-side-zoom{grid-template-columns:35px 1fr 35px!important;gap:5px!important}
.simple-print-preview .simple-print-options .simple-actions{gap:5px!important}
.simple-print-preview .simple-print-options .simple-action{
  height:25px!important;min-height:25px!important;max-height:25px!important;line-height:23px!important;padding:0 8px!important;
}
.simple-print-preview .simple-print-close{height:30px!important;min-height:30px!important;width:30px!important;font-size:18px!important}
.simple-print-preview .simple-print-toolbar{gap:5px!important}
.simple-print-preview .simple-print-toolbar .simple-orientation{display:none!important}
/* V92 — Déclaration trimestrielle CNSS et aperçu avant impression. */
.cnss-page{height:calc(100vh - 145px);min-height:0;overflow:hidden}.cnss-card{height:100%;padding:18px;display:flex;flex-direction:column;gap:14px}.cnss-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #e1e6ee;padding-bottom:14px}.cnss-head h2{margin:4px 0;font-size:21px;color:#1b2944}.cnss-head p{margin:0;color:#758198;font-size:13px}.cnss-filters{display:grid;grid-template-columns:minmax(260px,1fr) 180px 180px;gap:12px}.cnss-filters label{font-size:12px;color:#66728a;font-weight:700}.cnss-filters select{display:block;width:100%;height:38px;margin-top:6px;border:1px solid #d7deea;border-radius:7px;background:#fff;padding:0 9px}.cnss-summary{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:10px}.cnss-summary>div{border:1px solid #e0e5ec;border-radius:7px;padding:10px 12px;background:#fafbfd}.cnss-summary span{display:block;font-size:11px;color:#7a869b}.cnss-summary b{display:block;margin-top:4px;font-size:14px;color:#1d2b46}.cnss-table-wrap{flex:1;min-height:0;overflow:auto;border:1px solid #dce2eb;border-radius:7px}.cnss-table{width:100%;border-collapse:collapse;font-size:12px}.cnss-table th{position:sticky;top:0;background:#f3f6fa;color:#55627a;text-align:left;padding:9px;border-bottom:1px solid #dce2eb}.cnss-table td{padding:8px 9px;border-bottom:1px solid #e7ebf1;color:#26344e}.cnss-table .money{text-align:right}.cnss-table .total{font-weight:700}.cnss-empty{text-align:center;padding:40px!important;color:#7a869b!important}
.cnss-print-modal{position:fixed;inset:0;z-index:5000;background:rgba(20,25,35,.72);display:none;padding:0}.cnss-print-modal.open{display:flex}.cnss-print-window{width:100%;height:100%;background:#333;display:flex;flex-direction:column}.cnss-print-top{height:42px;flex:0 0 42px;background:#fff;border-bottom:1px solid #d7dce4;display:flex;align-items:center;padding:0 18px;justify-content:space-between}.cnss-print-top strong{font-size:14px}.cnss-print-top span{margin-left:16px;color:#6f7b90;font-size:12px}.cnss-print-top button{width:28px;height:28px;border:1px solid #cfd6e1;border-radius:4px;background:#fff;font-size:19px}.cnss-print-toolbar{height:52px;flex:0 0 52px;background:#171717;color:#fff;display:flex;align-items:center;padding:0 18px;gap:7px}.cnss-print-toolbar button{height:34px;min-width:34px;border:1px solid #555;background:#414141;color:#fff;border-radius:5px;padding:0 12px;cursor:pointer}.cnss-print-toolbar button.active{border-color:#fff;background:#555}.cnss-print-toolbar span{font-size:13px;margin:0 5px}.cnss-print-pages{margin-left:8px!important}.cnss-print-action{margin-left:auto!important;background:#fff!important;color:#171717!important;font-weight:700}.cnss-print-body{flex:1;min-height:0;overflow:auto;background:#333;padding:30px;display:flex;justify-content:center}.cnss-print-stage{transform-origin:top center}.cnss-paper{width:1123px;min-height:794px;background:#fff;color:#111;padding:24px 34px;box-shadow:0 8px 28px rgba(0,0,0,.45);font-family:"Times New Roman",serif;font-size:10px}.cnss-paper-head{display:grid;grid-template-columns:24% 52% 24%;align-items:start;border-bottom:1px solid #777;padding-bottom:7px}.cnss-logo-left{color:#147a21;font-size:12px;font-weight:700;line-height:1.15}.cnss-logo-left b{font-size:18px;font-style:italic}.cnss-paper-title{text-align:center;color:#08791c;font-size:19px;line-height:1.05}.cnss-paper-title small{display:block;color:#111;font-size:9px;margin-top:4px}.cnss-logo-right{text-align:right;color:#16882a;font-size:13px;direction:rtl}.cnss-logo-right b{font-size:17px}.cnss-paper-info{display:grid;grid-template-columns:18% 18% 18% 46%;gap:0;margin:12px 0}.cnss-paper-info>div{border:1px solid #777;padding:7px;min-height:45px}.cnss-paper-table{width:100%;border-collapse:collapse;table-layout:fixed}.cnss-paper-table th,.cnss-paper-table td{border:1px solid #555;padding:4px 3px;text-align:center;vertical-align:top}.cnss-paper-table th{font-weight:700;background:#fff}.cnss-paper-table th:nth-child(1){width:3%}.cnss-paper-table th:nth-child(2){width:9%}.cnss-paper-table th:nth-child(3){width:4%}.cnss-paper-table th:nth-child(4){width:31%}.cnss-paper-table th:nth-child(5){width:8%}.cnss-paper-table th:nth-child(6){width:7%}.cnss-paper-table th:nth-child(7){width:9%}.cnss-paper-table th:nth-child(n+8){width:9.7%}.cnss-paper-table tbody td{height:46px}.cnss-paper-table .money{text-align:right}.cnss-paper-footer{display:flex;justify-content:space-between;margin-top:16px;font-size:10px}.cnss-paper.landscape{width:1123px}.cnss-paper.portrait{width:794px;min-height:1123px}.cnss-print-modal .cnss-paper.portrait .cnss-paper-head{grid-template-columns:25% 50% 25%}.cnss-print-modal .cnss-paper.portrait .cnss-paper-title{font-size:14px}
@media print{body>*{display:none!important}.cnss-print-modal{display:flex!important;position:static!important;background:#fff!important}.cnss-print-window{display:block!important}.cnss-print-top,.cnss-print-toolbar{display:none!important}.cnss-print-body{display:block!important;padding:0!important;overflow:visible!important;background:#fff!important}.cnss-paper{box-shadow:none!important;transform:none!important;margin:0!important}}


/* V93 — Déclaration trimestrielle CNSS : Arial, colonnes rééquilibrées, 12 lignes/page. */
.cnss-page,.cnss-page button,.cnss-page input,.cnss-page select,.cnss-print-modal,.cnss-print-modal button{font-family:Arial,Helvetica,sans-serif!important;}
.cnss-paper,.cnss-paper table,.cnss-paper th,.cnss-paper td{font-family:Arial,Helvetica,sans-serif!important;}
.cnss-paper{font-size:9px!important;}
.cnss-paper-info{grid-template-columns:16% 16% 18% 50%!important;gap:6px!important;}
.cnss-paper-info>div{min-height:54px!important;padding:5px 7px!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:2px!important;}
.cnss-paper-info .info-label{font-size:8px!important;font-weight:700!important;text-transform:uppercase!important;color:#3a4658!important;}
.cnss-paper-info b{font-size:11px!important;line-height:1.15!important;}
.cnss-paper-info span:not(.info-label){font-size:9px!important;line-height:1.12!important;}
.cnss-paper-table{table-layout:fixed!important;}
.cnss-paper-table th:nth-child(1){width:3%!important;}
.cnss-paper-table th:nth-child(2){width:10%!important;}
.cnss-paper-table th:nth-child(3){width:20%!important;}
.cnss-paper-table th:nth-child(4){width:9%!important;}
.cnss-paper-table th:nth-child(5){width:8%!important;}
.cnss-paper-table th:nth-child(6){width:10%!important;}
.cnss-paper-table th:nth-child(7),.cnss-paper-table th:nth-child(8),.cnss-paper-table th:nth-child(9){width:10%!important;}
.cnss-paper-table th:nth-child(10){width:10%!important;}
.cnss-paper-table th,.cnss-paper-table td{padding:4px 4px!important;font-size:8.5px!important;}
.cnss-paper-table tbody td{height:40px!important;}
.cnss-paper-table .identity-cell{text-align:left!important;white-space:nowrap!important;}
.cnss-paper-table .money{text-align:right!important;white-space:nowrap!important;}
.cnss-paper-sheet{display:none;justify-content:center;align-items:flex-start;width:100%;}
.cnss-paper-sheet.active{display:flex!important;}
.cnss-print-stage{width:100%;}
@media print{
  .cnss-print-modal{position:static!important;display:block!important;background:#fff!important;}
  .cnss-print-window{display:block!important;height:auto!important;background:#fff!important;}
  .cnss-print-top,.cnss-print-toolbar{display:none!important;}
  .cnss-print-body{display:block!important;padding:0!important;overflow:visible!important;background:#fff!important;}
  .cnss-print-stage{width:100%!important;}
  .cnss-paper-sheet{display:block!important;page-break-after:always!important;break-after:page!important;}
  .cnss-paper-sheet:last-child{page-break-after:auto!important;break-after:auto!important;}
  .cnss-paper{box-shadow:none!important;transform:none!important;margin:0 auto!important;}
}
/* V94 — CNSS finalisation */
.cnss-paper{font-family:Arial,Helvetica,sans-serif!important;font-size:9.5px!important;line-height:1.05!important;}
.cnss-paper-title b{font-size:19px!important;text-transform:uppercase!important;}
.cnss-paper-info{grid-template-columns:16% 16% 18% 50%!important;gap:5px!important;}
.cnss-paper-info>div{border:1px solid #666!important;border-radius:2px!important;padding:5px 7px!important;min-height:52px!important;}
.cnss-paper-info .info-pair{display:flex!important;flex-direction:column!important;gap:2px!important;}
.cnss-paper-info .info-dual{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
.cnss-paper-info .info-label{font-size:8px!important;line-height:1!important;font-weight:700!important;text-transform:uppercase!important;}
.cnss-paper-info b{font-size:10.5px!important;line-height:1.05!important;}
.cnss-paper-info span:not(.info-label){font-size:8.5px!important;line-height:1.05!important;}
.cnss-paper-table{table-layout:fixed!important;border:1px solid #555!important;border-radius:2px!important;overflow:hidden!important;}
.cnss-paper-table th,.cnss-paper-table td{font-family:Arial,Helvetica,sans-serif!important;font-size:9.3px!important;line-height:1.02!important;padding:2.5px 3.5px!important;}
.cnss-paper-table th:nth-child(1){width:3%!important;}
.cnss-paper-table th:nth-child(2){width:10%!important;}
.cnss-paper-table th:nth-child(3){width:20%!important;}
.cnss-paper-table th:nth-child(4){width:8%!important;}
.cnss-paper-table th:nth-child(5){width:8%!important;}
.cnss-paper-table th:nth-child(6){width:8%!important;}
.cnss-paper-table th:nth-child(7),.cnss-paper-table th:nth-child(8),.cnss-paper-table th:nth-child(9){width:11%!important;}
.cnss-paper-table th:nth-child(10){width:10%!important;}
.cnss-paper-table tbody td{height:31px!important;vertical-align:middle!important;}
.cnss-paper-table tfoot td{height:27px!important;font-weight:700!important;}
.cnss-paper-table .identity-cell{text-align:left!important;white-space:nowrap!important;}
.cnss-paper-table .money{text-align:right!important;white-space:nowrap!important;}
.cnss-paper-footer{margin-top:7px!important;font-size:8.8px!important;line-height:1.12!important;}
.cnss-paper-footer>div{width:49%!important;}
.cnss-paper-footer>div:last-child{text-align:right!important;}

/* V95 — Déclaration CNSS : titre, encadrement tableau, cumul des reports et styles finaux. */
.cnss-paper-title b{
  font-family:"Times New Roman",Times,serif!important;
  color:#08791c!important;
  font-size:16px!important;
  line-height:1!important;
  white-space:nowrap!important;
  display:block!important;
}
.cnss-paper-table-frame{
  border:1px solid #555!important;
  border-radius:2px!important;
  overflow:hidden!important;
  width:100%!important;
}
.cnss-paper-table-frame .cnss-paper-table{
  border:0!important;
  border-radius:0!important;
  width:100%!important;
  margin:0!important;
}
.cnss-paper-table-frame .cnss-paper-table th:first-child{border-left:0!important;}
.cnss-paper-table-frame .cnss-paper-table tr:first-child th{border-top:0!important;}
.cnss-paper-table-frame .cnss-paper-table tr:last-child td{border-bottom:0!important;}
.cnss-paper-table-frame .cnss-paper-table th:last-child,
.cnss-paper-table-frame .cnss-paper-table td:last-child{border-right:0!important;}
@media (max-width: 900px){
  .cnss-paper-title b{font-size:13px!important;}
}
.cnss-paper.portrait .cnss-paper-title b{font-size:12px!important;}

/* V95 — critères CNSS et mise en page finale. */
.cnss-filters{grid-template-columns:minmax(240px,1fr) 150px 150px 210px!important;}
.cnss-paper-title b{font-family:"Times New Roman",Times,serif!important;white-space:nowrap!important;font-size:16px!important;}
.cnss-paper-table-frame{border:1px solid #555!important;border-radius:2px!important;overflow:hidden!important;width:100%!important;}
.cnss-paper-table-frame .cnss-paper-table{border:0!important;border-radius:0!important;margin:0!important;width:100%!important;}
.cnss-paper-table-frame .cnss-paper-table tr:first-child th{border-top:0!important;}
.cnss-paper-table-frame .cnss-paper-table tr:last-child td{border-bottom:0!important;}
.cnss-paper-table-frame .cnss-paper-table th:first-child,.cnss-paper-table-frame .cnss-paper-table td:first-child{border-left:0!important;}
.cnss-paper-table-frame .cnss-paper-table th:last-child,.cnss-paper-table-frame .cnss-paper-table td:last-child{border-right:0!important;}
.cnss-paper-table-frame .cnss-paper-table th,.cnss-paper-table-frame .cnss-paper-table td{border-color:#555!important;}
.cnss-paper-title small{font-family:Arial,Helvetica,sans-serif!important;}
@media(max-width:1100px){.cnss-filters{grid-template-columns:1fr 1fr!important;}}
@media(max-width:900px){.cnss-paper-title b{font-size:13px!important;}.cnss-paper.portrait .cnss-paper-title b{font-size:11px!important;}}
/* V96 — CNSS : optimisation des largeurs, lignes compactes et pied de page. */
.cnss-paper-table-frame .cnss-paper-table th:nth-child(1),
.cnss-paper-table-frame .cnss-paper-table td:nth-child(1){width:3%!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(2),
.cnss-paper-table-frame .cnss-paper-table td:nth-child(2){width:8%!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(3),
.cnss-paper-table-frame .cnss-paper-table td:nth-child(3){width:16%!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(4),
.cnss-paper-table-frame .cnss-paper-table td:nth-child(4){width:7%!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(5),
.cnss-paper-table-frame .cnss-paper-table td:nth-child(5){width:6%!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(6),
.cnss-paper-table-frame .cnss-paper-table td:nth-child(6){width:6%!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(7),
.cnss-paper-table-frame .cnss-paper-table td:nth-child(7),
.cnss-paper-table-frame .cnss-paper-table th:nth-child(8),
.cnss-paper-table-frame .cnss-paper-table td:nth-child(8),
.cnss-paper-table-frame .cnss-paper-table th:nth-child(9),
.cnss-paper-table-frame .cnss-paper-table td:nth-child(9){width:15.333333%!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(10),
.cnss-paper-table-frame .cnss-paper-table td:nth-child(10){width:8%!important;}
.cnss-paper-table-frame .cnss-paper-table th,
.cnss-paper-table-frame .cnss-paper-table td{padding:2px 3px!important;font-size:9.4px!important;line-height:1!important;}
.cnss-paper-table-frame .cnss-paper-table tbody td{height:26px!important;vertical-align:middle!important;}
.cnss-paper-table-frame .cnss-paper-table tfoot td{height:25px!important;}
.cnss-paper-footer{margin-top:11px!important;font-size:9px!important;line-height:1.22!important;min-height:46px!important;align-items:flex-start!important;}
.cnss-paper-footer>div{min-height:43px!important;}
.cnss-paper-footer>div:last-child{padding-top:1px!important;}


/* V97 — CNSS : colonnes mensuelles et total de même largeur, gain reporte sur l'identité. */
.cnss-paper-table{table-layout:fixed!important;width:100%!important;}
.cnss-paper-table col:nth-child(1){width:3%!important;}
.cnss-paper-table col:nth-child(2){width:8%!important;}
.cnss-paper-table col:nth-child(3){width:26%!important;}
.cnss-paper-table col:nth-child(4){width:7%!important;}
.cnss-paper-table col:nth-child(5){width:6%!important;}
.cnss-paper-table col:nth-child(6){width:6%!important;}
.cnss-paper-table col:nth-child(7),.cnss-paper-table col:nth-child(8),.cnss-paper-table col:nth-child(9),.cnss-paper-table col:nth-child(10){width:11%!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(2),.cnss-paper-table-frame .cnss-paper-table td:nth-child(2){width:auto!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(3),.cnss-paper-table-frame .cnss-paper-table td:nth-child(3){width:auto!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(4),.cnss-paper-table-frame .cnss-paper-table td:nth-child(4){width:auto!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(5),.cnss-paper-table-frame .cnss-paper-table td:nth-child(5){width:auto!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(6),.cnss-paper-table-frame .cnss-paper-table td:nth-child(6){width:auto!important;}
.cnss-paper-table-frame .cnss-paper-table th:nth-child(7),.cnss-paper-table-frame .cnss-paper-table td:nth-child(7),
.cnss-paper-table-frame .cnss-paper-table th:nth-child(8),.cnss-paper-table-frame .cnss-paper-table td:nth-child(8),
.cnss-paper-table-frame .cnss-paper-table th:nth-child(9),.cnss-paper-table-frame .cnss-paper-table td:nth-child(9),
.cnss-paper-table-frame .cnss-paper-table th:nth-child(10),.cnss-paper-table-frame .cnss-paper-table td:nth-child(10){width:auto!important;}

/* V97 — Fiche individuelle : bouton de préparation du fichier CNSS. */
.employee-page .employee-actions-panel .employee-cnss-file{background:#3b3b3b!important;color:#fff!important;}
.employee-page .employee-actions-panel .employee-cnss-file:hover{background:#323232!important;}

/* V100 — CNSS : génération du fichier plat uniquement depuis l'état CNSS. */
.cnss-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.cnss-flat-file-generate{white-space:nowrap}
@media(max-width:900px){.cnss-head-actions{width:100%;justify-content:flex-start}.cnss-head{flex-direction:column;gap:10px}}
/* V104 — Sélection avancée génération/calcul et estimation du temps. */
.generation-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.calc-eta-line{display:flex;justify-content:space-between;gap:12px;margin-top:7px;padding-top:7px;border-top:1px solid #edf0f4;color:#7a8599;font-size:9px;}
.payslip-calc-trace{margin:16px 26px 20px;max-height:310px;}
.payslip-calc-trace .generation-table-wrap{max-height:230px;}
.payslip-calc-trace .generation-table-wrap table{font-size:10px;}
.payslip-calc-trace .generation-table-wrap td{white-space:normal;vertical-align:top;}
.payslip-calc-trace .generation-table-wrap th:nth-child(1){width:36px;}
.payslip-calc-trace .generation-table-wrap th:nth-child(5){width:75px;}
@media (min-width:901px){
  .generation-dialog{width:min(980px,calc(100vw - 40px));}
}
@media(max-width:900px){
  .generation-grid-4{grid-template-columns:repeat(2,minmax(0,1fr));}
  .calc-eta-line{flex-direction:column;gap:4px;}
}
@media(max-width:700px){
  .generation-grid-4{grid-template-columns:1fr;}
}


/* V105 — NXPRINT Maquette 3 : barre titre 50px, commandes compactes et aperçu prioritaire. */
.simple-print-preview .employee-print-modal-window{max-width:1540px!important;width:calc(100vw - 24px)!important;height:calc(100vh - 24px)!important;border-radius:7px!important}
.simple-print-header{height:50px!important;min-height:50px!important;flex:0 0 50px!important;background:#24384d!important;padding:0 14px!important;border-bottom:0!important;color:#fff!important}
.simple-print-title{gap:9px!important}.simple-print-icon{width:30px!important;height:30px!important;border-radius:5px!important;background:#1d86e8!important;font-size:17px!important}.simple-print-title strong{font-size:16px!important;color:#fff!important}.simple-print-title small{font-size:10px!important;color:#cbd6e3!important;margin-top:1px!important}.simple-print-close{width:26px!important;height:26px!important;min-width:26px!important;border:0!important;background:transparent!important;color:#fff!important;font-size:21px!important;padding:0!important}
.simple-print-toolbar{height:34px!important;min-height:34px!important;flex:0 0 34px!important;padding:0 10px!important;gap:5px!important;background:#fff!important}
.simple-toolbar-group{display:flex!important;align-items:center!important;gap:3px!important}.simple-toolbar-separator{width:1px;height:20px;background:#d7dee7;margin:0 5px}.simple-toolbar-spacer{flex:1}.simple-icon-tool{width:25px!important;height:25px!important;min-width:25px!important;max-width:25px!important;padding:0!important;display:grid!important;place-items:center!important;border:1px solid #d2dbe6!important;border-radius:4px!important;background:#fff!important;color:#33445b!important;font-size:12px!important;line-height:23px!important;cursor:pointer!important}.simple-icon-tool:hover,.simple-icon-tool:focus{background:#eef5ff!important;border-color:#76a9e7!important}.simple-icon-tool:disabled{opacity:.35!important;cursor:default!important}.simple-page-nav span,.simple-zoom-value{min-width:44px;text-align:center;font-size:11px;color:#44536a}.simple-print-workspace{grid-template-columns:128px minmax(0,1fr) 218px!important;background:#eef1f5!important}.simple-print-thumbs{padding:11px 8px!important;background:#f8fafc!important}.simple-print-thumbs h3,.simple-print-options h3{font-size:13px!important;margin:0 0 9px!important}.simple-thumb{font-size:10px!important}.simple-thumb-paper{width:92px!important;height:130px!important}.simple-print-viewer{padding:14px!important;background:#dfe5ec!important;align-items:flex-start!important}.simple-print-frame{width:auto!important;height:auto!important}.simple-print-frame iframe{box-shadow:0 5px 18px rgba(0,0,0,.22)!important}
.simple-print-options{padding:13px!important;background:#fff!important}.simple-print-options label{font-size:10px!important;margin-bottom:10px!important;color:#526177!important}.simple-print-options select{height:29px!important;margin-top:5px!important;border-radius:4px!important;font-size:11px!important;padding:0 7px!important}.simple-option-section{margin-bottom:10px}.simple-option-value{height:29px;border:1px solid #d5dce7;border-radius:4px;padding:0 8px;display:flex;align-items:center;font-size:11px;color:#26344b;background:#fafbfd}.simple-option-label{font-size:10px!important;margin-bottom:5px!important;color:#526177!important}.simple-icon-choice{display:flex;gap:5px;margin-bottom:11px}.simple-icon-choice button{width:42px;height:30px;border:1px solid #d5dce7;background:#fff;border-radius:4px;cursor:pointer;font-size:19px;color:#4b5a70}.simple-icon-choice button.active{background:#eaf4ff;border-color:#3188e8;color:#1477d0}.simple-option-row{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#526177;margin:9px 0}.simple-toggle{width:28px;height:18px;border:1px solid #cbd5e1;border-radius:10px;background:#e7ecf2;color:#fff;font-size:10px;cursor:pointer}.simple-toggle.active{background:#2088e8;border-color:#2088e8}.simple-side-zoom{display:grid;grid-template-columns:28px 1fr 28px;gap:4px;margin-bottom:13px}.simple-side-zoom button,.simple-side-zoom span{height:27px;border:1px solid #d5dce7;border-radius:4px;background:#fff;display:grid;place-items:center;font-size:11px}.simple-actions{gap:5px!important;align-items:center}.simple-action{width:140px!important;height:25px!important;min-height:25px!important;max-height:25px!important;padding:0 7px!important;border-radius:4px!important;font-size:10px!important;font-weight:600!important;line-height:25px!important}.simple-action.print{background:#197fe5!important}.simple-action.pdf{background:#20a36a!important}.simple-action.email{background:#657487!important}.simple-action.close{display:none!important}
@media(max-width:900px){.simple-print-workspace{grid-template-columns:0 minmax(0,1fr) 200px!important}.simple-print-thumbs{display:none!important}.simple-print-options{padding:10px!important}.simple-action{width:140px!important}}

/* V106 — Modèle CNSS officiel modernisé fourni par l'utilisateur. */
.cnss-print-window{background:#eef2f7!important;}
.cnss-print-top{height:50px!important;flex-basis:50px!important;padding:0 20px!important;background:#fff!important;}
.cnss-print-top strong{color:#16477e!important;font-size:15px!important;letter-spacing:.3px!important;}
.cnss-print-toolbar{height:46px!important;flex-basis:46px!important;background:#123f6b!important;padding:0 16px!important;gap:6px!important;}
.cnss-print-toolbar button{height:30px!important;min-width:30px!important;border:1px solid rgba(255,255,255,.22)!important;background:#1d527f!important;border-radius:5px!important;padding:0 9px!important;font-weight:700!important;}
.cnss-print-toolbar button.active{background:#fff!important;color:#16477e!important;border-color:#fff!important;}
.cnss-print-toolbar .cnss-print-action{background:#fff!important;color:#16477e!important;border-color:#fff!important;margin-left:auto!important;padding:0 14px!important;}
.nx-toolbar-sep{height:24px;width:1px;background:rgba(255,255,255,.28);margin:0 4px!important;}
.cnss-print-body{background:#cfd7e1!important;padding:26px!important;}
.cnss-paper{width:1123px!important;min-height:794px!important;padding:16px 18px 12px!important;border-radius:0!important;box-shadow:0 5px 22px rgba(20,45,75,.28)!important;color:#123b69!important;background:#fff!important;}
.cnss-paper-head{display:grid!important;grid-template-columns:27% 46% 27%!important;align-items:center!important;border-bottom:0!important;padding-bottom:8px!important;min-height:88px!important;}
.cnss-brand-block img{display:block;width:100%;height:78px;object-fit:contain;object-position:left center;}
.cnss-brand-right img{object-position:right center;}
.cnss-paper-title{text-align:left!important;padding:0 8px!important;color:#153f73!important;font-family:Arial,Helvetica,sans-serif!important;}
.cnss-paper-title b{display:block!important;font-family:Arial,Helvetica,sans-serif!important;font-size:25px!important;line-height:1!important;color:#123e75!important;white-space:nowrap!important;}
.cnss-paper-title strong{display:block!important;font-size:21px!important;line-height:1.08!important;color:#8bb8dc!important;white-space:nowrap!important;margin-top:3px!important;}
.cnss-paper-title small{display:block!important;font-size:9.5px!important;line-height:1.15!important;color:#174b82!important;margin-top:7px!important;white-space:nowrap!important;}
.cnss-paper-info{grid-template-columns:14.5% 12% 15.5% 10.5% 7.5% 40%!important;gap:7px!important;margin:6px 0 10px!important;}
.cnss-paper-info>div{border:0!important;border-radius:7px!important;background:#edf5fb!important;min-height:57px!important;padding:8px 10px!important;}
.cnss-paper-info>div:nth-child(1),.cnss-paper-info>div:nth-child(2),.cnss-paper-info>div:nth-child(3),.cnss-paper-info>div:nth-child(4),.cnss-paper-info>div:nth-child(5){display:flex!important;align-items:center!important;justify-content:center!important;}
.cnss-paper-info .info-pair{gap:3px!important;}
.cnss-paper-info .info-label{font-size:8px!important;color:#17508a!important;letter-spacing:.2px!important;}
.cnss-paper-info b{font-size:11px!important;color:#122f5e!important;line-height:1.05!important;}
.cnss-paper-info span:not(.info-label){font-size:8.5px!important;color:#123f6f!important;}
.cnss-paper-table-frame{border:0!important;border-radius:6px!important;overflow:hidden!important;}
.cnss-paper-table{border-collapse:collapse!important;table-layout:fixed!important;}
.cnss-paper-table th,.cnss-paper-table td{border:1px solid #c4d7e8!important;font-family:Arial,Helvetica,sans-serif!important;font-size:9px!important;line-height:1.1!important;padding:4px 5px!important;color:#173f70!important;}
.cnss-paper-table thead th{background:#075081!important;color:#fff!important;font-weight:700!important;vertical-align:middle!important;}
.cnss-paper-table thead tr:nth-child(2) th{background:#0b5a88!important;}
.cnss-paper-table tbody tr:nth-child(even) td{background:#eef6fb!important;}
.cnss-paper-table tbody td{height:28px!important;vertical-align:middle!important;}
.cnss-paper-table .identity-cell{text-align:left!important;}
.cnss-paper-table .money{text-align:right!important;}
.cnss-paper-table tfoot td{background:#dceffb!important;color:#133d70!important;font-size:10px!important;height:28px!important;}
.cnss-paper-bottom-summary{display:grid!important;grid-template-columns:20% 23% 20% 1fr!important;gap:9px!important;margin-top:10px!important;}
.cnss-stat-card,.cnss-compliance{min-height:58px!important;border-radius:7px!important;background:#edf5fb!important;display:flex!important;align-items:center!important;padding:7px 12px!important;}
.cnss-stat-card>span{font-size:23px!important;color:#075080!important;width:38px!important;text-align:center!important;}
.cnss-stat-card small{display:block!important;font-size:8px!important;color:#17508a!important;font-weight:700!important;}
.cnss-stat-card b{display:block!important;font-size:17px!important;color:#153e73!important;margin-top:2px!important;}
.cnss-compliance{background:#e8f7f4!important;gap:12px!important;}
.cnss-check{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#07967e;color:#fff;font-size:27px;font-weight:700;flex:none;}
.cnss-compliance b{display:block!important;color:#087a6b!important;font-size:12px!important;}
.cnss-compliance small{display:block!important;color:#287c73!important;font-size:8.5px!important;margin-top:3px!important;}
.cnss-paper-footer{margin-top:8px!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;font-size:9px!important;color:#154a85!important;}
.cnss-total-words{width:55%!important;line-height:1.35!important;padding-top:2px!important;}
.cnss-signature{width:42%!important;display:flex!important;justify-content:flex-end!important;gap:16px!important;align-items:flex-start!important;}
.cnss-qr{width:58px;height:58px;border:2px solid #111;background-color:#fff;display:grid;grid-template-columns:repeat(9,1fr);gap:1px;padding:3px;}
.cnss-qr i{background:#111;display:block;}
.cnss-qr i:nth-child(2),.cnss-qr i:nth-child(4),.cnss-qr i:nth-child(7){background:#fff;}
.cnss-signature-box{min-width:220px;text-align:left!important;border-left:2px solid #bdd4e7;padding-left:16px;line-height:1.25!important;}
.cnss-signature-box b{font-size:9px!important;color:#173f70!important;}
.signature-line{height:34px;border:1px solid #b9d2e6;border-radius:3px;margin-top:5px;background:#fff;}
.cnss-paper-legal{display:flex!important;justify-content:space-between!important;border-top:1px solid #a8c9e2!important;margin-top:8px!important;padding-top:5px!important;font-size:8px!important;color:#124b83!important;}
.cnss-paper.portrait{width:794px!important;min-height:1123px!important;}
.cnss-paper.portrait .cnss-paper-title b{font-size:15px!important;}
.cnss-paper.portrait .cnss-paper-title strong{font-size:13px!important;}
@media print{
  .cnss-paper{width:1123px!important;min-height:794px!important;padding:16px 18px 12px!important;}
  .cnss-paper.portrait{width:794px!important;min-height:1123px!important;}
  @page{size:A4 landscape;margin:0;}
}

/* Déclaration annuelle des impôts - NXPeople / NXPRINT */
.tax-annual-page,.tax-annual-page button,.tax-annual-page input,.tax-annual-page select,.tax-annual-print-modal,.tax-annual-print-modal button{font-family:Arial,Helvetica,sans-serif!important}.tax-annual-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.tax-annual-head-actions{display:flex;gap:8px;align-items:center}.tax-annual-head-actions .primary,.tax-annex-btn{height:34px;display:inline-flex;align-items:center;padding:0 14px;text-decoration:none}.tax-annual-filters{display:grid;grid-template-columns:300px 150px;gap:12px;margin:18px 0}.tax-annual-filters label{font-size:12px;font-weight:700}.tax-annual-filters select{display:block;width:100%;margin-top:6px;height:36px;border:1px solid #d4dce7;border-radius:6px;padding:0 10px;background:#fff}.tax-annual-summary{display:grid;grid-template-columns:1.5fr .6fr .7fr 1fr;gap:10px;margin-bottom:14px}.tax-annual-summary>div{background:#eef6fd;border:1px solid #dce8f3;border-radius:7px;padding:10px 13px}.tax-annual-summary span{display:block;font-size:11px;color:#718096}.tax-annual-summary b{display:block;margin-top:3px;font-size:15px;color:#123b70}.tax-annual-table-wrap{overflow:auto}.tax-annual-table{width:100%;border-collapse:collapse;font-size:11px}.tax-annual-table th,.tax-annual-table td{border:1px solid #d5e0eb;padding:7px 6px;white-space:nowrap}.tax-annual-table th{background:#07548a;color:#fff;font-weight:700}.tax-annual-table tbody tr:nth-child(even){background:#f0f7fc}.tax-annual-table .money{text-align:right}.tax-empty{height:180px;text-align:center;color:#718096}.tax-annual-note{margin-top:12px;padding:10px 13px;border-left:4px solid #e0a500;background:#fff8df;color:#6b5a21;font-size:12px}.tax-annual-print-modal{position:fixed;inset:0;z-index:5000;background:rgba(20,25,35,.72);display:none}.tax-annual-print-modal.open{display:flex}.tax-annual-print-window{width:100%;height:100%;background:#333;display:flex;flex-direction:column}.tax-annual-print-top{height:42px;flex:0 0 42px;background:#fff;border-bottom:1px solid #d7dce4;display:flex;align-items:center;padding:0 18px;justify-content:space-between}.tax-annual-print-top strong{font-size:14px}.tax-annual-print-top span{margin-left:16px;color:#6f7b90;font-size:12px}.tax-annual-print-top button{width:28px;height:28px;border:1px solid #cfd6e1;border-radius:4px;background:#fff;font-size:19px}.tax-annual-print-toolbar{height:52px;flex:0 0 52px;background:#171717;color:#fff;display:flex;align-items:center;padding:0 18px;gap:6px}.tax-annual-print-toolbar button{height:32px;min-width:32px;border:1px solid #555;background:#414141;color:#fff;border-radius:5px;padding:0 9px;cursor:pointer}.tax-annual-print-toolbar button.active{border-color:#fff;background:#555}.tax-toolbar-sep{height:25px;width:1px;background:#555;margin:0 4px}.tax-annual-print-toolbar span{font-size:12px}.tax-print-main{margin-left:auto!important;background:#fff!important;color:#171717!important;font-weight:700!important;padding:0 14px!important}.tax-annual-print-body{flex:1;min-height:0;overflow:auto;background:#333;padding:24px;display:flex;justify-content:center}.tax-annual-print-stage{transform-origin:top center}.tax-annual-sheet{display:none}.tax-annual-sheet.active{display:block}.tax-annual-paper{width:1123px;min-height:794px;background:#fff;color:#123b70;padding:18px 24px;box-shadow:0 8px 28px rgba(0,0,0,.45);font-family:Arial,Helvetica,sans-serif;font-size:9px}.tax-annual-paper.portrait{width:794px;min-height:1123px}.tax-paper-head{display:grid;grid-template-columns:31% 45% 24%;align-items:start;height:82px}.tax-logo-left{width:300px;height:78px;object-fit:contain;object-position:left top}.tax-logo-right{width:150px;height:76px;object-fit:contain;object-position:right top;justify-self:end}.tax-paper-title{border-left:2px solid #2e6aa4;padding-left:20px;padding-top:2px;color:#153f73}.tax-paper-title b{display:block;font-size:20px;line-height:1.1}.tax-paper-title strong{display:block;font-size:14px;line-height:1.2;margin-top:4px}.tax-paper-info{display:grid;grid-template-columns:18% 15% 31% 22% 10%;gap:8px;margin:10px 0}.tax-info-box{background:#eef6fd;border-radius:7px;min-height:76px;padding:9px;display:flex;gap:8px;align-items:flex-start;color:#16457c}.tax-info-box>span{font-size:28px;line-height:1}.tax-info-box small{display:block;font-size:9px}.tax-info-box b{display:block;font-size:12px;margin:2px 0}.tax-info-box hr{border:0;border-top:1px solid #c7dceb;margin:5px 0}.tax-employer b{font-size:12px}.tax-nx{display:flex;flex-direction:column;align-items:center;justify-content:center}.tax-nx b{font-size:22px}.tax-nx small{font-size:10px}.tax-paper-table{width:100%;border-collapse:collapse;table-layout:fixed}.tax-paper-table th,.tax-paper-table td{border:1px solid #c9d8e5;padding:4px 3px;text-align:center;vertical-align:middle}.tax-paper-table th{background:#07578e;color:#fff;font-size:8px;height:30px}.tax-paper-table td{font-size:8px;height:25px}.tax-paper-table tbody tr:nth-child(even){background:#edf5fb}.tax-paper-table .money{text-align:right}.tax-paper-table th:nth-child(1){width:5%}.tax-paper-table th:nth-child(2){width:3%}.tax-paper-table th:nth-child(3){width:7%}.tax-paper-table th:nth-child(4){width:11%}.tax-paper-table th:nth-child(5){width:9%}.tax-paper-table th:nth-child(6){width:12%}.tax-paper-table th:nth-child(7){width:3%}.tax-paper-table th:nth-child(8){width:3%}.tax-paper-table th:nth-child(9),.tax-paper-table th:nth-child(10){width:7%}.tax-paper-table th:nth-child(n+11){width:7%}.tax-paper-table tfoot td{background:#0b4f82;color:#fff;font-weight:700;height:32px}.tax-paper-table tfoot .total-label{text-align:right;font-size:11px}.tax-paper-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.tax-stat{display:flex;align-items:center;gap:10px;background:#eef6fd;border-radius:7px;padding:9px 18px;min-width:230px}.tax-stat>span{font-size:28px}.tax-stat small{display:block}.tax-stat b{font-size:20px}.tax-total-block{display:flex;gap:0;background:#0b4f82;color:#fff;border-radius:5px;overflow:hidden}.tax-total-block>*{padding:9px 13px;border-left:1px solid rgba(255,255,255,.45)}.tax-total-block span{font-weight:700}.tax-paper-legal{display:flex;justify-content:space-between;align-items:end;margin-top:12px;padding:9px 5px;border-top:1px solid #aac8df}.tax-paper-legal small{color:#7293b1}.tax-sign{text-align:right}.tax-sign>div{width:175px;height:28px;border-bottom:1px solid #b8cddd;margin-top:5px}.tax-paper-footer{display:flex;justify-content:space-between;border-top:2px solid #9dbed8;margin-top:10px;padding-top:7px;font-size:9px}
@media print{body>*{display:none!important}.tax-annual-print-modal{display:flex!important;position:static!important;background:#fff!important}.tax-annual-print-window{display:block!important;height:auto!important;background:#fff!important}.tax-annual-print-top,.tax-annual-print-toolbar{display:none!important}.tax-annual-print-body{display:block!important;padding:0!important;overflow:visible!important;background:#fff!important}.tax-annual-print-stage{width:100%!important}.tax-annual-sheet{display:block!important}.tax-annual-paper{box-shadow:none!important;transform:none!important;width:297mm!important;min-height:210mm!important;padding:5mm 6mm!important;page-break-after:always!important}.tax-annual-paper.portrait{width:210mm!important;min-height:297mm!important}}


/* V108 — Déclaration annuelle des impôts : écran NXPRINT identique à la CNSS */
.tax-annual-print-modal{background:rgba(20,25,35,.72)!important;padding:0!important}
.tax-annual-print-window{background:#eef2f7!important}
.tax-annual-print-top{height:42px!important;flex-basis:42px!important;background:#fff!important;padding:0 18px!important}
.tax-annual-print-toolbar{height:46px!important;flex-basis:46px!important;background:#123f6b!important;padding:0 16px!important;gap:6px!important}
.tax-annual-print-toolbar button{height:30px!important;min-width:30px!important;border:1px solid rgba(255,255,255,.22)!important;background:#1d527f!important;color:#fff!important;border-radius:5px!important;padding:0 9px!important;font-weight:700!important}
.tax-annual-print-toolbar button.active{background:#fff!important;color:#16477e!important;border-color:#fff!important}
.tax-annual-print-toolbar span{font-size:12px!important;margin:0 4px!important}
.tax-print-main,.tax-print-action{background:#fff!important;color:#16477e!important;border-color:#fff!important;font-weight:700!important}
.tax-print-main{margin-left:auto!important;padding:0 12px!important}
.tax-print-action{padding:0 10px!important}
.tax-annual-print-body{background:#eef2f7!important;padding:24px!important;align-items:flex-start!important}
.tax-annual-paper{width:1123px!important;min-height:794px!important;padding:16px 18px 12px!important;border-radius:0!important;box-shadow:0 5px 22px rgba(20,45,75,.28)!important;color:#123b69!important;background:#fff!important;font-size:9.5px!important;line-height:1.05!important}
.tax-annual-paper.portrait{width:794px!important;min-height:1123px!important}
.tax-paper-head{height:78px!important;grid-template-columns:31% 45% 24%!important;align-items:start!important}
.tax-logo-left{width:300px!important;height:74px!important;object-fit:contain!important;object-position:left top!important}
.tax-logo-right{width:150px!important;height:72px!important;object-fit:contain!important;object-position:right top!important}
.tax-paper-title{border-left:2px solid #2e6aa4!important;padding-left:18px!important;padding-top:0!important;color:#153f73!important}
.tax-paper-title b{font-size:20px!important;line-height:1.08!important}
.tax-paper-title strong{font-size:14px!important;line-height:1.18!important;margin-top:4px!important}
.tax-paper-info{grid-template-columns:18% 15% 31% 22% 10%!important;gap:8px!important;margin:9px 0 10px!important}
.tax-info-box{min-height:70px!important;padding:8px!important;border-radius:7px!important;background:#eef6fd!important}
.tax-info-box>span{font-size:27px!important}
.tax-paper-table th,.tax-paper-table td{padding:3px 3px!important}
.tax-paper-table th{font-size:8px!important;height:29px!important;background:#07578e!important}
.tax-paper-table td{font-size:8px!important;height:24px!important}
.tax-paper-table tbody tr:nth-child(even){background:#edf5fb!important}
.tax-paper-table tfoot td{background:#0b4f82!important;color:#fff!important;height:31px!important}
.tax-paper-bottom{margin-top:9px!important}
.tax-stat{background:#eef6fd!important;padding:8px 18px!important;min-width:230px!important}
.tax-total-block{background:#0b4f82!important}
.tax-paper-legal{margin-top:10px!important;padding:8px 5px!important;border-top:0!important}
.tax-paper-footer{border-top:2px solid #9dbed8!important;margin-top:8px!important;padding-top:6px!important}
@media print{
  .tax-annual-paper{width:297mm!important;min-height:210mm!important;padding:5mm 6mm!important}
  .tax-annual-paper.portrait{width:210mm!important;min-height:297mm!important}
}
\n/* V109 - Declaration annuelle des impots : tableau style CNSS + scroll interne */\n.tax-annual-page{height:calc(100vh - 145px);min-height:0;overflow:hidden;}\n.tax-annual-card{height:100%;display:flex;flex-direction:column;min-height:0;}\n.tax-annual-filters{grid-template-columns:minmax(480px,2fr) 180px!important;flex:0 0 auto;}\n.tax-annual-filters label:first-child{min-width:0;}\n.tax-annual-filters select{width:100%;}\n.tax-annual-table-wrap{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;border:1px solid #dce2eb;border-radius:7px;}\n.tax-annual-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:auto;}\n.tax-annual-table th{position:sticky;top:0;z-index:2;background:#f3f6fa;color:#55627a;text-align:left;padding:9px;border-bottom:1px solid #dce2eb;}\n.tax-annual-table td{padding:8px 9px;border-bottom:1px solid #e7ebf1;color:#26344e;white-space:nowrap;}\n.tax-annual-table tbody tr:nth-child(even){background:#f7f9fc;}\n.tax-annual-table tbody tr:hover{background:#eef5fb;}\n.tax-annual-table td:nth-child(4),.tax-annual-table td:nth-child(5),.tax-annual-table td:nth-child(6){text-align:left;}\n.tax-annual-table .money{text-align:right;}\n.tax-annual-table-wrap::-webkit-scrollbar{width:10px;height:10px;}\n.tax-annual-table-wrap::-webkit-scrollbar-thumb{background:#b8c5d3;border-radius:6px;}\n.tax-annual-table-wrap::-webkit-scrollbar-track{background:#eef2f6;}\n@media(max-width:1100px){.tax-annual-filters{grid-template-columns:minmax(360px,1fr) 150px!important;}}\n
/* V110 — Déclaration annuelle des impôts : alignement strict sur l'écran CNSS */
.tax-annual-page{
  height:calc(100vh - 145px)!important;
  min-height:0!important;
  overflow:hidden!important;
}
.tax-annual-card{
  height:100%!important;
  padding:18px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  min-height:0!important;
}
.tax-annual-head{
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  border-bottom:1px solid #e1e6ee!important;
  padding-bottom:14px!important;
  flex:0 0 auto!important;
}
.tax-annual-head h2{margin:4px 0!important;font-size:21px!important;color:#1b2944!important}
.tax-annual-head p{margin:0!important;color:#758198!important;font-size:13px!important}
.tax-annual-head-actions{display:flex!important;gap:10px!important;align-items:center!important;flex-shrink:0!important}
.tax-annual-head-actions .primary{white-space:nowrap!important}
.tax-annual-filters{
  display:grid!important;
  grid-template-columns:minmax(480px,1fr) 180px!important;
  gap:12px!important;
  flex:0 0 auto!important;
}
.tax-annual-filters label{font-size:12px!important;color:#66728a!important;font-weight:700!important}
.tax-annual-filters select{
  display:block!important;
  width:100%!important;
  height:38px!important;
  margin-top:6px!important;
  border:1px solid #d7deea!important;
  border-radius:7px!important;
  background:#fff!important;
  padding:0 9px!important;
}
.tax-annual-summary{
  display:grid!important;
  grid-template-columns:2fr 1fr 1fr 1fr!important;
  gap:10px!important;
  flex:0 0 auto!important;
}
.tax-annual-summary>div{
  border:1px solid #e0e5ec!important;
  border-radius:7px!important;
  padding:10px 12px!important;
  background:#fafbfd!important;
}
.tax-annual-summary span{display:block!important;font-size:11px!important;color:#7a869b!important}
.tax-annual-summary b{display:block!important;margin-top:4px!important;font-size:14px!important;color:#1d2b46!important}
.tax-annual-table-wrap{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
  border:1px solid #dce2eb!important;
  border-radius:7px!important;
}
.tax-annual-table{
  width:100%!important;
  border-collapse:collapse!important;
  font-size:12px!important;
  min-width:1280px!important;
}
.tax-annual-table th{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  background:#f3f6fa!important;
  color:#55627a!important;
  text-align:left!important;
  padding:9px!important;
  border-bottom:1px solid #dce2eb!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.tax-annual-table td{
  padding:8px 9px!important;
  border-bottom:1px solid #e7ebf1!important;
  color:#26344e!important;
  white-space:nowrap!important;
}
.tax-annual-table tbody tr:nth-child(even){background:#f7f9fc!important}
.tax-annual-table tbody tr:hover{background:#eef5fb!important}
.tax-annual-table td:nth-child(4),
.tax-annual-table td:nth-child(5),
.tax-annual-table td:nth-child(6){text-align:left!important}
.tax-annual-table .money{text-align:right!important}
.tax-annual-table-wrap::-webkit-scrollbar{width:10px;height:10px}
.tax-annual-table-wrap::-webkit-scrollbar-thumb{background:#b8c5d3;border-radius:6px}
.tax-annual-table-wrap::-webkit-scrollbar-track{background:#eef2f6}
@media(max-width:1100px){
 .tax-annual-filters{grid-template-columns:minmax(360px,1fr) 150px!important}
 .tax-annual-head{gap:10px!important}
 .tax-annual-head-actions{flex-wrap:wrap!important;justify-content:flex-end!important}
}

/* V110 — Etat imprimé annuel : corrections demandées */
.tax-paper-table th,.tax-paper-table td{font-size:10px!important}
.tax-paper-table th{font-weight:700!important}
.tax-paper-table td:nth-child(4),.tax-paper-table td:nth-child(5),.tax-paper-table td:nth-child(6){text-align:left!important}
.tax-paper-table th:nth-child(9),.tax-paper-table td:nth-child(9),
.tax-paper-table th:nth-child(10),.tax-paper-table td:nth-child(10){width:6.5%!important;white-space:nowrap!important}
.tax-paper-table th:nth-child(4),.tax-paper-table td:nth-child(4){width:12%!important}
.tax-paper-table th:nth-child(5),.tax-paper-table td:nth-child(5){width:10%!important}
.tax-paper-table th:nth-child(6),.tax-paper-table td:nth-child(6){width:13%!important}
.tax-paper-table th:nth-child(7),.tax-paper-table td:nth-child(7){width:3%!important}
.tax-paper-table th:nth-child(8),.tax-paper-table td:nth-child(8){width:3%!important}

/* V111 — Déclaration annuelle : tableau compact, gris clair, scroll interne */
.tax-annual-page{height:calc(100vh - 82px);min-height:0;overflow:hidden}
.tax-annual-card{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.tax-annual-head{flex:0 0 auto}
.tax-annual-head-actions{gap:6px}
.tax-annual-filters{grid-template-columns:minmax(480px,1fr) 150px;gap:5px;margin:5px 0}
.tax-annual-filters label{font-size:12px}
.tax-annual-filters select{height:36px;margin-top:3px}
.tax-annual-summary{gap:5px;margin-bottom:5px}
.tax-annual-summary>div{padding:8px 12px}
.tax-annual-table-wrap{flex:1 1 auto;min-height:120px;max-height:none;overflow:auto;overscroll-behavior:contain;border:1px solid #d7dee7;border-radius:7px;background:#fff;scrollbar-gutter:stable both-edges}
.tax-annual-table{min-width:1240px;width:max-content;table-layout:auto;font-size:10px}
.tax-annual-table th,.tax-annual-table td{padding:6px 8px;white-space:nowrap;font-size:10px}
.tax-annual-table thead th{position:sticky;top:0;z-index:3;background:#eef2f6;color:#34445a;border-bottom:1px solid #cbd5e1;font-weight:700;box-shadow:0 1px 0 #cbd5e1}
.tax-annual-table tbody tr:nth-child(even){background:#f3f6f9}
.tax-annual-table tbody tr:nth-child(odd){background:#fff}
.tax-annual-table tbody tr:hover{background:#eaf1f7}
.tax-annual-table td:nth-child(4),.tax-annual-table td:nth-child(5),.tax-annual-table td:nth-child(6){text-align:left}
.tax-annual-table td.money{text-align:right}
.tax-annual-table th:first-child,.tax-annual-table td:first-child{position:sticky;left:0;z-index:2;background:inherit}
.tax-annual-table thead th:first-child{z-index:5;background:#eef2f6}
.tax-annual-table td:nth-child(4){min-width:180px}
.tax-annual-table td:nth-child(5){min-width:130px}
.tax-annual-table td:nth-child(6){min-width:210px}
.tax-annual-table td:nth-child(9),.tax-annual-table td:nth-child(10){min-width:105px}
.tax-annual-note{flex:0 0 auto;margin-top:5px;padding:7px 10px}
@media(max-width:900px){.tax-annual-filters{grid-template-columns:minmax(350px,1fr) 120px}.tax-annual-page{height:calc(100vh - 70px)}}

/* V112 — Déclaration annuelle des impôts : même ergonomie que CNSS + colonnes optimisées */
.tax-annual-page{height:calc(100vh - 118px)!important;min-height:0!important;overflow:hidden!important;}
.tax-annual-card{gap:5px!important;padding:18px!important;}
.tax-annual-head{padding-bottom:5px!important;}
.tax-annual-filters{grid-template-columns:minmax(560px,1fr) 180px!important;gap:5px!important;}
.tax-annual-filters select{height:38px!important;margin-top:2px!important;}
.tax-annual-summary{gap:5px!important;}
.tax-annual-summary>div{padding:7px 10px!important;}
.tax-annual-table-wrap{
  flex:1 1 0!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable both-edges!important;
}
.tax-annual-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  font-size:10px!important;
}
.tax-annual-table th,.tax-annual-table td{
  font-size:10px!important;
  line-height:1.15!important;
  padding:5px 5px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.tax-annual-table th{position:sticky!important;top:0!important;z-index:5!important;padding:7px 5px!important;}
.tax-annual-table tbody td{height:28px!important;}
.tax-annual-table td:nth-child(1),.tax-annual-table th:nth-child(1){width:6%!important;}
.tax-annual-table td:nth-child(2),.tax-annual-table th:nth-child(2){width:4%!important;}
.tax-annual-table td:nth-child(3),.tax-annual-table th:nth-child(3){width:8%!important;}
.tax-annual-table td:nth-child(4),.tax-annual-table th:nth-child(4){width:12%!important;}
.tax-annual-table td:nth-child(5),.tax-annual-table th:nth-child(5){width:10%!important;}
.tax-annual-table td:nth-child(6),.tax-annual-table th:nth-child(6){width:13%!important;}
.tax-annual-table td:nth-child(7),.tax-annual-table th:nth-child(7){width:4%!important;}
.tax-annual-table td:nth-child(8),.tax-annual-table th:nth-child(8){width:4%!important;}
.tax-annual-table td:nth-child(9),.tax-annual-table th:nth-child(9){width:7%!important;}
.tax-annual-table td:nth-child(10),.tax-annual-table th:nth-child(10){width:7%!important;}
.tax-annual-table td:nth-child(11),.tax-annual-table th:nth-child(11){width:8%!important;}
.tax-annual-table td:nth-child(12),.tax-annual-table th:nth-child(12){width:7%!important;}
.tax-annual-table td:nth-child(13),.tax-annual-table th:nth-child(13){width:6%!important;}
.tax-annual-table td:nth-child(14),.tax-annual-table th:nth-child(14){width:5%!important;}
.tax-annual-table td:nth-child(15),.tax-annual-table th:nth-child(15){width:9%!important;}
.tax-annual-table td:nth-child(4),.tax-annual-table td:nth-child(5),.tax-annual-table td:nth-child(6){text-align:left!important;}
.tax-annual-table td:nth-child(7),.tax-annual-table td:nth-child(8),.tax-annual-table td:nth-child(9),.tax-annual-table td:nth-child(10){text-align:center!important;}
.tax-annual-table td:nth-child(n+11){text-align:right!important;}
.tax-annual-table thead th{text-align:center!important;}
.tax-annual-table thead th:nth-child(4),.tax-annual-table thead th:nth-child(5),.tax-annual-table thead th:nth-child(6){text-align:left!important;}
.tax-annual-table tbody tr:nth-child(even){background:#eef6fb!important;}
.tax-annual-table tbody tr:hover{background:#e4f0f8!important;}
.tax-annual-table-wrap::-webkit-scrollbar{width:10px!important;height:10px!important;}
.tax-annual-table-wrap::-webkit-scrollbar-thumb{background:#aebdca!important;border-radius:5px!important;}
.tax-annual-table-wrap::-webkit-scrollbar-track{background:#edf2f6!important;}
@media(max-width:1100px){
 .tax-annual-filters{grid-template-columns:minmax(420px,1fr) 150px!important;}
 .tax-annual-table{min-width:1180px!important;}
}

/* V113 - Paie à l'envers */
.payslip-reverse-modal .generation-dialog{max-width:1180px;width:calc(100vw - 60px)}
.reverse-target-fields{margin-top:14px}.reverse-value-line{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:end;margin-top:14px}.reverse-value-line label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:#68758e}.reverse-value-line input{height:38px;border:1px solid #dfe4ed;border-radius:7px;padding:9px 10px;font:inherit;font-size:12px}.payslip-reverse-modal .generation-result{margin-top:14px}.payslip-reverse-modal .generation-table-wrap{max-height:300px;overflow:auto}.payslip-reverse-modal .generation-table-wrap table{min-width:760px}

/* V115 — Impression des états fiscaux */
.tax-annual-states-modal{position:fixed;inset:0;background:rgba(18,35,58,.46);z-index:12000;display:none;align-items:center;justify-content:center;padding:24px}
.tax-annual-states-modal.open{display:flex}
.tax-annual-states-window{width:min(900px,96vw);background:#fff;border-radius:12px;box-shadow:0 18px 60px rgba(20,40,70,.28);overflow:hidden}
.tax-annual-states-head{height:50px;background:#f3f6fa;border-bottom:1px solid #dce3eb;display:flex;align-items:center;justify-content:space-between;padding:0 18px;color:#1b2944}
.tax-annual-states-head strong{display:block;font-size:16px}.tax-annual-states-head span{display:block;font-size:11px;color:#758198;margin-top:2px}.tax-annual-states-head button{border:0;background:transparent;font-size:25px;color:#6c788b;cursor:pointer}
.tax-annual-states-body{padding:18px}.tax-state-report-choice{margin-bottom:12px}.tax-state-report-choice label,.tax-state-filter-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#5e6c82}.tax-state-report-choice select,.tax-state-filter-grid select,.tax-state-filter-grid input{height:38px;border:1px solid #d2dbe6;border-radius:6px;padding:0 10px;background:#fff;color:#23324b;font-size:13px;box-sizing:border-box}.tax-state-filter-grid{display:grid;grid-template-columns:1.4fr 1.2fr 1.2fr 1.2fr;gap:10px}.tax-state-report-choice select{width:100%}.tax-state-report-help{margin-top:12px;padding:10px 12px;background:#f3f6f9;border:1px solid #dfe6ee;border-radius:6px;color:#68758a;font-size:12px}.tax-annual-states-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #e2e7ee;background:#fafbfd}.tax-annual-states-footer button{min-width:130px;height:32px}
@media(max-width:800px){.tax-state-filter-grid{grid-template-columns:1fr 1fr}.tax-annual-states-window{width:98vw}}
/* V116 — boîte Imprimer les états : critères neutres et année compacte */
.tax-state-report-year-row{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:10px;margin-bottom:12px}
.tax-state-report-year-row label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#5e6c82}
.tax-state-report-year-row select{height:38px;border:1px solid #d2dbe6;border-radius:6px;padding:0 10px;background:#fff;color:#23324b;font-size:13px;box-sizing:border-box;width:100%}
.tax-state-filter-grid{grid-template-columns:1.45fr 1.15fr 1.15fr 1.15fr;gap:10px}
.tax-state-matricule-row{display:grid;grid-template-columns:180px 1fr 1fr minmax(260px,1.8fr);align-items:end;gap:10px;margin-top:10px}
.tax-state-matricule-row label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#5e6c82}
.tax-state-matricule-row input{height:38px;border:1px solid #d2dbe6;border-radius:6px;padding:0 10px;background:#fff;color:#23324b;font-size:13px;box-sizing:border-box;width:100%}
.tax-state-matricule-toggle{height:38px;display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;font-weight:700;color:#4f6078!important}
.tax-state-matricule-toggle input{width:16px!important;height:16px!important;margin:0}
.tax-state-matricule-help{align-self:center;padding:8px 10px;background:#f3f6f9;border:1px solid #dfe6ee;border-radius:6px;color:#68758a;font-size:11px;line-height:1.35}
.tax-state-matricule-row input:disabled{background:#f4f6f8;color:#9aa5b5;cursor:not-allowed}
@media(max-width:900px){.tax-state-filter-grid{grid-template-columns:1fr 1fr}.tax-state-matricule-row{grid-template-columns:1fr 1fr}.tax-state-matricule-toggle,.tax-state-matricule-help{grid-column:1/-1}}

/* V117 — NXPRINT états fiscaux et boîte Imprimer les états */
.tax-annual-states-window{width:min(1100px,96vw);max-width:1100px}
.tax-state-filter-grid{grid-template-columns:minmax(0,1.45fr) minmax(0,1.1fr) minmax(0,1.1fr) minmax(220px,1.15fr)}
.tax-state-filter-grid label{min-width:0}
.tax-state-filter-grid select{width:100%;min-width:0}
.tax-state-report-year-row{grid-template-columns:minmax(0,1fr) 180px}
.tax-state-report-year-row label{min-width:0}
.tax-state-report-year-row select{width:100%}
.tax-state-matricule-row{grid-template-columns:160px minmax(180px,1fr) minmax(180px,1fr) minmax(280px,1.8fr);align-items:end}
.tax-state-matricule-row label{min-width:0}
.tax-state-matricule-row input{width:100%;min-width:0}
.tax-state-matricule-title{align-self:center;font-size:12px;font-weight:700;color:#5e6c82;padding-bottom:10px}
.tax-state-matricule-help{min-width:0}
.tax-annual-states-footer #taxAnnualStatesPrint{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:1;min-height:32px;padding-top:0;padding-bottom:0}
@media(max-width:1000px){.tax-state-filter-grid{grid-template-columns:1fr 1fr}.tax-state-matricule-row{grid-template-columns:1fr 1fr}.tax-state-matricule-title{grid-column:1/-1;padding-bottom:0}.tax-state-matricule-help{grid-column:1/-1}}

/* V118 — bornes matricules et protection contre le préremplissage du login */
.tax-state-matricule-row{grid-template-columns:170px minmax(180px,1fr) minmax(180px,1fr) minmax(280px,1.8fr)!important}
.tax-state-matricule-toggle{height:38px;display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;font-weight:700;color:#4f6078!important;white-space:nowrap}
.tax-state-matricule-toggle input{width:16px!important;height:16px!important;margin:0}
.tax-state-matricule-row input:disabled{background:#f4f6f8;color:#9aa5b5;cursor:not-allowed}
@media(max-width:1000px){.tax-state-matricule-row{grid-template-columns:1fr 1fr!important}.tax-state-matricule-toggle,.tax-state-matricule-help{grid-column:1/-1}}

/* V119 — Dictionnaire des états / REPORT + REPORT_PARAM */
.report-dictionary-page .company-layout{grid-template-columns:260px 18px minmax(0,1fr) 205px;}
.report-list{height:calc(100vh - 180px);min-height:650px}
.report-rows{height:calc(100% - 123px);overflow:auto}
.report-row{grid-template-columns:55px minmax(0,1fr) 70px}
.report-row strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.report-card{height:calc(100vh - 180px);min-height:650px;overflow:hidden}
.report-symbol{font-size:30px;display:grid;place-items:center;background:linear-gradient(135deg,#eeeaff,#dbe7ff);color:#5c4bdf}
.report-form{height:calc(100% - 150px);overflow:auto;padding-bottom:10px}
.report-form .form-grid{margin-bottom:14px}
.report-description-field{grid-column:span 1}
.report-active-field{display:flex;flex-direction:row!important;align-items:center;gap:10px;padding-top:20px}.report-active-field span{font-size:10px;color:#68758e;font-weight:700}.report-active-field input{width:18px!important;height:18px!important;margin:0}
.report-param-heading{margin-top:5px}
.report-param-wrap{border:1px solid #e0e5ec;border-radius:8px;overflow:auto;background:#fff;max-height:390px}
.report-param-table{width:100%;border-collapse:collapse;min-width:900px;font-size:10px}
.report-param-table th{background:#f5f7fb;color:#68758e;font-size:9px;text-align:left;padding:9px;border-bottom:1px solid #e0e5ec;position:sticky;top:0;z-index:2}
.report-param-table td{padding:6px;border-bottom:1px solid #edf0f5}
.report-param-table input,.report-param-table select{width:100%;height:30px;border:1px solid #d7deea;border-radius:5px;padding:0 7px;background:#fff;font-size:10px}
.report-param-table .center{text-align:center}.report-param-table td.center input{width:16px}
.report-standard-note{margin-top:10px;padding:10px 12px;background:#f5f7fa;border:1px solid #e0e5ec;border-radius:7px;color:#68758e;font-size:10px}
.report-actions-panel{padding-left:9px;padding-right:9px}.report-edit-actions{display:flex;gap:6px}.report-edit-actions .action-btn{flex:1}.report-right-tree{margin-top:12px;padding-top:35px}
.report-form input:disabled,.report-form select:disabled{background:#f8fafc;color:#49566d;opacity:1}
@media(max-width:1250px){.report-dictionary-page .company-layout{grid-template-columns:250px 18px minmax(0,1fr) 185px}.report-card{min-width:0}.report-param-wrap{max-width:100%}}
@media(max-width:850px){.report-dictionary-page .company-layout{grid-template-columns:1fr}.report-list,.report-card,.report-actions-panel{grid-column:auto;height:auto;min-height:0}.report-rows{height:260px}.report-form{height:auto}.report-dictionary-page .company-collapse-bar,.report-dictionary-page .company-right-collapse-bar{display:none}}

/* V120 — Dictionnaire des états : même ergonomie que Fiche individuelle */
@media (min-width:751px){
  .report-dictionary-page .company-layout{grid-template-columns:300px 18px minmax(0,1fr) 18px 150px!important;grid-template-rows:minmax(650px,1fr)!important;min-height:650px;height:calc(100vh - 180px);overflow:hidden!important}
  .report-dictionary-page .company-list{height:100%!important;min-height:0!important;overflow:hidden!important}
  .report-dictionary-page .company-card{height:100%!important;min-height:0!important;overflow:auto!important}
  .report-dictionary-page .company-actions-panel{width:150px!important;min-width:150px!important;max-width:150px!important;height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px 5px!important;box-sizing:border-box!important}
  .report-dictionary-page .company-actions-panel .right-actions,.report-dictionary-page .company-actions-panel .right-menu-title.quit-function,.report-dictionary-page .company-actions-panel .right-tree{width:140px!important;max-width:140px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
  .report-dictionary-page .company-actions-panel .action-btn{width:140px!important;min-width:140px!important;max-width:140px!important;height:25px!important;min-height:25px!important;max-height:25px!important;padding:0 8px!important;font-size:10px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;line-height:25px!important;box-sizing:border-box!important}
  .report-dictionary-page .company-actions-panel .action-btn span{font-size:13px!important;width:16px!important}
  .report-dictionary-page .company-actions-panel .right-menu-title{height:25px!important;min-height:25px!important;line-height:25px!important}
  .report-dictionary-page .company-right-collapse-bar{grid-column:4!important;grid-row:1!important}
  .report-dictionary-page .report-card{grid-column:3!important;grid-row:1!important}
}
.report-ident-grid{grid-template-columns:.55fr 2.5fr 1fr .55fr!important}
.report-description-field{min-width:0}
.report-param-toolbar{display:flex;justify-content:flex-end;margin:0 0 7px}
.report-param-toolbar .action-btn{height:25px;min-height:25px;width:140px;background:#eef0f3;color:#33415d;border:1px solid #d6dce5;border-radius:5px;font-size:10px;display:flex;align-items:center;justify-content:center}
.report-param-table th:last-child,.report-param-table td:last-child{width:34px;text-align:center}
.report-param-delete{border:0;background:transparent;color:#b44757;font-size:18px;cursor:pointer;line-height:1;padding:0}
.report-param-delete:disabled{opacity:.35;cursor:not-allowed}
.report-standard-note{font-size:9px;color:#78849a;margin-top:8px}
.report-edit-actions{display:flex;flex-direction:column;gap:4px;margin-top:5px}
.report-edit-actions .action-btn{display:none!important}
.report-form.crud-editing .report-edit-actions .action-btn{display:flex!important}
.report-delete-modal.open{display:block}

/* V120 — fiche Dictionnaire des états : aucune barre de défilement navigateur */
body:has(.report-dictionary-page){overflow:hidden!important}
.report-dictionary-page .company-card{scrollbar-width:thin}
.report-dictionary-page .report-rows{overflow:auto!important;height:calc(100% - 123px)!important}
.report-dictionary-page .report-param-wrap{overflow:auto;max-width:100%}
.report-dictionary-page .report-param-table{min-width:1050px}
.report-dictionary-page .report-param-table input,.report-dictionary-page .report-param-table select{box-sizing:border-box;width:100%;height:30px}
.report-dictionary-page .report-form.crud-editing .report-param-toolbar{display:flex}
.report-dictionary-page .report-form:not(.crud-editing) .report-param-toolbar{display:none}
.report-dictionary-page .report-form.crud-editing .report-edit-actions .action-btn{display:flex!important}
.report-dictionary-page .report-edit-actions .action-btn{justify-content:flex-start}
.report-dictionary-page .report-actions-panel .report-right-tree .action-btn{margin-top:8px!important;background:#4a4a4a!important;color:#fff!important}
@media(max-width:750px){body:has(.report-dictionary-page){overflow:auto!important}.report-dictionary-page .company-layout{height:auto!important}.report-dictionary-page .company-card{overflow:auto!important}}
