:root{
  --bg:#04110f;--bg2:#06362f;--bg3:#0b5b4e;--panel:#081f1b;--panel2:rgba(255,255,255,.075);
  --card:rgba(255,255,255,.095);--stroke:rgba(255,255,255,.16);--stroke2:rgba(255,216,107,.28);
  --gold:#ffd86b;--gold2:#f4aa25;--cyan:#4feaff;--green:#43e38b;--red:#ff6262;
  --txt:#f8fffb;--muted:#b9d0ca;--shadow:0 24px 80px rgba(0,0,0,.36)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--txt);min-height:100vh;background:
  radial-gradient(circle at 8% 0%,rgba(255,216,107,.20),transparent 23%),
  radial-gradient(circle at 88% 8%,rgba(79,234,255,.18),transparent 25%),
  linear-gradient(135deg,#030706 0%,#061b17 35%,#083a33 70%,#020403 100%);background-attachment:fixed}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 85%)}
button,input,select,textarea{font:inherit}input,select,textarea{width:100%;border:1px solid var(--stroke);background:rgba(0,0,0,.28);color:white;border-radius:16px;padding:14px 15px;outline:none;transition:.2s}input:focus,select:focus,textarea:focus{border-color:var(--gold);box-shadow:0 0 0 4px rgba(255,216,107,.12)}select option{background:#08241f;color:white}
button,.btn{border:0;border-radius:16px;padding:13px 18px;font-weight:900;cursor:pointer;background:linear-gradient(135deg,var(--gold),var(--gold2));color:#10221d;text-decoration:none;display:inline-flex;gap:8px;align-items:center;justify-content:center;box-shadow:0 12px 30px rgba(244,170,37,.18);transition:.2s}button:hover,.btn:hover{transform:translateY(-1px);filter:brightness(1.04)}.btn2{background:rgba(255,255,255,.10);color:white;border:1px solid var(--stroke);box-shadow:none}.danger{background:linear-gradient(135deg,#ff7777,var(--red));color:white}.ok{background:linear-gradient(135deg,var(--green),#0bbf6a);color:#062018}.wrap{padding:34px;max-width:1240px;margin:auto}.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:center;min-height:100vh}.brand{font-size:58px;font-weight:1000;color:var(--gold);letter-spacing:-2px;text-shadow:0 0 30px rgba(255,216,107,.35)}h1{font-size:34px;line-height:1.12;margin:10px 0 14px}h2{margin-top:0;color:#fff}.sub{color:var(--muted);line-height:1.7;font-size:16px}.small{font-size:12px;color:var(--muted);line-height:1.5}.card{background:linear-gradient(180deg,rgba(255,255,255,.115),rgba(255,255,255,.055));border:1px solid var(--stroke);border-radius:28px;padding:22px;box-shadow:var(--shadow);backdrop-filter:blur(18px);position:relative;overflow:hidden}.card:before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(135deg,rgba(255,216,107,.35),transparent 35%,rgba(79,234,255,.20));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}.grid{display:grid;gap:15px}.two{grid-template-columns:1fr 1fr}.three{grid-template-columns:repeat(3,1fr)}
.layout{display:grid;grid-template-columns:300px 1fr;min-height:100vh}.side{background:linear-gradient(180deg,rgba(2,10,9,.94),rgba(7,41,35,.92));border-right:1px solid var(--stroke2);padding:20px;position:sticky;top:0;height:100vh;overflow:auto;box-shadow:18px 0 60px rgba(0,0,0,.26)}.side h2{color:var(--gold);margin:0 0 6px;font-size:26px;text-shadow:0 0 22px rgba(255,216,107,.35)}.nav{margin:18px 0}.nav button{width:100%;justify-content:flex-start;margin:7px 0;background:rgba(255,255,255,.075);color:white;border:1px solid rgba(255,255,255,.11);box-shadow:none}.nav button:hover{background:rgba(255,216,107,.16);border-color:rgba(255,216,107,.35)}.main{padding:26px}.top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px;padding:16px 18px;border:1px solid var(--stroke);border-radius:24px;background:rgba(0,0,0,.18);backdrop-filter:blur(12px)}.top h1{margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.stats .card{min-height:118px}.stats b{display:block;font-size:27px;color:var(--gold);margin-top:8px;letter-spacing:-.5px}table{width:100%;border-collapse:separate;border-spacing:0;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.12);border-radius:18px;overflow:hidden}th,td{padding:12px;border-bottom:1px solid rgba(255,255,255,.10);text-align:left;vertical-align:top}tr:last-child td{border-bottom:0}th{color:var(--gold);font-size:12px;text-transform:uppercase;letter-spacing:.04em;background:rgba(0,0,0,.18)}td{color:#eefbf7}.badge{display:inline-block;padding:6px 11px;border-radius:999px;background:rgba(79,234,255,.13);color:var(--cyan);font-size:12px;font-weight:900;border:1px solid rgba(79,234,255,.25)}.section{display:none;animation:fade .25s ease}.section.active{display:block}@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.notice{border-left:4px solid var(--gold);padding:13px;background:rgba(255,216,107,.09);border-radius:14px;color:#fff}.printbox{background:white;color:#111;border-radius:18px;padding:24px}.printbox table{color:#111;background:white;border-color:#ddd}.printbox th{color:#111;background:#f4f4f4}.printbox td{color:#111}.printbox .badge{color:#111;border-color:#ddd;background:#f2f2f2}
@media(max-width:980px){.hero,.layout,.two,.three,.stats{grid-template-columns:1fr}.side{position:relative;height:auto}.brand{font-size:38px}.wrap,.main{padding:15px}.top{align-items:flex-start;flex-direction:column}.card{border-radius:22px}table{display:block;overflow-x:auto;white-space:nowrap}}
@media print{body{background:white;color:#111}.side,.top,.no-print,.nav,button{display:none!important}.layout{display:block}.main{padding:0}.card{box-shadow:none;border:0;background:white;color:#111}.section{display:block}.section:not(.printable){display:none!important}table{color:#111;background:white;border:1px solid #ddd}th{color:#111;background:#f4f4f4}td{color:#111}.printbox{padding:0}}

/* Page de connexion style GLOBAL 2 */
.loginPage{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:34px;background:radial-gradient(circle at 20% 20%,rgba(255,216,107,.16),transparent 24%),linear-gradient(135deg,#173824 0%,#003d3b 48%,#02201f 100%)}
.loginBox{width:min(960px,96vw);min-height:500px;display:grid;grid-template-columns:1fr 1fr;border-radius:28px;overflow:hidden;box-shadow:0 25px 70px rgba(0,0,0,.38);border:1px solid rgba(255,216,107,.35)}
.loginLeft{padding:42px;background:linear-gradient(145deg,rgba(23,58,38,.94),rgba(14,73,68,.78));color:#fff;display:flex;flex-direction:column;justify-content:center}
.logoG{width:76px;height:76px;border:3px solid var(--gold);border-radius:18px;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:34px;font-weight:1000;margin-bottom:20px;box-shadow:0 0 20px rgba(255,216,107,.18)}
.loginLeft h1{font-size:34px;text-transform:uppercase;letter-spacing:.5px;margin:0 0 18px}.loginLeft p{color:rgba(255,255,255,.86);line-height:1.65}.dev{margin-top:18px;color:var(--gold);font-weight:900}
.loginRight{background:#f7f9f8;color:#0b3533;padding:42px;display:flex;flex-direction:column;justify-content:center}.loginRight h2{color:#073b39;margin-bottom:4px}.mutedDark{color:#657575;margin-top:0}.loginRight label{font-weight:900;margin:12px 0 7px;color:#102f2e}.loginRight input,.loginRight select{background:#fff;color:#102f2e;border:1px solid #dce4e2;border-radius:12px;padding:13px;box-shadow:inset 0 1px 2px rgba(0,0,0,.04)}
.profileBtns{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0 10px}.profile{background:#fff;color:#083b39;border:1px solid #dfe8e5;box-shadow:0 7px 16px rgba(0,0,0,.08);border-radius:14px;flex-direction:column;gap:5px;min-height:78px;padding:12px}.profile.active{background:#fff8dc;border:2px solid #e2bd3e;box-shadow:0 12px 26px rgba(226,189,62,.22)}.profile span{font-weight:900}.loginActions{display:flex;gap:12px;align-items:center;margin-top:16px}.darkBtn{color:#0b3533!important;border-color:#d7dfdd!important;background:#fff!important}.darkSmall{color:#697876;margin-top:12px}.fullBtn{width:100%;margin-top:18px}.modal.hidden{display:none}.modal{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:18px}.modalOverlay{position:absolute;inset:0;background:rgba(0,0,0,.62);backdrop-filter:blur(5px)}.modalCard{position:relative;width:min(760px,96vw);background:linear-gradient(180deg,rgba(8,31,27,.98),rgba(5,64,56,.98));border:1px solid rgba(255,216,107,.38);border-radius:26px;padding:26px;box-shadow:0 28px 90px rgba(0,0,0,.48)}.modalClose{position:absolute;right:16px;top:14px;width:38px;height:38px;border-radius:50%;padding:0;background:rgba(255,255,255,.12);color:#fff;box-shadow:none}.modalCard h2{color:var(--gold)}
@media(max-width:820px){.loginBox{grid-template-columns:1fr}.loginLeft,.loginRight{padding:26px}.profileBtns{grid-template-columns:1fr}.loginLeft h1{font-size:27px}}

/* Accueil entreprise style GLOBAL 2 horizontal */
.g2app{min-height:100vh;background:#f3f8f8;color:#123;display:flex;flex-direction:column;padding-bottom:54px}.g2topbar{height:64px;background:linear-gradient(90deg,#013c3b,#062b29);color:#fff;display:flex;align-items:center;gap:12px;padding:0 20px;box-shadow:0 6px 22px rgba(0,0,0,.28);position:sticky;top:0;z-index:20}.g2brand{display:flex;align-items:center;gap:10px;min-width:190px}.g2logo{width:40px;height:40px;border:3px solid #e8c94e;border-radius:10px;color:#e8c94e;display:flex;align-items:center;justify-content:center;font-weight:1000;font-size:20px}.g2brand strong{display:block;font-size:20px;letter-spacing:.5px}.g2brand span{display:block;font-size:10px;color:#f6d766;font-weight:900}.g2nav{display:flex;align-items:center;gap:4px;flex:1;overflow-x:auto}.g2nav button{white-space:nowrap;background:transparent;color:#f5fffb;border:0;box-shadow:none;border-radius:12px;padding:12px 11px;font-size:13px}.g2nav button.active,.g2nav button:hover{background:rgba(255,216,107,.16);outline:1px solid rgba(255,216,107,.35);color:#ffe68c}.g2actions{display:flex;align-items:center;gap:8px}.monthSelect{width:auto;min-width:126px;background:#fff!important;color:#111!important;border-radius:12px!important;padding:9px 12px!important}.pill{display:inline-flex;align-items:center;padding:10px 13px;border-radius:18px;background:rgba(255,216,107,.13);color:#ffe68c;font-weight:900;font-size:13px}.pill.light,.logoutBtn{background:#fff4cf!important;color:#17322f!important;border-radius:18px!important;box-shadow:0 3px 12px rgba(0,0,0,.12);padding:10px 14px!important}.logoutBtn{font-size:13px}.g2main{width:min(1150px,92vw);margin:26px auto 70px}.companyLine{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px;color:#51605f}.companyLine b{font-size:18px;color:#073b39}.companyLine span{font-size:12px}.g2panel{background:#fff;border-radius:18px;padding:20px;margin:0 0 18px;box-shadow:0 16px 38px rgba(0,0,0,.10);border:1px solid rgba(0,0,0,.04);color:#142f2d}.g2panel h2{color:#142f2d;margin:0 0 15px;font-size:22px;display:flex;align-items:center;gap:10px}.g2panel h2 span{width:5px;height:28px;border-radius:5px;background:#e5bd39;display:inline-block}.quickGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.quickCard{height:128px;border-radius:10px;box-shadow:none;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:18px;line-height:1.05;text-align:center;color:#057562!important}.quickCard span{font-size:28px}.quickCard b{max-width:180px}.quickCard.green{background:#e7f8ef!important;color:#037260!important}.quickCard.blue{background:#eaf4ff!important;color:#12649f!important}.quickCard.gold{background:#fff7db!important;color:#806107!important}.quickCard.purple{background:#f1e4ff!important;color:#682ad7!important}.quickCard:hover{transform:translateY(-2px);filter:brightness(1.01)}.resumeGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.resumeGrid div{background:#f6fbfb;border-radius:14px;padding:16px;border:1px solid #e8eeee}.resumeGrid small{display:block;color:#6b7776;font-weight:800;margin-bottom:8px}.resumeGrid b{font-size:23px;color:#033d3b}.syncBadge{position:fixed;right:10px;bottom:44px;background:#053d3b;color:#f4cf51;border:1px solid rgba(244,207,81,.55);border-radius:18px;padding:9px 14px;font-weight:900;font-size:13px;box-shadow:0 10px 24px rgba(0,0,0,.22);z-index:30}.g2footer{position:fixed;left:0;right:0;bottom:0;background:#024644;color:#e7f5f2;text-align:center;padding:12px;font-size:13px;z-index:25}.g2app .card{background:#fff;color:#142f2d;border:1px solid #e8eeee;box-shadow:0 12px 30px rgba(0,0,0,.08)}.g2app .card h2{color:#142f2d}.g2app input,.g2app select,.g2app textarea{background:#fff;color:#142f2d;border-color:#dce6e5}.g2app table{background:#fff;color:#142f2d;border-color:#e5eeee}.g2app th{background:#f4faf9;color:#074d4a}.g2app td{color:#142f2d}.g2app .notice{color:#142f2d;background:#fff7db}.g2app .sub,.g2app .small{color:#5f7270}
@media(max-width:1100px){.g2topbar{height:auto;min-height:64px;flex-wrap:wrap;padding:10px}.g2brand{min-width:160px}.g2actions{width:100%;overflow-x:auto}.g2main{width:96vw}.quickGrid{grid-template-columns:1fr 1fr}.resumeGrid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.quickGrid,.resumeGrid{grid-template-columns:1fr}.quickCard{height:105px}.g2brand strong{font-size:17px}.g2footer{font-size:11px}.syncBadge{bottom:48px}.companyLine{flex-direction:column;align-items:flex-start}}
@media print{.g2topbar,.g2footer,.syncBadge,.companyLine{display:none!important}.g2app{background:#fff;padding:0}.g2main{width:100%;margin:0}.g2panel{box-shadow:none;border:0}.quickGrid,.resumeGrid{display:none}}
/* Présentations GLOBAL 2 pour tous les espaces entreprise */
.formCard{background:#fffdf3;border:1px solid rgba(219,181,44,.28);border-radius:16px;padding:16px;margin-bottom:14px}
.reportActions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 12px}.reportActions button:nth-child(odd){background:#00716d}.reportActions button:nth-child(even){background:#e8c440;color:#123}.reportBox{background:#fffef8;border:2px solid #dfbd37;border-radius:16px;padding:22px;color:#142f2d;overflow:auto}.reportBox.slim{padding:18px;border-width:1px}.reportBox h1{text-align:center;color:#004a48;font-size:25px;margin:0 0 6px;text-transform:uppercase;letter-spacing:.3px}.reportBox h3{text-align:center;color:#8c7b18;margin:0 0 18px;font-size:15px}.serviceBlock{margin:18px 0}.serviceBlock h2{background:#004a48;color:#f1cf4a!important;border-radius:8px 8px 0 0;padding:13px 14px;margin:0!important;font-size:18px;text-transform:uppercase}.reportBox table,.g2table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e7ecea;border-radius:10px;overflow:hidden;color:#142f2d}.reportBox th,.g2table th{background:#004a48!important;color:#eac64a!important;font-weight:900}.reportBox td,.reportBox th,.g2table td,.g2table th{padding:12px;border-bottom:1px solid #edf1f0;color:#142f2d}.reportBox tr.total td,.g2table tr.total td{background:#fff3bd;font-weight:1000;color:#102f2d}.totalLine{text-align:right;font-weight:1000;font-size:20px;color:#004a48;margin:16px 0 4px}.monthsGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.monthCard{background:#fffef7;border:1px solid #eee3b5;border-radius:13px;padding:16px;box-shadow:0 8px 20px rgba(0,0,0,.06)}.monthCard.active{background:#fff7d8;border:2px solid #e6c43f}.monthCard h4{margin:0 0 8px;color:#004a48;font-size:18px}.monthCard p{font-size:16px}.monthCard button{background:#edf8f8;color:#0b4947;box-shadow:none}.g2app .notice{border-left:5px solid #e5bd39;background:#fff7d9;color:#382f06;border-radius:10px;padding:14px;margin:10px 0}.g2app .sub{font-size:16px;margin-top:-4px}.g2app h2{font-weight:1000}
@media(max-width:900px){.monthsGrid{grid-template-columns:1fr 1fr}.reportBox{padding:14px}.reportBox h1{font-size:20px}.reportActions{position:relative}.reportBox table,.g2table{display:block;overflow-x:auto;white-space:nowrap}}
@media(max-width:560px){.monthsGrid{grid-template-columns:1fr}.reportBox h1{font-size:18px}.totalLine{text-align:left;font-size:17px}}
@media print{.reportActions,.g2panel>button,.formCard,.quickGrid,.resumeGrid{display:none!important}.reportBox{border:0;padding:0}.serviceBlock h2{background:#004a48!important;color:#000!important;border:1px solid #222}.reportBox th,.g2table th{background:#eee!important;color:#000!important}.reportBox td,.g2table td{color:#000!important}.g2panel{box-shadow:none!important}}

/* Panier de commande style GLOBAL 2 */
.panierPanel{border-radius:16px!important}.cartBox{background:#fffef9;border:1.6px solid #e2c44b;border-radius:14px;padding:22px;margin-top:12px;overflow:auto}.cartBox h1{text-align:center;color:#004a48;font-size:22px;margin:0 0 14px;font-weight:1000}.cartBox h3{text-align:center;color:#8b7714;font-size:15px;margin:0 0 18px;font-weight:1000}.cartTable{width:100%;border-collapse:collapse;border:0!important;background:#fff!important}.cartTable th{background:#004a48!important;color:#f2cd46!important;font-weight:1000;text-transform:none!important;font-size:14px!important;padding:13px 12px!important}.cartTable th:first-child{border-radius:9px 0 0 0}.cartTable th:last-child{border-radius:0 9px 0 0}.cartTable td{padding:14px 12px!important;border-bottom:1px solid #edf1f0!important;color:#142f2d!important}.emptyCart{text-align:center!important;color:#657575!important;padding:24px!important}.cartTotal{text-align:right;font-size:22px;font-weight:1000;color:#004a48;margin-top:12px;padding-top:4px}.cartActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.cartAdd{background:#00716d!important;color:#fff!important;box-shadow:none!important}.cartValidate{background:#e8c440!important;color:#102f2d!important;box-shadow:none!important}.cartClear,.miniDanger{background:#ffe9e9!important;color:#b60000!important;box-shadow:none!important}.miniDanger{padding:8px 12px!important;border-radius:10px!important;font-size:12px!important}@media(max-width:760px){.cartBox{padding:14px}.cartTable{display:block;overflow-x:auto;white-space:nowrap}.cartTotal{text-align:left;font-size:19px}.cartActions button{width:100%}}

/* Ajout GLOBAL 3 : formulaire stock comme GLOBAL 2 + gestion obligations/clients */
.stockPanel{padding-top:18px!important}.stockForm{display:grid;grid-template-columns:repeat(3,1fr);gap:24px 22px}.stockForm .field{display:flex;flex-direction:column;gap:8px}.stockForm label,.stockFilters label{font-weight:1000;color:#07302e;font-size:16px}.stockForm input{height:46px;border-radius:10px!important}.stockForm input[readonly]{background:#f8fbfb!important;color:#00656a!important;font-weight:1000}.stockButtons{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.stockButtons button{height:42px}.stockFilters{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:18px 0 0}.stockFilters input,.stockFilters select{margin-top:8px}.stockReport{margin-top:0}.stockStatus{display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border-radius:999px;font-weight:1000}.stockStatus.ok{background:#dcfaee;color:#00785e}.stockStatus.warn{background:#fff0c8;color:#987000}.clientList{margin:12px 0 18px}.clientLine{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;border:1px solid #e8eeee;border-radius:12px;padding:10px 12px;margin-bottom:8px;background:#fff}.clientLine b{color:#073b39}.clientLine small{display:block;color:#526765;font-weight:700;margin-top:2px}.clientLine button{grid-row:1/3;grid-column:2}.danger{background:#ffe9e9!important;color:#b60000!important;box-shadow:none!important}.btn2{background:#eef8f8!important;color:#0b4947!important;box-shadow:none!important}.darkBtn{background:#00716d!important;color:#fff!important}
@media(max-width:850px){.stockForm,.stockFilters{grid-template-columns:1fr}.stockButtons button{width:100%}.clientLine{grid-template-columns:1fr}.clientLine button{grid-row:auto;grid-column:auto;width:100%}}
@media print{.stockFilters,.clientLine button{display:none!important}.stockForm{display:none!important}}

/* Correction formulaire produits/services GLOBAL 3 */
.stockForm select{height:46px;border-radius:10px!important}
.stockButtons{grid-column:1/-1;display:flex;gap:12px;align-items:center;justify-content:flex-start;flex-wrap:wrap;margin-top:2px}
.stockButtons button{min-width:150px;height:44px;white-space:nowrap}
.chargeField{transition:.2s}
@media(max-width:980px){.stockForm{grid-template-columns:repeat(2,1fr)}.stockButtons{grid-column:1/-1}}
@media(max-width:650px){.stockForm{grid-template-columns:1fr}.stockButtons button{width:100%;min-width:0}}

/* Corrections obligations mensuelles */
.obligationGrid{align-items:end;grid-template-columns:repeat(3,minmax(180px,1fr));}
.obligationGrid button{min-height:48px;white-space:normal;}
#oPercentBox{display:flex;flex-direction:column;}
#oPercentBox input{width:100%;}
.reportBox td .danger,.reportBox td button{margin:2px;}
@media(max-width:900px){.obligationGrid{grid-template-columns:1fr}.obligationGrid button{width:100%;}}
.miniNote{font-size:11px;color:#8a7418;margin-top:5px;font-weight:700}
.reportBox input[disabled]{background:#f3f6f6;color:#00494b;font-weight:800;opacity:1;cursor:not-allowed}

/* Correction affichage SERVICE : pas de champs stock/prix/alerte, boutons sans superposition */
.stockForm .field[style*="display: none"]{display:none!important}
.g2table td:last-child{min-width:220px;}
.g2table td:last-child button{margin:3px 4px 3px 0;white-space:nowrap;}
.stockReport{overflow-x:auto;}
@media(max-width:900px){
  .g2table td:last-child{min-width:260px;}
  .g2table td:last-child button{display:inline-flex;}
}

/* Correction finale : boutons Action de la liste produits/services sans superposition */
.stockTable{table-layout:auto;}
.stockTable th:last-child,.stockTable td.actionCell{width:190px;min-width:190px;text-align:center;vertical-align:middle;}
.stockTable td.actionCell{padding:14px 10px!important;}
.actionBtns{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:86px;}
.actionBtns button{width:138px;min-width:138px;height:44px;margin:0!important;padding:10px 12px!important;white-space:nowrap;line-height:1!important;}
.stockTable tr{height:auto;}
.stockTable td{vertical-align:middle;}
@media(max-width:900px){.stockReport{overflow-x:auto}.stockTable{min-width:980px}.stockTable th:last-child,.stockTable td.actionCell{position:sticky;right:0;background:#fff;box-shadow:-8px 0 12px rgba(0,0,0,.04);z-index:1}}

/* ALIGNEMENT GLOBAL DES BOUTONS */
.g2table td:last-child,
.reportBox table td:last-child,
table td:last-child{
  min-width:260px;
}

.g2table td:last-child,
.reportBox table td:last-child,
table td:last-child{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.g2table td:last-child button,
.reportBox table td:last-child button,
table td:last-child button{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  margin:0 !important;
}

@media(max-width:768px){
  .g2table td:last-child,
  .reportBox table td:last-child,
  table td:last-child{
    flex-direction:row;
    min-width:300px;
  }
}


/* === CORRECTION GLOBALE : boutons d'action alignés sur la même ligne === */
.g2table th:last-child,
.g2table td.actionCell,
.reportBox table th:last-child,
.reportBox table td.actionCell,
table td.actionCell{
  width:260px!important;
  min-width:260px!important;
  text-align:center!important;
  vertical-align:middle!important;
}
.actionBtns,
.rowActions,
td.actionCell .actionBtns,
td.actionCell .rowActions{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
  min-height:0!important;
  width:100%!important;
}
.actionBtns button,
.rowActions button,
td.actionCell button{
  width:auto!important;
  min-width:112px!important;
  max-width:none!important;
  height:42px!important;
  margin:0!important;
  padding:10px 14px!important;
  white-space:nowrap!important;
  line-height:1!important;
  flex:0 0 auto!important;
}
.stockTable th:last-child,
.stockTable td.actionCell{
  width:290px!important;
  min-width:290px!important;
}
.stockTable td.actionCell{padding:12px 14px!important;}
.stockTable .actionBtns button{min-width:130px!important;}
.reportBox table td{vertical-align:middle!important;}
@media(max-width:900px){
  .stockReport,.reportBox{overflow-x:auto!important;}
  .g2table,.reportBox table{min-width:980px!important;}
  .g2table th:last-child,.g2table td.actionCell,
  .reportBox table th:last-child,.reportBox table td.actionCell{
    position:sticky!important;right:0!important;background:#fff!important;z-index:2!important;
    box-shadow:-8px 0 12px rgba(0,0,0,.05)!important;
  }
}
@media(max-width:520px){
  .actionBtns,.rowActions,td.actionCell .actionBtns,td.actionCell .rowActions{gap:6px!important;}
  .actionBtns button,.rowActions button,td.actionCell button{min-width:100px!important;padding:9px 10px!important;font-size:12px!important;}
}
.hidden{display:none!important}.fullRow{grid-column:1/-1}.compactGrid{margin:0}.salePro .formTitle{grid-column:1/-1;margin:8px 0 2px;color:#004a48;font-size:17px;font-weight:1000}.salePro input[readonly]{background:#f7fbfa;color:#0f3431;font-weight:800}.salePro #saleStock{display:none}.salePro .btn2{background:#eaf6f5!important;color:#004a48!important;border:1px solid #d5e7e5!important;box-shadow:none!important}.salePro button.fullRow{min-height:52px}.g2panel .modalCard h2{color:#f1cf4a}.g2panel .modalCard .sub{color:#d8ece9}@media(max-width:760px){.two,.three{grid-template-columns:1fr!important}.fullRow{grid-column:auto}.salePro .compactGrid{grid-template-columns:1fr!important}}

/* Rapport général détaillé des ventes */
.salesSummary{margin:6px 0 16px;color:#142f2d;font-size:16px;line-height:1.35}
.detailedSalesBlock h2{text-align:center;background:transparent!important;color:#004a48!important;border-radius:0;padding:0;margin:8px 0 18px!important;font-size:24px}
.detailedSalesTable th{white-space:nowrap}
.detailedSalesTable td{vertical-align:middle!important}
.saleBadge{display:inline-flex;background:#ffd400;color:#063b39;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:1000;line-height:1}
.detailedSalesTable .rowActions button:first-child{background:#e2bd38!important;color:#123!important}
.detailedSalesTable .rowActions .danger{background:#ffe9e9!important;color:#b60000!important}
@media(max-width:900px){.detailedSalesTable{min-width:1050px!important}.detailedSalesBlock{overflow-x:auto}}

/* Correction : Obligations mensuelles inspirées du tableau GLOBAL 2 */
.obligationsReport{border:0!important;background:#fff!important;padding:18px 0!important;}
.obligationsReport h1{font-size:28px!important;color:#0b1735!important;letter-spacing:2px!important;margin-bottom:12px!important;}
.obligationsReport h3{color:#9a6900!important;font-size:17px!important;font-weight:1000!important;}
.obligationsReport .notice{background:#fff6dc!important;border-left:5px solid #dfb735!important;border-radius:10px!important;color:#44340b!important;margin:16px 0 72px!important;font-size:16px!important;}
.obligationsTable{border-collapse:collapse!important;border-radius:0!important;border:1px solid #9bb4dc!important;background:#fff!important;font-size:12px!important;}
.obligationsTable th{background:#fff!important;color:#031d57!important;border:1px solid #9bb4dc!important;text-align:center!important;text-transform:none!important;letter-spacing:0!important;font-weight:1000!important;vertical-align:middle!important;}
.obligationsTable td{border:1px solid #9bb4dc!important;color:#00164a!important;font-weight:800!important;vertical-align:middle!important;background:#fff!important;}
.obligationsTable tbody tr:nth-child(even) td{background:#fbfdff!important;}
.obligationsTable tr.total td{background:#fff3bd!important;color:#071a49!important;font-weight:1000!important;}
.calcBadge{display:block;background:#f3f6fb;border-radius:6px;padding:5px 8px;text-align:center;font-weight:1000;color:#00164a;min-height:18px;}
@media(max-width:900px){.obligationsReport .notice{margin-bottom:25px!important}.obligationsTable{min-width:1080px!important}.obligationsReport{overflow-x:auto!important}}
@media print{.obligationsReport .notice{margin-bottom:30px!important}.calcBadge{background:#f5f5f5!important;color:#000!important}.obligationsTable th,.obligationsTable td{border-color:#777!important;color:#000!important}}

/* Fiche de paiement des obligations mensuelles — présentation professionnelle GLOBAL 3 */
.fichePaiementReport{border:2px solid #dfb735!important;background:#fffef9!important;border-radius:16px!important;padding:22px!important;color:#142f2d!important;overflow:auto!important;}
.fichePaiementReport h1{color:#51223b!important;font-size:27px!important;letter-spacing:1.5px!important;margin:0 0 6px!important;text-align:center!important;}
.fichePaiementReport h3{color:#8c7b18!important;font-size:17px!important;font-weight:1000!important;text-align:center!important;margin:0 0 16px!important;}
.ficheSeparator{height:3px;background:#d7a923;margin:14px 0 16px;border-radius:999px;}
.ficheInfoGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 14px;}
.ficheInfoGrid div{border:1px solid #ead690;border-radius:10px;background:#fff;padding:12px 10px;font-size:17px;font-weight:900;color:#102f2d;min-height:44px;display:flex;align-items:center;}
.ficheInfoGrid b{color:#0b3432;margin-right:5px;}
.fichePaiementTable{width:100%;border-collapse:collapse!important;border-radius:12px!important;overflow:hidden!important;border:0!important;background:#fff!important;}
.fichePaiementTable th{background:#004a48!important;color:#f1cf4a!important;text-align:left!important;text-transform:none!important;letter-spacing:0!important;font-size:14px!important;padding:12px!important;border-bottom:1px solid rgba(255,255,255,.5)!important;}
.fichePaiementTable th:nth-child(3),.fichePaiementTable th:nth-child(4){text-align:center!important;}
.fichePaiementTable td{color:#142f2d!important;background:#fff!important;border-bottom:1px solid #edf1f0!important;padding:11px 12px!important;font-size:14px!important;vertical-align:middle!important;}
.fichePaiementTable .ficheGroup td{font-weight:1000!important;background:#fff!important;color:#142f2d!important;padding-top:14px!important;}
.fichePaiementTable .salaryCell{text-align:left!important;font-weight:500!important;}
.fichePaiementTable .signatureCell{min-width:210px!important;}
.fichePaiementTable tr.total td{background:#fff3bd!important;font-weight:1000!important;color:#102f2d!important;}
@media(max-width:900px){.ficheInfoGrid{grid-template-columns:1fr}.fichePaiementTable{min-width:920px!important}.fichePaiementReport{padding:14px!important;}}
@media print{.fichePaiementReport{border:0!important;padding:0!important}.ficheInfoGrid{grid-template-columns:repeat(3,1fr)!important;gap:10px!important}.ficheInfoGrid div{font-size:13px!important;padding:8px!important}.fichePaiementTable th{background:#eee!important;color:#000!important}.fichePaiementTable td{color:#000!important}.ficheSeparator{background:#999!important}}

/* Clients sous contrat : modification, suppression et facture mensuelle */
.clientLine{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;}
.clientInfo{min-width:240px;flex:1;}
.clientActions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;}
.clientActions button{min-width:120px;margin:0!important;white-space:nowrap;}
.contractConsumptionTable td.actionCell{min-width:190px!important;}
.monthlyInvoice h1{text-align:center;color:#004a48!important;letter-spacing:1px;}
.monthlyInvoice h3{text-align:center;color:#8c7b18!important;}
.signatureZone{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:42px;font-weight:900;color:#0d3431;}
.signatureZone span{border-top:1px solid #9a9a9a;padding-top:12px;text-align:center;min-height:48px;}
@media(max-width:760px){.clientLine{align-items:flex-start}.clientActions{width:100%;justify-content:flex-start}.clientActions button{flex:1 1 130px}.signatureZone{grid-template-columns:1fr;gap:28px}}
@media print{.clientActions,.no-print{display:none!important}.monthlyInvoice{border:0!important}.signatureZone{break-inside:avoid}}
.invoiceSearchBox{display:flex;gap:10px;align-items:center;margin:14px 0 18px 0;flex-wrap:wrap}.invoiceSearchBox input{flex:1;min-width:260px;border:1px solid #d8c06a;border-radius:14px;padding:14px 16px;font-weight:800}.invoiceSearchBox button,.rowActions .btn2{background:#00796b;color:#001b1b;border:0;border-radius:14px;padding:12px 18px;font-weight:900}.rowActions{display:flex;gap:8px;flex-wrap:wrap}.modalBackdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px}.editSaleModal{background:#fff;border:2px solid #d9b326;border-radius:22px;box-shadow:0 25px 80px rgba(0,0,0,.35);max-width:760px;width:min(760px,96vw);padding:24px}.editSaleModal h2{text-align:center;color:#063f3d;margin:0 0 10px}.editSaleModal label{font-weight:900;color:#0b292b;display:flex;flex-direction:column;gap:8px}.editSaleModal input,.editSaleModal select{border:1px solid #d7e1e4;border-radius:14px;padding:13px;font-weight:800}.modalActions{display:flex;gap:12px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}.modalActions button{border:0;border-radius:14px;padding:13px 18px;font-weight:900;background:#e7c445}.modalActions .danger{background:#ffe6e6;color:#c40000}@media(max-width:760px){.rowActions{flex-direction:column}.rowActions button{width:100%}.editSaleModal{padding:16px}.modalActions button{width:100%}}

/* === CORRECTION RAPPORT GÉNÉRAL DES VENTES : écriture lisible + actions non coupées === */
.reportBox,
.detailedSalesBlock{
  overflow-x:auto!important;
  overflow-y:visible!important;
}
.invoiceSearchBox{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) 120px!important;
  gap:10px!important;
  align-items:center!important;
  margin:0 0 18px!important;
}
.invoiceSearchBox input{
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  font-size:15px!important;
  padding:0 16px!important;
  box-sizing:border-box!important;
}
.invoiceSearchBox button{
  width:120px!important;
  min-width:120px!important;
  height:45px!important;
  padding:0 12px!important;
  margin:0!important;
  border-radius:13px!important;
  white-space:nowrap!important;
}
.detailedSalesTable{
  width:100%!important;
  min-width:1280px!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
}
.detailedSalesTable th,
.detailedSalesTable td{
  display:table-cell!important;
  padding:14px 12px!important;
  line-height:1.45!important;
  font-size:14px!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  vertical-align:middle!important;
}
.detailedSalesTable th:nth-child(1),.detailedSalesTable td:nth-child(1){width:170px!important;}
.detailedSalesTable th:nth-child(2),.detailedSalesTable td:nth-child(2){width:115px!important;}
.detailedSalesTable th:nth-child(3),.detailedSalesTable td:nth-child(3){width:190px!important;}
.detailedSalesTable th:nth-child(4),.detailedSalesTable td:nth-child(4){width:80px!important;text-align:center!important;}
.detailedSalesTable th:nth-child(5),.detailedSalesTable td:nth-child(5){width:120px!important;}
.detailedSalesTable th:nth-child(6),.detailedSalesTable td:nth-child(6){width:75px!important;text-align:center!important;}
.detailedSalesTable th:nth-child(7),.detailedSalesTable td:nth-child(7){width:120px!important;}
.detailedSalesTable th:nth-child(8),
.detailedSalesTable td.actionCell{
  width:360px!important;
  min-width:360px!important;
  max-width:360px!important;
  text-align:center!important;
  position:static!important;
  background:#fff!important;
  box-shadow:none!important;
}
.detailedSalesTable td.actionCell{
  padding:12px 14px!important;
  overflow:visible!important;
}
.detailedSalesTable .rowActions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
}
.detailedSalesTable .rowActions button{
  flex:0 0 106px!important;
  width:106px!important;
  min-width:106px!important;
  max-width:106px!important;
  height:42px!important;
  padding:0 8px!important;
  margin:0!important;
  border-radius:14px!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-align:center!important;
}
.detailedSalesTable .saleBadge{
  margin-top:5px!important;
}
.totalLine{
  white-space:normal!important;
  line-height:1.35!important;
}
@media(max-width:700px){
  .invoiceSearchBox{grid-template-columns:1fr!important;}
  .invoiceSearchBox button{width:100%!important;min-width:0!important;}
  .detailedSalesTable{min-width:1280px!important;}
}

/* === CONSOMMATION CLIENTS SOUS CONTRAT : présentation propre sans bouton === */
.contractConsumptionWrap{
  width:100%;
  overflow-x:auto!important;
  border-radius:10px;
}
.contractConsumptionTable{
  width:100%!important;
  min-width:980px!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  background:#fff!important;
}
.contractConsumptionTable th,
.contractConsumptionTable td{
  display:table-cell!important;
  vertical-align:middle!important;
  padding:13px 12px!important;
  line-height:1.25!important;
  font-size:14px!important;
  color:#102f2d!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  border-bottom:1px solid #edf1f0!important;
}
.contractConsumptionTable th{
  background:#004a48!important;
  color:#f1cf4a!important;
  font-weight:1000!important;
  text-align:left!important;
}
.contractConsumptionTable th:nth-child(1),.contractConsumptionTable td:nth-child(1){width:120px!important;}
.contractConsumptionTable th:nth-child(2),.contractConsumptionTable td:nth-child(2){width:170px!important;}
.contractConsumptionTable th:nth-child(3),.contractConsumptionTable td:nth-child(3){width:360px!important;}
.contractConsumptionTable th:nth-child(4),.contractConsumptionTable td:nth-child(4){width:80px!important;text-align:center!important;}
.contractConsumptionTable th:nth-child(5),.contractConsumptionTable td:nth-child(5){width:110px!important;}
.contractConsumptionTable th:nth-child(6),.contractConsumptionTable td:nth-child(6){width:100px!important;}
.contractConsumptionTable th:nth-child(7),.contractConsumptionTable td:nth-child(7){width:170px!important;}
.contractConsumptionTable td:last-child,
.contractConsumptionTable th:last-child{
  min-width:0!important;
  width:170px!important;
  display:table-cell!important;
  text-align:left!important;
}
.contractConsumptionTotal{
  text-align:right!important;
  font-size:21px!important;
  margin:12px 0 2px!important;
  color:#004a48!important;
}
@media(max-width:700px){.contractConsumptionTable{min-width:980px!important}.contractConsumptionTotal{text-align:left!important;font-size:18px!important}}
/* Correction TABLEAU DE GESTION SUR 12 MOIS */
.yearControlBar{display:grid;grid-template-columns:auto minmax(170px,1fr) minmax(190px,1fr) auto auto;gap:12px;align-items:end;margin-top:12px}
.yearControlBar label{font-weight:900;color:#004a48;display:flex;flex-direction:column;gap:6px}
.yearControlBar input,.yearControlBar select{height:48px;border:1px solid #e3c64d;border-radius:12px;padding:0 12px;background:#fff;color:#092d2b;font-weight:800;font-size:15px}
.yearManagePanel .sub{margin:12px 0 0;color:#46615f}.yearlyReport{overflow:auto}.yearlyTable{margin-top:18px;min-width:920px}.yearlyTable th{text-align:center;white-space:nowrap}.yearlyTable td{text-align:center}.yearlyTable td:first-child,.yearlyTable th:first-child{text-align:left}.yearlyTable .activeYearRow td{background:#fff8d9;font-weight:900}.yearlyTable tr.total td{background:#fff0ad!important;font-weight:1000;color:#092d2b!important}.monthsGrid+.yearlyTable{margin-top:20px}
@media(max-width:980px){.yearControlBar{grid-template-columns:1fr 1fr}.yearControlBar button{width:100%}}
@media(max-width:560px){.yearControlBar{grid-template-columns:1fr}.yearControlBar input,.yearControlBar select{width:100%}.yearlyTable{min-width:840px}}

/* === Bouton Vider l’historique dans RAPPORT GÉNÉRAL DES VENTES === */
.clearHistoryBar{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:22px!important;
  margin:22px 0 4px!important;
  flex-wrap:wrap!important;
}
.clearHistoryBtn{
  background:#ffe9e9!important;
  color:#b60000!important;
  border:1px solid #ff9b9b!important;
  box-shadow:none!important;
  min-width:210px!important;
  height:54px!important;
  border-radius:14px!important;
  font-weight:1000!important;
}
.clearHistoryBar small{
  color:#536967!important;
  font-weight:700!important;
  line-height:1.35!important;
}
@media print{.clearHistoryBar{display:none!important}}


/* ===== CORRECTION IMPRESSION PREMIUM GLOBAL 3 ===== */
.printHeaderPremium{display:none}
.stockListHeader{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
@media print{
  @page{size:A4;margin:12mm}
  html,body{background:#fff!important;color:#102827!important;font-family:Arial,Helvetica,sans-serif!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .g2topbar,.g2footer,.syncBadge,.companyLine,.reportActions,.no-print,.stockFilters,.stockForm,.formCard,.quickGrid,.resumeGrid,.clientActions,.clearHistoryBar,button,input,select,textarea{display:none!important}
  .g2app,.g2main,.layout,.main{display:block!important;width:100%!important;margin:0!important;padding:0!important;background:#fff!important;box-shadow:none!important}
  .section{display:none!important}.section.printable.active,.section.printable{display:block!important}
  .g2panel,.card,.reportBox,.stockReport,.monthlyInvoice,.fichePaiementReport{background:#fff!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;color:#102827!important}
  .reportBox:before,.stockReport:before,.monthlyInvoice:before,.fichePaiementReport:before{content:'MEGA SERVICES SARL U — GLOBAL 3';display:block;text-align:center;color:#8a6a00;font-weight:800;font-size:12px;letter-spacing:.08em;margin:0 0 4px;text-transform:uppercase}
  .reportBox h1,.stockReport h1,.monthlyInvoice h1,.fichePaiementReport h1{font-size:22px!important;line-height:1.2;text-align:center!important;color:#004a48!important;margin:0 0 4px!important;text-transform:uppercase;letter-spacing:.03em;border-bottom:2px solid #d7aa20;padding-bottom:8px}
  .reportBox h3,.stockReport h3,.monthlyInvoice h3,.fichePaiementReport h3{text-align:center!important;color:#6d5400!important;font-size:12px!important;margin:0 0 14px!important;text-transform:uppercase}
  .serviceBlock{break-inside:avoid;margin:14px 0!important;border:1px solid #d9c274!important;border-radius:10px!important;overflow:hidden!important;background:#fff!important}
  .serviceBlock h2{background:#004a48!important;color:#ffd84a!important;border:0!important;font-size:14px!important;padding:9px 11px!important;margin:0!important;text-transform:uppercase}
  table,.g2table,.stockTable,.reportBox table{width:100%!important;border-collapse:collapse!important;border-spacing:0!important;border:1px solid #b9c5c2!important;border-radius:0!important;background:#fff!important;color:#111!important;font-size:11px!important;page-break-inside:auto!important}
  thead{display:table-header-group!important} tfoot{display:table-footer-group!important} tr{break-inside:avoid!important;page-break-inside:avoid!important}
  th,.g2table th,.reportBox th{background:#004a48!important;color:#ffd84a!important;border:1px solid #004a48!important;padding:8px 7px!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.03em!important;text-align:left!important}
  td,.g2table td,.reportBox td{background:#fff!important;color:#102827!important;border:1px solid #d8e0de!important;padding:7px!important;font-size:10.5px!important;vertical-align:top!important}
  tr.total td,.total td,tfoot td{background:#fff3c4!important;color:#003f3d!important;font-weight:800!important}
  .totalLine{margin-top:14px!important;text-align:right!important;color:#004a48!important;font-size:17px!important;font-weight:900!important;border-top:2px solid #d7aa20!important;padding-top:10px!important}
  .saleBadge,.badge,.stockStatus,.calcBadge{display:inline-block!important;background:#fff0a6!important;color:#111!important;border:1px solid #d7aa20!important;border-radius:999px!important;padding:2px 7px!important;font-size:9px!important;font-weight:800!important}
  .actionCell,.rowActions{display:none!important}
  .signatureZone{display:flex!important;justify-content:space-between!important;gap:50px!important;margin-top:35px!important;break-inside:avoid!important}
  .signatureZone span{display:block!important;min-width:200px!important;border-top:1px solid #111!important;text-align:center!important;padding-top:6px!important;color:#111!important}
  .stockListHeader h2{display:none!important}
  .stockListPanel:before{content:'ÉTAT DU STOCK — LISTE DES PRODUITS ET SERVICES';display:block;text-align:center;color:#004a48;font-weight:900;font-size:20px;text-transform:uppercase;border-bottom:2px solid #d7aa20;padding-bottom:8px;margin-bottom:12px}
}

/* ===== CORRECTION FINALE IMPRESSION A4 LARGE PREMIUM ===== */
@media print{
  @page{size:A4 landscape;margin:8mm 8mm 10mm 8mm}
  *{box-sizing:border-box!important}
  html,body{width:297mm!important;min-height:210mm!important;margin:0!important;padding:0!important;background:#fff!important;color:#102827!important;font-family:Arial,Helvetica,sans-serif!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body{overflow:visible!important}
  .g2app,.g2main,.layout,.main,.content,.container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important;box-shadow:none!important;border:0!important}
  .g2topbar,.g2footer,.side,.top,.nav,.syncBadge,.companyLine,.no-print,.reportActions,.stockFilters,.stockForm,.formCard,.quickGrid,.resumeGrid,.clientActions,.clearHistoryBar,button,input,select,textarea{display:none!important}
  .section{display:none!important}
  .section.active,.section.printable.active{display:block!important;width:100%!important;max-width:none!important}
  .g2panel,.card,.reportBox,.printbox,.stockListPanel,.stockPanel,.stockReport,.monthlyInvoice,.fichePaiementReport,.obligationsReport{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important;color:#102827!important;border:0!important;box-shadow:none!important;overflow:visible!important}
  .g2panel+ .g2panel,.reportBox+ .reportBox{margin-top:10mm!important}
  .reportBox:before,.stockReport:before,.monthlyInvoice:before,.fichePaiementReport:before,.obligationsReport:before{content:'MEGA SERVICES SARL U — GLOBAL 3';display:block!important;text-align:center!important;color:#8a6a00!important;font-weight:900!important;font-size:11px!important;letter-spacing:.09em!important;text-transform:uppercase!important;margin:0 0 2mm!important}
  h1,.reportBox h1,.stockReport h1,.monthlyInvoice h1,.fichePaiementReport h1,.obligationsReport h1{display:block!important;text-align:center!important;color:#004a48!important;font-size:20px!important;line-height:1.15!important;text-transform:uppercase!important;letter-spacing:.03em!important;margin:0 0 2mm!important;padding-bottom:2mm!important;border-bottom:2px solid #d7aa20!important}
  h2,.stockListPanel:before{color:#004a48!important;font-size:15px!important;text-transform:uppercase!important;margin:4mm 0 2mm!important;font-weight:900!important}
  h3,.reportBox h3,.stockReport h3{display:block!important;text-align:center!important;color:#7b6100!important;font-size:10.5px!important;margin:0 0 4mm!important;text-transform:uppercase!important}
  p,.sub,.notice{color:#102827!important;font-size:10px!important;line-height:1.35!important}
  .tableWrap,.reportTableWrap,.stockTableWrap,.yearlyReport{overflow:visible!important;width:100%!important;max-width:none!important}
  table,.g2table,.stockTable,.yearlyTable,.reportBox table{display:table!important;width:100%!important;min-width:0!important;max-width:none!important;border-collapse:collapse!important;border-spacing:0!important;background:#fff!important;color:#102827!important;border:1px solid #9fb0ad!important;border-radius:0!important;table-layout:auto!important;font-size:9.8px!important;page-break-inside:auto!important}
  thead{display:table-header-group!important}tfoot{display:table-footer-group!important}tr{page-break-inside:avoid!important;break-inside:avoid!important}
  th,.g2table th,.stockTable th,.yearlyTable th,.reportBox th{background:#004a48!important;color:#ffd84a!important;border:1px solid #004a48!important;padding:5px 5px!important;font-size:8.8px!important;line-height:1.15!important;text-transform:uppercase!important;letter-spacing:.02em!important;text-align:left!important;white-space:normal!important}
  td,.g2table td,.stockTable td,.yearlyTable td,.reportBox td{background:#fff!important;color:#102827!important;border:1px solid #d8e0de!important;padding:5px!important;font-size:9.3px!important;line-height:1.22!important;vertical-align:top!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}
  .actionCell,.rowActions,td:last-child:has(.actionBtns),th:last-child:has(+ .dummyNever){display:none!important}
  .stockTable th:nth-child(9),.stockTable td:nth-child(9){display:none!important}
  .badge,.saleBadge,.stockStatus,.calcBadge{display:inline-block!important;background:#fff0a6!important;color:#111!important;border:1px solid #d7aa20!important;border-radius:999px!important;padding:1px 5px!important;font-size:8px!important;font-weight:800!important;white-space:nowrap!important}
  tr.total td,.total td,tfoot td,.yearlyTable tr.total td{background:#fff3c4!important;color:#003f3d!important;font-weight:900!important}
  .totalLine,.reportTotal,.footerTotal{display:block!important;margin-top:4mm!important;text-align:right!important;color:#004a48!important;font-size:14px!important;font-weight:900!important;border-top:2px solid #d7aa20!important;padding-top:2mm!important}
  .signatureZone{display:flex!important;justify-content:space-between!important;gap:30mm!important;margin-top:16mm!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .signatureZone span{display:block!important;min-width:55mm!important;border-top:1px solid #111!important;text-align:center!important;padding-top:2mm!important;color:#111!important;font-size:10px!important}
}

/* ===== CORRECTION ACCUEIL + LARGEUR SITE + IMPRESSION A4 PREMIUM ===== */
.g2main{width:min(1380px,96vw)!important;max-width:1380px!important}
.homeQuickPanel,.homeSummaryPanel{border-radius:18px!important;box-shadow:0 18px 42px rgba(0,0,0,.10)!important}
.homeQuickGrid{grid-template-columns:repeat(2,minmax(260px,1fr))!important;gap:16px!important}
.homeQuickGrid .quickCard{min-height:136px!important;border-radius:12px!important;font-size:18px!important;font-weight:900!important}
.homeQuickGrid .quickCard span{font-size:30px!important}
.homeSummaryList{display:flex;flex-direction:column;gap:0}
.homeSummaryRow{display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #e5eeee;font-size:17px;color:#102827}
.homeSummaryRow b{font-size:18px;color:#102827}
.homeSummaryRow strong{font-size:17px;color:#092b2a;font-weight:1000;text-align:right}
.homeIcon{width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:20px;box-shadow:0 8px 18px rgba(0,0,0,.12)}
.homeIcon.green{background:#23bf84}.homeIcon.blue{background:#269fe4}.homeIcon.purple{background:#8553df}.homeIcon.gold{background:#d8aa23}
.homeDateBox{margin-top:16px;background:#e1f5ee;color:#057260;font-weight:1000;text-align:center;border-radius:8px;padding:14px;font-size:17px}
@media(max-width:900px){.g2main{width:98vw!important}.homeQuickGrid{grid-template-columns:1fr!important}.homeSummaryRow{grid-template-columns:48px 1fr auto}}

/* A4 propre : paysage par défaut pour tableaux larges, portrait possible pour factures/fiches */
@media print{
  @page{size:A4 landscape;margin:8mm}
  .g2main{width:100%!important;max-width:none!important}
  .homeQuickPanel,.homeSummaryPanel{display:none!important}
  .reportBox,.stockListPanel,.monthlyInvoice,.fichePaiementReport,.obligationsReport{page-break-inside:auto!important;break-inside:auto!important}
  .reportBox,.stockListPanel:before,.monthlyInvoice h1,.fichePaiementReport h1,.obligationsReport h1{font-family:Arial,Helvetica,sans-serif!important}
  .stockListPanel{display:block!important;visibility:visible!important}
  .stockListPanel .stockListHeader{display:block!important}
  .stockListPanel .stockListHeader button{display:none!important}
  .stockListPanel table,.stockListPanel .g2table,.stockListPanel .stockTable{display:table!important;width:100%!important;visibility:visible!important}
  .stockListPanel tr,.stockListPanel th,.stockListPanel td{visibility:visible!important}
  .reportBox,.stockListPanel,.g2panel{padding:0!important;margin:0!important;max-width:none!important}
}

/* =========================================================
   RESPONSIVE GLOBAL 3 — adaptation tous écrans / appareils
   ========================================================= */
html,body{width:100%;max-width:100%;overflow-x:hidden!important;}
.g2app{width:100%;max-width:100vw;overflow-x:hidden;}
.g2main,.main,.wrap{width:min(100%,1500px)!important;max-width:1500px!important;margin-left:auto!important;margin-right:auto!important;padding-left:clamp(12px,2vw,28px)!important;padding-right:clamp(12px,2vw,28px)!important;}
.g2topbar{width:100%;min-height:64px;height:auto!important;flex-wrap:wrap!important;row-gap:10px;padding:10px clamp(10px,2vw,20px)!important;}
.g2brand{flex:0 0 auto;min-width:170px}.g2nav{flex:1 1 520px;min-width:280px;overflow-x:auto!important;scrollbar-width:thin;padding-bottom:3px}.g2nav button{flex:0 0 auto}.g2user{display:flex;align-items:center;gap:8px;flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end}.g2user .btn,.g2user button{white-space:nowrap;padding:10px 14px!important;border-radius:999px!important;}
.g2panel,.card,.reportBox,.printbox{max-width:100%!important;overflow:hidden}.g2grid,.quickGrid,.homeGrid,.statsGrid,.dashboardGrid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:16px!important}.two,.three{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;}.stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;}
.tableWrap,.stockReport,.detailedSalesBlock,.reportBox,.tableResponsive{width:100%;max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;}
table,.g2table,.stockTable,.detailedSalesTable{width:100%;min-width:760px;table-layout:auto!important}.stockTable{min-width:980px}.detailedSalesTable{min-width:1050px!important}th,td{word-break:normal;overflow-wrap:anywhere}.rowActions,.actionBtns{flex-wrap:wrap!important;gap:8px!important}.rowActions button,.actionBtns button,td.actionCell button{min-width:96px!important;max-width:100%;}
input,select,textarea,button,.btn{max-width:100%;}.searchRow,.filterRow,.toolbar,.formActions{display:flex;align-items:center;gap:10px;flex-wrap:wrap!important}.searchRow input,.filterRow input,.toolbar input{flex:1 1 260px}.searchRow button,.filterRow button,.toolbar button{flex:0 0 auto}
img,svg,canvas,video{max-width:100%;height:auto}.modalCard{max-height:92vh;overflow:auto}.modal{align-items:flex-start!important;padding-top:4vh!important}.footer,.g2footer{width:100%;max-width:100vw;}

@media(max-width:1024px){
  .g2topbar{align-items:flex-start!important}.g2brand{min-width:155px}.g2brand strong{font-size:18px}.g2nav{order:3;flex-basis:100%;}.g2user{margin-left:auto}.g2main,.main,.wrap{padding-left:14px!important;padding-right:14px!important}.g2panel{border-radius:18px!important}.g2table,.reportBox table{font-size:13px!important}.btn,button{padding:11px 13px!important}
}
@media(max-width:760px){
  .g2topbar{display:grid!important;grid-template-columns:1fr auto;align-items:center!important}.g2brand{min-width:0}.g2nav{grid-column:1/-1;display:flex!important;width:100%;padding:6px 0}.g2nav button{font-size:13px!important;padding:9px 10px!important}.g2user{grid-column:1/-1;justify-content:flex-start;width:100%;}.g2user .btn,.g2user button{font-size:12px!important;padding:9px 11px!important}.g2main,.main,.wrap{padding:10px!important}.g2grid,.quickGrid,.homeGrid,.statsGrid,.dashboardGrid,.two,.three,.stats{grid-template-columns:1fr!important}.g2panel,.card{padding:16px!important;border-radius:16px!important}h1{font-size:24px!important}h2{font-size:20px!important}.reportHeader,.printHeader{text-align:center!important}.searchRow,.filterRow,.toolbar,.formActions{display:grid!important;grid-template-columns:1fr!important}.searchRow button,.filterRow button,.toolbar button,.formActions button{width:100%!important}.tableWrap:before,.stockReport:before,.detailedSalesBlock:before,.reportBox:before{content:'← Faites glisser le tableau →';display:block;color:#6b7c78;font-size:12px;font-weight:800;margin:0 0 8px}.rowActions,.actionBtns{justify-content:flex-start!important}.rowActions button,.actionBtns button,td.actionCell button{font-size:12px!important;min-width:92px!important;height:auto!important}.modalCard{width:96vw!important;padding:18px!important}.ficheInfoGrid{grid-template-columns:1fr!important}
}
@media(max-width:430px){
  .g2brand strong{font-size:16px}.g2brand span{font-size:9px}.g2logo{width:36px;height:36px;font-size:17px}.g2nav button{font-size:12px!important}.g2panel,.card{padding:13px!important}.btn,button{font-size:12px!important}.g2table,.reportBox table{font-size:12px!important}th,td{padding:9px!important}.badge,.saleBadge{font-size:10px!important;padding:3px 7px!important}
}

/* Impression A4 fiable : portrait/paysage, pas de coupe, largeur adaptée */
@media print{
  @page{size:A4 landscape;margin:9mm;}
  html,body{background:#fff!important;color:#000!important;overflow:visible!important;width:auto!important;}
  .g2topbar,.side,.top,.nav,.no-print,button,.btn,.modal{display:none!important;}
  .g2app,.layout,.main,.g2main,.wrap{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;background:#fff!important;box-shadow:none!important;}
  .section.active,.section.printable,.printbox,.reportBox,.g2panel,.card{display:block!important;background:#fff!important;color:#000!important;box-shadow:none!important;border:0!important;border-radius:0!important;overflow:visible!important;page-break-inside:auto!important;}
  h1,h2,h3{color:#003f3c!important;page-break-after:avoid}.printbox,.reportBox{padding:0!important}.tableWrap,.stockReport,.detailedSalesBlock,.reportBox{overflow:visible!important;}
  table,.g2table,.stockTable,.detailedSalesTable,.fichePaiementTable,.obligationsTable{width:100%!important;min-width:0!important;border-collapse:collapse!important;font-size:10.5px!important;page-break-inside:auto!important;}
  tr{page-break-inside:avoid!important;page-break-after:auto!important}th,td{color:#000!important;border:1px solid #777!important;padding:6px!important;background:#fff!important;white-space:normal!important;overflow-wrap:anywhere!important}.g2table th,.stockTable th,.detailedSalesTable th,.fichePaiementTable th{background:#004a48!important;color:#f1cf4a!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.total,tr.total td,tfoot td{background:#fff2b8!important;font-weight:900!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.badge,.saleBadge{background:#ffd400!important;color:#000!important;border:1px solid #caa600!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.g2footer,.footer{position:static!important;background:#003f3c!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* Correction accueil : deux blocs de résumé côte à côte + date pleine largeur */
.homeBottomWrap{margin-top:20px;width:100%;}
.homeBottomGrid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch;}
.homeBottomGrid .homeSummaryPanel{margin:0!important;min-height:100%;}
.homeDateFooter{margin-top:0;background:#e1f5ee;color:#057260;font-weight:1000;text-align:center;border-radius:0 0 10px 10px;padding:14px 18px;font-size:18px;border-top:1px solid #d4eee5;}
.homeBottomGrid + .homeDateFooter{box-shadow:0 12px 26px rgba(0,0,0,.06);}
@media(max-width:900px){.homeBottomGrid{grid-template-columns:1fr;gap:16px}.homeDateFooter{border-radius:10px;font-size:16px}}

/* ===== SUPER ADMIN PREMIUM — design professionnel GLOBAL 3 ===== */
.superShell{min-height:100vh;display:grid;grid-template-columns:320px minmax(0,1fr);background:radial-gradient(circle at 80% 0%,rgba(79,234,255,.18),transparent 28%),linear-gradient(135deg,#020807,#062b25 52%,#064a41);color:#fff;overflow:hidden}.superSide{position:sticky;top:0;height:100vh;padding:26px 20px;background:linear-gradient(180deg,rgba(1,12,10,.96),rgba(2,34,29,.92));border-right:1px solid rgba(255,216,107,.28);box-shadow:18px 0 60px rgba(0,0,0,.28);display:flex;flex-direction:column;gap:22px}.superBrand{display:flex;align-items:center;gap:14px}.superLogo{width:54px;height:54px;border:3px solid var(--gold);border-radius:16px;display:flex;align-items:center;justify-content:center;color:var(--gold);font-weight:1000;font-size:20px;box-shadow:0 0 28px rgba(255,216,107,.22)}.superBrand h2{margin:0;color:var(--gold);font-size:25px;letter-spacing:.4px}.superBrand p{margin:4px 0 0;color:#cfe2df;font-size:12px}.superMenu{display:grid;gap:10px}.superMenu button{width:100%;justify-content:flex-start;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);box-shadow:none;color:#fff}.superMenu button.active{background:linear-gradient(135deg,rgba(255,216,107,.22),rgba(255,216,107,.08));border-color:rgba(255,216,107,.45);color:#fff}.superMenu button.danger{background:#ffe3e3;color:#b00000;border:0}.superNote{margin-top:auto;padding:16px;border-radius:18px;background:rgba(255,216,107,.10);border:1px solid rgba(255,216,107,.22);color:#e7f5f1;line-height:1.55;font-size:13px}.superMain{padding:32px clamp(18px,3vw,54px);overflow:auto}.superHero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;border:1px solid rgba(255,255,255,.16);border-radius:28px;background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.045));box-shadow:0 24px 70px rgba(0,0,0,.25);backdrop-filter:blur(18px);margin-bottom:22px}.superKicker{display:inline-flex;color:var(--gold);font-weight:900;text-transform:uppercase;font-size:12px;letter-spacing:.11em;margin-bottom:8px}.superHero h1{margin:0;font-size:clamp(28px,3vw,44px);letter-spacing:-.8px;color:#fff}.superHero p{margin:8px 0 0;color:#cfe2df;max-width:760px;line-height:1.55}.superExport{border-radius:18px;white-space:nowrap;padding:15px 22px!important}.superStats{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;margin-bottom:22px}.superStat{min-height:128px;border-radius:26px;padding:20px;background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.16);box-shadow:0 18px 54px rgba(0,0,0,.2)}.superStat span{font-size:26px}.superStat small{display:block;margin-top:10px;color:#d9ebe8}.superStat b{display:block;margin-top:8px;color:var(--gold);font-size:30px;letter-spacing:-.5px}.superPanel{border-radius:30px;padding:22px;background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.055));border:1px solid rgba(255,255,255,.16);box-shadow:0 24px 70px rgba(0,0,0,.22);backdrop-filter:blur(18px)}.superPanelHead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.superPanelHead h2{margin:0;color:#fff;font-size:26px}.superPanelHead p{margin:6px 0 0;color:#cfe2df}.superPanelHead span{display:inline-flex;border-radius:999px;background:rgba(255,216,107,.16);border:1px solid rgba(255,216,107,.35);color:var(--gold);padding:8px 12px;font-weight:900;white-space:nowrap}.superTableWrap{width:100%;overflow-x:auto;border-radius:22px;border:1px solid rgba(255,255,255,.13)}.superTable{min-width:1120px;border:0!important;border-radius:0!important;background:rgba(2,24,21,.42)!important}.superTable th{background:rgba(0,0,0,.28)!important;color:var(--gold)!important;padding:15px 14px!important;font-size:11px!important}.superTable td{padding:16px 14px!important;color:#f4fffb!important;border-bottom:1px solid rgba(255,255,255,.10)!important}.superTable small{color:#cfe2df}.typePill,.statusPill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:1000}.typePill{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);color:#fff}.statusPill{background:rgba(79,234,255,.16);border:1px solid rgba(79,234,255,.30);color:#73f3ff}.statusPill.expired{background:rgba(255,98,98,.14);border-color:rgba(255,98,98,.35);color:#ff9a9a}.statusPill.blocked,.statusPill.suspended{background:rgba(255,216,107,.13);border-color:rgba(255,216,107,.35);color:var(--gold)}.superActions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.superActions button{min-width:auto!important;white-space:nowrap;border-radius:14px!important;padding:11px 13px!important;box-shadow:none!important}.superActions .soft{background:#ecfbff;color:#083b39}.superActions .danger{background:#ffe3e3;color:#b00000}.superActions .ok{background:#35e98a;color:#05221b}
@media(max-width:1100px){.superShell{grid-template-columns:1fr}.superSide{position:relative;height:auto}.superStats{grid-template-columns:repeat(2,1fr)}.superHero{flex-direction:column;align-items:flex-start}.superExport{width:100%}.superMenu{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.superMain{padding:16px}.superSide{padding:18px}.superBrand h2{font-size:20px}.superMenu{grid-template-columns:1fr}.superStats{grid-template-columns:1fr}.superHero,.superPanel{border-radius:20px;padding:18px}.superPanelHead{flex-direction:column}.superTable{min-width:980px}.superActions{flex-wrap:wrap}.superActions button{flex:1 1 120px}}
@media print{.superShell{display:block!important;background:#fff!important;color:#000!important}.superSide,.superHero .superExport,.superActions{display:none!important}.superMain{padding:0!important}.superHero,.superStats,.superPanel{box-shadow:none!important;border:0!important;background:#fff!important;color:#000!important}.superHero h1,.superPanelHead h2{color:#004a48!important}.superHero p,.superPanelHead p{color:#111!important}.superTableWrap{overflow:visible!important;border:0!important}.superTable{min-width:0!important;width:100%!important;background:#fff!important}.superTable th{background:#004a48!important;color:#ffd84a!important}.superTable td{color:#000!important;border:1px solid #777!important}.superPanelHead span{display:none!important}}

/* Correction Super Admin : liste simplifiée + fiche détaillée en popup */
.superCompanyList{min-width:980px!important}.companyNameLine{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.detailsBtn{border:0;border-radius:14px;background:linear-gradient(135deg,#ffd84a,#ffb829);color:#092724;font-weight:1000;padding:11px 15px;box-shadow:0 12px 26px rgba(255,184,41,.18);cursor:pointer;white-space:nowrap}.detailsBtn.wide{min-width:150px}.superModalBackdrop{position:fixed;inset:0;background:rgba(0,0,0,.68);z-index:99999;display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(7px)}.superCompanyModal{position:relative;width:min(1040px,96vw);max-height:92vh;overflow:auto;border-radius:30px;padding:26px;background:linear-gradient(135deg,rgba(2,22,19,.98),rgba(4,70,62,.98));border:1px solid rgba(255,216,107,.38);box-shadow:0 35px 110px rgba(0,0,0,.58);color:#fff}.superClose{position:absolute;right:16px;top:14px;width:42px;height:42px;border-radius:50%;padding:0;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);box-shadow:none;color:#fff;font-size:24px}.companyModalHead{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px;padding-right:42px}.companyModalHead h2{margin:0;color:#fff;font-size:32px}.companyModalHead p{margin:8px 0 0;color:#d8ece9}.companyDetailGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.companyDetailGrid>div{border-radius:18px;padding:15px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}.companyDetailGrid small{display:block;color:#bcd8d3;font-weight:800;margin-bottom:7px}.companyDetailGrid b{color:#fff;font-size:16px;word-break:break-word}.superCompanyModal h3{margin:20px 0 10px;color:#ffd84a}.miniList{display:grid;gap:10px}.miniList>div{display:flex;justify-content:space-between;gap:12px;border-radius:16px;padding:12px 14px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.10)}.miniList span{color:#cfe2df}.superModalActions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12)}.superModalActions button{border:0;border-radius:16px;padding:13px 17px;font-weight:1000;background:#ffd84a;color:#102b27}.superModalActions .soft{background:#ecfbff;color:#083b39}.superModalActions .danger{background:#ffe3e3;color:#b00000}.superModalActions .ok{background:#35e98a;color:#05221b}@media(max-width:900px){.companyDetailGrid{grid-template-columns:repeat(2,1fr)}.companyModalHead{flex-direction:column}.superModalActions button{flex:1 1 170px}}@media(max-width:560px){.companyDetailGrid{grid-template-columns:1fr}.superCompanyModal{padding:18px;border-radius:22px}.companyModalHead h2{font-size:24px}.miniList>div{flex-direction:column}.detailsBtn,.detailsBtn.wide{width:100%}.companyNameLine{align-items:stretch;flex-direction:column}}

/* =====================================================
   CORRECTION FICHE D'INSCRIPTION + MON COMPTE
===================================================== */
#registerModal .modalCard{
  max-width: 860px;
  width: min(94vw, 860px);
}
.registerBusinessGrid label,
.accountForm label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-weight:800;
  color:#073b35;
  font-size:13px;
}
.registerBusinessGrid input,
.registerBusinessGrid select,
.accountForm input,
.accountForm select,
.accountUsersTable input,
.accountUsersTable select{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  border:1px solid rgba(0,95,82,.25);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
}
.registerBusinessGrid .fullRow,
.accountForm .fullRow{grid-column:1/-1;}
.accountLink{
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.14);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  cursor:pointer;
}
.accountLink:hover{background:rgba(255,255,255,.25)}
.accountPanel{max-width:1200px;margin:0 auto;}
.accountHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}
.accountUsersTable{
  table-layout:auto;
}
.accountUsersTable th,
.accountUsersTable td{
  vertical-align:middle;
  min-width:120px;
}
.accountUsersTable td:first-child{min-width:150px;}
.accountUsersTable td:nth-child(2){min-width:210px;}
.accountUsersTable .rowActions{display:flex;gap:8px;flex-wrap:wrap;}
@media(max-width:760px){
  .registerBusinessGrid,
  .accountForm .grid.two{grid-template-columns:1fr!important;}
  .g2actions{gap:6px;flex-wrap:wrap;justify-content:flex-end;}
  .accountUsersTable{min-width:780px;}
}


/* =====================================================
   BASE IMPRESSION PROFESSIONNELLE GLOBAL 2 APPLIQUEE A GLOBAL 3
   + ENTETE ENTREPRISE SUR TOUS LES PDF / IMPRESSIONS
   + MARGES A4 STRICTES, TABLEAUX RECENTRES, AUCUN DEBORDEMENT
===================================================== */
.printCompanyHeader{display:none;}

@media print{
  @page{size:A4 portrait;margin:8mm;}
  *{box-sizing:border-box!important;max-width:100%!important;}
  html,body{
    width:210mm!important;min-height:297mm!important;margin:0!important;padding:0!important;
    background:#fff!important;color:#000!important;overflow:visible!important;
    font-family:Arial,Helvetica,sans-serif!important;
    -webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;
  }
  .g2topbar,.g2footer,.syncBadge,.companyLine,.side,.top,.nav,.no-print,.reportActions,
  .stockFilters,.stockForm,.formCard,.quickGrid,.resumeGrid,.clientActions,.clearHistoryBar,
  button,.btn,.modal,input,select,textarea{display:none!important;}

  .g2app,.g2main,.layout,.main,.wrap{
    display:block!important;width:186mm!important;max-width:186mm!important;
    margin:0 auto!important;padding:0!important;background:#fff!important;color:#000!important;
    box-shadow:none!important;border:0!important;overflow:visible!important;
  }

  .section{display:none!important;}
  .section.active,.section.printable.active{display:block!important;width:100%!important;}

  .g2panel,.card,.reportBox,.printbox,.stockListPanel,.stockPanel,.stockReport,
  .monthlyInvoice,.fichePaiementReport,.obligationsReport,.serviceBlock,.detailedSalesBlock{
    display:block!important;width:100%!important;max-width:100%!important;margin:0 0 5mm 0!important;
    padding:0!important;background:#fff!important;color:#000!important;border:0!important;
    box-shadow:none!important;border-radius:0!important;overflow:visible!important;
  }

  .printCompanyHeader{
    display:block!important;width:100%!important;margin:0 0 5mm 0!important;padding:3.5mm!important;
    border:1.2px solid #111!important;background:#fff!important;color:#000!important;
    page-break-inside:avoid!important;break-inside:avoid!important;
  }
  .pchTop{display:grid!important;grid-template-columns:18mm 1fr 36mm!important;gap:4mm!important;align-items:center!important;margin-bottom:3mm!important;}
  .pchLogo{width:16mm!important;height:16mm!important;border:1.4px solid #004a48!important;border-radius:3mm!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:900!important;color:#004a48!important;font-size:13px!important;}
  .pchTitle{text-align:center!important;}
  .pchTitle h2{margin:0!important;font-size:14px!important;line-height:1.12!important;color:#004a48!important;text-transform:uppercase!important;letter-spacing:.03em!important;}
  .pchTitle p{margin:1mm 0 0!important;font-size:8.5px!important;color:#333!important;}
  .pchDate{text-align:right!important;font-size:8.5px!important;line-height:1.35!important;color:#111!important;}
  .pchTable{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;margin:0!important;font-size:8.5px!important;}
  .pchTable td{border:1px solid #777!important;padding:1.5mm!important;color:#000!important;background:#fff!important;line-height:1.22!important;overflow-wrap:anywhere!important;word-break:break-word!important;}

  .reportBox:before,.stockReport:before,.monthlyInvoice:before,.fichePaiementReport:before{content:none!important;}
  h1,.reportBox h1,.stockReport h1,.monthlyInvoice h1,.fichePaiementReport h1{
    text-align:center!important;color:#004a48!important;font-size:15px!important;line-height:1.18!important;
    margin:0 0 3mm 0!important;padding:0 0 2mm 0!important;border-bottom:2px solid #d7aa20!important;
    text-transform:uppercase!important;letter-spacing:.02em!important;page-break-after:avoid!important;
  }
  h2,.serviceBlock h2,.detailedSalesBlock h2{
    background:#004a48!important;color:#ffd84a!important;border:1px solid #004a48!important;
    padding:2mm 2.5mm!important;margin:4mm 0 0!important;font-size:11px!important;line-height:1.15!important;
    text-transform:uppercase!important;border-radius:0!important;page-break-after:avoid!important;
  }
  h3,.reportBox h3,.stockReport h3,.monthlyInvoice h3,.fichePaiementReport h3{
    text-align:center!important;color:#111!important;font-size:9px!important;margin:0 0 3mm 0!important;line-height:1.25!important;
  }
  p,small,li{font-size:8.8px!important;line-height:1.28!important;color:#000!important;}

  .tableWrap,.superTableWrap,.stockReport,.detailedSalesBlock,.reportBox{overflow:visible!important;width:100%!important;max-width:100%!important;}
  table,.g2table,.stockTable,.detailedSalesTable,.fichePaiementTable,.obligationsTable,.reportBox table{
    width:100%!important;max-width:100%!important;min-width:0!important;margin:0 auto 3mm auto!important;
    border-collapse:collapse!important;border-spacing:0!important;table-layout:fixed!important;background:#fff!important;
    font-size:8.5px!important;page-break-inside:auto!important;
  }
  th,td,.g2table th,.g2table td,.stockTable th,.stockTable td,.detailedSalesTable th,.detailedSalesTable td,
  .fichePaiementTable th,.fichePaiementTable td,.obligationsTable th,.obligationsTable td,.reportBox th,.reportBox td{
    border:1px solid #666!important;padding:1.7mm!important;color:#000!important;background:#fff!important;
    line-height:1.18!important;vertical-align:middle!important;white-space:normal!important;
    overflow:hidden!important;overflow-wrap:anywhere!important;word-break:break-word!important;text-align:left!important;
  }
  th,.g2table th,.stockTable th,.detailedSalesTable th,.fichePaiementTable th,.obligationsTable th,.reportBox th{
    background:#e9f2ef!important;color:#003f3c!important;font-weight:900!important;text-align:center!important;
    font-size:8px!important;text-transform:uppercase!important;
  }
  tr{page-break-inside:avoid!important;break-inside:avoid!important;}
  .total,tr.total td,tfoot td,.totalLine{
    background:#fff2b8!important;color:#000!important;font-weight:900!important;border:1px solid #997a00!important;
    padding:2mm!important;font-size:9px!important;text-align:right!important;
  }
  .badge,.saleBadge,.calcBadge{background:#fff2b8!important;color:#000!important;border:1px solid #997a00!important;font-size:7.5px!important;padding:1mm 1.5mm!important;}
  .rowActions,.actionCell{display:none!important;}
  .signatureZone{page-break-inside:avoid!important;break-inside:avoid!important;margin-top:8mm!important;}
}

/* =====================================================
   CORRECTION FINALE — STRUCTURE UNIQUE PREMIUM POUR
   TOUTES LES IMPRESSIONS GLOBAL 3
   Factures, reçus, rapports, stocks, fiches fiscales,
   obligations, clients sous contrat, bilans, historiques.
===================================================== */
@media print{
  @page{size:A4 portrait;margin:8mm!important;}
  html,body{background:#fff!important;color:#000!important;font-family:Arial,Helvetica,sans-serif!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;}
  body *{visibility:hidden!important;}
  .g2main,.g2main *,.printCompanyHeader,.printCompanyHeader *{visibility:visible!important;}
  .g2topbar,.g2footer,.syncBadge,.companyLine,.no-print,.reportActions,button,.rowActions,.actionCell,.clientActions,.clearHistoryBar,.stockFilters,.stockForm,input,select,textarea,.modal{display:none!important;visibility:hidden!important;}
  .g2app,.g2main{display:block!important;width:186mm!important;max-width:186mm!important;margin:0 auto!important;padding:0!important;background:#fff!important;border:0!important;box-shadow:none!important;overflow:visible!important;}
  .section{display:none!important;}
  .section.active,.section.printable.active{display:block!important;width:100%!important;}
  .g2panel,.card,.reportBox,.printbox,.stockListPanel,.stockPanel,.stockReport,.monthlyInvoice,.fichePaiementReport,.obligationsReport,.serviceBlock,.detailedSalesBlock{
    display:block!important;width:100%!important;max-width:100%!important;margin:0 0 6mm 0!important;padding:0!important;background:#fff!important;color:#000!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;
  }
  .printCompanyHeader{
    display:block!important;width:100%!important;margin:0 0 6mm 0!important;padding:4mm!important;border:1.5px solid #111!important;background:#fff!important;color:#000!important;page-break-inside:avoid!important;break-inside:avoid!important;
  }
  .pchTop{position:relative!important;display:block!important;min-height:20mm!important;margin:0 0 3mm 0!important;padding:0!important;}
  .pchBand{position:absolute!important;left:42mm!important;right:42mm!important;top:4mm!important;height:8mm!important;background:#004a48!important;border-radius:0!important;display:block!important;}
  .pchLogo{position:absolute!important;left:50%!important;top:-3mm!important;transform:translateX(-50%)!important;width:12mm!important;height:14mm!important;border:1.4px solid #004a48!important;border-radius:2mm!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:900!important;color:#004a48!important;font-size:8px!important;z-index:2!important;}
  .pchTitle{position:absolute!important;left:0!important;right:0!important;top:13mm!important;text-align:center!important;margin:0!important;padding:0!important;}
  .pchTitle h2{display:none!important;}
  .pchTitle p{margin:0!important;font-size:8.2px!important;color:#222!important;font-weight:500!important;}
  .pchDate{position:absolute!important;right:0!important;top:7mm!important;text-align:right!important;font-size:8px!important;line-height:1.25!important;color:#111!important;}
  .pchTable{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;margin:0!important;font-size:8.2px!important;}
  .pchTable td{border:1px solid #9a9a9a!important;padding:1.6mm!important;color:#000!important;background:#fff!important;line-height:1.2!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
  .pchTable b{font-weight:900!important;color:#111!important;}
  .reportBox:before,.stockReport:before,.monthlyInvoice:before,.fichePaiementReport:before,.obligationsReport:before{content:none!important;display:none!important;}
  h1,.reportBox h1,.stockReport h1,.monthlyInvoice h1,.fichePaiementReport h1,.obligationsReport h1{
    text-align:center!important;color:#004a48!important;font-size:15px!important;line-height:1.18!important;margin:0 0 7mm 0!important;padding:0 0 2.5mm 0!important;border-bottom:2px solid #d7aa20!important;text-transform:uppercase!important;letter-spacing:.02em!important;font-weight:900!important;page-break-after:avoid!important;
  }
  h2,.serviceBlock h2,.detailedSalesBlock h2{background:#004a48!important;color:#ffd84a!important;border:1px solid #004a48!important;padding:2mm 2.5mm!important;margin:4mm 0 2mm!important;font-size:10.5px!important;line-height:1.15!important;text-transform:uppercase!important;border-radius:0!important;page-break-after:avoid!important;}
  h3,.reportBox h3,.stockReport h3,.monthlyInvoice h3,.fichePaiementReport h3{display:none!important;}
  .ficheSeparator{display:none!important;}
  .ficheInfoGrid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:3mm 3mm!important;margin:0 0 10mm 0!important;width:100%!important;}
  .ficheInfoGrid div{border:1px solid #ead690!important;border-radius:2mm!important;background:#fff!important;padding:3mm 2mm!important;min-height:10mm!important;font-size:10px!important;line-height:1.2!important;font-weight:900!important;color:#003f3c!important;display:flex!important;align-items:center!important;}
  .ficheInfoGrid b{color:#003f3c!important;margin-right:1mm!important;}
  table,.g2table,.stockTable,.detailedSalesTable,.fichePaiementTable,.obligationsTable,.reportBox table{width:100%!important;max-width:100%!important;min-width:0!important;margin:0 auto 6mm auto!important;border-collapse:collapse!important;border-spacing:0!important;table-layout:fixed!important;background:#fff!important;font-size:8.2px!important;page-break-inside:auto!important;}
  th,td,.g2table th,.g2table td,.stockTable th,.stockTable td,.detailedSalesTable th,.detailedSalesTable td,.fichePaiementTable th,.fichePaiementTable td,.obligationsTable th,.obligationsTable td,.reportBox th,.reportBox td{border:1px solid #777!important;padding:1.8mm!important;color:#000!important;background:#fff!important;line-height:1.17!important;vertical-align:middle!important;white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:break-word!important;text-align:left!important;}
  th,.g2table th,.stockTable th,.detailedSalesTable th,.fichePaiementTable th,.obligationsTable th,.reportBox th{background:#e9f2ef!important;color:#003f3c!important;font-weight:900!important;text-align:center!important;font-size:7.6px!important;text-transform:uppercase!important;}
  tr{page-break-inside:avoid!important;break-inside:avoid!important;}
  .total,tr.total td,tfoot td,.totalLine{background:#fff2b8!important;color:#000!important;font-weight:900!important;border:1px solid #b99a18!important;padding:2mm!important;font-size:8.6px!important;text-align:right!important;}
  .signatureZone{display:grid!important;grid-template-columns:1fr 1fr!important;gap:70mm!important;margin-top:16mm!important;page-break-inside:avoid!important;break-inside:avoid!important;}
  .signatureZone span{display:block!important;border-top:1px solid #aaa!important;text-align:center!important;padding-top:3mm!important;min-height:22mm!important;font-size:9px!important;font-weight:900!important;color:#000!important;}
}

/* =====================================================
   CORRECTION TABLEAUX + ENTETE IMPRESSION GLOBAL3
   Objectif : structure A4 propre, entête alignée, tableaux lisibles
===================================================== */
@media print{
  @page{size:A4 portrait;margin:9mm!important;}
  html,body{width:auto!important;min-height:auto!important;margin:0!important;padding:0!important;background:#fff!important;}
  body *{visibility:hidden!important;}
  .g2main,.g2main *,.printCompanyHeader,.printCompanyHeader *{visibility:visible!important;}

  .g2app,.g2main{width:190mm!important;max-width:190mm!important;margin:0 auto!important;padding:0!important;overflow:visible!important;background:#fff!important;}
  .section{display:none!important;}
  .section.active,.section.printable.active{display:block!important;}
  .no-print,.reportActions,button,.btn,.g2topbar,.g2footer,.syncBadge,.companyLine,.rowActions,.actionCell,.clientActions,.clearHistoryBar,.stockFilters,.stockForm,input,select,textarea,.modal{display:none!important;visibility:hidden!important;}

  .g2panel,.reportBox,.monthlyInvoice,.stockReport,.fichePaiementReport,.obligationsReport,.serviceBlock,.detailedSalesBlock{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;overflow:visible!important;}

  /* ENTETE IDENTIQUE AU MODELE */
  .printCompanyHeader{display:block!important;width:100%!important;margin:0 0 6mm 0!important;padding:4mm 6mm!important;border:1.5px solid #111!important;background:#fff!important;color:#000!important;page-break-inside:avoid!important;}
  .pchTop{position:relative!important;display:block!important;height:22mm!important;margin:0 0 3mm 0!important;}
  .pchBand{position:absolute!important;left:42mm!important;right:42mm!important;top:5mm!important;height:8mm!important;background:#004a48!important;}
  .pchLogo{position:absolute!important;left:50%!important;top:-3mm!important;transform:translateX(-50%)!important;width:12mm!important;height:14mm!important;border:1.2px solid #004a48!important;border-radius:2mm!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#004a48!important;font-weight:900!important;font-size:8px!important;z-index:5!important;}
  .pchTitle{position:absolute!important;left:0!important;right:0!important;top:14mm!important;text-align:center!important;}
  .pchTitle p{font-size:8.2px!important;margin:0!important;color:#222!important;}
  .pchDate{position:absolute!important;right:0!important;top:7mm!important;text-align:right!important;font-size:8px!important;line-height:1.25!important;color:#111!important;}
  .pchTable{display:table!important;width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;margin:0!important;border:1px solid #9a9a9a!important;font-size:8.3px!important;}
  .pchTable tr{display:table-row!important;}
  .pchTable td{display:table-cell!important;border:1px solid #9a9a9a!important;padding:1.55mm 1.8mm!important;background:#fff!important;color:#000!important;line-height:1.22!important;vertical-align:middle!important;overflow:hidden!important;word-break:normal!important;overflow-wrap:anywhere!important;}
  .pchTable td:nth-child(1){width:34%!important;}
  .pchTable td:nth-child(2){width:33%!important;}
  .pchTable td:nth-child(3){width:33%!important;}
  .pchTable b{font-weight:900!important;color:#111!important;}

  /* TITRES */
  .reportBox:before,.stockReport:before,.monthlyInvoice:before,.fichePaiementReport:before,.obligationsReport:before{display:none!important;content:none!important;}
  h1,.reportBox h1,.stockReport h1,.monthlyInvoice h1,.fichePaiementReport h1,.obligationsReport h1{display:block!important;text-align:center!important;color:#004a48!important;font-size:15px!important;line-height:1.18!important;margin:0 0 7mm 0!important;padding:0 0 2.5mm 0!important;border-bottom:2px solid #d7aa20!important;text-transform:uppercase!important;font-weight:900!important;letter-spacing:.02em!important;}
  h3,.reportBox h3,.stockReport h3,.monthlyInvoice h3,.fichePaiementReport h3{display:none!important;}

  /* CARTES RECAPITULATIVES */
  .ficheInfoGrid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:3mm!important;width:100%!important;margin:0 0 10mm 0!important;}
  .ficheInfoGrid div{display:flex!important;align-items:center!important;min-height:10mm!important;border:1px solid #ead690!important;border-radius:2mm!important;background:#fff!important;padding:2.7mm 2mm!important;font-size:10px!important;line-height:1.2!important;font-weight:900!important;color:#003f3c!important;overflow:hidden!important;}
  .ficheInfoGrid b{color:#003f3c!important;margin-right:1mm!important;white-space:nowrap!important;}

  /* TABLEAUX GENERAUX */
  table,.g2table,.stockTable,.detailedSalesTable,.fichePaiementTable,.obligationsTable,.reportBox table{display:table!important;width:100%!important;max-width:100%!important;min-width:0!important;border-collapse:collapse!important;border-spacing:0!important;table-layout:auto!important;margin:0 auto 6mm auto!important;background:#fff!important;font-size:8.6px!important;}
  thead{display:table-header-group!important;} tbody{display:table-row-group!important;} tr{display:table-row!important;page-break-inside:avoid!important;break-inside:avoid!important;}
  th,td,.g2table th,.g2table td,.stockTable th,.stockTable td,.detailedSalesTable th,.detailedSalesTable td,.fichePaiementTable th,.fichePaiementTable td,.obligationsTable th,.obligationsTable td,.reportBox th,.reportBox td{display:table-cell!important;border:1px solid #777!important;padding:1.7mm!important;color:#000!important;background:#fff!important;line-height:1.18!important;vertical-align:middle!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;overflow:visible!important;text-align:left!important;}
  th,.g2table th,.stockTable th,.detailedSalesTable th,.fichePaiementTable th,.obligationsTable th,.reportBox th{background:#e9f2ef!important;color:#003f3c!important;font-weight:900!important;text-align:center!important;font-size:7.7px!important;text-transform:uppercase!important;}
  tr.total td,.total,tfoot td,.totalLine{background:#fff2b8!important;color:#000!important;font-weight:900!important;border:1px solid #b99a18!important;text-align:right!important;}

  /* LARGEURS SPECIALES FACTURE MENSUELLE */
  .monthlyInvoice .g2table th:nth-child(1),.monthlyInvoice .g2table td:nth-child(1){width:13%!important;}
  .monthlyInvoice .g2table th:nth-child(2),.monthlyInvoice .g2table td:nth-child(2){width:19%!important;}
  .monthlyInvoice .g2table th:nth-child(3),.monthlyInvoice .g2table td:nth-child(3){width:10%!important;text-align:center!important;}
  .monthlyInvoice .g2table th:nth-child(4),.monthlyInvoice .g2table td:nth-child(4){width:14%!important;text-align:right!important;}
  .monthlyInvoice .g2table th:nth-child(5),.monthlyInvoice .g2table td:nth-child(5){width:14%!important;text-align:right!important;}
  .monthlyInvoice .g2table th:nth-child(6),.monthlyInvoice .g2table td:nth-child(6){width:30%!important;}

  .signatureZone{display:grid!important;grid-template-columns:1fr 1fr!important;gap:70mm!important;margin-top:16mm!important;page-break-inside:avoid!important;}
  .signatureZone span{display:block!important;border-top:1px solid #aaa!important;text-align:center!important;padding-top:3mm!important;min-height:22mm!important;font-size:9px!important;font-weight:900!important;color:#000!important;}
}


/* Correction demandée : titres des champs en blanc + bouton Support WhatsApp */
#registerModal .registerBusinessGrid label{
  color:#ffffff !important;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}
#registerModal .modalCard .sub,
#registerModal .modalCard .sub b{
  color:#ffffff !important;
}
.loginActionsThree{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.loginActionsThree button{
  flex:1 1 145px;
  min-width:130px;
}
.supportBtn{
  background:linear-gradient(135deg,#25D366,#128C7E) !important;
  color:#ffffff !important;
  border:0 !important;
  box-shadow:0 12px 30px rgba(18,140,126,.22) !important;
}
@media(max-width:620px){
  .loginActionsThree button{width:100%;flex:1 1 100%;}
}


/* CORRECTION FINALE : fiche inscription plus lisible + support placé sous le développeur */
.loginLeft .supportLeftBtn{
  margin-top:14px;
  width:max-content;
  max-width:100%;
  padding:12px 18px!important;
  border-radius:14px!important;
  font-weight:1000!important;
}
.loginActionsTwo{display:flex;gap:12px;align-items:center;margin-top:16px;flex-wrap:wrap;}
.loginActionsTwo button{flex:1 1 160px;min-width:140px;}
#registerModal{align-items:center!important;padding:10px!important;}
#registerModal .modalCard{
  width:min(96vw,980px)!important;
  max-width:980px!important;
  max-height:94vh!important;
  overflow:auto!important;
  padding:22px 26px 24px!important;
  border-radius:24px!important;
  background:
    radial-gradient(circle at top left,rgba(255,216,74,.13),transparent 30%),
    linear-gradient(135deg,rgba(4,42,36,.98),rgba(0,83,72,.98))!important;
}
#registerModal .modalCard h2{
  margin:0 46px 8px 0!important;
  font-size:24px!important;
  line-height:1.15!important;
  color:#ffd84a!important;
}
#registerModal .modalCard .sub{
  margin:0 0 14px!important;
  line-height:1.35!important;
  color:#ffffff!important;
}
#registerModal .registerBusinessGrid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px 14px!important;
}
#registerModal .registerBusinessGrid label{
  color:#ffffff!important;
  font-weight:900!important;
  font-size:13px!important;
  gap:5px!important;
  text-shadow:0 1px 2px rgba(0,0,0,.35)!important;
}
#registerModal .registerBusinessGrid input,
#registerModal .registerBusinessGrid select{
  min-height:40px!important;
  border-radius:12px!important;
  padding:9px 12px!important;
  font-size:14px!important;
  border:1px solid rgba(255,255,255,.34)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22)!important;
}
#registerModal .registerBusinessGrid .fullRow{grid-column:1/-1!important;}
#registerModal .fullBtn{
  margin-top:16px!important;
  min-height:46px!important;
  border-radius:14px!important;
}
#registerModal .modalClose{right:14px!important;top:12px!important;}
@media(max-width:760px){
  #registerModal .registerBusinessGrid{grid-template-columns:1fr!important;}
  #registerModal .modalCard{padding:18px!important;max-height:95vh!important;}
  .loginLeft .supportLeftBtn{width:100%;}
}

/* =====================================================
   CORRECTION DEMANDEE — FICHE INSCRIPTION PLUS LISIBLE
   + FUSION ADMIN / SUPER ADMIN SUR LA PAGE CONNEXION
===================================================== */
.profileBtns{grid-template-columns:repeat(2,minmax(150px,1fr))!important;}
.profileBtns .profile{min-height:94px;}
#registerModal .modalCard{
  width:min(96vw,980px)!important;
  max-width:980px!important;
  max-height:92vh!important;
  overflow:auto!important;
  padding:26px 28px!important;
  border-radius:28px!important;
  background:linear-gradient(145deg,#062f28 0%,#073f35 52%,#05271f 100%)!important;
  border:1px solid rgba(255,216,107,.46)!important;
  box-shadow:0 30px 90px rgba(0,0,0,.56)!important;
}
#registerModal .modalCard h2{
  color:#ffd76a!important;
  font-size:25px!important;
  line-height:1.15!important;
  margin:0 48px 14px 0!important;
  letter-spacing:.2px!important;
}
#registerModal .registerSub,
#registerModal .modalCard .sub{
  color:#f3fffb!important;
  margin:0 0 18px!important;
  font-size:14px!important;
  line-height:1.45!important;
}
#registerModal .registerSub b{color:#fff!important;}
#registerModal .registerSub span{color:#d9eee9!important;}
#registerModal .registerBusinessGrid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px 16px!important;
  align-items:end!important;
}
#registerModal .registerBusinessGrid label{
  color:#ffffff!important;
  font-weight:900!important;
  font-size:13px!important;
  letter-spacing:.15px!important;
  text-shadow:0 1px 1px rgba(0,0,0,.25)!important;
}
#registerModal .registerBusinessGrid input,
#registerModal .registerBusinessGrid select{
  height:43px!important;
  border-radius:13px!important;
  background:#ffffff!important;
  color:#052e28!important;
  font-weight:800!important;
  font-size:14px!important;
  border:1px solid rgba(255,216,107,.38)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 8px 18px rgba(0,0,0,.16)!important;
}
#registerModal .registerBusinessGrid input::placeholder{color:#627a75!important;font-weight:600!important;opacity:1!important;}
#registerModal .registerBusinessGrid .fullRow{grid-column:1/-1!important;}
#registerModal .fullBtn{
  margin-top:18px!important;
  height:50px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#ffdc72,#ffb21e)!important;
  color:#061e1a!important;
  font-weight:1000!important;
  box-shadow:0 16px 34px rgba(255,184,41,.24)!important;
}
#registerModal .modalClose{
  background:rgba(255,255,255,.14)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.22)!important;
}
@media(max-width:880px){
  #registerModal .registerBusinessGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:620px){
  .profileBtns{grid-template-columns:1fr!important;}
  #registerModal .modalCard{padding:22px 18px!important;border-radius:22px!important;}
  #registerModal .registerBusinessGrid{grid-template-columns:1fr!important;gap:12px!important;}
  #registerModal .modalCard h2{font-size:21px!important;}
}
