@font-face{
  font-family:"Inter";
  src:url("/static/fonts/InterVariable.woff2") format("woff2");
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}

:root{
--top:#28547d;--left:#142f49;--left2:#1c3d5e;--blue:#2f6f9f;--blue-dark:#28577e;
--bg:#f2f5f8;--text:#152a3c;--muted:#72859a;--line:#cfdbe5;--tab:#edf2f6;
--orange:#d59235;--green:#2b8b74;--violet:#6a54a4;--red:#c94f59;
--yellow:#fff0ad;--silver:#eef3f7;--bronze:#f4dec8}
*{box-sizing:border-box}html,body{height:100%}
body{margin:0;font-family:"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:12px}
a{color:inherit}
.topbar{height:58px;background:var(--top);color:#fff;display:flex;align-items:center;padding:0 10px;border-bottom:1px solid #173a58;gap:10px}
.brand-wrap{min-width:300px}.brandline{display:flex;align-items:center;gap:7px}.brand{font-size:16px;font-weight:800;letter-spacing:.03em}
.version{font-size:9px;background:#173e61;padding:3px 6px}.beta{font-size:9px;background:#e25059;padding:3px 6px;font-weight:800}
.project-meta{font-size:9px;color:#d2e0eb;margin-top:3px}
.top-search{display:flex;align-items:center;gap:5px;margin-left:auto}.top-search input{width:280px;height:29px;border:0;padding:5px 8px}
.topbtn{height:29px;border:0;padding:0 11px;font-size:10px;font-weight:700;color:#fff;background:#3479b2;cursor:pointer}
.topbtn.gold{background:#cf8f32}.topbtn.dark{background:#173f61}.topbtn.red{background:#cf4d55}.notif{height:29px;min-width:40px;background:#d99b39;display:flex;align-items:center;justify-content:center;font-weight:800}.user-mini{font-size:10px;white-space:nowrap}
.workspace{display:flex;height:calc(100vh - 58px);min-height:520px}.days-sidebar{width:190px;flex:0 0 190px;background:var(--left);color:#d9e5ee;border-right:1px solid #0f263a;overflow-y:auto}
.side-section-title{font-size:9px;font-weight:800;color:#8ea8bb;padding:11px 8px 6px;text-transform:uppercase}.selected-day-card{margin:0 7px 7px;background:#214a70;padding:9px;border:1px solid #315c81}.selected-day-card .lab{font-size:8px;color:#aec0cf;text-transform:uppercase}.selected-day-card .date{font-size:13px;font-weight:800;color:#fff;margin-top:4px}
.side-action{display:block;margin:5px 7px;background:#2b70a7;color:#fff;text-align:center;padding:8px 5px;text-decoration:none;font-weight:700;font-size:10px}.side-action.dark{background:#1c4468}
.tree-year{background:#1d4162;margin-top:5px;border-top:1px solid #284d6b;border-bottom:1px solid #102d45}.tree-year>summary,.tree-month>summary{cursor:pointer;list-style:none}.tree-year>summary{padding:8px 7px;font-weight:800;font-size:10px}.tree-month>summary{padding:7px 10px;color:#c6d7e3;font-size:10px;font-weight:700}.daylink{display:block;text-decoration:none;padding:6px 10px 6px 25px;color:#a9bece;font-size:10px}.daylink:hover,.daylink.active{background:#28577e;color:#fff}
.content-area{flex:1;min-width:0;overflow:auto}.page{padding:14px 18px 24px;min-width:1050px}.day-title{font-size:22px;font-weight:800;margin:2px 0}.day-sub{font-size:10px;color:#7b8c9d;margin-bottom:11px}
.kpis{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:8px}.kpi-card{height:80px;background:#fff;border:1px solid var(--line);border-top:3px solid #3079b7;padding:9px 11px}.kpi-card:nth-child(2){border-top-color:#6f5dad}.kpi-card:nth-child(3){border-top-color:#359485}.kpi-card:nth-child(4){border-top-color:#d48735}.kpi-card:nth-child(5){border-top-color:#607cab}.kpi-lab{font-size:9px;color:#718499;font-weight:800;text-transform:uppercase}.kpi-value{font-size:23px;font-weight:800;margin-top:6px}.kpi-sub{font-size:9px;color:#8190a0;margin-top:2px}
.action-strip{margin-top:8px;border:1px solid #e1a84c;background:#fff9ee;height:34px;display:flex;align-items:center;gap:7px;padding:4px 8px}.action-main{font-weight:800;font-size:10px}.chip{height:23px;border:1px solid #435567;background:#fff;padding:0 10px;display:inline-flex;align-items:center;font-size:9px;font-weight:700;text-decoration:none}.chip.renfort{border-color:#7353a5;color:#62418a}
.tabsbar{margin-top:8px;background:#fff;border:1px solid #bdcbd7;display:flex;height:34px;align-items:stretch;overflow-x:auto}.tablink{display:flex;align-items:center;padding:0 12px;border-right:1px solid #bdcbd7;background:#edf2f6;text-decoration:none;color:#324b61;font-size:10px;font-weight:700;white-space:nowrap}.tablink:hover{background:#e0e9f0}.tablink.active{background:#fff;color:#23679b;border-top:2px solid #2f7ab2;margin-top:-1px}.tablink.restricted{color:#584773}
.tab-content{background:#fff;border:1px solid #d2dde6;border-top:0;padding:12px;min-height:470px}.section-title{font-size:15px;font-weight:800;margin:0 0 4px}.section-sub{font-size:9px;color:#7e8e9f;margin-bottom:10px}
.rank-podium{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:9px}.podium{height:64px;border:1px solid #d7e0e7;padding:9px 11px}.podium.first{background:var(--yellow)}.podium.second{background:#edf3f7}.podium.third{background:var(--bronze)}.podium .pos{font-size:10px;font-weight:800}.podium .name{font-size:14px;font-weight:800;margin-top:4px}.podium .small{font-size:9px;color:#65798c;margin-top:2px}
.panel{background:#fff;border:1px solid #d5e0e8;margin-top:8px}.panel-head{padding:8px 9px;font-weight:800;font-size:10px;border-bottom:1px solid #d5e0e8;display:flex;justify-content:space-between}
table{width:100%;border-collapse:collapse;font-size:10px}th{background:#28577e;color:#fff;padding:7px 6px;text-align:center;font-weight:700;border-right:1px solid #3d698c}td{padding:6px;border-bottom:1px solid #e8edf1;text-align:center}td.left,th.left{text-align:left}tbody tr:nth-child(even) td{background:#f5f8fa}.rank1 td{background:#fff4bf!important}.rank2 td{background:#f0f4f7!important}.rank3 td{background:#f7e4d1!important}
.badge{display:inline-block;padding:3px 7px;font-size:9px;font-weight:800;border-radius:10px;background:#e9eff4}.ok{background:#e4f2eb;color:#26725b}.bad{background:#fae4e5;color:#9e3740}.violet{background:#eee5f7;color:#604080}.empty-module{padding:40px 20px;text-align:center;color:#718399;background:#f9fbfc;border:1px dashed #cdd9e2}
.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}.split-panel{border:1px solid #d4dee7;background:#fff}.split-head{background:#e8f0f7;padding:10px}.split-head.violet{background:#efe6f8}.split-head h2{margin:0;font-size:14px}.split-head p{margin:3px 0 0;font-size:9px;color:#748596}
.login-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#173652,#2c668f)}.login-card{width:390px;background:#fff;border-radius:8px;padding:28px;box-shadow:0 18px 50px #0a1d2e66}.login-card h1{font-size:24px;margin:0 0 4px}.login-card input{width:100%;padding:9px;margin:5px 0 11px;border:1px solid #cbd6df}.login-card button{width:100%;padding:10px;background:#2d6e9e;color:#fff;border:0;font-weight:800}.error{background:#fdeced;color:#9d3038;padding:10px;margin:10px 0}.hint{font-size:10px;color:#748596;background:#f4f7f9;padding:9px;margin-top:12px}
.btn{background:#2f6f9f;color:#fff;text-decoration:none;padding:7px 10px;font-weight:700;font-size:10px}.btn.secondary{background:#526b73}.techlink{text-decoration:none;font-weight:700;color:#285e88}
@media(max-width:1000px){.days-sidebar{display:none}.page{min-width:900px}.top-search input{width:180px}}

.empty-ranking-row td{height:430px;background:#fff!important;border-bottom:0}

body.modal-open{overflow:hidden}
.tech-modal-backdrop{position:fixed;inset:0;background:rgba(8,25,40,.58);z-index:5000;display:none;align-items:center;justify-content:center;padding:24px}
.tech-modal-backdrop.open{display:flex}
.tech-modal-box{width:min(1540px,96vw);height:min(860px,92vh);background:#f4f7fa;border:1px solid #9eb2c3;box-shadow:0 24px 70px rgba(0,0,0,.4);overflow:hidden;display:flex;flex-direction:column}
.tech-modal-inner{height:100%;display:flex;flex-direction:column;min-height:0}
.tech-modal-header{min-height:76px;background:#fff;border-bottom:1px solid #ccd9e3;padding:15px 18px;display:flex;align-items:center;justify-content:space-between}
.tech-modal-name{font-size:26px;font-weight:800;color:#132c45}
.tech-modal-meta{font-size:11px;color:#667c90;margin-top:5px}
.tech-modal-close{border:0;background:#cf4d55;color:#fff;font-size:17px;font-weight:800;width:38px;height:36px;cursor:pointer}
.tech-modal-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;padding:10px 14px;background:#eef3f7}
.tech-modal-kpi{background:#fff;border:1px solid #cfdae4;border-top:3px solid #367db1;min-height:72px;padding:10px 12px}
.tech-modal-kpi span{display:block;color:#6a8094;font-size:10px;font-weight:800;text-transform:uppercase}
.tech-modal-kpi strong{display:block;font-size:21px;margin-top:7px;color:#142d45}
.tech-modal-grid{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,3fr) minmax(330px,1fr);gap:10px;padding:0 14px 12px}
.tech-modal-section{min-height:0;background:#fff;border:1px solid #cfdbe5;display:flex;flex-direction:column}
.tech-modal-section-head{padding:10px 12px;font-size:13px;font-weight:800;border-bottom:1px solid #cfdbe5;color:#16324a;background:#f7fafc}
.tech-modal-table-wrap{overflow:auto;flex:1;min-height:0}
.tech-modal-table-wrap table{font-size:11px}
.tech-modal-table-wrap th{font-size:10px;position:sticky;top:0;z-index:2}
.tech-modal-table-wrap td{padding:8px 7px}
.tech-modal-footer{min-height:52px;background:#fff;border-top:1px solid #ccd9e3;padding:9px 14px;display:flex;justify-content:flex-end;gap:8px}
.tech-modal-loading{height:100%;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:#62788c}
.modal-tech-link{cursor:pointer}
@media(max-width:1100px){.tech-modal-box{width:98vw;height:94vh}.tech-modal-grid{grid-template-columns:1fr}.tech-modal-side{max-height:240px}.tech-modal-kpis{grid-template-columns:repeat(3,1fr)}}

/* STEP7B — lisibilité générale */
body{font-size:13px}
.page{padding:16px 20px 28px}
.day-title{font-size:24px}
.day-sub{font-size:11px}
.kpi-lab{font-size:10px}
.kpi-value{font-size:25px}
.kpi-sub{font-size:10px}
.action-main{font-size:11px}
.chip{font-size:10px;height:25px}
.tablink{font-size:11px;padding:0 13px}
.section-title{font-size:17px}
.section-sub{font-size:10px}
table{font-size:11px}
th{font-size:10px;padding:8px 7px}
td{padding:7px 7px}
.side-section-title{font-size:10px}
.daylink{font-size:11px;padding-top:7px;padding-bottom:7px}
.tree-year>summary{font-size:11px}
.tree-month>summary{font-size:11px}
.selected-day-card .date{font-size:14px}
.side-action{font-size:11px}

/* Données : banderoles par technicien */
.data-tech-block{
  margin:0 0 14px;
  border:1px solid #c7d5df;
  background:#fff;
  box-shadow:0 1px 3px rgba(18,47,73,.05)
}
.data-tech-banner{
  min-height:46px;
  background:linear-gradient(90deg,#214b70,#2b638f);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 11px;
  border-bottom:1px solid #153852
}
.data-tech-identity{display:flex;align-items:center;gap:8px;min-width:0}
.data-tech-icon{font-size:18px}
.data-tech-name{
  color:#fff;text-decoration:none;font-size:14px;font-weight:800;
  white-space:nowrap
}
.data-tech-name:hover{text-decoration:underline}
.data-tech-category,.data-tech-partner{
  font-size:9px;font-weight:800;padding:3px 7px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2)
}
.data-tech-category{background:#3b7b69}
.data-tech-open{
  border:1px solid rgba(255,255,255,.5);background:rgba(255,255,255,.09);
  color:#fff;padding:5px 9px;font-size:9px;font-weight:800;cursor:pointer
}
.data-tech-open:hover{background:rgba(255,255,255,.18)}
.data-tech-table-wrap{overflow:auto}
.data-tech-table th{background:#355f7f}
.data-tech-table tbody tr:nth-child(even) td{background:#f6f9fb}
.data-tech-table tbody tr:hover td{background:#edf5fa}
.amount-cell{font-weight:800;color:#163f5f}

/* Import modal fusionnée depuis STEP6C */
.import-modal-backdrop{
 position:fixed;inset:0;background:rgba(8,25,40,.58);z-index:4800;
 display:none;align-items:center;justify-content:center;padding:24px
}
.import-modal-backdrop.open{display:flex}
.import-modal-box{
 width:min(720px,94vw);background:#f4f7fa;border:1px solid #9eb2c3;
 box-shadow:0 22px 65px rgba(0,0,0,.38)
}
.import-modal-header{
 background:#fff;border-bottom:1px solid #ccd9e3;padding:16px 18px;
 display:flex;align-items:center;justify-content:space-between
}
.import-modal-title{font-size:21px;font-weight:800;color:#142d45}
.import-modal-sub{font-size:10px;color:#718497;margin-top:4px}
.import-modal-close{
 width:36px;height:34px;border:0;background:#cf4d55;color:#fff;
 font-weight:800;font-size:16px;cursor:pointer
}
.import-modal-body{padding:18px}
.import-dropzone{
 min-height:210px;background:#fff;border:2px dashed #aec0cf;
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 padding:22px;text-align:center
}
.import-icon{
 width:52px;height:52px;border-radius:50%;display:flex;align-items:center;
 justify-content:center;background:#e6f0f8;color:#2f6f9f;font-size:28px;font-weight:800
}
.import-drop-title{font-size:15px;font-weight:800;margin-top:12px}
.import-drop-sub{font-size:10px;color:#7b8d9d;margin-top:4px}
.import-file-btn{
 display:inline-block;margin-top:14px;background:#2f6f9f;color:#fff;
 padding:9px 16px;font-size:11px;font-weight:800;cursor:pointer
}
.import-file-name{font-size:10px;color:#586d80;margin-top:10px;min-height:14px}
.import-progress-wrap{
 display:none;margin-top:14px;background:#fff;border:1px solid #ccd9e3;padding:13px
}
.import-progress-wrap.visible{display:block}
.import-progress-labels{
 display:flex;justify-content:space-between;align-items:center;
 font-size:10px;font-weight:800;color:#40586e;margin-bottom:7px
}
.import-progress-track{height:14px;background:#dfe7ed;overflow:hidden;border:1px solid #cad6df}
.import-progress-bar{
 height:100%;width:0;background:linear-gradient(90deg,#2e6e9f,#3e9988);
 transition:width .25s ease
}
.import-progress-detail{font-size:9px;color:#758798;margin-top:7px}
.import-modal-footer{
 background:#fff;border-top:1px solid #ccd9e3;padding:10px 14px;
 display:flex;justify-content:flex-end;gap:8px
}
#importSubmitBtn:disabled,.import-modal-footer button:disabled{opacity:.5;cursor:not-allowed}

/* STEP8 — Référentiels + Primes */
.ref-columns{display:grid;grid-template-columns:minmax(520px,1fr) minmax(620px,1.25fr);gap:12px}
.ref-panel{border:1px solid #cad7e1;background:#fff;min-height:560px}
.ref-panel-title{padding:10px 12px;background:#274f72;color:#fff;font-size:12px;font-weight:800;letter-spacing:.04em}
.ref-scroll{max-height:650px;overflow:auto}
.ref-inactive td{color:#8b98a4;background:#f1f3f5!important}
.ref-toggle-row td{padding:2px 7px 7px;background:#fff!important;text-align:right}
.ref-input,.ref-select{width:100%;border:1px solid #cbd7e0;padding:5px 6px;font-size:10px;background:#fff}
.mini-action{border:0;background:#2f6f9f;color:#fff;padding:5px 7px;font-size:9px;font-weight:800;cursor:pointer}
.mini-link{border:0;background:none;color:#6b7d8c;font-size:9px;text-decoration:underline;cursor:pointer}
.ref-tariff-note{padding:8px 10px;background:#fff8e9;color:#725522;font-size:9px;border-bottom:1px solid #ead7ac}
.ref-category-banner{padding:8px 10px;background:#e8f0f6;color:#244a6a;font-weight:800;font-size:11px;border-top:1px solid #cbd8e2}
.tariff-form{display:flex;gap:4px;align-items:center;justify-content:center}
.tariff-input{width:76px;border:1px solid #cbd7df;padding:5px;text-align:right;font-size:10px}
.tariff-save{border:0;background:#39826e;color:#fff;width:24px;height:24px;cursor:pointer;font-weight:800}
.prime-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.prime-summary>div{background:#fff;border:1px solid #cfdbe4;border-top:3px solid #6a54a4;padding:10px 12px}
.prime-summary span{display:block;font-size:9px;color:#72869a;font-weight:800;text-transform:uppercase}
.prime-summary strong{display:block;font-size:20px;margin-top:5px}
.prime-table .plus-cell{color:#23755c;font-weight:700}
.prime-table .minus-cell{color:#a34048;font-weight:700}
.prime-table .prime-ca{font-weight:800;color:#244f72}
.prime-table .prime-due{font-size:12px;font-weight:900;color:#5d3e83;background:#f4eef9}
.prime-scale{margin-top:10px;border:1px solid #d7d0e4;background:#faf8fc;padding:10px 12px;font-size:10px;color:#5d5470}
@media(max-width:1250px){.ref-columns{grid-template-columns:1fr}}

/* STEP8A — calibrage 2560×1440 + vraie fenêtre au-dessus */
@media (min-width:1800px){
  body{font-size:14px}
  .page{padding:20px 24px 32px}
  .day-title{font-size:28px}
  .day-sub{font-size:12px}
  .kpi-card{height:92px;padding:11px 14px}
  .kpi-lab{font-size:11px}
  .kpi-value{font-size:28px}
  .kpi-sub{font-size:11px}
  .action-strip{height:38px}
  .action-main{font-size:12px}
  .chip{font-size:11px;height:27px}
  .tabsbar{height:38px}
  .tablink{font-size:12px;padding:0 15px}
  .section-title{font-size:19px}
  .section-sub{font-size:11px}
  table{font-size:13px}
  th{font-size:12px;padding:9px 8px}
  td{padding:8px 8px}
  .data-tech-name{font-size:16px}
  .data-tech-category,.data-tech-partner{font-size:10px}
  .days-sidebar{width:215px;flex-basis:215px}
  .daylink{font-size:12px}
  .tree-year>summary,.tree-month>summary{font-size:12px}
  .side-action{font-size:12px}
  .selected-day-card .date{font-size:16px}
}

.tech-modal-backdrop{
  position:fixed!important;
  inset:0!important;
  display:none;
  align-items:center!important;
  justify-content:center!important;
  padding:28px!important;
  z-index:9999!important;
}
.tech-modal-backdrop.open{display:flex!important}
.tech-modal-box{
  position:relative!important;
  width:min(2100px,90vw)!important;
  height:min(1180px,88vh)!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  overflow:hidden!important;
}
.tech-modal-name{font-size:30px!important}
.tech-modal-meta{font-size:13px!important}
.tech-modal-kpi span{font-size:11px!important}
.tech-modal-kpi strong{font-size:24px!important}
.tech-modal-section-head{font-size:15px!important}
.tech-modal-table-wrap table{font-size:13px!important}
.tech-modal-table-wrap th{font-size:12px!important}
.tech-modal-table-wrap td{padding:9px 8px!important}

/* Warning articles manquants */
.warning-page-wrap{display:flex;justify-content:center;align-items:flex-start;padding-top:50px}
.warning-card{width:min(900px,90vw);background:#fff;border:1px solid #d6c5a2;box-shadow:0 14px 40px rgba(0,0,0,.16);padding:26px}
.warning-icon{font-size:46px;color:#d28c2e}
.warning-title{font-size:24px;font-weight:900;color:#563d1e;margin-top:6px}
.warning-sub{font-size:13px;color:#6b7782;margin-top:6px}
.warning-list{margin-top:18px;border:1px solid #ead8b4;background:#fffaf0;max-height:420px;overflow:auto}
.warning-item{padding:12px 14px;border-bottom:1px solid #ead8b4;font-size:14px}
.warning-item:last-child{border-bottom:0}
.warning-cat{display:inline-block;margin-left:8px;padding:2px 7px;background:#e7eff6;color:#28577e;font-size:10px;font-weight:800}
.warning-rows{font-size:11px;color:#7c6b52;margin-top:4px}
.warning-note{margin-top:16px;padding:12px;background:#f6f8fa;border:1px solid #d6dfe6;font-size:12px;line-height:1.45}
.warning-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}

.tr-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:12px}.tr-kpi{background:#fff;border:1px solid #cdd9e2;border-top:4px solid #327bb4;padding:12px 14px}.tr-kpi span{display:block;text-transform:uppercase;font-size:11px;font-weight:800;color:#6f8294}.tr-kpi strong{display:block;font-size:28px;margin-top:5px}.tr-kpi small{font-size:10px;color:#7c8d9c}.tr-green{border-top-color:#319477}.tr-purple{border-top-color:#725ab2}.tr-orange{border-top-color:#d58225}.tr-red{border-top-color:#bb4a50}.tr-tools{display:flex;gap:8px;align-items:center;margin:8px 0}.tr-tools input{width:250px;padding:8px}.tr-btn{background:#28577e;color:#fff;border:0;padding:8px 12px;font-weight:800}.tr-rule{margin-left:auto;font-size:10px;color:#748697}.tr-ok td{background:#f3faf6!important}.tr-pending td{background:#fff9ef!important}.tr-warning td{background:#fff0f1!important}.tr-status{padding:4px 8px;font-size:11px;font-weight:800}.tr-bottom-actions{display:flex;gap:8px;margin-top:10px}.tr-action{border:0;color:#fff;padding:9px 12px;font-weight:800}.tr-action.green{background:#31836c}.tr-action.dark{background:#345a76}.tr-action.red{background:#bd4e55}.tr-correct-wrap{display:flex}.tr-correct-wrap input{width:120px;padding:8px}
.notify-head{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid #cfdae3;padding:14px}.notify-counter{width:52px;height:52px;border-radius:50%;background:#d99031;color:white;font-size:24px;font-weight:900;display:flex;align-items:center;justify-content:center}.notify-list{display:flex;flex-direction:column;gap:7px;margin-top:10px}.notify-item{display:grid;grid-template-columns:40px 1fr 110px 30px;align-items:center;background:#fff;border:1px solid #ccd8e2;border-left:4px solid #d08a32;padding:11px;text-decoration:none}.notify-danger{border-left-color:#c44f57}.notify-info{border-left-color:#3a7eae}.notify-copy{display:flex;flex-direction:column}.notify-copy strong{font-size:13px}.notify-copy span,.notify-date{font-size:11px;color:#718395}.notify-empty{padding:25px;background:#f1faf5;border:1px solid #c7e1d2;text-align:center;font-weight:800}

/* STEP9A — vérification import façon FIX11 */
.verify-overlay-card{
  width:min(1180px,92vw);margin:34px auto;background:#f4f6f8;
  border:1px solid #8899a7;box-shadow:0 15px 42px rgba(0,0,0,.18);
  padding:0 28px 24px
}
.verify-topline{height:4px;background:#326ca0;margin:0 -28px 22px}
.verify-title{font-size:27px;font-weight:900;color:#142a3f}
.verify-summary{font-size:12px;color:#62778a;margin-top:8px;margin-bottom:18px}
.verify-table-wrap{
  max-height:520px;overflow:auto;border:1px solid #8799a8;background:#fff
}
.verify-table{font-size:13px}
.verify-table th{font-size:12px;padding:10px 9px}
.verify-table td{padding:10px 9px}
.verify-table th:nth-child(1){width:150px}
.verify-table th:nth-child(2){width:210px}
.verify-note{
  margin-top:14px;background:#fff9eb;border:1px solid #e5d2a7;
  padding:10px 12px;font-size:12px;color:#705321
}
.verify-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:18px}
.verify-actions form{margin:0}
.verify-btn{border:0;color:#fff;padding:12px 20px;font-size:13px;font-weight:800;cursor:pointer}
.verify-btn.cancel{background:#c95057}.verify-btn.continue{background:#ca8b31}

/* STEP9C — densité/lisibilité proche du FIX11 desktop sur 2560×1440 */
@media (min-width:1800px){
  body{font-size:15px}
  .topbar{height:62px}
  .brand-title{font-size:18px}
  .brand-sub,.user-mini{font-size:11px}
  .top-search input{font-size:12px;height:31px}
  .topbtn{font-size:11px;height:31px;padding-left:12px;padding-right:12px}

  .days-sidebar{width:225px;flex-basis:225px}
  .side-section-title{font-size:11px}
  .selected-day-card .lab{font-size:10px}
  .selected-day-card .date{font-size:17px}
  .side-action{font-size:12px;min-height:35px}
  .tree-year>summary,.tree-month>summary{font-size:12.5px}
  .daylink{font-size:12.5px;padding-top:8px;padding-bottom:8px}

  .page{padding:19px 22px 30px}
  .day-title{font-size:27px;line-height:1.15}
  .day-sub{font-size:12px;margin-top:5px}

  .kpi-grid{gap:10px}
  .kpi-card{height:97px;padding:12px 15px}
  .kpi-lab{font-size:11.5px}
  .kpi-value{font-size:29px;line-height:1.05}
  .kpi-sub{font-size:11px}

  .action-strip{height:40px;padding-left:10px}
  .action-main{font-size:12px}
  .chip{font-size:11.5px;height:28px;padding:0 10px}

  .tabsbar{height:41px}
  .tablink{font-size:12.5px;padding:0 16px}
  .section-title{font-size:19px;margin-top:14px}
  .section-sub{font-size:11.5px;margin-bottom:11px}

  .rank-podium{gap:10px}
  .podium{min-height:84px;padding:11px 13px}
  .podium .pos{font-size:11px}
  .podium .name{font-size:15px;margin-top:5px}
  .podium .small{font-size:10.5px;margin-top:4px}

  table{font-size:13.5px}
  th{font-size:12.5px;padding:9px 9px}
  td{padding:8px 9px;line-height:1.25}
  .techlink{font-size:inherit}
  .badge{font-size:10.5px}

  .data-tech-banner{min-height:50px;padding:9px 13px}
  .data-tech-name{font-size:16px}
  .data-tech-category,.data-tech-partner{font-size:10.5px}
  .data-tech-open{font-size:10.5px;padding:6px 10px}
}

/* Import erreur lisible au lieu d'une Internal Server Error */
.import-error-card{
  width:min(900px,92vw);margin:48px auto;background:#fff;
  border:1px solid #d9b8ba;border-left:5px solid #bd4d54;
  box-shadow:0 12px 35px rgba(0,0,0,.12);
  padding:24px;display:grid;grid-template-columns:58px 1fr;gap:16px
}
.import-error-icon{
  width:50px;height:50px;border-radius:50%;background:#c54d54;color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900
}
.import-error-title{font-size:21px;font-weight:900;color:#562b2e}
.import-error-text{font-size:13px;color:#6b4648;margin-top:8px;word-break:break-word}
.import-error-help{font-size:11px;color:#748394;margin-top:8px}

.verify-btn:disabled{opacity:.65;cursor:wait}

/* STEP10 */
.clickable-intervention{cursor:pointer}
.clickable-intervention:hover td{background:#dfeef8!important}

.intervention-modal-box{
  width:min(1180px,88vw);max-height:86vh;background:#f4f7fa;
  border:1px solid #9eb2c3;box-shadow:0 24px 70px rgba(0,0,0,.4);overflow:auto
}
.intervention-modal-inner{background:#f4f7fa}
.intervention-edit-form{background:#fff}
.intervention-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px}
.intervention-form-grid label{display:flex;flex-direction:column;gap:5px}
.intervention-form-grid label span{font-size:11px;font-weight:800;color:#536b80;text-transform:uppercase}
.intervention-form-grid input,.intervention-form-grid select,.intervention-form-grid textarea{
 border:1px solid #becbd5;background:#fff;padding:9px 10px;font-size:13px
}
.intervention-form-grid input:disabled{background:#eef2f5;color:#5a6b79}
.intervention-form-grid textarea{min-height:90px;resize:vertical}
.intervention-form-grid .span2{grid-column:1/-1}
.intervention-form-grid .check-label input{width:22px;height:22px}

.absence-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;min-height:590px}
.absence-panel{border:1px solid #bdcbd6;background:#fff;display:flex;flex-direction:column}
.absence-panel-head{min-height:46px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;font-size:13px}
.absence-panel.maladie .absence-panel-head{background:#fde7e9;color:#ad343c}
.absence-panel.conge .absence-panel-head{background:#fff1bd;color:#8c6416}
.absence-panel.accident .absence-panel-head{background:#fde5d7;color:#a5531c}
.absence-count{background:#fff;border:1px solid currentColor;padding:2px 7px}
.absence-panel-body{flex:1;overflow:auto}
.absence-table{font-size:11px}.absence-table th{font-size:10px}
.absence-empty{height:70px;text-align:left!important;font-weight:700;color:#526d83;background:#e4f0f8!important}

.ref-subtabs{display:flex;margin-top:12px;border-bottom:1px solid #aebcca;background:#eef2f5}
.ref-subtab{padding:9px 13px;text-decoration:none;color:#31495e;font-size:11px;font-weight:800;border:1px solid transparent;border-bottom:0}
.ref-subtab.active{background:#d8d5cb;border-color:#9e9a8f;color:#1c2f3e}
.ref-toolbar{display:flex;gap:6px;padding:9px;background:#fff;border:1px solid #bbc8d2;border-top:0}
.ref-toolbar span{background:#326b9d;color:#fff;padding:7px 13px;font-size:10px;font-weight:800}
.ref-toolbar span.danger{background:#c65057}
.ref-tech-columns,.ref-tariff-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}
.ref-desktop-panel{border:1px solid #8e9daa;background:#fff;min-height:520px}
.ref-desktop-title{padding:10px 12px;color:#fff;font-size:13px;font-weight:900}
.ref-desktop-title.fibre{background:#3477af}.ref-desktop-title.cuivre{background:#274f73}
.ref-desktop-panel table{font-size:11px}.ref-desktop-panel td{padding:5px 8px}
.ref-disabled{margin-top:9px;border:1px solid #97a8b5;background:#eef4f8}
.ref-disabled summary{padding:9px 11px;font-size:11px;font-weight:800;cursor:pointer}
.ref-cat-row{padding:8px 10px;font-size:11px;font-weight:900;background:#e6f1fa;color:#2c658e}
.ref-cat-row.cuivre{background:#fee9d2;color:#9b5a1a}
.tariff-desktop-table td{padding:4px 7px}
.tariff-inline-form{display:flex;justify-content:flex-end;gap:4px}
.tariff-inline-form input{width:82px;border:0;background:transparent;text-align:right;font-size:11px}
.tariff-inline-form button{border:0;background:#3b806b;color:#fff;width:25px;cursor:pointer}

@media(min-width:1800px){
 .absence-panel-head{font-size:14px}
 .absence-table{font-size:12.5px}.absence-table th{font-size:11.5px}
 .ref-subtab{font-size:12px}.ref-toolbar span{font-size:11px}
 .ref-desktop-panel table{font-size:12.5px}
}

/* STEP10B - force correct layouts after browser cache issues */
.absence-columns{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.absence-panel{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:560px!important}
.absence-panel-body{flex:1!important;overflow:auto!important}
.ref-subtabs{display:flex!important;align-items:flex-end!important;margin-top:12px!important}
.ref-subtab{display:inline-flex!important;align-items:center!important;min-height:34px!important;padding:0 14px!important}
.ref-toolbar{display:flex!important;flex-wrap:wrap!important;gap:7px!important;min-height:44px!important;padding:8px!important}
.ref-toolbar span{display:inline-flex!important;align-items:center!important;min-height:30px!important;padding:0 13px!important}
.ref-tech-columns,.ref-tariff-columns{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}
.ref-desktop-panel{min-width:0!important;overflow:auto!important}.ref-desktop-panel table{width:100%!important}
.intervention-modal-box{width:min(1180px,88vw)!important;max-height:86vh!important}
.intervention-form-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;padding:18px!important}
.intervention-form-grid label{display:flex!important;flex-direction:column!important;gap:5px!important}.intervention-form-grid .span2{grid-column:1/-1!important}

.nd-modal-box{width:min(1880px,92vw);height:min(1050px,88vh);background:#f4f7fa;border:1px solid #8fa2b2;box-shadow:0 24px 70px rgba(0,0,0,.42);overflow:hidden}
.nd-modal-inner{height:100%;display:flex;flex-direction:column;min-height:0}
.nd-modal-head{background:#fff;border-bottom:1px solid #cad6df;border-top:4px solid #2e6ca2;padding:18px 22px;display:flex;justify-content:space-between;align-items:center}
.nd-modal-title{font-size:28px;font-weight:900;color:#142d45}.nd-modal-sub{font-size:11px;color:#758697;margin-top:4px}
.nd-kpis{display:grid;grid-template-columns:1.15fr 1.45fr 1.45fr 1fr 1.35fr 1.1fr;gap:8px;padding:12px 18px;background:#f2f6f9}
.nd-kpis>div{background:#fff;border:1px solid #cbd7e0;padding:11px 13px}.nd-kpis span{display:block;font-size:10px;text-transform:uppercase;color:#6c8194;font-weight:800}.nd-kpis strong{display:block;font-size:14px;margin-top:7px;color:#102c45}
.nd-history-panel{flex:1;min-height:0;margin:0 18px 12px;background:#fff;border:1px solid #bfcdd8;display:flex;flex-direction:column}
.nd-history-head{padding:12px 14px;border-bottom:1px solid #c9d5de;display:flex;justify-content:space-between}.nd-history-head strong{font-size:16px}.nd-history-head span{font-size:11px;color:#718395}
.nd-history-scroll{flex:1;min-height:0;overflow:auto}.nd-history-scroll table{width:100%;font-size:13px}.nd-history-row{cursor:pointer}.nd-history-row:hover td{background:#e9f3fa!important}.nd-history-row.selected td{background:#cfe4f4!important}
.nd-modal-footer{display:flex;gap:9px;align-items:center;background:#fff;border-top:1px solid #c9d5de;padding:11px 18px}.nd-footer-spacer{flex:1}.nd-modal-footer button:disabled{opacity:.45}

/* STEP10D — point discret article */
.article-ok-dot{
  border:0!important;
  background:transparent!important;
  color:#3b8a69!important;
  width:19px!important;
  height:19px!important;
  padding:0!important;
  font-size:10px!important;
  line-height:19px!important;
  cursor:pointer!important;
  opacity:.8;
}
.article-ok-dot:hover{opacity:1;transform:scale(1.12)}

/* Toast volante */
.floating-toast{
  position:fixed;
  right:28px;
  bottom:28px;
  z-index:15000;
  width:min(390px,calc(100vw - 40px));
  background:#fff;
  border:1px solid #c9d8d1;
  border-left:4px solid #3a896d;
  box-shadow:0 14px 38px rgba(11,35,54,.22);
  padding:13px 15px;
  display:flex;
  align-items:center;
  gap:11px;
  opacity:0;
  transform:translateY(18px);
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:none;
}
.floating-toast.show{opacity:1;transform:translateY(0)}
.floating-toast.warning{border-color:#e3c88d;border-left-color:#d08a31}
.floating-toast-dot{
  width:9px;height:9px;border-radius:50%;background:#3a896d;flex:0 0 9px
}
.floating-toast.warning .floating-toast-dot{background:#d08a31}
.floating-toast-copy{display:flex;flex-direction:column;gap:3px}
.floating-toast-copy strong{font-size:13px;color:#18354b}
.floating-toast-copy span{font-size:11px;color:#687c8e}

/* Centre de notifications complet */
.notify-page-title-row{
  display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:14px
}
.notify-scope-actions{display:flex;gap:6px}
.notify-scope-btn{
  text-decoration:none;background:#e9eff4;color:#31516c;border:1px solid #c1cfda;
  padding:8px 12px;font-size:11px;font-weight:800
}
.notify-scope-btn.active{background:#285b83;color:#fff;border-color:#285b83}

.notify-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:12px}
.notify-kpi{
  background:#fff;border:1px solid #ccd8e1;border-top:3px solid #527693;padding:10px 12px
}
.notify-kpi span{display:block;font-size:10px;font-weight:800;color:#6b7f91;text-transform:uppercase}
.notify-kpi strong{display:block;font-size:24px;margin-top:4px;color:#17334a}
.notify-kpi.binome{border-top-color:#6855a1}
.notify-kpi.renfort{border-top-color:#7451a5}
.notify-kpi.absence{border-top-color:#c35158}
.notify-kpi.garantie{border-top-color:#d19132}

.notify-toolbar{
  display:flex;justify-content:space-between;align-items:center;
  background:#edf3f7;border:1px solid #c8d5de;padding:9px 12px
}
.notify-toolbar-title{font-size:12px;font-weight:900;color:#24455f}
.notify-toolbar-help{font-size:10px;color:#718394}

.notify-list-full{gap:6px;margin-top:7px}
.notify-list-full .notify-item{
  grid-template-columns:40px minmax(0,1fr) 100px 110px 28px;
  min-height:58px;
  padding:9px 11px;
  transition:background .12s ease,border-color .12s ease
}
.notify-list-full .notify-item:hover{background:#f5f9fc;border-color:#9db4c5}
.notify-list-full .notify-icon{
  width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#e5edf3;color:#315671;font-size:10px;font-weight:900
}
.notify-type-binome .notify-icon{background:#ece7f6;color:#5d438e}
.notify-type-renfort .notify-icon{background:#ede6f7;color:#69449b}
.notify-type-absence .notify-icon{background:#f8e5e7;color:#a13f46}
.notify-type-garantie .notify-icon{background:#fff0d8;color:#98631e}
.notify-type-label{font-size:9px;font-weight:900;color:#728495;text-align:right}
.notify-arrow{font-size:18px;color:#526f84;text-align:right}
.notify-empty{
  min-height:180px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:5px!important
}
.notify-empty-dot{color:#3a896d;font-size:13px}
.notify-empty strong{font-size:15px}
.notify-empty span{font-size:11px;font-weight:400;color:#718596}

@media(min-width:1800px){
  .floating-toast{right:34px;bottom:34px}
  .notify-kpi strong{font-size:27px}
  .notify-list-full .notify-copy strong{font-size:13.5px}
  .notify-list-full .notify-copy span{font-size:11.5px}
}

/* STEP11 — fiche technicien complète */
.tech-sheet{height:100%;display:flex;flex-direction:column;min-height:0}
.tech-sheet-header{flex:0 0 auto}
.tech-sheet-head-actions{display:flex;align-items:center;gap:7px}
.tech-period-btn{
  border:1px solid #bac9d4;background:#edf3f7;color:#31536d;
  padding:7px 12px;font-size:11px;font-weight:800;cursor:pointer
}
.tech-period-btn.active{background:#2d638e;color:#fff;border-color:#2d638e}

.tech-sheet-summary{
  display:grid;grid-template-columns:210px 1fr;gap:10px;padding:10px 14px 0
}
.tech-rank-card,.tech-reliability-card{
  background:#fff;border:1px solid #cbd8e1;padding:11px 13px
}
.tech-rank-card span,.tech-rel-head span{
  display:block;font-size:10px;text-transform:uppercase;font-weight:800;color:#6d8192
}
.tech-rank-card strong{display:block;font-size:28px;color:#173952;margin-top:3px}
.tech-rank-card small,.tech-reliability-card small{font-size:10px;color:#738595}
.tech-rel-head{display:flex;align-items:center;justify-content:space-between}
.tech-rel-head strong{font-size:16px;color:#1d4c3d}
.tech-rel-track{height:12px;background:#e2e9ee;margin:10px 0 6px;overflow:hidden}
.tech-rel-fill{height:100%;background:#3b8b6f;min-width:2px}

.tech-sheet-kpis{
  grid-template-columns:repeat(7,1fr)!important;
  padding:10px 14px!important;
  gap:8px!important;
}
.tech-sheet-kpis .tech-modal-kpi{min-width:0}
.tech-sheet-kpis .tech-modal-kpi strong{font-size:20px!important}

.tech-year-chart{
  margin:0 14px 10px;background:#fff;border:1px solid #c8d5de;flex:0 0 auto
}
.tech-month-bars{
  height:170px;display:grid;grid-template-columns:repeat(12,1fr);gap:6px;
  padding:10px 12px 8px;align-items:end
}
.tech-month-col{height:145px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
.tech-month-value{height:18px;font-size:9px;color:#6a7d8e;white-space:nowrap}
.tech-month-bar-wrap{
  width:68%;height:104px;background:#edf2f5;display:flex;align-items:flex-end;overflow:hidden
}
.tech-month-bar{width:100%;background:#3674a4;min-height:0}
.tech-month-label{font-size:10px;font-weight:800;color:#536b7e;margin-top:5px}

.tech-sheet-grid{
  flex:1;min-height:0;grid-template-columns:minmax(0,2.15fr) minmax(360px,.85fr)!important
}
.tech-sheet-grid .tech-modal-section{min-height:0}
.tech-sheet-grid .tech-modal-table-wrap{height:100%;max-height:none!important}
.tech-row-click{cursor:pointer}
.tech-row-click:hover td{background:#e8f2f8!important}
.status-dot.ok{
  display:inline-block;width:8px;height:8px;border-radius:50%;background:#3b8b6f;vertical-align:middle
}
.tech-footer-note{margin-left:auto;font-size:10px;color:#758797}

@media(min-width:1800px){
  .tech-rank-card strong{font-size:32px}
  .tech-rel-head strong{font-size:18px}
  .tech-sheet-kpis .tech-modal-kpi strong{font-size:22px!important}
  .tech-month-bars{height:185px}
  .tech-month-col{height:160px}
  .tech-month-bar-wrap{height:116px}
}

/* STEP11A — Techniciens inclut binômes/renforts */
.tech-day-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px
}
.tech-day-card{
  background:#fff;border:1px solid #cbd7e0;border-top:3px solid #3978a6;
  padding:11px 12px;min-width:0
}
.tech-day-card.has-shared{border-top-color:#7453a2}
.tech-day-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tech-day-name{font-size:14px;font-weight:900;color:#163b58;text-decoration:none}
.tech-day-cat{font-size:9px;font-weight:800;background:#edf3f7;color:#4d6d84;padding:3px 7px}
.tech-day-presence{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}
.presence-pill{font-size:9px;font-weight:800;padding:3px 7px}
.presence-pill.normal{background:#e8f1f7;color:#326388}
.presence-pill.shared{background:#ece4f5;color:#674590}
.tech-shared-list{margin-top:8px;border-top:1px solid #e1d8eb;padding-top:6px}
.tech-shared-row{display:flex;align-items:center;gap:5px;font-size:9.5px;color:#64556f}
.shared-dot{width:6px;height:6px;border-radius:50%;background:#7956a5}

/* Données : recherche + filtres */
.data-filterbar{
  display:flex;align-items:center;gap:10px;background:#fff;
  border:1px solid #cad6df;padding:8px 10px;margin-bottom:10px
}
.data-filter-tabs{display:flex;gap:4px}
.data-filter{
  border:1px solid #b9c8d3;background:#edf3f7;color:#35546c;
  padding:7px 12px;font-size:10.5px;font-weight:800;cursor:pointer
}
.data-filter.active{background:#2e638e;color:#fff;border-color:#2e638e}
.data-filter.attention{border-color:#d0a04c}
.data-filter.attention.active{background:#c48629;border-color:#c48629}
.data-search-wrap{
  display:flex;align-items:center;gap:6px;flex:1;max-width:520px;
  border:1px solid #bfcdd7;background:#fff;padding:0 9px
}
.data-search-wrap span{font-size:15px;color:#6e8191}
.data-search-wrap input{
  width:100%;border:0;outline:0;padding:7px 4px;font-size:11px;background:transparent
}
.data-result-count{margin-left:auto;font-size:10px;color:#728696;font-weight:800}

/* Banderole violette partagé */
.data-tech-banner.shared-banner{
  background:linear-gradient(90deg,#5d437f,#7655a1)!important;
  border-bottom-color:#4f396d!important
}
.data-shared-badge{
  display:inline-flex;align-items:center;
  font-size:9px;font-weight:900;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;padding:3px 7px
}
.shared-only-block{border-color:#b7a4ca}
.shared-only-copy{
  padding:14px 16px;background:#faf7fd;color:#665773;font-size:10.5px
}

@media(min-width:1800px){
  .tech-day-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .tech-day-name{font-size:15px}
  .data-filter{font-size:11.5px;padding:8px 14px}
  .data-search-wrap input{font-size:12px}
}
@media(max-width:1200px){
  .tech-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .data-filterbar{flex-wrap:wrap}
  .data-search-wrap{max-width:none}
}

/* STEP11B — base plus confortable, proche du ressenti navigateur 120% */
:root{--ui-scale:1}
@media (min-width:1500px){
  body{font-size:15px}
  .topbar{min-height:58px}
  .page{padding:20px 22px 30px}
  .day-title{font-size:28px}
  .tabsbar{height:42px}
  .tablink{font-size:12.5px}
  table{font-size:13.5px}
  th{font-size:12.5px}
  td{padding:8px 9px}
}
@media (min-width:2200px){
  body{font-size:16px}
  .topbar{min-height:62px}
  .day-title{font-size:30px}
  .kpi-value{font-size:31px}
  table{font-size:14.5px}
  th{font-size:13.5px}
  .tablink{font-size:13px}
}

/* petits écrans : garde la densité et permet le scroll */
@media (max-width:1200px){
  .topbar{flex-wrap:wrap;height:auto;min-height:54px;padding-bottom:6px}
  .top-search{order:3;width:100%;max-width:none}
  .page{padding:12px}
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tabsbar{overflow-x:auto;white-space:nowrap}
  .tablink{flex:0 0 auto}
  .tech-sheet-kpis{grid-template-columns:repeat(2,1fr)!important}
  .intervention-form-grid{grid-template-columns:1fr!important}
  .intervention-form-grid .span2{grid-column:1!important}
}
@media (max-width:760px){
  .days-sidebar{display:none}
  .kpi-grid{grid-template-columns:1fr}
  .action-strip{overflow-x:auto}
  .data-filterbar{align-items:stretch}
  .data-filter-tabs{overflow-x:auto}
  .article-edit-row{grid-template-columns:1fr 80px!important}
  .article-unit,.article-line-total,.article-remove-btn{grid-column:auto}
}

/* Éditeur articles */
.article-editor-section{margin:0 18px 14px;background:#fff;border:1px solid #c8d5df}
.article-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #d5dfe6}
.article-editor-head strong{display:block;font-size:13px;color:#24445d}
.article-editor-head span{display:block;font-size:10px;color:#758797;margin-top:2px}
.article-add-btn{border:0;background:#2e6c9e;color:#fff;padding:8px 11px;font-size:10px;font-weight:800;cursor:pointer}
.article-rows{padding:8px}
.article-edit-row{
  display:grid;grid-template-columns:minmax(180px,1.5fr) 90px 130px 140px 34px;
  gap:7px;align-items:center;padding:6px;border-bottom:1px solid #edf1f4
}
.article-edit-row:last-child{border-bottom:0}
.article-edit-row select,.article-edit-row input{width:100%;padding:7px;border:1px solid #c2cfd9;font-size:11px}
.article-unit,.article-line-total{display:flex;justify-content:space-between;gap:6px;font-size:10px;color:#697e90}
.article-unit strong,.article-line-total strong{font-size:11px;color:#263f53}
.article-remove-btn{border:0;background:#c6545b;color:#fff;width:30px;height:30px;cursor:pointer}
.intervention-bottom-grid{display:grid;grid-template-columns:160px 220px 1fr;gap:10px;padding:0 18px 14px}
.intervention-bottom-grid .span2{grid-column:1/-1;display:flex;flex-direction:column;gap:5px}
.intervention-bottom-grid textarea{min-height:80px;border:1px solid #c2cfd9;padding:8px}
.live-ca-card{background:#eef6f2;border:1px solid #c2ddd1;padding:9px 11px}
.live-ca-card span{display:block;font-size:9px;text-transform:uppercase;color:#617e70;font-weight:800}
.live-ca-card strong{display:block;font-size:19px;color:#2d6c54;margin-top:3px}
.live-ca-card small{font-size:9px;color:#70867a}

/* recherche live */
.live-search{position:relative}
.live-search-box{position:relative;flex:1}
.live-search-box input{width:100%}
.global-search-suggestions{
  position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:20000;
  background:#fff;border:1px solid #b9c9d5;box-shadow:0 12px 32px rgba(13,38,57,.22);
  display:none;max-height:520px;overflow:auto
}
.global-search-suggestions.open{display:block}
.search-suggestion{
  width:100%;border:0;border-bottom:1px solid #edf1f4;background:#fff;
  padding:9px 11px;text-align:left;cursor:pointer;display:grid;
  grid-template-columns:minmax(0,1fr) auto;gap:12px
}
.search-suggestion:hover{background:#eef5fa}
.search-suggestion-main{display:flex;flex-direction:column;gap:2px}
.search-suggestion-main strong{font-size:11.5px;color:#1e4b6a}
.search-suggestion-main span{font-size:10.5px;color:#5f7385}
.search-suggestion-meta{display:flex;align-items:center;gap:10px;font-size:9.5px;color:#718394;white-space:nowrap}
.search-empty{padding:14px;text-align:center;font-size:10.5px;color:#768797}

/* STEP11C — palette plus douce, proche du FIX11 historique */
:root{
  --fix11-navy:#244d70;
  --fix11-navy-dark:#1d3f5d;
  --fix11-blue:#315f83;
  --fix11-blue-soft:#dfeaf2;
  --fix11-blue-pale:#edf4f8;
  --fix11-purple:#65517d;
  --fix11-purple-dark:#55436b;
  --fix11-purple-soft:#e9e2ef;
  --fix11-border:#bccbd6;
  --fix11-text:#19354c;
}

/* Barre supérieure */
.topbar{
  background:var(--fix11-navy-dark)!important;
}
.brand-title,.brand-sub,.user-mini{color:#f5f8fa!important}
.topbtn{
  background:var(--fix11-blue)!important;
}
.topbtn.dark{
  background:var(--fix11-navy-dark)!important;
}

/* Sidebar */
.days-sidebar{
  background:#173550!important;
}
.selected-day-card{
  background:#214865!important;
}
.side-action{
  background:#28597d!important;
}
.tree-year>summary,.tree-month>summary{
  color:#dce8f0!important;
}
.daylink.active{
  background:#2f6185!important;
}

/* KPI / onglets */
.kpi-card{
  border-top-color:#4e7595!important;
}
.tabsbar{
  background:#eef3f6!important;
}
.tablink{
  color:#284c68!important;
}
.tablink.active{
  background:#fff!important;
  border-top-color:#446e91!important;
  color:#183b58!important;
}

/* En-têtes de tableaux */
table thead th,
.panel table thead th,
.data-tech-table thead th,
.ticket-table thead th,
.absence-table thead th,
.ref-desktop-panel table thead th,
.nd-history-scroll table thead th,
.tech-modal-table-wrap table thead th{
  background:var(--fix11-navy)!important;
  color:#fff!important;
}

/* Banderoles techniciens */
.data-tech-banner{
  background:var(--fix11-blue)!important;
  border-bottom-color:var(--fix11-navy-dark)!important;
}
.data-tech-banner.shared-banner{
  background:linear-gradient(90deg,var(--fix11-purple-dark),var(--fix11-purple))!important;
  border-bottom-color:#493a5d!important;
}
.data-tech-name,.data-tech-category,.data-tech-open{
  color:#fff!important;
}
.data-tech-open{
  background:rgba(255,255,255,.11)!important;
  border:1px solid rgba(255,255,255,.22)!important;
}
.data-shared-badge{
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.20)!important;
}

/* Cartes techniciens */
.tech-day-card{
  border-top-color:#557b99!important;
}
.tech-day-card.has-shared{
  border-top-color:var(--fix11-purple)!important;
}
.presence-pill.normal{
  background:#e7f0f6!important;
  color:#355f7e!important;
}
.presence-pill.shared{
  background:var(--fix11-purple-soft)!important;
  color:#5e4974!important;
}

/* Boutons de filtre */
.data-filter{
  background:#edf3f7!important;
  color:#365874!important;
  border-color:#c2d0da!important;
}
.data-filter.active{
  background:#466f91!important;
  border-color:#466f91!important;
  color:#fff!important;
}
.data-filter.attention.active{
  background:#b8843f!important;
  border-color:#b8843f!important;
}

/* Référentiels */
.ref-desktop-title.fibre{
  background:#3d6f96!important;
}
.ref-desktop-title.cuivre{
  background:#5c7182!important;
}
.ref-subtab.active{
  background:#dfe6eb!important;
  color:#1f415d!important;
}
.ref-toolbar span{
  background:#416f93!important;
}

/* Binômes / renforts */
.shared-only-copy{
  background:#f5f1f7!important;
  color:#655870!important;
}
.shared-dot{
  background:#725a89!important;
}
.notify-kpi.binome,.notify-kpi.renfort{
  border-top-color:#6f5a84!important;
}
.notify-type-binome .notify-icon,
.notify-type-renfort .notify-icon{
  background:#ece6f1!important;
  color:#5f4b73!important;
}

/* Dossier ND / modales */
.nd-modal-head{
  border-top-color:#416f93!important;
}
.tech-period-btn.active{
  background:#456f91!important;
  border-color:#456f91!important;
}
.tech-month-bar{
  background:#507b9c!important;
}
.tech-rel-fill{
  background:#4d806d!important;
}

/* Recherche live */
.search-suggestion:hover{
  background:#eef4f7!important;
}
.search-suggestion-main strong{
  color:#284f6d!important;
}

/* Toasts plus sobres */
.floating-toast{
  border-left-color:#4c806e!important;
}
.floating-toast-dot{
  background:#4c806e!important;
}

/* Alternance très légère des lignes, moins agressive */
tbody tr:nth-child(even) td{
  background:#f5f8fa;
}
tbody tr:nth-child(odd) td{
  background:#fff;
}

/* Ne pas écraser les couleurs d'alerte utiles */
.badge.bad,
.tr-warning td,
.notify-danger{
  /* les états d'erreur restent volontairement visibles */
}

/* Grand écran : contraste encore un peu adouci */
@media(min-width:1800px){
  .page{background:#f1f4f6!important}
  .panel,.tech-modal-section,.nd-history-panel,.ref-desktop-panel{
    box-shadow:none!important;
  }
}

/* Petit écran */
@media(max-width:1200px){
  .data-tech-banner{
    background:#3f6f93!important;
  }
  .data-tech-banner.shared-banner{
    background:#625077!important;
  }
}

/* STEP11D — recherche Données stricte ligne par ligne */
.data-row[style*="display: none"]{display:none!important}
.data-filter-block{transition:none}
.data-result-count{
  min-width:110px;
  text-align:right;
}

/* STEP11E — renfort/binôme ponctuel au niveau de la ligne */
.shared-intervention-row td,
.shared-helper-row td{
  background:#eee7f4!important;
  color:#4f405d!important;
  border-top:1px solid #d3c4df!important;
  border-bottom:1px solid #d3c4df!important;
}
.shared-intervention-row:hover td,
.shared-helper-row:hover td{
  background:#e5d9ee!important;
}
.row-share-tag{
  display:inline-flex;
  margin-left:6px;
  padding:2px 5px;
  border-radius:2px;
  background:#6a527f;
  color:#fff;
  font-size:8px;
  font-weight:900;
  vertical-align:middle;
}
.row-share-note{
  margin-top:3px;
  font-size:9px;
  font-weight:800;
  color:#6b527d;
}
.shared-helper-row .amount-cell,
.shared-intervention-row .amount-cell{
  font-weight:900;
  color:#4d3c5b!important;
}

/* Un technicien avec renfort associé garde son bandeau normal.
   Le violet de bandeau est réservé au "à associer". */
.data-tech-banner.shared-banner{
  background:linear-gradient(90deg,#65517d,#6e5984)!important;
}

/* STEP12 — UX consolidation */

/* Techniciens en 2 colonnes */
.tech-columns-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tech-column-panel{border:1px solid #c7d1d9;background:#fff;min-height:480px}
.tech-column-title{padding:10px 12px;font-size:13px;font-weight:900;color:#fff;background:#526b7e}
.tech-column-title.fibre{background:#526f86}
.tech-column-title.cuivre{background:#6d665f}
.tech-column-body{padding:9px;display:flex;flex-direction:column;gap:7px}
.tech-day-card{padding:13px 14px!important;cursor:pointer}
.tech-day-name{font-size:15px!important}
.tech-day-presence{margin-top:8px}

/* Absence create */
.absence-create-form{
  display:grid;grid-template-columns:minmax(180px,1.3fr) 170px 150px 150px 130px auto;
  gap:8px;align-items:center;background:#f7f8f9;border:1px solid #ccd4da;padding:10px;margin-bottom:12px
}
.absence-create-form select,.absence-create-form input{
  height:34px;border:1px solid #c3ccd3;background:#fff;padding:0 8px;font-size:11px
}

/* Referentiel dbl-click affordance */
.ref-desktop-panel tbody tr{cursor:default}
.ref-desktop-panel tbody tr:hover td{background:#eef2f4!important}

/* Article history modal */
.article-history-modal-box{
  width:min(1800px,94vw);height:min(980px,90vh);background:#eef1f3;
  border:1px solid #aeb9c1;box-shadow:0 22px 65px rgba(0,0,0,.28);overflow:auto
}
.article-history-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:12px}
.article-history-kpis>div{background:#fff;border:1px solid #cbd3d9;padding:11px}
.article-history-kpis span{display:block;font-size:9px;text-transform:uppercase;color:#72808a;font-weight:800}
.article-history-kpis strong{display:block;font-size:20px;color:#2e414f;margin-top:4px}
.article-history-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 12px 12px}
.article-history-panel{background:#fff;border:1px solid #c7d0d6;min-width:0}
.article-history-panel-head{display:flex;justify-content:space-between;padding:11px 13px;color:#fff;background:#526f86}
.article-history-panel-head.sogetrel{background:#5f7b6f}
.article-history-subhead{padding:9px 11px;font-size:11px;font-weight:900;border-top:1px solid #d5dce1;background:#f5f7f8}
.article-history-scroll{max-height:390px;overflow:auto}
.article-history-edit{padding:10px;border-top:1px solid #d7dee3;background:#f8f9fa}
.article-history-edit form{display:grid;grid-template-columns:auto 100px auto 150px auto;gap:7px;align-items:center}
.article-history-edit input{height:32px;border:1px solid #c2ccd3;padding:0 7px}

/* Tickets actions on same row */
.tr-tools{flex-wrap:wrap}
.tr-correct-wrap{display:flex!important}
.tr-correct-wrap input{height:31px}
.tr-action{height:31px!important;padding:0 10px!important}
.tr-bottom-actions{display:none!important}

/* Toast centered and more visible */
.floating-toast{
  right:50%!important;
  bottom:34px!important;
  transform:translate(50%,20px)!important;
  width:min(520px,calc(100vw - 36px))!important;
  padding:16px 18px!important;
  border-radius:5px;
  box-shadow:0 16px 42px rgba(28,37,44,.25)!important;
}
.floating-toast.show{
  transform:translate(50%,0)!important;
}
.floating-toast-copy strong{font-size:14px!important}
.floating-toast-copy span{font-size:12px!important}

/* Softer, more neutral palette */
:root{
 --fix11-navy:#334d61;
 --fix11-navy-dark:#293f50;
 --fix11-blue:#49687f;
 --fix11-purple:#665d70;
 --fix11-purple-dark:#574f60;
}
.topbar{background:#2e475a!important}
.days-sidebar{background:#263f52!important}
.selected-day-card{background:#35566d!important}
.side-action{background:#41657e!important}
.data-tech-banner{background:#536f84!important}
.data-tech-banner.shared-banner{background:#62596d!important}
table thead th{background:#445f73!important}
.ref-desktop-title.fibre{background:#536f84!important}
.ref-desktop-title.cuivre{background:#726c66!important}
.tablink.active{border-top-color:#5f7789!important}
.page{background:#f3f5f6!important}

/* responsive */
@media(max-width:1100px){
  .tech-columns-two,.article-history-columns{grid-template-columns:1fr}
  .absence-create-form{grid-template-columns:1fr 1fr}
  .article-history-edit form{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .absence-create-form{grid-template-columns:1fr}
  .article-history-kpis{grid-template-columns:1fr 1fr}
}

/* STEP13 — vue annuelle + À traiter consolidé */
.annual-title-row{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:14px}
.annual-year-select{display:flex;gap:5px}
.annual-year-select a{padding:8px 12px;text-decoration:none;background:#e7ecef;color:#425867;border:1px solid #c7d0d6;font-size:11px;font-weight:800}
.annual-year-select a.active{background:#4e687b;color:#fff;border-color:#4e687b}
.annual-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-bottom:12px}
.annual-kpis>div{background:#fff;border:1px solid #ccd4da;border-top:3px solid #647b8b;padding:11px 13px}
.annual-kpis span{display:block;font-size:9px;text-transform:uppercase;color:#74818a;font-weight:800}
.annual-kpis strong{display:block;margin-top:4px;font-size:23px;color:#2f4351}
.annual-months-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:14px}
.annual-month-card{background:#fff;border:1px solid #cdd5db;padding:10px 11px}
.annual-month-head{display:flex;justify-content:space-between;align-items:center}
.annual-month-head strong{font-size:12px;color:#3b5161}.annual-month-head span{font-size:11px;color:#5e707d;font-weight:800}
.annual-month-bar{height:6px;background:#edf1f3;margin:8px 0}.annual-month-bar>div{height:100%;background:#6b8190}
.annual-month-meta{display:flex;gap:7px;flex-wrap:wrap;font-size:9px;color:#75838d}
.annual-ranking-panel{background:#fff;border:1px solid #cbd4da;padding:10px}
.annual-ranking-table tbody tr{cursor:pointer}
.annual-ranking-table tbody tr:hover td{background:#eef2f4!important}

.chip-button{cursor:pointer}
.pending-inline-panel{display:none;background:#fff;border:1px solid #cbd3d9;border-top:0;margin:-1px 0 10px}
.pending-inline-panel.open{display:block}
.pending-inline-head{display:flex;justify-content:space-between;align-items:center;padding:9px 11px;background:#f1f4f6;border-bottom:1px solid #d7dee3}
.pending-inline-head strong{font-size:11px;color:#3e5361}
.pending-inline-head a{font-size:9.5px;color:#536b7b;text-decoration:none}
.pending-inline-list{max-height:310px;overflow:auto}
.pending-inline-item{display:grid;grid-template-columns:90px 180px minmax(0,1fr) 100px 20px;gap:8px;align-items:center;padding:8px 10px;border-bottom:1px solid #edf0f2;text-decoration:none;color:#435664;font-size:10px}
.pending-inline-item:hover{background:#f6f8f9}
.pending-type{font-size:8.5px;font-weight:900;color:#fff;background:#6f6478;padding:3px 6px;text-align:center}
.pending-title{font-weight:800}.pending-detail{color:#687986}.pending-date{text-align:right;color:#7a8790}
.pending-inline-empty{padding:18px;text-align:center;color:#78858d;font-size:10px}

@media(max-width:1200px){
  .annual-kpis{grid-template-columns:repeat(3,1fr)}
  .annual-months-grid{grid-template-columns:repeat(2,1fr)}
  .pending-inline-item{grid-template-columns:80px 1fr 90px 20px}
  .pending-detail{grid-column:2/4}
}
@media(max-width:700px){
  .annual-title-row{align-items:flex-start;flex-direction:column}
  .annual-kpis{grid-template-columns:1fr 1fr}
  .annual-months-grid{grid-template-columns:1fr}
}

/* STEP13A — FIX espace géant entre blocs techniciens dans Données */
.tab-content{
  min-height:0!important;
  height:auto!important;
}

.data-tech-block{
  display:block!important;
  position:relative!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 0 12px 0!important;
  padding:0!important;
  align-self:auto!important;
}

.data-tech-table-wrap{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}

.data-tech-table{
  height:auto!important;
  min-height:0!important;
  margin:0!important;
}

.data-tech-table tbody{
  height:auto!important;
  min-height:0!important;
}

.data-tech-table tr,
.data-tech-table td{
  height:auto!important;
  min-height:0!important;
}

.data-tech-banner{
  position:relative!important;
  top:auto!important;
  bottom:auto!important;
  margin:0!important;
}

.shared-only-block{
  height:auto!important;
  min-height:0!important;
  margin-bottom:12px!important;
}

/* Empêche les anciens styles flex/grid d'étirer les blocs verticalement */
section.tab-content:has(.data-tech-block){
  display:block!important;
  align-items:initial!important;
  grid-template-rows:none!important;
  grid-auto-rows:auto!important;
}

/* Espacement régulier entre techniciens */
.data-tech-block + .data-tech-block{
  margin-top:12px!important;
}

/* Responsive : même comportement compact */
@media(max-width:1200px){
  .data-tech-block,
  .data-tech-table-wrap{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
}

/* STEP13B — Absence modal façon FIX11 */
.absence-head-actions{display:flex;align-items:center;gap:7px}
.absence-plus{
  width:28px;height:28px;border:1px solid #9eb0bc;background:#fff;
  color:#31566f;font-size:17px;font-weight:800;cursor:pointer
}
.absence-plus:hover{background:#eef3f6}
.absence-modal-box{
  width:min(760px,92vw);background:#eef2f5;border:1px solid #aebbc5;
  box-shadow:0 20px 58px rgba(20,32,41,.28);overflow:hidden
}
.absence-modal-form{padding:16px 20px;background:#f6f8f9}
.absence-search-row,.absence-form-row{
  display:grid;grid-template-columns:125px minmax(0,1fr) auto;gap:10px;
  align-items:center;margin-bottom:11px
}
.absence-search-row label,.absence-form-row label{
  font-size:11px;font-weight:800;color:#344d5f
}
.absence-search-row input,.absence-form-row input,.absence-form-row select{
  height:34px;border:1px solid #b8c4cc;background:#fff;padding:0 8px;font-size:11px
}
.absence-period-fields{display:flex;align-items:center;gap:7px}
.absence-period-fields input{flex:1}
.absence-form-row small{font-size:9px;color:#71828e}
.absence-days-row strong{color:#3e7194;font-size:15px}
.absence-rule{
  margin:4px 0 14px 135px;color:#637987;font-size:10px;font-style:italic
}

/* Renfort ponctuel visible */
.shared-intervention-row td,.shared-helper-row td{
  background:#ece6f0!important;
  border-top:1px solid #cfc2d8!important;
  border-bottom:1px solid #cfc2d8!important;
}
.row-share-tag{background:#65556f!important}
.row-share-note{color:#65556f!important}

@media(max-width:700px){
 .absence-search-row,.absence-form-row{grid-template-columns:1fr}
 .absence-rule{margin-left:0}
 .absence-period-fields{flex-direction:column;align-items:stretch}
}

/* STEP13C — Données reconstruit en DOM valide */
.data-groups-container{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
}
.data-groups-container>.data-tech-block{
  display:block!important;
  float:none!important;
  position:static!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 0 12px 0!important;
  inset:auto!important;
  transform:none!important;
}
.data-groups-container>.data-tech-block:last-child{margin-bottom:0!important}
.data-groups-container .data-tech-table-wrap,
.data-groups-container .data-tech-table,
.data-groups-container .data-tech-table tbody{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
}
.data-groups-container .data-tech-table-wrap{overflow-x:auto!important;overflow-y:visible!important}

/* STEP14 — lisibilité ciblée */

/* Ajouter une journée : caractères plus grands */
.import-modal-box{width:min(850px,92vw)!important}
.import-modal-title{font-size:26px!important}
.import-modal-sub{font-size:13px!important}
.import-drop-title{font-size:19px!important}
.import-drop-sub{font-size:13px!important}
.import-file-btn{font-size:14px!important;padding:11px 16px!important}
.import-file-name{font-size:13px!important}
.import-progress-labels{font-size:13px!important}
.import-progress-detail{font-size:12px!important}
.import-modal-footer .topbtn{font-size:13px!important;height:38px!important}

/* Association binôme/renfort : plus lisible */
.partage-panel{font-size:14px}
.partage-panel .panel-head{font-size:14px}
.partage-step-title{font-size:15px;font-weight:850;margin-bottom:9px;color:#334a5a}
.partage-tech-choice{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.partage-tech-choice .chip{font-size:13px!important;height:32px!important;padding:0 11px!important}
.partage-intervention-select{width:100%;padding:11px!important;margin-bottom:12px;font-size:14px!important}

/* Absence recherche live */
.absence-search-live{align-items:start!important}
.absence-search-box{position:relative}
.absence-tech-suggestions{
  position:absolute;left:0;right:0;top:38px;display:none;z-index:20;
  background:#fff;border:1px solid #b9c6cf;box-shadow:0 10px 25px rgba(20,35,45,.18);
  max-height:260px;overflow:auto
}
.absence-tech-suggestions.open{display:block}
.absence-tech-suggestions button{
  display:block;width:100%;border:0;border-bottom:1px solid #edf1f3;background:#fff;
  padding:10px 12px;text-align:left;font-size:13px;cursor:pointer;color:#334b5c
}
.absence-tech-suggestions button:hover{background:#eef3f6}
.absence-no-match{padding:12px;font-size:12px;color:#7c8991}
.absence-selected-tech{
  display:none;grid-template-columns:150px 1fr auto;gap:10px;align-items:center;
  margin:0 0 13px 135px;padding:10px 12px;background:#e8eff3;border:1px solid #c2ced6
}
.absence-selected-tech.visible{display:grid}
.absence-selected-label{font-size:10px;text-transform:uppercase;color:#70818c;font-weight:800}
.absence-selected-tech strong{font-size:14px;color:#304d60}
.absence-selected-tech button{border:0;background:transparent;text-decoration:underline;color:#526c7d;cursor:pointer}

/* Fiche technicien : KPI supplémentaires */
.tech-sheet-kpis{grid-template-columns:repeat(7,minmax(0,1fr))!important;flex-wrap:wrap}
.tech-modal-kpi.soft-absence{background:#f6f1f1!important;border-top-color:#9a7e7e!important}
.tech-modal-kpi.soft-ticket{background:#f1f4f5!important;border-top-color:#6d838e!important}
.tech-absence-head{display:flex!important;justify-content:space-between!important;align-items:center!important}
.tech-absence-head select{font-size:10px;padding:4px 7px;border:1px solid #bcc8cf;background:#fff}

/* Date sidebar lisible */
.daylink{line-height:1.3!important}
.selected-day-card .date{font-size:14px!important}

/* Responsive */
@media(max-width:900px){
  .absence-selected-tech{margin-left:0;grid-template-columns:1fr}
  .tech-sheet-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .partage-tech-choice .chip{font-size:12px!important}
}
@media(max-width:620px){
  .tech-sheet-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .import-modal-title{font-size:22px!important}
  .import-drop-title{font-size:17px!important}
}

/* STEP14A — palette moderne, plus vivante sans être agressive */
:root{
  --ui-navy:#244866;
  --ui-blue:#3f6f95;
  --ui-blue-soft:#eaf2f7;
  --ui-teal:#4f8b7d;
  --ui-purple:#766087;
  --ui-purple-soft:#eee8f2;
  --ui-orange:#b97a36;
  --ui-bg:#f4f7f9;
  --ui-border:#c9d4dc;
  --ui-text:#17384f;
}

body{background:var(--ui-bg)!important;color:var(--ui-text)}
.topbar{background:var(--ui-navy)!important}
.days-sidebar{background:#1f3f59!important}
.selected-day-card{background:#2c5573!important}
.side-action{background:#35688e!important}
.daylink.active{background:#39739c!important}

.data-tech-banner{
  background:#4f7896!important;
  border-bottom-color:#355a73!important;
}
.data-tech-banner.shared-banner{
  background:linear-gradient(90deg,#6d597b,#7b6589)!important;
}
table thead th,
.data-tech-table thead th{
  background:#315c7a!important;
}
.tabsbar{background:#edf3f7!important}
.tablink.active{
  color:#214b69!important;
  border-top-color:#3f789f!important;
}
.kpi-card{border-top-color:#4e86ad!important}
.kpi-card:nth-child(3){border-top-color:#4f8b7d!important}
.kpi-card:nth-child(4){border-top-color:#b97a36!important}
.kpi-card:nth-child(5){border-top-color:#647aa3!important}

/* lignes binôme/renfort */
.shared-intervention-row td,
.shared-helper-row td{
  background:#eee8f3!important;
  color:#46394f!important;
}
.row-share-tag{
  background:#705b80!important;
}

/* boutons plus actuels */
.topbtn,
.article-add-btn{
  background:#3d78a2!important;
}
.topbtn:hover,
.article-add-btn:hover{
  filter:brightness(.96);
}
.topbtn.red,.tech-modal-close,.article-remove-btn{
  background:#c65359!important;
}

/* éditeur intervention */
.intervention-modal-inner{
  background:#f8fafb!important;
}
.article-editor-section{
  border-color:#c7d5de!important;
  box-shadow:0 1px 0 rgba(22,56,79,.03);
}
.article-editor-head{
  background:#f1f6f9!important;
}
.article-edit-row{
  background:#fff;
}
.article-edit-row:hover{
  background:#f8fbfd;
}
.article-edit-row select,
.article-edit-row input{
  border-color:#b9cad5!important;
  background:#fff!important;
}
.live-ca-card{
  background:#eaf5f1!important;
  border-color:#bddbcf!important;
}
.live-ca-card strong{
  color:#2e735e!important;
}
.live-ca-card .failure-ca{
  color:#b8484e!important;
}
.potential-ca{
  margin-top:6px;
  padding-top:6px;
  border-top:1px solid #cfe1d9;
  font-size:9.5px;
  color:#6e8178;
}
.potential-ca strong{
  display:inline!important;
  font-size:10.5px!important;
  color:#4d655b!important;
}

/* erreurs/échecs restent lisibles mais pas criards */
.badge.bad{
  background:#f5dfe1!important;
  color:#a53d45!important;
}
.status-dot.ok{
  background:#398b70!important;
}

/* contraste général */
.panel,.data-tech-block,.annual-month-card,.tech-modal-section{
  border-color:#c8d4dc!important;
}
tbody tr:nth-child(even) td{background:#f4f7f9}
tbody tr:nth-child(odd) td{background:#fff}

/* STEP14B — palette proche FIX11 : douce, bleutée, boutons gris clair bord bleu */
:root{
  --soft-bg:#eef3f7;
  --soft-panel:#f8fafc;
  --soft-blue:#2f5f87;
  --soft-blue-2:#3d6f98;
  --soft-blue-dark:#214768;
  --soft-border:#9fb5c7;
  --soft-border-light:#cbd8e2;
  --soft-grey-btn:#eef1f3;
  --soft-text:#153754;
  --soft-purple:#6f5d7c;
}

body,
.page{
  background:var(--soft-bg)!important;
  color:var(--soft-text)!important;
}
.topbar{background:#285479!important}
.days-sidebar{background:#173a58!important}
.selected-day-card{background:#234d70!important}
.side-action{background:#2f6592!important}

.kpi-card,
.panel,
.data-tech-block,
.tech-modal-section,
.annual-month-card{
  background:#fbfcfd!important;
  border-color:#bdccd8!important;
}

.data-tech-banner{
  background:#527896!important;
}
.data-tech-banner.shared-banner{
  background:#6a5b76!important;
}
.data-tech-table thead th,
table thead th{
  background:#2f5e82!important;
}

.tabsbar{
  background:#e8eef3!important;
  border-color:#b9c9d5!important;
}
.tablink{
  background:#edf1f4!important;
  color:#244a68!important;
  border-color:#aabcc9!important;
}
.tablink.active{
  background:#f9fbfc!important;
  color:#173d5b!important;
  border-top:2px solid #2f6c9c!important;
}

/* boutons gris clair entourés de bleu */
.topbtn,
.tr-btn,
.data-filter,
.chip,
.ref-subtab,
.tech-period-btn{
  background:#edf1f4!important;
  color:#244b69!important;
  border:1px solid #6f92ad!important;
  box-shadow:none!important;
}
.topbtn:hover,
.tr-btn:hover,
.data-filter:hover,
.chip:hover,
.ref-subtab:hover,
.tech-period-btn:hover{
  background:#e3ebf1!important;
}
.topbtn.dark{
  background:#e1e7eb!important;
  color:#25465e!important;
  border-color:#70899c!important;
}
.data-filter.active,
.tech-period-btn.active,
.ref-subtab.active{
  background:#dce8f1!important;
  color:#163f60!important;
  border-color:#4d7da1!important;
}

/* bouton action principal garde un bleu doux */
.article-add-btn,
.import-file-btn{
  background:#3d7098!important;
  color:#fff!important;
  border:1px solid #315f82!important;
}

/* fond légèrement bleuté des modules */
.intervention-modal-inner,
.absence-modal-form,
.article-history-modal-box{
  background:#f2f6f9!important;
}
.article-editor-section,
.live-ca-card{
  background:#f8fbfc!important;
}
.live-ca-card{
  border-color:#b9d2c8!important;
}
.shared-intervention-row td,
.shared-helper-row td{
  background:#ece7f0!important;
}

/* moins de contraste dans les lignes */
tbody tr:nth-child(even) td{background:#f3f6f8!important}
tbody tr:nth-child(odd) td{background:#fbfcfd!important}
.shared-intervention-row td,
.shared-helper-row td{
  background:#eee8f2!important;
}

/* recherche / champs */
input,select,textarea{
  border-color:#b8c8d4!important;
}
.data-search-wrap,
.live-search-box{
  background:#fff!important;
  border-color:#aebfcb!important;
}

/* STEP14C */
.filter-hidden,.data-row.filter-hidden,.data-filter-block.filter-hidden{display:none!important}
.absence-search-box{position:relative!important;z-index:100!important}.absence-tech-suggestions{top:100%!important;margin-top:3px!important;z-index:100000!important}.absence-tech-suggestions.open{display:block!important}

/* STEP14D — alignement strict de l'onglet Données */
.data-tech-table{
  width:100%!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
}

.data-tech-table th,
.data-tech-table td{
  box-sizing:border-box!important;
  vertical-align:middle!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.data-tech-table .col-nd{width:17%!important;text-align:center!important}
.data-tech-table .col-client{width:22%!important;text-align:left!important}
.data-tech-table .col-ville{width:18%!important;text-align:center!important}
.data-tech-table .col-partenaire{width:11%!important;text-align:center!important}
.data-tech-table .col-actprod{width:12%!important;text-align:center!important}
.data-tech-table .col-articles{width:10%!important;text-align:left!important}
.data-tech-table .col-montant{width:7%!important;text-align:right!important}
.data-tech-table .col-echec{width:3%!important;text-align:center!important}

.nd-cell{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
}

.nd-value{
  display:inline-block!important;
  min-width:92px!important;
  text-align:right!important;
  font-variant-numeric:tabular-nums!important;
}

.nd-badges{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-width:58px!important;
}

.row-share-tag{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  white-space:nowrap!important;
  vertical-align:middle!important;
}

/* Le détail renfort reste sous le client mais n'influence plus les colonnes */
.row-share-note{
  display:block!important;
  margin-top:2px!important;
  font-size:8px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Alignement stable même à 120 % navigateur */
@media(max-width:1400px){
  .data-tech-table .col-nd{width:18%!important}
  .data-tech-table .col-client{width:21%!important}
  .data-tech-table .col-ville{width:18%!important}
  .data-tech-table .col-partenaire{width:11%!important}
  .data-tech-table .col-actprod{width:12%!important}
  .data-tech-table .col-articles{width:10%!important}
  .data-tech-table .col-montant{width:7%!important}
  .data-tech-table .col-echec{width:3%!important}
}

/* STEP14F — état partagé visible en permanence, pas seulement au survol */
.data-tech-table tbody tr.shared-intervention-row > td,
.data-tech-table tbody tr.shared-helper-row > td,
.data-tech-table tbody tr.shared-intervention-row:nth-child(odd) > td,
.data-tech-table tbody tr.shared-intervention-row:nth-child(even) > td,
.data-tech-table tbody tr.shared-helper-row:nth-child(odd) > td,
.data-tech-table tbody tr.shared-helper-row:nth-child(even) > td{
  background:#eee8f2!important;
  color:#46394f!important;
  border-top:1px solid #cdbfd7!important;
  border-bottom:1px solid #cdbfd7!important;
}

.data-tech-table tbody tr.shared-intervention-row:hover > td,
.data-tech-table tbody tr.shared-helper-row:hover > td{
  background:#e6ddeb!important;
}

/* À traiter : le masquage doit gagner sur toutes les anciennes règles */
#dataGroupsContainer .filter-hidden{
  display:none!important;
}
#dataGroupsContainer tr.filter-hidden{
  display:none!important;
}

/* STEP14G — données financières réservées SuperUser */
.financial-locked{
  display:inline-block;
  font-size:11px!important;
  font-weight:800!important;
  color:#61798b!important;
  letter-spacing:.01em;
}

/* STEP14H — recherche globale plus propre */
.top-search-modern{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:430px!important;
}

.top-search-field{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  width:330px!important;
  height:34px!important;
  padding:0 10px!important;
  background:#f8fafc!important;
  border:1px solid #91a9bb!important;
  border-radius:3px!important;
  box-shadow:inset 0 1px 2px rgba(20,52,77,.05)!important;
}

.top-search-field:focus-within{
  background:#fff!important;
  border-color:#5f86a4!important;
  box-shadow:0 0 0 2px rgba(69,111,143,.12)!important;
}

.top-search-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin-right:7px!important;
  font-size:16px!important;
  color:#58758b!important;
}

.top-search-field input{
  width:100%!important;
  height:30px!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#243f53!important;
  font-size:12px!important;
}

.top-search-field input::placeholder{
  color:#7f919e!important;
}

.top-search-btn{
  height:34px!important;
  padding:0 15px!important;
  border:1px solid #6f8da4!important;
  border-radius:3px!important;
  background:#e8eef2!important;
  color:#244c69!important;
  font-size:11px!important;
  font-weight:800!important;
  cursor:pointer!important;
  box-shadow:none!important;
}

.top-search-btn:hover{
  background:#dce7ee!important;
  border-color:#527b9a!important;
  color:#173e5c!important;
}

.global-search-suggestions{
  left:-1px!important;
  top:38px!important;
  width:430px!important;
  max-height:360px!important;
  border:1px solid #aabcc9!important;
  border-radius:3px!important;
  background:#fff!important;
  box-shadow:0 12px 30px rgba(22,51,72,.20)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  z-index:100000!important;
}

.search-suggestion{
  width:100%!important;
  padding:9px 11px!important;
  border:0!important;
  border-bottom:1px solid #edf1f4!important;
  background:#fff!important;
  text-align:left!important;
  cursor:pointer!important;
}

.search-suggestion:hover{
  background:#eef4f8!important;
}

.search-suggestion-main,
.search-suggestion-meta{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}

.search-suggestion-main strong{
  min-width:95px!important;
  color:#214b69!important;
  font-size:11px!important;
}

.search-suggestion-main span{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  color:#334f63!important;
}

.search-suggestion-meta{
  margin-top:3px!important;
  padding-left:105px!important;
  font-size:9px!important;
  color:#708390!important;
}

.shared-list-row{
  cursor:default!important;
}
.shared-list-row:hover td{
  background:#f3f6f8!important;
}

/* bouton Tout consulter = accès centre notifications */
.notification-open-btn{
  font-weight:800!important;
}

/* STEP14I — détails renfort/binôme */
.row-share-note{
  margin-top:3px!important;
  font-size:10.5px!important;
  line-height:1.25!important;
  font-weight:800!important;
  color:#655071!important;
}
.row-share-tag{
  font-size:9px!important;
  padding:2px 6px!important;
  font-weight:900!important;
}

/* Recherche techniciens */
.tech-search-toolbar{
  display:flex!important;align-items:center!important;gap:7px!important;
  width:min(520px,100%)!important;margin:10px 0 12px!important;padding:7px 9px!important;
  background:#f4f7f9!important;border:1px solid #b7c7d2!important;
}
.tech-search-icon{font-size:16px!important;color:#55778f!important}
.tech-search-toolbar input{
  flex:1!important;height:32px!important;padding:0 10px!important;font-size:12px!important;
  background:#fff!important;border:1px solid #aebfcb!important;
}
.tech-search-clear{
  height:32px!important;padding:0 12px!important;border:1px solid #7896ad!important;
  background:#e8eef2!important;color:#274d69!important;font-weight:800!important;cursor:pointer!important;
}

/* Absences : lisibilité + statuts */
.absence-toolbar{
  display:flex!important;align-items:center!important;gap:8px!important;
  margin:10px 0 12px!important;padding:8px 10px!important;
  background:#f1f5f8!important;border:1px solid #bdcbd6!important;
}
.absence-toolbar-label{font-size:11px!important;font-weight:900!important;color:#36566f!important}
.absence-toolbar select{min-width:210px!important;height:32px!important;font-size:11px!important;background:#fff!important}
.absence-panel-head{min-height:54px!important;padding:12px 14px!important;font-size:14px!important}
.absence-plus{width:31px!important;height:31px!important;font-size:17px!important;font-weight:900!important}
.absence-count{min-width:29px!important;height:29px!important;text-align:center!important;font-size:12px!important}
.absence-table{font-size:12px!important}
.absence-table th{font-size:11px!important;padding:8px 9px!important}
.absence-table td{padding:8px 9px!important}
.absence-data-row{cursor:pointer!important}
.absence-data-row:hover td{filter:brightness(.97)}
.absence-status-badge{
  display:inline-flex!important;align-items:center!important;min-height:22px!important;
  padding:2px 8px!important;border-radius:10px!important;font-size:9.5px!important;font-weight:900!important;
  background:#e6edf2!important;color:#40596d!important;
}
.absence-status-en-attente td{background:#fff8d9!important}
.absence-status-en-attente .absence-status-badge{background:#f7e8a9!important;color:#806015!important}
.absence-status-valide td{background:#edf7f2!important}
.absence-status-valide .absence-status-badge{background:#d8eee3!important;color:#34705b!important}
.absence-status-a-verifier td{background:#f4eef8!important}
.absence-status-a-verifier .absence-status-badge{background:#e4d9ec!important;color:#6b527b!important}
.absence-status-refuse td{background:#fae9ea!important}
.absence-status-refuse .absence-status-badge{background:#f2d6d9!important;color:#a34249!important}
.absence-status-termine td{background:#eef1f3!important;color:#6b7a85!important}

/* Modal absence légèrement agrandie */
.absence-modal-inner{font-size:12px!important}
.absence-modal-form{padding:18px 20px!important}
.absence-form-row label,.absence-search-row label{font-size:11px!important}
.absence-form-row input,.absence-form-row select,.absence-search-box input{
  min-height:34px!important;font-size:12px!important;
}
.absence-status-select{font-weight:800!important}

/* STEP14J — échelle visuelle globale +10 %
   Objectif : rendu navigateur 100 % ≈ ancien rendu navigateur 110 %. */

html{
  font-size:110%!important;
}

/* Les éléments à tailles fixes sont eux aussi légèrement augmentés */
body{
  line-height:1.1;
}

/* Barre supérieure */
.topbar{
  min-height:44px!important;
}
.topbtn,
.top-search-btn{
  min-height:36px!important;
}
.top-search-field{
  height:36px!important;
}
.top-search-field input{
  height:32px!important;
}

/* Sidebar */
.days-sidebar{
  font-size:1em!important;
}
.side-action{
  min-height:38px!important;
}
.selected-day-card{
  padding:12px!important;
}

/* Titres / onglets */
.hero h1,
.page-title,
.section-title{
  transform-origin:left center;
}
.tablink{
  padding:10px 14px!important;
  min-height:38px!important;
}

/* KPI */
.kpi-card{
  min-height:105px!important;
  padding:13px 15px!important;
}
.kpi-value{
  font-size:1.85em!important;
}
.kpi-lab{
  font-size:.82em!important;
}
.kpi-sub{
  font-size:.78em!important;
}

/* Chips / alertes */
.chip,
.action-main,
.data-filter,
.tr-btn,
.ref-subtab,
.tech-period-btn{
  min-height:34px!important;
  padding:6px 11px!important;
}

/* Tableaux */
table th,
table td{
  padding-top:7px!important;
  padding-bottom:7px!important;
}
.data-tech-table th,
.data-tech-table td{
  padding-top:8px!important;
  padding-bottom:8px!important;
}
.data-tech-banner{
  min-height:45px!important;
  padding:10px 12px!important;
}

/* Champs */
input,
select,
textarea,
button{
  font-size:1em;
}
input,
select{
  min-height:34px;
}

/* Techniciens */
.tech-day-card{
  padding:12px 14px!important;
  min-height:54px!important;
}
.tech-search-toolbar{
  width:min(580px,100%)!important;
}

/* Modales */
.tech-modal-inner,
.intervention-modal-inner,
.absence-modal-inner,
.nd-modal-inner,
.article-history-modal-box{
  font-size:1em!important;
}
.tech-modal-name{
  font-size:1.55em!important;
}
.tech-modal-meta{
  font-size:.9em!important;
}

/* Badge renfort / binôme */
.row-share-tag{
  font-size:.82em!important;
  padding:3px 7px!important;
}
.row-share-note{
  font-size:.9em!important;
}

/* Absence */
.absence-panel-head{
  min-height:60px!important;
  font-size:1.15em!important;
}
.absence-table{
  font-size:1em!important;
}
.absence-table th,
.absence-table td{
  padding:9px 10px!important;
}
.absence-plus{
  width:34px!important;
  height:34px!important;
}
.absence-count{
  min-width:32px!important;
  height:32px!important;
}
.absence-status-badge{
  font-size:.82em!important;
  padding:3px 9px!important;
}

/* Association à traiter synthétique */
.shared-pending-row > td{
  background:#f3edf6!important;
  border-top:1px solid #cfbfd7!important;
  border-bottom:1px solid #cfbfd7!important;
}
.pending-dot{
  display:inline-block!important;
  width:8px!important;
  height:8px!important;
  border-radius:50%!important;
  background:#b18442!important;
}

/* Responsive : on conserve la hausse, mais sans forcer le débordement */
@media(max-width:1400px){
  html{font-size:106%!important}
  .top-search-modern{min-width:360px!important}
  .top-search-field{width:270px!important}
}

@media(max-width:1100px){
  html{font-size:102%!important}
  .top-search-modern{min-width:300px!important}
  .top-search-field{width:220px!important}
}

@media(max-width:800px){
  html{font-size:100%!important}
}

/* STEP15A — fiche technicien : raccourcis absence */
.tech-kpi-action{
  position:relative!important;
}
.tech-kpi-action-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}
.tech-kpi-action-head button{
  width:25px!important;
  height:25px!important;
  min-height:25px!important;
  padding:0!important;
  border:1px solid #7898af!important;
  background:#eef3f6!important;
  color:#285474!important;
  font-size:16px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.tech-kpi-action-head button:hover{
  background:#dce9f1!important;
}
.tech-ticket-link{
  cursor:pointer!important;
}
.tech-ticket-link:hover{
  border-color:#8d7da2!important;
  background:#f3eef6!important;
}
.tech-absence-row{
  cursor:pointer!important;
}
.tech-absence-row:hover td{
  background:#eaf2f7!important;
}

/* Centre notifications filtrable */
.notify-toolbar-advanced{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:18px!important;
  flex-wrap:wrap!important;
}
.notify-filter-zone{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.notify-filter-buttons{
  display:flex!important;
  gap:5px!important;
  flex-wrap:wrap!important;
}
.notify-filter-btn{
  min-height:32px!important;
  padding:5px 10px!important;
  border:1px solid #839eb2!important;
  background:#edf2f5!important;
  color:#284f6b!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.notify-filter-btn:hover,
.notify-filter-btn.active{
  background:#dce8f0!important;
  border-color:#527c9c!important;
  color:#173f5d!important;
}
.notify-search{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:260px!important;
  height:34px!important;
  padding:0 9px!important;
  background:#fff!important;
  border:1px solid #a8bac7!important;
}
.notify-search span{
  color:#57758b!important;
}
.notify-search input{
  flex:1!important;
  min-height:28px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
}
.notify-filter-empty{
  margin-top:12px!important;
}

/* STEP15B */
.absence-plus,.absence-count{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-radius:4px!important;box-sizing:border-box!important;font-weight:900!important}
.absence-plus{background:#f7fbfd!important;border:1px solid #86a5ba!important;color:#23516f!important;font-size:19px!important}
.absence-count{background:rgba(255,255,255,.72)!important;border:1px solid currentColor!important;font-size:13px!important}
.absence-modal-box{width:min(820px,92vw)!important;max-width:820px!important}
.absence-modal-inner{font-size:14px!important}.absence-modal-header{padding:20px 22px!important}.absence-modal-form-premium{padding:20px 22px!important}
.absence-form-row,.absence-search-row{grid-template-columns:125px 1fr!important;gap:12px!important;margin-bottom:12px!important}
.absence-form-row label,.absence-search-row label{font-size:12px!important;font-weight:800!important}
.absence-form-row input,.absence-form-row select,.absence-search-box input{min-height:40px!important;font-size:13px!important;padding:6px 10px!important}
.absence-selected-tech{min-height:46px!important;padding:10px 12px!important}.absence-modal-form .tech-modal-footer button{min-height:40px!important;padding:8px 16px!important}
.global-search-suggestions{width:620px!important;max-height:520px!important}
.search-project-result{display:block!important;padding:11px 13px!important}
.search-result-top{display:flex!important;justify-content:space-between!important;gap:10px!important}
.search-date-badge{padding:4px 8px!important;background:#e9f0f5!important;border:1px solid #b8c9d5!important;color:#355b75!important;font-size:10px!important;font-weight:900!important}
.search-nd{font-size:11px!important;color:#163e5b!important}.search-result-client{margin:6px 0!important;font-size:13px!important;font-weight:900!important;color:#183f5c!important}
.search-result-grid{display:grid!important;grid-template-columns:1.2fr 1fr .8fr .8fr!important;gap:8px!important}
.search-result-grid span{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important;font-size:10px!important;color:#536b7d!important}
.search-result-grid b{font-size:8px!important;text-transform:uppercase!important;color:#8193a0!important}
.search-result-bottom{margin-top:7px!important;padding-top:6px!important;border-top:1px dashed #d7e0e6!important;display:flex!important;justify-content:space-between!important;gap:10px!important;font-size:10px!important;color:#5d7282!important}
.pending-only-row,.absence-pending-row,.shared-list-row{cursor:pointer!important}.pending-only-row:hover td,.absence-pending-row:hover td{background:#e9e0ef!important}
.pending-absence-action{border:1px solid #d4b9bd!important}.absence-action-banner{background:#805e69!important}.absence-import-badge{background:#f0dfe4!important;color:#6e4350!important}
@media(max-width:1200px){.global-search-suggestions{width:min(620px,82vw)!important}.search-result-grid{grid-template-columns:1fr 1fr!important}.absence-modal-box{width:94vw!important}}

/* STEP15C — Techniciens : roster complet + suggestions */
.tech-search-zone{
  position:relative!important;
  width:min(620px,100%)!important;
  margin:10px 0 14px!important;
}
.tech-search-toolbar-live{
  width:100%!important;
  margin:0!important;
}
.tech-day-suggestions{
  display:none;
  position:absolute!important;
  z-index:80!important;
  top:calc(100% + 4px)!important;
  left:0!important;
  right:0!important;
  max-height:310px!important;
  overflow:auto!important;
  background:#fff!important;
  border:1px solid #9fb4c3!important;
  box-shadow:0 10px 26px rgba(26,54,75,.16)!important;
}
.tech-day-suggestions.open{display:block!important}
.tech-suggestion-item{
  width:100%!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:8px 12px!important;
  border:0!important;
  border-bottom:1px solid #e1e8ed!important;
  background:#fff!important;
  color:#244b68!important;
  text-align:left!important;
  cursor:pointer!important;
}
.tech-suggestion-item:hover{background:#edf4f8!important}
.tech-suggestion-name{font-weight:900!important;font-size:12px!important}
.tech-suggestion-cat{
  padding:3px 7px!important;
  background:#edf2f5!important;
  border:1px solid #c2d0da!important;
  font-size:9px!important;
  font-weight:900!important;
  color:#587188!important;
}
.tech-suggestion-empty{
  padding:12px!important;
  color:#718795!important;
  font-size:11px!important;
}
.tech-day-card.has-absence{
  border-left:4px solid #c58d54!important;
}
.presence-pill.absence{
  background:#f4e9dc!important;
  border-color:#d6b38b!important;
  color:#80582e!important;
}
.presence-pill.absence.congé,
.presence-pill.absence.conge{
  background:#fff2c9!important;
  border-color:#d9bd64!important;
  color:#765f17!important;
}
.presence-pill.absence.maladie{
  background:#f7e1e3!important;
  border-color:#d4a2a7!important;
  color:#8b434a!important;
}
.presence-pill.absence.accident-du-travail{
  background:#f5e3d7!important;
  border-color:#d2a17e!important;
  color:#8a5030!important;
}
.presence-pill.neutral{
  background:#edf1f3!important;
  border-color:#cbd5db!important;
  color:#72828d!important;
}
.tech-search-hit{
  outline:3px solid rgba(62,125,163,.28)!important;
  box-shadow:0 0 0 5px rgba(62,125,163,.09)!important;
}
.tech-column-empty-filter{
  opacity:.35!important;
}

/* STEP15E — Vue annuelle */
.annual-kpis-expanded{
  grid-template-columns:repeat(9,minmax(105px,1fr))!important;
}
.annual-section-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  margin:18px 0 8px!important;
}
.annual-month-card{
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease!important;
}
.annual-month-clickable{
  cursor:pointer!important;
}
.annual-month-clickable:hover{
  transform:translateY(-2px)!important;
  border-color:#7f9db2!important;
  box-shadow:0 5px 15px rgba(30,62,83,.10)!important;
}
.annual-month-empty{
  opacity:.58!important;
}
.annual-month-ca{
  margin:8px 0 5px!important;
  font-size:16px!important;
  font-weight:900!important;
  color:#234d69!important;
}
.annual-month-meta-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:5px 10px!important;
}
.annual-month-meta-grid span{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
}
.annual-ranking-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:15px!important;
  margin-bottom:10px!important;
  flex-wrap:wrap!important;
}
.annual-tech-search{
  width:min(360px,100%)!important;
  min-height:36px!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  padding:0 10px!important;
  background:#fff!important;
  border:1px solid #a9bbc8!important;
}
.annual-tech-search span{color:#58758b!important}
.annual-tech-search input{
  flex:1!important;
  min-height:32px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
}
.annual-table-wrap{
  width:100%!important;
  overflow-x:auto!important;
}
.annual-ranking-table th,
.annual-ranking-table td{
  white-space:nowrap!important;
  padding:8px 10px!important;
}
.annual-tech-row{
  cursor:pointer!important;
}
.annual-tech-row:hover td{
  background:#edf4f8!important;
}
.annual-search-empty{
  padding:20px!important;
  text-align:center!important;
  color:#718491!important;
  background:#f5f8fa!important;
  border:1px solid #cfdae2!important;
}

@media(max-width:1600px){
  .annual-kpis-expanded{grid-template-columns:repeat(5,1fr)!important}
}
@media(max-width:1000px){
  .annual-kpis-expanded{grid-template-columns:repeat(3,1fr)!important}
}
@media(max-width:700px){
  .annual-kpis-expanded{grid-template-columns:repeat(2,1fr)!important}
  .annual-month-meta-grid{grid-template-columns:1fr!important}
}

/* STEP15F — compteurs bandeaux Techniciens */
.tech-column-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.tech-column-count{
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  padding:3px 8px!important;
  background:rgba(255,255,255,.16)!important;
  border:1px solid rgba(255,255,255,.24)!important;
  border-radius:3px!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:800!important;
  text-transform:none!important;
}

/* Recherche Techniciens : zone de suggestion clairement visible */
.tech-search-zone{
  z-index:50!important;
}
.tech-day-suggestions{
  z-index:300!important;
}
.tech-search-toolbar-live input{
  font-size:12px!important;
}

/* Tickets resto — rendre la correction manuelle compréhensible */
.tr-correction-group{
  min-height:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:3px 4px 3px 8px!important;
  background:#eef3f6!important;
  border:1px solid #b9c8d2!important;
}
.tr-correction-label{
  color:#536d80!important;
  font-size:9px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
.tr-correction-group input{
  width:82px!important;
  min-width:82px!important;
  height:31px!important;
  padding:0 7px!important;
  border:1px solid #9fb3c1!important;
  background:#fff!important;
  font-size:11px!important;
}
.tr-correction-group .tr-action{
  white-space:nowrap!important;
}
@media(max-width:1200px){
  .tr-correction-group{
    width:100%!important;
    justify-content:flex-start!important;
  }
}

/* STEP15G — Absence Employé : lisibilité + statut verrouillé */
.absence-modal-inner{
  font-size:15px!important;
}
.absence-modal-header h2{
  font-size:1.65em!important;
}
.absence-modal-sub{
  font-size:.92em!important;
}
.absence-form-row label,
.absence-search-row label{
  font-size:13px!important;
}
.absence-form-row input,
.absence-form-row select,
.absence-search-box input{
  min-height:43px!important;
  font-size:14px!important;
}
.absence-selected-tech{
  font-size:13px!important;
}
.absence-rule,
.absence-form-row small{
  font-size:11px!important;
}
.absence-status-locked{
  min-height:43px!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  padding:7px 11px!important;
  background:#fff7d9!important;
  border:1px solid #d9bf73!important;
  color:#725b19!important;
}
.absence-status-dot{
  width:9px!important;
  height:9px!important;
  border-radius:50%!important;
  background:#c79935!important;
  flex:0 0 auto!important;
}
.absence-status-locked strong{
  font-size:13px!important;
}
.absence-status-locked small{
  margin-left:auto!important;
  color:#806c35!important;
  font-size:10px!important;
}

/* Fiche technicien — historique BINÔME / RENFORT */
.tech-shared-history-row td{
  background:#f2edf5!important;
  border-top:1px solid #d5c8dd!important;
  border-bottom:1px solid #d5c8dd!important;
}
.tech-shared-history-row:hover td{
  background:#e9e0ef!important;
}
.tech-history-share-badge{
  display:inline-flex!important;
  align-items:center!important;
  margin-left:6px!important;
  padding:2px 6px!important;
  border-radius:2px!important;
  background:#6c5a7c!important;
  color:#fff!important;
  font-size:8px!important;
  font-weight:900!important;
}
.tech-history-share-badge.renfort{
  background:#725b83!important;
}
.tech-history-share-badge.principal{
  background:#75677f!important;
}
.tech-history-share-note,
.tech-history-ca-note{
  display:block!important;
  margin-top:3px!important;
  font-size:9px!important;
  font-weight:800!important;
  color:#665370!important;
}
.tech-modal-kpi small{
  display:block!important;
  margin-top:4px!important;
  font-size:9px!important;
  color:#71828e!important;
}

/* STEP15H — Tickets remis : ligne complète en vert doux */
.ticket-complete-row td{
  background:#e8f5ed!important;
  border-top:1px solid #c3e2cf!important;
  border-bottom:1px solid #c3e2cf!important;
}
.ticket-complete-row:hover td{
  background:#ddf0e5!important;
}
.ticket-complete-row .techlink{
  color:#27664d!important;
}

/* Diagnostic 60+ */
.diagnostic-page{padding:4px 0 20px!important}
.diagnostic-head{
  display:flex!important;align-items:flex-end!important;justify-content:space-between!important;
  gap:14px!important;margin-bottom:14px!important;flex-wrap:wrap!important;
}
.diag-refresh{
  min-height:34px!important;display:inline-flex!important;align-items:center!important;
  padding:6px 12px!important;background:#e8eef2!important;border:1px solid #7997ac!important;
  color:#284e69!important;text-decoration:none!important;font-weight:900!important;
}
.diag-kpis{
  display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:10px!important;margin-bottom:14px!important;
}
.diag-kpi{
  min-height:82px!important;padding:12px 14px!important;background:#fff!important;border:1px solid #bdccd6!important;
  border-top:3px solid #71889a!important;
}
.diag-kpi span{display:block!important;font-size:10px!important;font-weight:900!important;text-transform:uppercase!important;color:#657b8b!important}
.diag-kpi strong{display:block!important;margin-top:7px!important;font-size:22px!important;color:#143d59!important}
.diag-kpi.ok{border-top-color:#4e9679!important}
.diag-kpi.warning{border-top-color:#c18e3e!important}
.diag-kpi.error{border-top-color:#c85f67!important}
.diag-kpi.score{border-top-color:#4c7da0!important}
.diag-toolbar{
  display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;
  padding:9px!important;background:#eef3f6!important;border:1px solid #bdcbd5!important;margin-bottom:10px!important;
}
.diag-filter{
  min-height:34px!important;padding:5px 11px!important;background:#fff!important;border:1px solid #8ea5b5!important;
  color:#34576f!important;font-weight:900!important;cursor:pointer!important;
}
.diag-filter.active{background:#dce8f0!important;border-color:#527b99!important;color:#173f5b!important}
.diag-toolbar input{
  min-width:300px!important;height:34px!important;margin-left:5px!important;padding:0 10px!important;border:1px solid #9eb1bf!important;background:#fff!important;
}
.diag-list{border:1px solid #b9c8d2!important;background:#fff!important}
.diag-category{
  padding:9px 12px!important;background:#2f5d7d!important;color:#fff!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important;
}
.diag-row{
  display:grid!important;grid-template-columns:36px minmax(240px,1fr) minmax(320px,1.6fr) 95px!important;
  align-items:center!important;min-height:42px!important;border-bottom:1px solid #e0e7ec!important;
}
.diag-row:nth-of-type(even){background:#f7f9fa!important}
.diag-state{text-align:center!important;font-size:12px!important}
.diag-state.ok{color:#3d8a6d!important}.diag-state.warning{color:#b67e28!important}.diag-state.error{color:#bd4b54!important}
.diag-name{padding:7px 10px!important;font-weight:900!important;color:#274c66!important}
.diag-detail{padding:7px 10px!important;color:#536b7b!important}
.diag-badge{
  justify-self:center!important;padding:3px 7px!important;border-radius:10px!important;font-size:8px!important;font-weight:900!important;
}
.diag-badge.ok{background:#dcefe6!important;color:#31705a!important}
.diag-badge.warning{background:#f5e7c8!important;color:#84601e!important}
.diag-badge.error{background:#f4dadd!important;color:#9b3d45!important}
@media(max-width:1100px){
  .diag-kpis{grid-template-columns:repeat(2,1fr)!important}
  .diag-row{grid-template-columns:30px 1fr 1.4fr 85px!important}
}


/* STEP15I — typographie globale Inter / lisibilité */
:root{
  --font-ui: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
table{
  font-family:var(--font-ui)!important;
  font-synthesis:none!important;
  -webkit-font-smoothing:antialiased!important;
  -moz-osx-font-smoothing:grayscale!important;
  text-rendering:optimizeLegibility!important;
}

body{
  font-weight:400!important;
  letter-spacing:0!important;
}

.day-title,
.section-title,
.tech-modal-title,
.annual-title-row .day-title,
h1,h2,h3{
  font-family:var(--font-ui)!important;
  font-weight:700!important;
  letter-spacing:-0.015em!important;
}

.day-sub,
.section-sub,
.tech-modal-sub,
small{
  font-weight:400!important;
  letter-spacing:0!important;
  line-height:1.42!important;
}

.tabs a,
.tabs button,
.side-action,
.topbar button,
.topbar a,
.chip,
.data-filter,
.tr-action,
.diag-filter{
  font-weight:600!important;
  letter-spacing:-0.005em!important;
}

table th,
.data-tech-table th,
.annual-ranking-table th,
.tech-modal-table th{
  font-weight:600!important;
  letter-spacing:-0.005em!important;
}

table td,
.data-tech-table td,
.annual-ranking-table td,
.tech-modal-table td{
  font-weight:400!important;
  line-height:1.36!important;
}

.amount-cell,
.kpi strong,
.day-kpis strong,
.annual-kpis strong,
.tech-modal-kpi strong,
.diag-kpi strong{
  font-weight:700!important;
}

.data-tech-name,
.tech-day-name,
.techlink,
.annual-tech-row strong{
  font-weight:600!important;
}

.badge,
.presence-pill,
.row-share-tag,
.tech-history-share-badge{
  font-weight:600!important;
}

/* Évite l'effet "écrasé" sur les petits textes */
.topbar,
.sidebar,
.tabs,
.action-strip,
.data-tech-banner,
.tech-column-title{
  line-height:1.32!important;
}

/* Fiche technicien : score et libellés plus naturels */
.reliability-score,
.tech-reliability-value{
  font-weight:700!important;
  letter-spacing:-0.01em!important;
}

/* STEP15J — Tickets resto : une ligne à jour doit se voir immédiatement, sans survol */
#ticketTable tbody tr.ticket-complete-row > td,
#ticketTable tbody tr.ticket-complete-row:nth-child(odd) > td,
#ticketTable tbody tr.ticket-complete-row:nth-child(even) > td{
  background:#c9ead3!important;
  border-top:1px solid #87c79b!important;
  border-bottom:1px solid #87c79b!important;
  color:#164d32!important;
}
#ticketTable tbody tr.ticket-complete-row > td:first-child{
  border-left:4px solid #2f8f59!important;
}
#ticketTable tbody tr.ticket-complete-row:hover > td{
  background:#b7e1c4!important;
}
#ticketTable tbody tr.ticket-complete-row .techlink,
#ticketTable tbody tr.ticket-complete-row strong{
  color:#145637!important;
  font-weight:800!important;
}
#ticketTable tbody tr.ticket-complete-row .tr-status.ok{
  background:#e7f7ec!important;
  color:#17633d!important;
  border:1px solid #72b98a!important;
  font-weight:900!important;
}

/* STEP15K — Centre À traiter */
.pending-center{padding-bottom:24px}
.pending-center-title{margin-bottom:12px}
.pending-progress-card{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 14px;margin-bottom:10px;background:#f7f1e4;border:1px solid #d8b874;border-left:4px solid #ba8730}
.pending-progress-card span{display:block;font-size:10px;color:#7a6946}
.pending-progress-card strong{display:block;margin-top:3px;font-size:15px;color:#483b24}
.pending-progress-copy{font-size:11px;color:#75684d}
.pending-all-clear{min-height:72px;display:flex;align-items:center;gap:14px;margin-bottom:12px;padding:12px 16px;background:#dff1e6;border:1px solid #9fc9af;border-left:5px solid #4a9568}
.pending-all-clear-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#3f8a60;color:#fff;font-size:20px;font-weight:700}
.pending-all-clear strong{display:block;font-size:16px;color:#275c41}
.pending-all-clear span{display:block;margin-top:3px;color:#577464;font-size:11px}
.pending-kpis{grid-template-columns:repeat(6,minmax(120px,1fr))!important}
.pending-kpis .notify-kpi{text-align:left;cursor:pointer;font-family:inherit;transition:transform .1s ease,box-shadow .1s ease}
.pending-kpis .notify-kpi:hover,.pending-kpis .notify-kpi.active{transform:translateY(-1px);box-shadow:0 4px 11px rgba(35,68,90,.10)}
.pending-kpis .notify-kpi.ticket{border-top-color:#5a8b70!important}
.pending-toolbar{margin-top:11px}
.pending-table-wrap{border:1px solid #bdccd6;background:#fff;margin-top:8px}
.pending-table-head,.pending-action-row{display:grid;grid-template-columns:180px 185px minmax(260px,1.2fr) minmax(260px,1.4fr) 125px;align-items:center}
.pending-table-head{min-height:37px;background:#2d5877;color:#fff;font-size:10px;font-weight:600}
.pending-table-head>div{padding:8px 10px}
.pending-action-row{min-height:62px;border-bottom:1px solid #dfe7ec;transition:background .1s ease}
.pending-action-row:nth-child(even){background:#f7f9fa}
.pending-action-row:hover{background:#edf4f8}
.pending-action-row>div{padding:8px 10px}
.pending-type-cell{display:flex;align-items:center;gap:9px}
.pending-type-icon{flex:0 0 30px;width:30px;height:30px;display:grid;place-items:center;border-radius:3px;background:#6c7d8b;color:#fff;font-size:11px;font-weight:700}
.pending-type-cell strong{display:block;font-size:11px;color:#24465f}
.pending-type-cell small{display:block;margin-top:2px;font-size:9px;color:#788a98}
.pending-type-binome .pending-type-icon{background:#567c95}
.pending-type-renfort .pending-type-icon{background:#756188}
.pending-type-absence .pending-type-icon{background:#b06b65}
.pending-type-garantie .pending-type-icon{background:#5f839b}
.pending-type-ticket .pending-type-icon{background:#4f8a6c}
.pending-date-cell strong{display:block;font-size:10px;color:#334f63}
.pending-date-cell small{display:block;margin-top:2px;font-size:9px;color:#82909b}
.pending-subject-cell{font-size:11px;font-weight:600;color:#274d67}
.pending-reason-cell{font-size:10px;color:#647785}
.pending-action-cell{text-align:right}
.pending-action-btn{min-height:31px;display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;background:#e7eef3;border:1px solid #6e8da3;color:#244c68;text-decoration:none;font-size:10px;font-weight:600;cursor:pointer}
.pending-action-btn:hover{background:#dbe8f0}
.pending-empty-table{padding:24px;text-align:center;color:#748693;background:#f8fafb;font-size:11px}
.ticket-target-row td{background:#fff1c9!important;border-top:2px solid #c99a3e!important;border-bottom:2px solid #c99a3e!important}
@media(max-width:1450px){
  .pending-kpis{grid-template-columns:repeat(3,1fr)!important}
  .pending-table-head,.pending-action-row{grid-template-columns:155px 165px minmax(220px,1fr) minmax(220px,1.2fr) 110px}
}
@media(max-width:1000px){
  .pending-table-wrap{overflow-x:auto}
  .pending-table-head,.pending-action-row{min-width:980px}
  .pending-kpis{grid-template-columns:repeat(2,1fr)!important}
}

/* STEP15L — diagnostic : filtres / recherche */
.diag-results-meta{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-height:26px;
  margin:-2px 0 5px;
  color:#6b7e8c;
  font-size:10px;
}
.diag-results-meta strong{
  color:#2d5672;
  font-weight:700;
}
.diag-filter-empty{
  padding:22px;
  text-align:center;
  color:#718492;
  background:#f6f9fb;
  border:1px solid #c8d4dc;
  border-top:0;
  font-size:11px;
}
.diag-row[hidden],
.diag-category[hidden]{
  display:none!important;
}

/* STEP15M — verrou de réimport */
.import-duplicate-page{max-width:850px;margin:35px auto;padding:0 15px}
.import-duplicate-card{background:#fff;border:1px solid #bdccd6;padding:28px 30px;box-shadow:0 8px 25px rgba(32,58,76,.08)}
.import-duplicate-icon{width:44px;height:44px;display:grid;place-items:center;margin-bottom:13px;border-radius:50%;background:#c98b39;color:#fff;font-size:24px;font-weight:700}
.import-duplicate-file{display:inline-block;margin-top:15px;padding:7px 10px;background:#edf3f6;border:1px solid #c7d4dc;color:#365b72;font-size:11px;font-weight:600}
.import-duplicate-alert{margin-top:16px;padding:15px;background:#fff5df;border:1px solid #e0bd77;border-left:5px solid #c58b32;color:#5e4b28}
.import-duplicate-alert>strong{font-size:13px}
.import-duplicate-alert p{margin:10px 0 0;font-size:10px;line-height:1.5;color:#756548}
.import-duplicate-dates{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.import-duplicate-dates span{padding:5px 8px;background:#fff;border:1px solid #d8bb82;font-size:10px;font-weight:600;color:#6b5125}
.import-duplicate-missing{margin-top:10px;padding:10px 12px;background:#f8e7e4;border:1px solid #d8aaa3;color:#784841;font-size:10px}
.import-duplicate-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.import-duplicate-choice>div{padding:12px;background:#f5f8fa;border:1px solid #d2dde4}
.import-duplicate-choice strong{display:block;font-size:11px;color:#294e67}
.import-duplicate-choice span{display:block;margin-top:4px;font-size:9px;line-height:1.45;color:#71818c}
.import-duplicate-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.import-duplicate-actions form{margin:0}
.import-duplicate-cancel,.import-duplicate-replace{min-height:36px;padding:7px 14px;font-family:inherit;font-size:10px;font-weight:600;cursor:pointer}
.import-duplicate-cancel{background:#eef3f6;border:1px solid #879dab;color:#36576b}
.import-duplicate-replace{background:#a96632;border:1px solid #8d542b;color:#fff}
.import-duplicate-replace:hover{background:#925729}
@media(max-width:700px){.import-duplicate-choice{grid-template-columns:1fr}.import-duplicate-actions{flex-direction:column}.import-duplicate-actions button{width:100%}}

/* STEP15N — Centre À traiter : lisibilité renforcée */
.pending-center .day-title{font-size:24px!important;line-height:1.18!important}
.pending-center .day-sub{font-size:11.5px!important;line-height:1.5!important}
.pending-progress-card span{font-size:11px!important}
.pending-progress-card strong{font-size:16px!important}
.pending-progress-copy{font-size:11.5px!important}
.pending-kpis .notify-kpi span{font-size:10.5px!important}
.pending-kpis .notify-kpi strong{font-size:22px!important}
.notify-toolbar-title{font-size:12px!important}
.notify-toolbar-help{font-size:10.5px!important}
.notify-filter-btn{font-size:10.5px!important;min-height:34px!important;padding:6px 10px!important}
.notify-search input{font-size:10.5px!important;height:34px!important}
.pending-table-head{font-size:11px!important;min-height:40px!important}
.pending-action-row{min-height:69px!important}
.pending-type-cell strong{font-size:12px!important}
.pending-type-cell small{font-size:10px!important;line-height:1.35!important}
.pending-date-cell strong{font-size:11px!important}
.pending-date-cell small{font-size:9.5px!important}
.pending-subject-cell{font-size:12px!important}
.pending-reason-cell{font-size:11px!important;line-height:1.4!important}
.pending-action-btn{font-size:10.5px!important;min-height:34px!important;padding:6px 11px!important}
.pending-type-icon{width:32px!important;height:32px!important;flex-basis:32px!important;font-size:12px!important}

/* Rappels visuels de portée */
.notify-scope-btn{font-size:10.5px!important;min-height:34px!important;padding:6px 10px!important}

/* STEP15P — vue annuelle / RC fonctionnelle */
.annual-help-badge{
  display:inline-flex;min-width:24px;justify-content:center;
  padding:2px 6px;border-radius:10px;background:#eee7f3;color:#665075;
  font-size:9px;font-weight:700;
}
.annual-reliability{
  display:inline-flex;min-width:64px;justify-content:center;
  padding:3px 7px;border-radius:10px;font-size:9px;font-weight:700;
}
.annual-reliability.good{background:#ddefe5;color:#2e7054}
.annual-reliability.mid{background:#f4e8c9;color:#806121}
.annual-reliability.low{background:#f2dadd;color:#9c4149}
.release-rc-badge{
  display:inline-flex;align-items:center;margin-left:7px;padding:2px 6px;
  border:1px solid #8ba8ba;background:#e8f0f5;color:#365c74;
  font-size:8px;font-weight:700;vertical-align:middle;
}

/* STEP16G — fiche technicien mensuelle */
.tech-month-panel{margin-top:16px;border:1px solid #b9c9d3;background:#f8fafb}
.tech-month-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#e8f0f5;border-bottom:1px solid #c7d4dc}
.tech-month-title{font-size:14px;font-weight:700;color:#274d67}
.tech-month-sub{margin-top:2px;font-size:10px;color:#728592}
.tech-month-select{min-width:130px;height:34px;padding:0 9px;border:1px solid #88a1b2;background:#fff;color:#284d66;font-size:11px;font-weight:600}
.tech-month-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:#cbd7df;border-bottom:1px solid #cbd7df}
.tech-month-kpis>div{padding:10px 12px;background:#fff}
.tech-month-kpis span{display:block;font-size:9px;color:#728491}
.tech-month-kpis strong{display:block;margin-top:4px;font-size:14px;color:#244c66}
.tech-month-days{padding:10px}
.tech-month-day{margin-bottom:8px;border:1px solid #c2d0d9;background:#fff}
.tech-month-daybar{width:100%;display:grid;grid-template-columns:28px 1fr 120px 100px;align-items:center;gap:8px;min-height:42px;padding:7px 10px;border:0;background:#dfeaf1;color:#294e67;text-align:left;cursor:pointer}
.tech-month-daybar strong{font-size:11px}
.tech-month-daybar span{font-size:9px;color:#6b7f8e}
.tech-month-daybar b{text-align:right;font-size:10px}
.tech-month-chevron{font-size:11px;transition:transform .12s ease}
.tech-month-day.collapsed .tech-month-chevron{transform:rotate(-90deg)}
.tech-month-day.collapsed .tech-month-daybody{display:none}
.tech-month-daybody{padding:4px 8px}
.tech-month-item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:6px 4px;border-bottom:1px solid #edf1f4}
.tech-month-item:last-child{border-bottom:0}
.tech-month-item-main{display:grid;grid-template-columns:85px 100px minmax(120px,1fr) minmax(100px,1fr);align-items:center;gap:8px;min-width:0}
.tech-month-item-main strong{font-size:10px;color:#244c66}
.tech-month-item-main span{font-size:9px;color:#617684;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tech-month-item-meta{display:flex;align-items:center;gap:8px;white-space:nowrap}
.tech-month-item-meta span{font-size:9px;color:#6a7e8d}
.tech-month-item-meta strong{font-size:10px;color:#244c66}
.tech-month-share{display:inline-flex!important;width:max-content;padding:3px 6px;border-radius:9px;font-size:8px!important;font-weight:700}
.tech-month-share.renfort{background:#eee3f4;color:#6f527e}
.tech-month-share.binome{background:#e0edf5;color:#3f6883}
.tech-month-fail{padding:2px 6px;border-radius:8px;background:#f4dcde;color:#9d4249!important;font-weight:700}
.tech-month-empty{padding:20px;text-align:center;color:#788a96;font-size:10px}
@media(max-width:1100px){
  .tech-month-kpis{grid-template-columns:repeat(2,1fr)}
  .tech-month-daybar{grid-template-columns:24px 1fr 90px 80px}
  .tech-month-item{align-items:flex-start;flex-direction:column}
  .tech-month-item-main{grid-template-columns:70px 90px 1fr 1fr;width:100%}
}

/* STEP16G final — fiche technicien mensuelle regroupée */
.tech-period-select{
  height:31px;min-width:112px;padding:0 8px;border:1px solid #8ca5b5;
  background:#fff;color:#2b526b;font-size:10px;font-weight:600;
}
.tech-day-groups{padding:8px 0}
.tech-day-group{margin-bottom:8px;border:1px solid #c2d0d9;background:#fff}
.tech-day-band{
  width:100%;min-height:42px;display:grid;
  grid-template-columns:26px minmax(180px,1fr) 100px 100px;
  align-items:center;gap:8px;padding:7px 10px;border:0;
  background:#dfeaf1;color:#294e67;text-align:left;cursor:pointer;
}
.tech-day-band strong{font-size:11px}
.tech-day-band span{font-size:9px;color:#6d808e}
.tech-day-band b{text-align:right;font-size:10px}
.tech-day-arrow{transition:transform .12s ease}
.tech-day-group.collapsed .tech-day-arrow{transform:rotate(-90deg)}
.tech-day-group.collapsed .tech-day-content{display:none}
.tech-day-content{padding:4px 6px 6px}
.tech-month-empty{padding:24px;text-align:center;color:#788a96;font-size:10px}
@media(max-width:1000px){
  .tech-day-band{grid-template-columns:24px 1fr 80px 75px}
}

/* STEP16H — sélecteur mois fiche technicien */
.tech-period-select{
  min-width:125px!important;
  font-size:10.5px!important;
}

/* STEP16L MICROFIX — harmonisation Techniciens */
.tech-day-name{font-size:16px!important;line-height:1.35!important}
.tech-day-cat{font-size:10px!important}
.tech-day-presence,.presence-pill{font-size:11px!important}
.tech-column-title{font-size:14px!important}

/* STEP16L — historique global Absences dans la fiche technicien */
.tech-absence-history{padding:8px 10px!important;max-height:390px!important;overflow:auto!important}
.tech-absence-item{border:1px solid #d9e1e6;border-radius:6px;background:#fff;margin:0 0 7px;overflow:hidden}
.tech-absence-item[hidden]{display:none!important}
.tech-absence-item summary{cursor:pointer;display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(90px,.8fr) minmax(90px,.7fr);gap:10px;align-items:center;padding:10px 12px;list-style:none;font-size:12px}
.tech-absence-item summary::-webkit-details-marker{display:none}
.tech-absence-item summary:before{content:'▸';color:#557084;font-weight:900;margin-right:4px;position:absolute}
.tech-absence-item[open] summary:before{content:'▾'}
.tech-absence-period{font-weight:700;color:#234b67;padding-left:16px}
.tech-absence-type{font-weight:600;color:#536d7f}
.tech-absence-status{justify-self:end;font-weight:700;background:#edf2f5;padding:4px 7px;border-radius:4px;color:#466173}
.tech-absence-detail{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px 10px 28px;border-top:1px solid #e5eaed;background:#f8fafb;font-size:11px;color:#6a7b86}
.tech-absence-edit{border:1px solid #9cafbb;background:#fff;color:#345a72;font-weight:700;padding:5px 9px;border-radius:4px;cursor:pointer}
.tech-absence-empty{padding:24px;text-align:center;color:#788893}

/* STEP16L — prime : total compact + détail des paliers */
.prime-breakdown{position:relative;display:inline-block;text-align:left;min-width:112px}
.prime-breakdown summary{cursor:pointer;list-style:none;display:flex;justify-content:center;gap:7px;align-items:center;font-weight:800;color:#244f69;border:1px solid #b7c7d1;background:#f7fafc;padding:6px 9px;border-radius:5px}
.prime-breakdown summary::-webkit-details-marker{display:none}
.prime-breakdown-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:80;width:300px;background:#fff;border:1px solid #cfd9df;box-shadow:0 8px 22px rgba(31,52,66,.16);padding:10px;border-radius:6px}
.prime-breakdown-title{font-size:11px;font-weight:800;color:#496779;margin-bottom:6px;text-transform:uppercase}
.prime-breakdown-line,.prime-breakdown-total{display:flex;justify-content:space-between;gap:14px;padding:6px 2px;font-size:11px;border-top:1px solid #edf1f3}
.prime-breakdown-line:first-of-type{border-top:0}
.prime-breakdown-total{font-size:12px;font-weight:800;border-top:2px solid #cbd6dc;margin-top:3px;padding-top:8px}
.prime-zero{color:#81909a;font-weight:600}
.ticket-tech-name{font-weight:600;color:#274e68}


/* STEP16M — absences groupées par statut */
.absence-status-band td{padding:0!important;border-top:8px solid #f5f7f9!important;background:#f5f7f9!important}
.absence-status-band td>span{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;background:#dfe8ee;color:#31566f;font-size:10px;font-weight:900;letter-spacing:.35px}
.absence-status-band td>strong{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:28px;padding:5px 8px;background:#edf2f5;color:#557084;font-size:10px}
.absence-status-band[data-phase="attente"] td>span{background:#f6e8bd;color:#7a5b17}
.absence-status-band[data-phase="encours"] td>span{background:#dbeee4;color:#376c56}
.absence-status-band[data-phase="termine"] td>span{background:#e5e8eb;color:#5e6b74}


/* STEP16N — absence status accordions */
.absence-status-band td{
  padding:9px 8px 4px!important;
  border:0!important;
  background:transparent!important;
}
.absence-status-toggle{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 10px;
  border:1px solid #d8e2e8;
  border-radius:10px;
  background:linear-gradient(180deg,#f8fafb 0%,#eef3f6 100%);
  box-shadow:0 1px 2px rgba(29,55,74,.06), inset 0 1px 0 rgba(255,255,255,.85);
  color:#37576c;
  cursor:pointer;
  font:inherit;
  text-align:left;
  transition:transform .12s ease, box-shadow .16s ease, border-color .16s ease;
}
.absence-status-band:hover .absence-status-toggle{
  border-color:#b9cbd6;
  box-shadow:0 3px 9px rgba(29,55,74,.10);
  transform:translateY(-1px);
}
.absence-status-chevron{
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 0 0 1px rgba(49,86,111,.12);
  font-size:18px;
  line-height:1;
  font-weight:900;
  transform:rotate(0deg);
  transition:transform .18s ease;
}
.absence-status-band[aria-expanded="false"] .absence-status-chevron{transform:rotate(-90deg)}
.absence-status-label{
  flex:1;
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.48px;
}
.absence-status-count{
  min-width:27px;
  height:23px;
  padding:0 7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#fff;
  box-shadow:inset 0 0 0 1px rgba(49,86,111,.13);
  font-size:10px;
  font-weight:900;
}
.absence-status-band[data-phase="attente"] .absence-status-toggle{
  background:linear-gradient(180deg,#fff7dd 0%,#f7e9b9 100%);
  border-color:#ead89c;
  color:#785a13;
}
.absence-status-band[data-phase="encours"] .absence-status-toggle{
  background:linear-gradient(180deg,#edf9f3 0%,#dcefe5 100%);
  border-color:#c6e3d3;
  color:#356a53;
}
.absence-status-band[data-phase="termine"] .absence-status-toggle{
  background:linear-gradient(180deg,#f5f7f8 0%,#e7ecef 100%);
  border-color:#d5dde2;
  color:#536671;
}
.absence-data-row td{transition:background-color .12s ease}

/* STEP16O — Primes : progression vers le prochain palier */
.prime-table-progress{min-width:1320px}
.prime-progress-head{min-width:230px}
.prime-progress-cell{min-width:230px;text-align:left!important;padding:8px 12px!important}
.prime-progress-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;color:#294d66;font-size:10.5px}
.prime-progress-top strong{font-size:11.5px;color:#173f5a}
.prime-progress-top span{font-weight:900;color:#356f96}
.prime-progress-track{height:9px;overflow:hidden;border-radius:999px;background:#e2e9ee;box-shadow:inset 0 1px 2px rgba(31,55,70,.12)}
.prime-progress-fill{display:block;height:100%;min-width:0;border-radius:inherit;background:linear-gradient(90deg,#4c86b4 0%,#69a8d2 100%);transition:width .25s ease}
.prime-progress-caption{margin-top:5px;font-size:9.5px;color:#718492;font-weight:600;white-space:nowrap}
.prime-breakdown{min-width:104px}
.prime-breakdown-menu{width:330px}
.prime-tier-row{padding:7px 2px;border-top:1px solid #edf1f3}
.prime-tier-row:first-of-type{border-top:0}
.prime-tier-main{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10.5px;color:#4b6576}
.prime-tier-main strong{color:#284f69}
.prime-tier-track{height:5px;margin-top:5px;border-radius:999px;overflow:hidden;background:#e5ebef}
.prime-tier-track span{display:block;height:100%;border-radius:inherit;background:#9eb8c9}
.prime-tier-row small{display:block;text-align:right;margin-top:3px;color:#80909a;font-size:9px;font-weight:700}
.prime-tier-row.is-reached .prime-tier-main span,.prime-tier-row.is-reached small{color:#2c7559;font-weight:800}
.prime-tier-row.is-reached .prime-tier-track span{background:#55a47e}
.prime-earned-title{margin-top:7px;padding-top:8px;border-top:2px solid #dbe3e8}

/* STEP16P — garde-fou date JOURNEE unique à l'import */
.date-conflict-card{max-width:1050px;margin:24px auto}.date-conflict-topline{background:#b54249!important}
.date-conflict-callout{margin:16px 0;padding:14px 16px;border:1px solid #efc6c9;border-left:5px solid #b54249;background:#fff4f5;color:#693338;font-size:12px;line-height:1.55}
.date-conflict-counts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}.date-conflict-pill{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;font-size:11px;font-weight:800;border:1px solid #ccd8e1;background:#f3f6f8;color:#435b6e}.date-conflict-pill.reference{background:#edf8f2;border-color:#acd7bf;color:#27754d}.date-conflict-pill.error{background:#fff0f1;border-color:#efb8bc;color:#a33c43}.date-conflict-note{border-left:4px solid #b54249}.date-conflict-back{display:inline-flex;align-items:center;text-decoration:none;justify-content:center}

.readonly-banner{margin:0 0 12px;padding:9px 12px;border:1px solid #d5e1e8;background:#f6f9fb;color:#587080;font-size:10.5px;font-weight:700;border-radius:7px}
.readonly-editor form{pointer-events:none;opacity:.58}.readonly-editor button,.readonly-editor select,.readonly-editor input{cursor:not-allowed}

.tech-personal-tabs{display:flex;gap:7px;margin:14px 0 8px}.tech-personal-tab{border:1px solid #cbd9e2;background:#fff;padding:8px 13px;border-radius:8px;font-weight:700;cursor:pointer}.tech-personal-tab.active{background:#17384d;color:#fff;border-color:#17384d}.tech-personal-panel{margin-top:0}


/* STEP17G.2 — Portail technicien premium */
.tech-portal{font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;max-width:1480px;margin:0 auto;padding:6px 4px 28px}
.tech-hero-premium{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;border:1px solid #dbe6ed;border-radius:14px;background:linear-gradient(135deg,#ffffff 0%,#f6fafc 100%);box-shadow:0 8px 26px rgba(36,67,86,.07);margin-bottom:14px}
.tech-hero-main{display:flex;align-items:center;gap:16px;min-width:0}
.tech-avatar{width:54px;height:54px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#173f58;color:#fff;font-size:18px;font-weight:800;letter-spacing:.4px;box-shadow:0 7px 18px rgba(23,63,88,.18);flex:0 0 auto}
.tech-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.35px;color:#6a8799;margin-bottom:4px}
.tech-hero-premium h1{margin:0;color:#17384d;font-size:27px;line-height:1.08;font-weight:800}
.tech-hero-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
.tech-pill,.tech-readonly-badge,.tech-count-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:750;line-height:1;background:#e6f3ee;color:#247258}
.tech-pill-soft{background:#eef4f7;color:#577386}
.tech-hero-note{display:flex;align-items:center;gap:9px;background:#f2f7fa;border:1px solid #dde8ee;border-radius:11px;padding:10px 13px;color:#3b5d71;flex:0 0 auto}
.tech-hero-note strong{display:block;font-size:11px}.tech-hero-note small{display:block;color:#7690a0;font-size:9px;margin-top:2px}.tech-lock{font-size:13px;color:#46a57e}

.tech-nav-premium{display:flex;gap:4px;padding:5px;border:1px solid #d9e4ea;background:#f6f9fb;border-radius:11px;margin:0 0 14px;overflow-x:auto}
.tech-nav-item{appearance:none;border:0;background:transparent;color:#5c7688;padding:9px 14px;border-radius:8px;font:700 10.5px/1 "Inter","Segoe UI",Arial,sans-serif;cursor:pointer;white-space:nowrap;transition:.15s ease}
.tech-nav-item:hover{background:#eaf1f5;color:#24485e}.tech-nav-item.active{background:#173f58;color:#fff;box-shadow:0 4px 11px rgba(23,63,88,.16)}
.tech-section{animation:techFade .16s ease}@keyframes techFade{from{opacity:.45;transform:translateY(2px)}to{opacity:1;transform:none}}

.tech-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.tech-kpi-card{min-height:92px;display:flex;align-items:center;gap:12px;padding:15px 16px;border:1px solid #dce7ed;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(31,59,76,.05)}
.tech-kpi-icon{width:37px;height:37px;border-radius:10px;background:#edf5f8;color:#28566f;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;flex:0 0 auto}
.tech-kpi-copy{min-width:0}.tech-kpi-copy span{display:block;color:#728c9c;font-size:10px;font-weight:700;margin-bottom:4px}.tech-kpi-copy strong{display:block;color:#17384d;font-size:21px;line-height:1.06;font-weight:800;white-space:nowrap}.tech-kpi-copy small{display:block;color:#91a5b1;font-size:9px;margin-top:5px}
.tech-kpi-highlight{background:linear-gradient(135deg,#f4fbf8,#fff);border-color:#cde8db}.tech-kpi-success{border-color:#cde8db}.tech-kpi-warning{border-color:#eedfba;background:#fffaf0}

.tech-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.65fr);gap:14px}
.tech-card-premium{background:#fff;border:1px solid #dae5eb;border-radius:13px;padding:18px;box-shadow:0 6px 20px rgba(31,59,76,.055);overflow:hidden}
.tech-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.tech-card-head h2{margin:2px 0 0;color:#17384d;font-size:16px;font-weight:800}.tech-card-head p{margin:5px 0 0;color:#8197a5;font-size:10px}.tech-card-kicker{display:block;color:#7290a1;font-size:9px;font-weight:800;letter-spacing:1px}
.tech-link-btn{border:0;background:transparent;color:#2c6888;font:750 10px "Inter","Segoe UI",Arial,sans-serif;cursor:pointer;padding:4px 0}
.tech-count-badge,.tech-readonly-badge{background:#edf4f7;color:#5a7485}.tech-readonly-badge{padding:6px 10px}

.tech-table-wrap{overflow:auto;border:1px solid #e2eaef;border-radius:9px}.tech-table-premium{width:100%;border-collapse:separate;border-spacing:0;font-size:10px;background:#fff}.tech-table-premium th{background:#f1f6f8;color:#637d8e;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.35px;padding:9px 10px;border-bottom:1px solid #dce6eb;white-space:nowrap}.tech-table-premium td{padding:9px 10px;border-bottom:1px solid #edf2f5;color:#415e70;text-align:center;vertical-align:middle}.tech-table-premium tbody tr:last-child td{border-bottom:0}.tech-table-premium tbody tr:hover td{background:#fafcfd}.tech-table-premium .left{text-align:left}.tech-table-premium strong{color:#1d4359}.tech-money{font-weight:800;color:#246c55!important;white-space:nowrap}.tech-articles{max-width:370px;white-space:normal}.tech-empty{padding:20px;text-align:center;color:#91a4af;font-size:10px}.tech-empty-large{border:1px dashed #d8e4ea;border-radius:10px;background:#fafcfd;margin-top:8px}

.tech-status-list{display:flex;flex-direction:column;border:1px solid #e2eaef;border-radius:10px;overflow:hidden}.tech-status-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border-bottom:1px solid #e9f0f3;font-size:10px}.tech-status-row:last-child{border-bottom:0}.tech-status-row span{color:#728a99}.tech-status-row strong{color:#24495f;font-size:11px}.tech-ok{color:#2b8b67!important}.tech-warn{color:#b27b20!important}.tech-card-actions{display:flex;gap:8px;margin-top:12px}.tech-secondary-btn,.tech-primary-btn{border:1px solid #cfdee6;border-radius:8px;background:#f8fbfc;color:#365c72;padding:8px 11px;font:750 10px "Inter","Segoe UI",Arial,sans-serif;cursor:pointer}.tech-secondary-btn:hover{background:#eef5f8}.tech-primary-btn{background:#173f58;border-color:#173f58;color:#fff;padding:9px 14px}.tech-primary-btn:hover{background:#21526d}

.tech-absence-layout{display:grid;grid-template-columns:minmax(330px,.7fr) minmax(0,1.3fr);gap:14px}
.tech-form-premium{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tech-field{display:flex;flex-direction:column;gap:5px}.tech-field-wide{grid-column:1/-1}.tech-field label{font-size:9.5px;font-weight:750;color:#647f90}.tech-field input,.tech-field select,.tech-field textarea{width:100%;box-sizing:border-box;border:1px solid #cfdde5;border-radius:8px;background:#fbfdfe;padding:9px 10px;color:#294d62;font:500 10.5px "Inter","Segoe UI",Arial,sans-serif;outline:none}.tech-field input:focus,.tech-field select:focus,.tech-field textarea:focus{border-color:#6ba0bc;box-shadow:0 0 0 3px rgba(64,130,165,.10);background:#fff}.tech-field textarea{resize:vertical;min-height:82px}.tech-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;margin-top:1px}

.tech-status-pill{display:inline-flex;align-items:center;justify-content:center;padding:4px 7px;border-radius:999px;background:#eef4f7;color:#536f80;font-size:9px;font-weight:750;white-space:nowrap}.tech-status-ok{background:#e9f6f0;color:#2b7d60}.tech-status-warn{background:#fff3d8;color:#9c6d18}.tech-status-pending{background:#eef3fa;color:#4b6d95}

.tech-prime-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.tech-prime-progress{border:1px solid #dde7ec;border-radius:11px;padding:15px;background:#fafcfd;margin-top:4px}.tech-prime-progress-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.tech-prime-progress-head span{display:block;color:#728b9b;font-size:9px}.tech-prime-progress-head strong{display:block;color:#274c62;font-size:11px;margin-top:3px}.tech-prime-progress-head b{color:#173f58;font-size:19px}.tech-progress-track{height:10px;border-radius:999px;background:#e7eef2;overflow:hidden;margin:12px 0 8px}.tech-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3b839f,#4ea77e)}.tech-progress-foot{display:flex;justify-content:space-between;gap:10px;color:#8297a4;font-size:9px}.tech-prime-adjustments{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.tech-prime-adjustments div{display:flex;align-items:center;justify-content:space-between;border:1px solid #e1e9ee;border-radius:9px;padding:10px 11px;background:#fff}.tech-prime-adjustments span{color:#78909f;font-size:9px}.tech-prime-adjustments strong{color:#31586e;font-size:10px}
.tech-ticket-detail{margin-top:5px}

@media(max-width:1050px){
  .tech-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tech-dashboard-grid,.tech-absence-layout{grid-template-columns:1fr}
}
@media(max-width:680px){
  .tech-portal{padding:3px 0 20px}.tech-hero-premium{padding:18px;align-items:flex-start}.tech-hero-note{display:none}.tech-avatar{width:46px;height:46px}.tech-hero-premium h1{font-size:21px}
  .tech-kpi-grid,.tech-prime-kpis{grid-template-columns:1fr}.tech-kpi-card{min-height:78px}
  .tech-nav-item{padding:9px 11px}.tech-card-premium{padding:13px}.tech-form-premium{grid-template-columns:1fr}.tech-field-wide,.tech-form-actions{grid-column:1}
  .tech-prime-adjustments{grid-template-columns:1fr}.tech-progress-foot{flex-direction:column;gap:3px}
}

/* STEP17G.4 — mobile compact + staged absence approval */
.absence-review-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #dbe6ed;border-radius:10px;background:#f7fafc;margin-bottom:12px}
.absence-review-banner span{display:block;color:#78909f;font-size:9px}.absence-review-banner strong{display:block;color:#173f58;font-size:14px;margin-top:2px}.absence-review-stage{padding:5px 8px!important;border-radius:999px;background:#fff1cf;color:#956617!important;font-weight:800}
.absence-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.absence-review-grid>div{padding:10px 11px;border:1px solid #e1e9ee;border-radius:9px;background:#fff}.absence-review-grid .wide{grid-column:1/-1}.absence-review-grid span{display:block;color:#8095a3;font-size:9px}.absence-review-grid strong{display:block;color:#2c5066;font-size:10.5px;margin-top:3px}
.absence-flow-note{margin-top:11px;padding:10px 12px;border-radius:9px;background:#eef6fa;color:#486a7e;font-size:10px;line-height:1.45}.absence-decision-footer{gap:8px}.absence-approve-btn{background:#2c8a68!important;border-color:#2c8a68!important}.absence-refuse-btn{background:#c95c62!important;border-color:#c95c62!important}.absence-waiting-role{font-size:10px;color:#718896}
@media(max-width:820px){
  .topbar{min-height:auto!important;height:auto!important;flex-wrap:wrap!important;gap:7px!important;padding:8px 10px!important}
  .topbar .brand-wrap{flex:1 1 100%!important}.topbar .brandline{flex-wrap:wrap!important;gap:6px!important}.topbar .brand{font-size:17px!important}.topbar .project-meta{font-size:9px!important}
  .topbar .version,.topbar .beta,.topbar .release-rc-badge{font-size:8.5px!important}.topbar .user-mini{margin-left:0!important;font-size:10px!important}.topbar .topbtn{min-height:36px!important;padding:7px 11px!important}
  .content-area{height:auto!important;min-height:calc(100vh - 110px)!important}.page{padding:10px!important}
  .tech-portal{padding:0 0 18px!important}.tech-hero-premium{padding:14px!important;margin-bottom:9px!important}.tech-avatar{width:44px!important;height:44px!important;border-radius:11px!important}.tech-hero-premium h1{font-size:20px!important}.tech-eyebrow{font-size:8.5px!important}.tech-hero-meta{margin-top:6px!important}.tech-pill{padding:4px 7px!important;font-size:8.5px!important}
  .tech-nav-premium{margin-bottom:10px!important;scrollbar-width:none}.tech-nav-premium::-webkit-scrollbar{display:none}.tech-nav-item{padding:9px 11px!important;font-size:10px!important}
  .tech-card-premium{padding:12px!important;border-radius:11px!important}.tech-card-head{margin-bottom:9px!important}.tech-card-head h2{font-size:15px!important}.tech-card-head p{font-size:9.5px!important;margin-top:3px!important}
  .tech-absence-layout{gap:10px!important}.tech-form-premium{grid-template-columns:1fr 1fr!important;gap:8px!important}.tech-field-wide{grid-column:1/-1!important}.tech-field{gap:3px!important}.tech-field label{font-size:9px!important}.tech-field input,.tech-field select,.tech-field textarea{padding:7px 8px!important;min-height:38px!important;border-radius:7px!important;font-size:10px!important}.tech-field textarea{min-height:54px!important;height:54px!important}.tech-form-actions{grid-column:1/-1!important;margin-top:0!important}.tech-primary-btn{width:100%!important;min-height:40px!important;font-size:10.5px!important}
  .tech-table-premium th,.tech-table-premium td{padding:7px 8px!important}.tech-kpi-grid{gap:8px!important}
  .absence-review-grid{grid-template-columns:1fr!important}.absence-review-grid .wide{grid-column:1!important}.absence-decision-footer{flex-wrap:wrap!important}.absence-decision-footer .topbtn{flex:1 1 30%!important}
}
@media(max-width:390px){
  .tech-form-premium{grid-template-columns:1fr!important}.tech-field-wide,.tech-form-actions{grid-column:1!important}
}

/* STEP17G.5 — vraie vue mobile native */
.tech-mobile-intervention-list,.tech-mobile-absence-list,.tech-mobile-ticket-detail,.tech-mobile-new-absence,.tech-mobile-sheet-close{display:none}

@media(max-width:820px){
  html,body{max-width:100%;overflow-x:hidden}
  .content-area,.page,.tech-portal,.tech-section,.tech-card-premium{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow-x:hidden!important}
  .page{padding:8px!important}
  .tech-portal{padding:0 0 16px!important}
  .tech-hero-premium{padding:12px!important;min-width:0!important}
  .tech-hero-main{min-width:0!important;gap:10px!important}
  .tech-avatar{flex:0 0 42px!important;width:42px!important;height:42px!important}
  .tech-hero-premium h1{font-size:19px!important;white-space:normal!important}
  .tech-hero-meta{gap:5px!important}
  .tech-nav-premium{width:100%!important;box-sizing:border-box!important;display:flex!important;overflow-x:auto!important;scroll-snap-type:x proximity;padding:4px!important}
  .tech-nav-item{flex:0 0 auto!important;scroll-snap-align:start!important}
  .tech-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .tech-kpi-card{min-height:76px!important;padding:10px!important;gap:8px!important}
  .tech-kpi-icon{width:30px!important;height:30px!important;font-size:13px!important}
  .tech-kpi-copy strong{font-size:17px!important;white-space:normal!important}
  .tech-kpi-copy span{font-size:9px!important}.tech-kpi-copy small{font-size:8px!important}
  .tech-dashboard-grid{display:block!important}
  .tech-dashboard-grid>.tech-card-premium{margin-bottom:9px!important}
  .tech-desktop-table{display:none!important}
  .tech-mobile-intervention-list,.tech-mobile-absence-list,.tech-mobile-ticket-detail{display:grid!important;gap:7px!important}
  .tech-mobile-intervention-card,.tech-mobile-absence-card{border:1px solid #e0e9ee;border-radius:9px;background:#fbfdfe;padding:10px 11px;box-sizing:border-box;min-width:0}
  .tech-mobile-intervention-top,.tech-mobile-absence-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
  .tech-mobile-intervention-top strong,.tech-mobile-absence-top strong{font-size:11px;color:#21485f}
  .tech-mobile-intervention-top span{font-size:11px;font-weight:800;color:#2a7d61;white-space:nowrap}
  .tech-mobile-intervention-meta{display:flex;justify-content:space-between;gap:8px;margin-top:5px;color:#7f95a3;font-size:9px}
  .tech-mobile-client{margin-top:7px;font-size:10px;color:#415e70;font-weight:650}
  .tech-mobile-articles{margin-top:6px;padding-top:6px;border-top:1px dashed #dfe8ed;color:#6d8594;font-size:9px;line-height:1.35;overflow-wrap:anywhere}
  .tech-mobile-absence-dates{margin-top:6px;font-size:9px;color:#6f8796}
  .tech-mobile-absence-comment{margin-top:6px;font-size:9px;color:#596f7d}
  .tech-mobile-ticket-detail{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tech-mobile-ticket-detail>div{border:1px solid #e0e9ee;border-radius:9px;background:#fbfdfe;padding:10px}
  .tech-mobile-ticket-detail span{display:block;color:#8094a1;font-size:8.5px}.tech-mobile-ticket-detail strong{display:block;color:#234b61;font-size:13px;margin-top:3px}
  .tech-card-head{align-items:center!important}.tech-card-head p{display:none!important}
  .tech-count-badge,.tech-readonly-badge{font-size:8px!important}
  .tech-status-list{font-size:9px!important}
  .tech-card-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  .tech-secondary-btn{width:100%!important}
  .tech-prime-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tech-prime-kpis .tech-kpi-highlight{grid-column:1/-1!important}
  .tech-prime-adjustments{grid-template-columns:1fr!important}
  .tech-progress-foot{display:grid!important;grid-template-columns:1fr 1fr!important;font-size:8px!important}
  .tech-progress-foot span:last-child{grid-column:1/-1}
  .tech-absence-layout{display:block!important}
  .tech-mobile-new-absence{display:block!important;width:100%;border:0;border-radius:9px;background:#173f58;color:#fff;padding:11px 12px;font:800 11px "Inter","Segoe UI",Arial,sans-serif;margin:0 0 9px}
  .tech-absence-form-card{display:none!important}
  .tech-absence-form-card.mobile-open{display:block!important;position:fixed!important;left:8px!important;right:8px!important;bottom:8px!important;top:auto!important;width:auto!important;max-height:calc(100vh - 90px)!important;overflow-y:auto!important;z-index:9999!important;box-shadow:0 18px 60px rgba(16,42,57,.32)!important;border-radius:14px!important}
  body.tech-sheet-open:before{content:"";position:fixed;inset:0;background:rgba(13,35,48,.46);z-index:9998}
  .tech-mobile-sheet-close{display:block!important;position:absolute;right:10px;top:10px;width:32px;height:32px;border:0;border-radius:50%;background:#eef3f6;color:#35566a;font-weight:800;z-index:2}
  .tech-absence-form-card .tech-card-head{padding-right:38px!important}
  .tech-form-premium{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .tech-field-wide{grid-column:1/-1!important}
  .tech-field textarea{height:48px!important;min-height:48px!important}
  .tech-form-actions{grid-column:1/-1!important}
}
@media(max-width:390px){
  .tech-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tech-kpi-icon{display:none!important}
  .tech-kpi-card{min-height:70px!important}
  .tech-form-premium{grid-template-columns:1fr 1fr!important}
}

/* STEP17G.6 — lisibilité desktop + interventions groupées par date */
.tech-day-accordion{display:flex;flex-direction:column;gap:9px}
.tech-day-group{border:1px solid #dce7ed;border-radius:10px;background:#fff;overflow:hidden}
.tech-day-summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;background:#f7fafc;user-select:none}
.tech-day-summary::-webkit-details-marker{display:none}.tech-day-summary-main{display:flex;align-items:center;gap:10px;min-width:0}
.tech-day-chevron{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:7px;background:#e8f1f5;color:#35617a;font-size:17px;font-weight:800;transition:transform .15s ease;flex:0 0 auto}
.tech-day-group[open] .tech-day-chevron{transform:rotate(90deg)}
.tech-day-summary strong{display:block;color:#1e4358;font-size:12px;font-weight:800;text-transform:capitalize}
.tech-day-summary small{display:block;color:#8399a6;font-size:9.5px;margin-top:2px}
.tech-day-total{font-size:12px;font-weight:800;color:#28755b;white-space:nowrap}
.tech-day-content{padding:10px;background:#fff}

@media(min-width:821px){
  .tech-portal{font-size:12px}
  .tech-eyebrow{font-size:11px}.tech-hero-premium h1{font-size:29px}
  .tech-pill,.tech-readonly-badge,.tech-count-badge{font-size:11px}
  .tech-nav-item{font-size:12px;padding:10px 16px}
  .tech-kpi-copy span{font-size:11px}.tech-kpi-copy strong{font-size:23px}.tech-kpi-copy small{font-size:10px}
  .tech-card-kicker{font-size:10px}.tech-card-head h2{font-size:18px}.tech-card-head p{font-size:11px}
  .tech-table-premium{font-size:11.5px}.tech-table-premium th{font-size:10px}.tech-table-premium td{font-size:11.5px}
  .tech-status-row{font-size:11px}.tech-status-row strong{font-size:12px}
  .tech-secondary-btn,.tech-primary-btn,.tech-link-btn{font-size:11px}
  .tech-field label{font-size:10.5px}.tech-field input,.tech-field select,.tech-field textarea{font-size:11.5px}
  .tech-day-summary strong{font-size:13.5px}.tech-day-summary small{font-size:10.5px}.tech-day-total{font-size:13px}
}
@media(max-width:820px){
  .tech-day-accordion{gap:7px}
  .tech-day-summary{padding:10px 11px}
  .tech-day-summary strong{font-size:11px}
  .tech-day-summary small{font-size:8.5px}
  .tech-day-total{font-size:10.5px}
  .tech-day-content{padding:7px}
}

/* STEP17G.7 — périodes mensuelles + dates françaises + détail tickets */
.tech-period-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-2px 0 12px;padding:10px 12px;border:1px solid #d9e5eb;border-radius:10px;background:#f8fbfc}
.tech-period-label{display:block;color:#7b93a2;font-size:9px;font-weight:800;letter-spacing:.9px}.tech-period-bar strong{display:block;color:#244b61;font-size:12px;margin-top:2px}.tech-period-select{border:1px solid #cfdde5;border-radius:8px;background:#fff;color:#365b70;padding:8px 10px;font:700 10.5px "Inter","Segoe UI",Arial,sans-serif}
.tech-ticket-days{margin-top:10px;border:1px solid #e0e9ee;border-radius:10px;background:#fbfdfe;padding:11px}.tech-ticket-days-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.tech-ticket-days-head span{color:#6f8796;font-size:9.5px;font-weight:750}.tech-ticket-days-head strong{color:#21475d;font-size:10.5px}.tech-ticket-day-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.tech-ticket-day-list span{display:inline-flex;padding:6px 8px;border-radius:999px;background:#edf4f7;color:#4c6c7f;font-size:9px;font-weight:700}
@media(min-width:821px){
 .tech-period-label{font-size:10px}.tech-period-bar strong{font-size:13px}.tech-period-select{font-size:11.5px}
 .tech-ticket-days-head span{font-size:10.5px}.tech-ticket-days-head strong{font-size:11.5px}.tech-ticket-day-list span{font-size:10px}
}
@media(max-width:820px){
 .tech-period-bar{padding:9px 10px;margin-bottom:9px}.tech-period-select{max-width:52%;font-size:9.5px;padding:7px 8px}
 .tech-ticket-day-list{display:grid;grid-template-columns:1fr 1fr;gap:5px}.tech-ticket-day-list span{justify-content:center;text-align:center;font-size:8.5px}
}

/* STEP17G.8 — alignement lisibilité portail technicien sur dashboard */
@media(min-width:821px){
  .tech-portal{font-size:13px}
  .tech-eyebrow{font-size:12px}
  .tech-hero-premium h1{font-size:31px}
  .tech-pill,.tech-readonly-badge,.tech-count-badge{font-size:12px;padding:6px 10px}
  .tech-hero-note strong{font-size:12px}.tech-hero-note small{font-size:10px}

  .tech-nav-item{font-size:13px;padding:11px 17px}
  .tech-period-label{font-size:11px}
  .tech-period-bar strong{font-size:14px}
  .tech-period-select{font-size:12.5px;padding:9px 11px}

  .tech-kpi-copy span{font-size:12px}
  .tech-kpi-copy strong{font-size:25px}
  .tech-kpi-copy small{font-size:11px}
  .tech-kpi-icon{font-size:17px}

  .tech-card-kicker{font-size:11px}
  .tech-card-head h2{font-size:20px}
  .tech-card-head p{font-size:12px}
  .tech-link-btn{font-size:12px}

  .tech-table-premium{font-size:12.5px}
  .tech-table-premium th{font-size:11px;padding:10px 11px}
  .tech-table-premium td{font-size:12.5px;padding:10px 11px}

  .tech-status-row{font-size:12px}
  .tech-status-row strong{font-size:13px}
  .tech-secondary-btn,.tech-primary-btn{font-size:12px;padding:9px 13px}

  .tech-field label{font-size:11.5px}
  .tech-field input,.tech-field select,.tech-field textarea{font-size:12.5px}

  .tech-day-summary strong{font-size:15px}
  .tech-day-summary small{font-size:11.5px}
  .tech-day-total{font-size:14px}

  .tech-ticket-days-head span{font-size:11.5px}
  .tech-ticket-days-head strong{font-size:12.5px}
  .tech-ticket-day-list span{font-size:11px;padding:7px 9px}

  .tech-prime-progress-head span{font-size:10.5px}
  .tech-prime-progress-head strong{font-size:12.5px}
  .tech-prime-progress-head b{font-size:20px}
  .tech-progress-foot{font-size:10.5px}
  .tech-prime-adjustments span{font-size:10.5px}
  .tech-prime-adjustments strong{font-size:11.5px}
}

/* STEP17H.3 — absences technicien : historique pleine largeur en lecture seule */
@media(min-width:821px){
  .tech-absence-layout.tech-absence-readonly{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
  }
  .tech-absence-layout.tech-absence-readonly > .tech-card-premium{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
  }
}


/* STEP17H.10 — envoi rapide d'un mail à un technicien */
.send-topbtn{white-space:nowrap;font-weight:800}
.send-message-backdrop{position:fixed;inset:0;z-index:12000;background:rgba(10,34,49,.46);display:none;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(2px)}
.send-message-backdrop.open{display:flex}
.send-message-modal{width:min(650px,96vw);background:#fff;border:1px solid #d6e3ea;border-radius:15px;box-shadow:0 24px 70px rgba(14,49,68,.24);overflow:hidden}
.send-message-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:19px 21px 16px;border-bottom:1px solid #e3edf2;background:#f8fbfc}
.send-message-title{font-size:19px;font-weight:900;color:#204960}.send-message-sub{margin-top:4px;font-size:11.5px;line-height:1.45;color:#718894}
.send-message-close{border:0;background:#e9f1f5;color:#496a7b;width:32px;height:32px;border-radius:8px;cursor:pointer;font-weight:900}.send-message-close:hover{background:#dce9ef}
.send-message-body{padding:18px 21px}.send-message-field{display:block;margin-bottom:14px}.send-message-field>span{display:block;margin-bottom:6px;font-size:11.5px;font-weight:850;color:#496a7b}
.send-message-field select,.send-message-field textarea{width:100%;box-sizing:border-box;border:1px solid #bfd2dc;border-radius:9px;background:#fff;padding:10px 11px;font:600 13px Inter,"Segoe UI",Arial,sans-serif;color:#203f50;outline:none}.send-message-field textarea{resize:vertical;min-height:150px;line-height:1.48}.send-message-field select:focus,.send-message-field textarea:focus{border-color:#4d86a6;box-shadow:0 0 0 3px rgba(77,134,166,.12)}
.send-message-email{margin:-5px 0 15px;padding:8px 10px;border-radius:8px;background:#f3f8fa;color:#5b7482;font-size:11.5px}.send-message-status{min-height:18px;font-size:11.5px;font-weight:700;color:#607985}.send-message-status.success{color:#19734a}.send-message-status.error{color:#b33b3b}.send-message-status.warning{color:#9a6a14}
.send-message-actions{display:flex;justify-content:flex-end;gap:9px;padding:14px 21px 18px;border-top:1px solid #e7eef2;background:#fbfcfd}.send-message-actions button{border-radius:9px;padding:9px 16px;font:800 12px Inter,"Segoe UI",Arial,sans-serif;cursor:pointer}.send-message-cancel{border:1px solid #c9d9e1;background:#fff;color:#526c7a}.send-message-submit{border:1px solid #285f80;background:#2e6789;color:#fff}.send-message-submit:hover{background:#255a78}.send-message-submit:disabled{opacity:.55;cursor:wait}
@media(max-width:820px){.send-message-backdrop{padding:10px}.send-message-modal{width:100%}.send-message-head,.send-message-body,.send-message-actions{padding-left:15px;padding-right:15px}.send-message-field textarea{min-height:130px}}
/* STEP17H.12 — centre de communication */
.send-message-modal-pro{width:min(760px,96vw)}
.send-message-field input[type=text],.send-message-field input[type=search],.send-message-field>input{width:100%;box-sizing:border-box;border:1px solid #bfd2dc;border-radius:9px;background:#fff;padding:10px 11px;font:600 13px Inter,"Segoe UI",Arial,sans-serif;color:#203f50;outline:none}
.send-message-field>span em{float:right;font-style:normal;color:#2e6789;font-weight:800}.send-tech-search{margin-bottom:8px}.send-tech-toolbar{display:flex;gap:7px;margin-bottom:7px}.send-tech-toolbar button{border:1px solid #d0dfe6;background:#f7fafb;color:#466777;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:800;cursor:pointer}.send-tech-list{max-height:190px;overflow:auto;border:1px solid #dbe7ed;border-radius:9px;background:#fbfcfd;padding:4px}.send-tech-row{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:7px;cursor:pointer}.send-tech-row:hover{background:#eef5f8}.send-tech-row input{accent-color:#2e6789}.send-tech-row span{display:flex;flex-direction:column}.send-tech-row b{font-size:12px;color:#274c60}.send-tech-row small{font-size:10.5px;color:#7a909c;margin-top:2px}.send-tech-empty{padding:15px;text-align:center;color:#8197a2;font-size:11px}.send-variable-help{margin:-4px 0 14px;font-size:10.5px;color:#718894}.send-variable-help code{display:inline-block;background:#edf4f7;color:#315f77;border-radius:5px;padding:3px 5px;margin:2px}.send-important-check{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;padding:10px 12px;border:1px solid #eadcc6;background:#fffaf2;border-radius:9px;margin-bottom:13px}.send-important-check input{grid-row:1/3;accent-color:#b56a17}.send-important-check span{font-size:11.5px;font-weight:850;color:#79511d}.send-important-check small{font-size:10px;color:#96744c}

/* STEP17H.14 — destinataires repliables et sélection massive */
.send-recipient-field{margin-bottom:14px}
.send-recipient-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #bfd2dc;border-radius:10px;background:#f8fbfc;padding:10px 12px;cursor:pointer;text-align:left;color:#294e62}
.send-recipient-toggle:hover,.send-recipient-toggle.open{border-color:#6f9db6;background:#f3f8fa}
.send-recipient-toggle>span:first-child{display:flex;flex-direction:column;gap:2px}.send-recipient-toggle b{font-size:11.5px}.send-recipient-toggle small{font-size:10.5px;font-weight:700;color:#718995}
.send-recipient-chevron{font-size:19px;font-weight:900;transition:transform .16s}.send-recipient-toggle.open .send-recipient-chevron{transform:rotate(180deg)}
.send-recipient-panel{display:none;margin-top:7px;padding:9px;border:1px solid #dbe7ed;border-radius:10px;background:#fbfcfd}.send-recipient-panel.open{display:block}
.send-recipient-panel .send-tech-list{max-height:220px;background:#fff}

/* STEP18C — finitions Données / À traiter / Binômes */
.nd-inline-link{
  border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:800;
  cursor:pointer;text-decoration:underline;text-decoration-color:rgba(30,64,175,.28);
  text-underline-offset:2px;
}
.nd-inline-link:hover{text-decoration-color:currentColor}
.split-count{
  display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;
  padding:0 7px;margin-left:6px;border-radius:999px;background:rgba(15,23,42,.08);
  font-size:11px;font-weight:800;vertical-align:middle;
}

/* STEP18D — Référentiels / tarifs */
.ref-tariff-search{
  display:flex;align-items:center;gap:8px;margin:10px 0 12px;padding:9px 11px;
  border:1px solid rgba(15,23,42,.10);border-radius:10px;background:#fff;
}
.ref-tariff-search input{
  flex:1;min-width:180px;border:0;outline:0;background:transparent;font:inherit;
}
.ref-tariff-search strong{
  font-size:11px;color:#64748b;white-space:nowrap;
}
.ref-toolbar-informative{flex-wrap:wrap}
.readonly-inline{
  display:inline-flex;align-items:center;min-height:32px;color:#64748b;font-size:12px;font-weight:600;
}

/* STEP18E — Primes / Tickets / Absences */
.prime-tools{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;
}
.prime-tools .data-search-wrap{max-width:420px;flex:1}
.prime-tools>strong,.tr-inline-count{
  font-size:11px;color:#64748b;font-weight:700;white-space:nowrap;
}

/* STEP18F — passe visuelle globale / cohérence FIX11 Web */
:where(button,a,input,select,textarea):focus-visible{
  outline:2px solid rgba(46,103,137,.72);
  outline-offset:2px;
}
.tab-content table tbody tr{
  transition:background-color .12s ease, box-shadow .12s ease;
}
.tab-content table tbody tr[ondblclick]:hover,
.clickable-intervention:hover,
.shared-list-row:hover{
  background:#f4f8fa;
}
.techlink,.data-tech-name,.nd-inline-link{cursor:pointer}
.tabsbar{
  scrollbar-width:thin;
  overscroll-behavior-x:contain;
}
.action-strip{
  box-shadow:0 5px 18px rgba(27,62,82,.06);
}
.section-title{
  letter-spacing:-.01em;
}
.panel,.split-panel,.ref-desktop-panel,.absence-panel{
  box-shadow:0 5px 18px rgba(31,70,91,.045);
}
.data-search-wrap:focus-within,.ref-tariff-search:focus-within,
.tech-search-toolbar:focus-within{
  border-color:#6d9bb4;
  box-shadow:0 0 0 3px rgba(77,134,166,.10);
}
input:disabled,select:disabled,textarea:disabled{
  cursor:not-allowed;
  opacity:.72;
}
@media(max-width:1050px){
  .tabsbar{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}
  .tabsbar .tablink{flex:0 0 auto}
  .action-strip{overflow-x:auto;flex-wrap:nowrap}
  .action-strip>*{flex:0 0 auto}
}
@media(max-width:820px){
  .prime-tools{align-items:stretch;flex-direction:column}
  .prime-tools .data-search-wrap{max-width:none}
  .ref-tariff-search{flex-wrap:wrap}
  .ref-tariff-search input{min-width:140px}
}

/* STEP19B.4.0.8 — mobile width safety */
@media(max-width:820px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .page,.content-area{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
}
