@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--red:#C91D29;--ink:#171717;--muted:#7b7f88;--line:#e8e9ed}*{box-sizing:border-box}body{margin:0;background:#F5F6F8;color:var(--ink);font:14px 'DM Sans',Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:8px;padding:11px 16px;color:var(--ink);font-weight:600}button:hover{filter:brightness(.96)}button.primary{background:var(--red);color:white;border-color:var(--red)}aside{position:fixed;width:246px;background:white;height:100vh;padding:31px 19px;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{color:var(--ink);text-decoration:none;margin:0 17px 38px;display:block}.brand b{font:800 35px Manrope,Arial;letter-spacing:-2px}.brand b span{color:var(--red)}.brand small{font-size:9px;letter-spacing:2.6px;display:block;margin-top:3px;color:#777}.space{font-size:9px;letter-spacing:1.6px;color:#a0a2aa;margin:0 16px 13px;font-weight:bold}nav{display:grid;gap:4px}nav button{border:0;text-align:left;background:transparent;padding:12px 14px;font-weight:500;color:#656873;display:flex;gap:12px;align-items:center;font-size:13px}nav button.active{background:#fbecee;color:#bc1c28;font-weight:700}nav button em{font-style:normal;font-size:17px;width:19px}nav .navbreak{margin-top:17px;padding-top:17px;border-top:1px solid var(--line)}.sidefoot{margin-top:auto;padding:18px 8px 0;display:flex;gap:11px;border-top:1px solid var(--line);align-items:center}.avatar{width:35px;height:35px;border-radius:50%;background:#f5e9e8;color:#ab3036;display:inline-grid;place-items:center;font-size:11px;font-weight:bold}.sidefoot b{font-size:12px}.sidefoot small{display:block;color:#999;font-size:10px;margin-top:4px}.sidefoot i{margin-left:auto}.shell{margin-left:246px}header{height:76px;border-bottom:1px solid var(--line);background:white;padding:0 38px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#676b74}.online{display:inline-block;width:6px;height:6px;background:var(--red);border-radius:50%;margin-right:8px}.sep{padding:0 15px;color:#ccc}.demo{background:#fff6e7;color:#a3772f;padding:7px 10px;border-radius:5px;font-size:10px}main{max-width:1500px;margin:auto;padding:34px 38px 24px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#8b8e96;font-weight:bold;margin-bottom:9px}.heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:27px}h1{font:800 27px Manrope,Arial;letter-spacing:-1px;margin:0 0 7px}p.sub{color:#838690;font-size:12px;margin:0}h2{font:700 14px Manrope,Arial;margin:0}h3{font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{padding:22px;background:white;border:1px solid var(--line);border-radius:11px}.stat .label{color:#747983;font-size:11px;display:flex;justify-content:space-between}.stat strong{display:block;font:800 29px Manrope;margin:12px 0 8px;letter-spacing:-1px}.stat strong small{font-size:15px;font-weight:500;color:#93969d}.stat .hint{color:#9b9da6;font-size:10px}.stat .hint.green{color:#43866e}.stat.dark{background:#202124;color:white;border-color:#202124}.stat.dark .label,.stat.dark .hint{color:#b9bbc3}.card{border:1px solid var(--line);border-radius:11px;background:white;margin-bottom:23px;overflow:hidden}.cardhead{padding:21px 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.cardhead small{color:#999;font-size:10px}.tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tools button{padding:7px 10px;font-size:11px}.week{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));min-height:205px}.day{padding:16px 10px;border-right:1px solid var(--line)}.day:last-child{border:0}.day.today{background:#fffafa}.dayhead{display:flex;justify-content:space-between;align-items:center;color:#92959d;font-size:10px;margin-bottom:18px}.dayhead b{font:700 17px Manrope;color:#333}.day.today .dayhead b{background:var(--red);color:white;padding:4px 7px;border-radius:6px}.event{padding:9px 8px;border-radius:5px;background:color-mix(in srgb,var(--co) 9%,white);border-left:3px solid var(--co);margin-bottom:7px;font-size:10px}.event b{color:var(--co);font-size:9px;display:block;margin-bottom:4px}.event span{display:block;margin-top:6px;font-weight:bold}.daytotal{font-size:10px;color:#8d9099;margin-top:14px}.emptyday{color:#d1d3d8;text-align:center;padding:27px}.cardbottom{padding:12px 22px;background:#fafbfc;border-top:1px solid var(--line);font-size:11px;color:#858892;display:flex;justify-content:space-between}.cardbottom b{color:#333}.columns{display:grid;grid-template-columns:1.7fr 1fr;gap:22px}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px}th{text-align:left;font-size:9px;color:#999da6;letter-spacing:.7px;font-weight:600;background:#fafbfc;padding:12px 22px;white-space:nowrap}td{padding:16px 22px;border-top:1px solid #f0f0f2;white-space:nowrap}td b{font-weight:600}.badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;border-radius:5px;padding:5px 8px;background:color-mix(in srgb,var(--co) 9%,white);color:var(--co)}.dot{width:6px;height:6px;border-radius:50%;background:var(--co);display:inline-block}.pill{background:#edf6f0;color:#458365;border-radius:20px;padding:4px 8px;font-size:9px}.pill.wait{background:#fff6e5;color:#ab812d}.pill.bad{background:#ffeded;color:#bd3b43}.dist{padding:22px}.distrow{margin-bottom:20px}.distlabel{display:flex;justify-content:space-between;font-size:11px;margin-bottom:8px}.bar{height:5px;background:#f2f3f6;border-radius:5px}.bar div{background:var(--co);height:100%;border-radius:5px}.notice{padding:14px 18px;border:1px solid #e9dfc8;background:#fffaf0;border-radius:8px;font-size:11px;color:#967b46;margin:16px 0}.form{padding:25px;max-width:1000px}.gridform{display:grid;grid-template-columns:1fr 1fr;gap:20px}label{display:block;font-size:12px;font-weight:600}label small{display:block;font-weight:400;color:#9498a1;margin-top:5px}input,select,textarea{width:100%;margin-top:8px;padding:12px;border:1px solid #dedfe5;border-radius:7px;background:white;color:#222;min-height:43px}textarea{min-height:85px;resize:vertical}.full{grid-column:1/-1}.radio{display:flex;gap:20px;margin:15px 0}.radio label,.checks label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400}.radio input,.checks input{width:16px;min-height:16px;margin:0}.checks{display:flex;gap:17px;flex-wrap:wrap;padding:12px 0}.totalbox{padding:18px;background:#f7f8fa;border-radius:8px;display:flex;justify-content:space-between}.totalbox strong{color:var(--red)}.filters{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}.filters input,.filters select{width:auto;margin:0;max-width:220px}.padded{padding:22px}.listrow{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);gap:15px}.muted{color:#92959d;font-size:11px}.alert{border-left:3px solid #dbaa42;padding:18px;background:#fffcf6;margin-bottom:12px;border-radius:6px}.alert.bad{border-color:var(--red);background:#fff7f7}.alert p{color:#7c7f88;font-size:12px;line-height:1.7}.reporttitle{padding:25px;border-bottom:1px solid var(--line)}.reporttitle h2{font-size:20px;margin:12px 0}.totalrow td{font-weight:700;background:#f6f7f9}.reportgroup{padding:14px 22px;border-left:4px solid var(--co);background:color-mix(in srgb,var(--co) 6%,white);font-weight:700}.empty{padding:40px;text-align:center;color:#92959d}footer{padding:20px 38px;display:flex;gap:25px;color:#92959d;font-size:9px}footer span:last-child{margin-left:auto}#toast{position:fixed;bottom:25px;right:25px;background:#252529;color:white;padding:14px 22px;border-radius:8px;display:none;z-index:99}dialog{border:1px solid var(--line);border-radius:12px;max-width:600px;width:90%;padding:25px}dialog::backdrop{background:#0006}.mobiletitle{display:none}@media(min-width:1500px){main{padding-top:45px}}@media(max-width:1100px){aside{width:210px}.shell{margin-left:210px}main{padding:25px 22px}.stats{gap:10px}.stat{padding:16px}.columns{grid-template-columns:1fr}.week{overflow:auto}.cardhead{padding:18px}td,th{padding:13px 16px}}@media(max-width:760px){aside{position:static;width:100%;height:auto;padding:15px;border:0}.brand{margin:0 5px 16px}.brand b{font-size:26px}.brand small{display:none}.space,.sidefoot{display:none}nav{display:flex;overflow:auto;gap:5px}nav button{white-space:nowrap;padding:10px;font-size:11px}nav .navbreak{margin:0;padding:10px;border:0}.shell{margin:0}header{height:48px;padding:0 20px;font-size:9px}main{padding:23px 16px}.heading{align-items:flex-start}h1{font-size:23px}.heading .primary{font-size:11px;padding:11px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat strong{font-size:25px}.week{grid-template-columns:repeat(7,135px)}.gridform{grid-template-columns:1fr}.full{grid-column:auto}.cardhead{align-items:flex-start;flex-wrap:wrap}.form{padding:18px}footer{padding:15px;gap:10px}footer span:nth-child(2){display:none}.filters input,.filters select{max-width:100%;flex:1;min-width:120px}.heading p.sub{line-height:1.6}.columns{gap:0}}@media print{aside,header,footer,.heading,.filters,.tools,.notice,button,#toast{display:none!important}.shell{margin:0}main{padding:0}.card{border:0;overflow:visible}.tablewrap{overflow:visible}body{background:white}td{white-space:normal}thead{display:table-header-group}.reportgroup{break-after:avoid}tr{break-inside:avoid}}

/* Chantier et entreprise restent associés, même pour deux chantiers homonymes. */
.distidentity{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.distlabel{gap:12px;align-items:center}.distlabel>b{white-space:nowrap}.distcompany{display:inline-flex}.distcompany .badge{font-size:11px}.distrow:last-child{margin-bottom:0}
@media(max-width:760px){
body{font-size:16px;line-height:1.5}nav button{font-size:14px;min-height:46px}header{font-size:12px;height:auto;min-height:56px;gap:10px;flex-wrap:wrap;padding:10px 16px}.demo{font-size:12px}.eyebrow{font-size:11px}h1{font-size:26px}h2{font-size:17px}h3{font-size:16px}p.sub{font-size:15px}.heading{flex-wrap:wrap}.heading .primary{font-size:15px;min-height:46px}.stat .label{font-size:14px}.stat strong{font-size:30px}.stat strong small{font-size:17px}.stat .hint{font-size:12px}.stat{padding:16px 13px}.cardhead small{font-size:13px}.tools button,button{font-size:14px;min-height:44px}.week{grid-template-columns:repeat(7,164px)}.dayhead{font-size:13px}.dayhead b{font-size:20px}.event{font-size:14px;padding:11px 9px}.event b{font-size:12px}.event span{font-size:15px}.daytotal{font-size:12px}.cardbottom{font-size:13px;gap:10px;flex-wrap:wrap}table{font-size:14px}th{font-size:11px}td,th{padding:14px 16px}.badge,.distcompany .badge{font-size:13px}.pill{font-size:12px}.muted{font-size:13px}.distlabel{font-size:15px;align-items:flex-start}.distidentity{align-items:flex-start;flex-direction:column;gap:5px}.dist{padding:20px}.distrow{margin-bottom:23px}.bar{height:7px}label,.radio label,.checks label{font-size:16px}label small,.notice{font-size:14px}input,select,textarea{font-size:16px;min-height:48px}.checks{gap:15px}.checks label{min-height:40px}.checks input,.radio input{width:20px;min-height:20px}.totalbox{font-size:16px}.alert p{font-size:15px}.reporttitle h2{font-size:21px}footer{font-size:11px;flex-wrap:wrap}footer span:last-child{margin-left:0}
}

.pay-summary{display:flex;gap:24px;align-items:center;justify-content:space-between;border:1px solid #e8e9ed;background:#fff;border-radius:10px;padding:19px 22px;margin:0 0 18px}.pay-summary>div{display:flex;flex-direction:column;gap:6px}.pay-summary small,.pay-summary span{font-size:12px;color:#777d87}.pay-summary strong{font-size:19px}.pay-summary .pay-final{padding-left:22px;border-left:2px solid #C91D29}.pay-final strong{color:#C91D29}.card>.pay-summary{border-radius:0;border-width:1px 0 0;margin:0;background:#fffafa}#report table tr:last-child td{font-weight:700}.pay-summary small{max-width:220px}@media(max-width:760px){.pay-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:18px}.pay-summary>div:first-child{grid-column:1/-1}.pay-summary small,.pay-summary span{font-size:14px}.pay-summary .pay-final{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center;border-left:0;border-top:1px solid #efc7ca;padding:14px 0 0}.pay-summary strong{font-size:21px}}@media print{.pay-summary{break-inside:avoid}.pay-final strong{color:#171717}}

/* Lisibilité renforcée sur ordinateur et tablette, sans modifier les tailles mobiles approuvées. */
@media screen and (min-width:761px){
  body{font-size:16px;line-height:1.5}
  aside{overflow-y:auto}
  nav button{font-size:15px;line-height:1.4;min-height:46px}
  .space{font-size:11px}
  .sidefoot b{font-size:15px}.sidefoot small{font-size:12px}
  header{font-size:14px}.demo{font-size:12px}.eyebrow{font-size:12px}
  h1{font-size:32px;line-height:1.25}h2{font-size:18px;line-height:1.4}h3{font-size:17px}
  p.sub{font-size:16px;line-height:1.6}
  button,.tools button{font-size:15px;min-height:44px}
  .heading{flex-wrap:wrap}.heading .primary{font-size:16px}
  .stat .label{font-size:15px;gap:12px}.stat strong{font-size:34px}
  .stat strong small{font-size:18px}.stat .hint{font-size:13px;line-height:1.5}
  .cardhead{flex-wrap:wrap}.cardhead small{font-size:14px}
  .week{grid-template-columns:repeat(7,minmax(136px,1fr));overflow-x:auto}
  .dayhead{font-size:13px}.dayhead b{font-size:21px}
  .event{font-size:14px;line-height:1.5;padding:10px 8px;overflow-wrap:anywhere}
  .event b{font-size:12px}.event span{font-size:15px}.daytotal{font-size:13px}
  .cardbottom{font-size:14px;gap:12px;flex-wrap:wrap}
  table{font-size:15px;line-height:1.5}th{font-size:12px;letter-spacing:.35px}
  td,th{padding:15px 20px}
  .badge,.distcompany .badge{font-size:13px}.pill{font-size:12px}
  .muted{font-size:14px;line-height:1.5}
  .distlabel{font-size:16px}.distrow{margin-bottom:23px}.bar{height:7px}
  label,.radio label,.checks label{font-size:16px}
  label small{font-size:14px;line-height:1.5}
  input,select,textarea{font-size:16px;min-height:46px}
  .checks label{min-height:36px}.radio input,.checks input{width:18px;min-height:18px}
  .notice{font-size:14px;line-height:1.6}
  .alert p{font-size:15px}.reporttitle h2{font-size:24px}
  .pay-summary small,.pay-summary span{font-size:15px;line-height:1.5}
  .pay-summary strong{font-size:23px}.pay-summary>div:first-child>b{font-size:17px}
  .pay-summary{flex-wrap:wrap}
  footer{font-size:12px;flex-wrap:wrap}
}
@media screen and (min-width:761px) and (max-width:1200px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pay-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px}
  .pay-summary>div:first-child{grid-column:1/-1}
  .pay-summary .pay-final{grid-column:1/-1;border-left:0;border-top:1px solid #efc7ca;padding:14px 0 0;flex-direction:row;align-items:center;justify-content:space-between}
  .gridform{grid-template-columns:1fr}.full{grid-column:auto}
}


.login-card{max-width:520px;margin:50px auto}.login-card label{display:block;margin:20px 0}.login-card input{width:100%;margin-top:8px}.login-card button{margin:5px 8px 5px 0}.saving button,.saving input,.saving select,.saving textarea{pointer-events:none;opacity:.7}.sidefoot button{font-size:12px;margin-top:6px}#loginerror{color:#b71c1c}
