.anthalys-responsable-login-wrap{display:flex;justify-content:center;align-items:center;min-height:560px;padding:40px 20px;background:#f4f7fb;font-family:Arial,Helvetica,sans-serif}.anthalys-responsable-login-card{width:min(440px,100%);background:#fff;border:1px solid #dfe7f0;border-radius:20px;padding:36px 38px;box-shadow:0 12px 35px rgba(20,32,51,.12);color:#142033}.anthalys-login-brand{font-size:14px;font-weight:900;letter-spacing:.18em;color:#0b67b2}.anthalys-responsable-login-card h2{font-size:34px;line-height:1.1;margin:8px 0}.anthalys-login-subtitle{color:#66778d}.anthalys-responsable-login-card label{display:block;font-weight:800;margin-top:16px}.anthalys-responsable-login-card input[type=text],.anthalys-responsable-login-card input[type=password]{width:100%;padding:13px 42px 13px 14px;border:1px solid #cbd7e5;border-radius:10px;font-size:17px;margin-top:7px;box-sizing:border-box}.anthalys-password-wrap{position:relative;display:block}.anthalys-password-eye{position:absolute;right:7px;top:13px;border:0;background:transparent;cursor:pointer;font-size:18px}.anthalys-login-remember{display:flex!important;align-items:center;gap:8px}.anthalys-responsable-login-card>form>button{width:100%;margin-top:22px;padding:14px;border:0;border-radius:10px;background:#0b67b2;color:white;font-size:17px;font-weight:900;cursor:pointer}.anthalys-login-error{background:#fff0f0;border:1px solid #f4b5b5;color:#a61b1b;padding:11px;border-radius:9px;margin:14px 0}.anthalys-responsable-notice{padding:18px;border:1px solid #dfe7f0;border-radius:12px;background:#fff}
.anthalys-resp-dashboard{max-width:1220px;margin:0 auto;padding:26px 18px 50px;color:#10213a;font-family:Arial,Helvetica,sans-serif}.anthalys-resp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.anthalys-eyebrow{margin:0;color:#0b67b2;font-size:13px;font-weight:900;letter-spacing:.18em}.anthalys-resp-head h2{font-size:38px;margin:6px 0 8px}.anthalys-resp-sub{color:#61738b}.anthalys-resp-btn{display:inline-block;padding:12px 18px;border-radius:12px;background:#0b67b2;color:#fff!important;text-decoration:none;font-weight:800}.anthalys-resp-btn.secondary{background:#eef5fa;color:#123b5d!important}.anthalys-resp-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.anthalys-resp-kpis article{border:1px solid #dce6ef;border-radius:18px;background:#fff;padding:18px 20px;box-shadow:0 8px 25px rgba(25,55,85,.05)}.anthalys-resp-kpis span{font-size:22px}.anthalys-resp-kpis strong{display:block;font-size:34px;margin:10px 0 6px}.anthalys-resp-kpis small{font-weight:800;color:#58708d}.anthalys-resp-toolbar{display:flex;gap:18px;justify-content:space-between;align-items:center;margin-bottom:14px}.anthalys-resp-toolbar input{flex:1;max-width:640px;padding:14px 16px;border:1px solid #ccd9e6;border-radius:12px;font-size:16px}.anthalys-resp-filters{display:flex;gap:8px}.anthalys-resp-filters button{padding:11px 16px;border:1px solid #d3dfeb;border-radius:999px;background:#fff;font-weight:800;cursor:pointer}.anthalys-resp-filters button.is-active{background:#0877bd;color:#fff;border-color:#0877bd}.anthalys-resp-table-wrap{overflow:auto;border:1px solid #d3dce7;border-radius:16px}.anthalys-resp-table{width:100%;border-collapse:collapse;background:#fff}.anthalys-resp-table th,.anthalys-resp-table td{padding:12px 10px;border-right:1px solid #d3dce7;border-bottom:1px solid #d3dce7;text-align:left;vertical-align:middle}.anthalys-resp-table th{background:#f5f8fa;font-size:13px;text-transform:uppercase;letter-spacing:.03em}.anthalys-resp-table tbody tr:nth-child(even){background:#fafafa}.anthalys-resp-table .sortable button{border:0;background:transparent;font:inherit;font-weight:900;cursor:pointer;padding:0}.anthalys-resp-progress>div{display:flex;justify-content:space-between;font-size:12px;color:#61738b}.anthalys-resp-progress i{display:block;height:7px;background:#e7eef4;border-radius:99px;overflow:hidden;margin-top:6px}.anthalys-resp-progress b{display:block;height:100%;background:#168fd0;border-radius:99px}.anthalys-resp-status{display:inline-block;padding:7px 10px;border-radius:999px;font-weight:900;font-size:13px;background:#e9f5ff;color:#08659c}.anthalys-resp-status.late{background:#ffebe6;color:#a92d18}.anthalys-resp-status.done{background:#e7f7ed;color:#16843f}.anthalys-resp-status.subcontract{background:#f0e8ff;color:#6f31b2}.anthalys-resp-status.paint{background:#fff0de;color:#9a5a00}.anthalys-resp-status.machining{background:#e6f2ff;color:#135f9e}.anthalys-resp-detail{width:38px;height:38px;border:1px solid #cbd8e5;border-radius:10px;background:#fff;cursor:pointer;font-size:18px}.anthalys-resp-modal[hidden]{display:none}.anthalys-resp-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:28px}.anthalys-resp-backdrop{position:absolute;inset:0;background:rgba(13,29,43,.62)}.anthalys-resp-modal-card{position:relative;z-index:2;width:min(920px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;padding:30px;color:#142033}.anthalys-resp-close{position:absolute;right:18px;top:16px;width:42px;height:42px;border:0;border-radius:50%;background:#edf4f8;font-size:28px;cursor:pointer}.anthalys-resp-modal-card h3{font-size:32px;margin:5px 0}.anthalys-resp-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.anthalys-resp-summary div{padding:16px;border:1px solid #dce6ef;border-radius:14px;background:#f8fbfd}.anthalys-resp-summary small{display:block;color:#61738b;font-weight:800;margin-bottom:8px}.anthalys-resp-summary strong{font-size:18px}.anthalys-resp-modal-card h4{font-size:24px;margin:20px 0 12px}.anthalys-resp-phase{display:grid;grid-template-columns:100px 1fr 90px 90px;gap:12px;align-items:center;padding:14px 16px;border:1px solid #dce6ef;border-radius:12px;margin-bottom:9px}.anthalys-resp-phase .phase-num{color:#61738b;font-weight:700}.anthalys-resp-phase code{background:#eef4f8;padding:5px 8px;border-radius:7px}.anthalys-resp-phase>span:last-child{color:#a55b00;font-weight:900;text-align:right}.anthalys-resp-none{padding:18px;border-radius:12px;background:#eaf7ef;color:#18723c;font-weight:800}@media(max-width:900px){.anthalys-resp-kpis{grid-template-columns:repeat(2,1fr)}.anthalys-resp-toolbar{align-items:stretch;flex-direction:column}.anthalys-resp-filters{flex-wrap:wrap}.anthalys-resp-summary{grid-template-columns:repeat(2,1fr)}.anthalys-resp-phase{grid-template-columns:80px 1fr 70px}.anthalys-resp-phase>span:last-child{grid-column:3}}@media(max-width:600px){.anthalys-resp-head{flex-direction:column}.anthalys-resp-kpis{grid-template-columns:1fr}.anthalys-resp-summary{grid-template-columns:1fr}}

/* V1.0.1 - affichage pleine largeur du planning responsable */
.anthalys-resp-dashboard{
  width:min(96vw,1800px);
  max-width:none;
  box-sizing:border-box;
}
.anthalys-resp-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.anthalys-resp-table{
  width:100%;
  min-width:1180px;
  table-layout:fixed;
}
.anthalys-resp-table th,.anthalys-resp-table td{
  box-sizing:border-box;
  overflow-wrap:anywhere;
}
.anthalys-resp-table th:nth-child(1),.anthalys-resp-table td:nth-child(1){width:7%}
.anthalys-resp-table th:nth-child(2),.anthalys-resp-table td:nth-child(2){width:12%}
.anthalys-resp-table th:nth-child(3),.anthalys-resp-table td:nth-child(3){width:16%}
.anthalys-resp-table th:nth-child(4),.anthalys-resp-table td:nth-child(4){width:17%}
.anthalys-resp-table th:nth-child(5),.anthalys-resp-table td:nth-child(5){width:7%}
.anthalys-resp-table th:nth-child(6),.anthalys-resp-table td:nth-child(6){width:5%}
.anthalys-resp-table th:nth-child(7),.anthalys-resp-table td:nth-child(7){width:11%}
.anthalys-resp-table th:nth-child(8),.anthalys-resp-table td:nth-child(8){width:12%}
.anthalys-resp-table th:nth-child(9),.anthalys-resp-table td:nth-child(9){width:9%;white-space:nowrap}
.anthalys-resp-table th:nth-child(10),.anthalys-resp-table td:nth-child(10){width:4%;min-width:54px;text-align:center;padding-left:6px;padding-right:6px}
.anthalys-resp-table .sortable button{white-space:nowrap}
@media(max-width:1250px){.anthalys-resp-dashboard{width:98vw;padding-left:10px;padding-right:10px}}


/* V1.0.2 - onglets par rang dans le détail affaire */
.anthalys-resp-rank-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 14px;padding-bottom:12px;border-bottom:1px solid #dce6ef}
.anthalys-resp-rank-tabs[hidden]{display:none}
.anthalys-resp-rank-tab{border:1px solid #cbd9e6;background:#f5f8fb;color:#29445f;border-radius:999px;padding:9px 15px;font-weight:900;cursor:pointer;transition:.15s ease}
.anthalys-resp-rank-tab:hover{background:#e9f4fb;border-color:#9bc8e5}
.anthalys-resp-rank-tab.is-active{background:#0877bd;border-color:#0877bd;color:#fff;box-shadow:0 4px 12px rgba(8,119,189,.18)}
.anthalys-resp-rank-tab span{margin-left:5px}
.anthalys-resp-rank-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 18px}
.anthalys-resp-rank-meta[hidden]{display:none}
.anthalys-resp-rank-meta>div{padding:12px 14px;border:1px solid #dce6ef;border-radius:12px;background:#fbfdff;min-width:0}
.anthalys-resp-rank-meta small{display:block;color:#61738b;font-weight:800;margin-bottom:6px}
.anthalys-resp-rank-meta strong{display:block;overflow-wrap:anywhere}
@media(max-width:900px){.anthalys-resp-rank-meta{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.anthalys-resp-rank-meta{grid-template-columns:1fr}}

/* V1.0.6 - centrage robuste dans tous les formats de fenêtre */
.anthalys-resp-dashboard{
  width:min(96%,1800px);
  max-width:1800px;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box;
}
@media(max-width:1250px){
  .anthalys-resp-dashboard{
    width:calc(100% - 20px);
    max-width:none;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:10px;
    padding-right:10px;
  }
}


/* V1.0.7 - pleine largeur centree par rapport a la fenetre, sans perdre de colonnes */
.anthalys-resp-dashboard{
  width:min(96vw,1800px) !important;
  max-width:1800px !important;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box;
}
.anthalys-resp-table-wrap{
  width:100% !important;
  max-width:100% !important;
  overflow-x:auto !important;
}
.anthalys-resp-table{
  width:100% !important;
  min-width:1180px;
}
@media(max-width:1250px){
  .anthalys-resp-dashboard{
    width:calc(100vw - 20px) !important;
    max-width:none !important;
    left:50%;
    transform:translateX(-50%);
    padding-left:10px;
    padding-right:10px;
  }
}

/* V1.0.8 - affichage mobile en cartes + detail adapte au tactile */
@media (max-width:700px){
  .anthalys-resp-dashboard{
    width:calc(100vw - 12px) !important;
    max-width:none !important;
    left:50%;
    transform:translateX(-50%);
    padding:14px 6px 28px !important;
  }
  .anthalys-resp-head{
    gap:10px;
    margin-bottom:16px;
  }
  .anthalys-resp-head h2{
    font-size:27px;
    line-height:1.08;
    margin:4px 0 6px;
  }
  .anthalys-eyebrow{font-size:11px;letter-spacing:.12em}
  .anthalys-resp-sub{font-size:13px;line-height:1.35}
  .anthalys-resp-btn{padding:10px 14px;font-size:14px}

  .anthalys-resp-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px;
    margin-bottom:14px;
  }
  .anthalys-resp-kpis article{padding:12px 13px;border-radius:14px}
  .anthalys-resp-kpis span{font-size:17px}
  .anthalys-resp-kpis strong{font-size:27px;margin:5px 0 2px}
  .anthalys-resp-kpis small{font-size:11px}

  .anthalys-resp-toolbar{gap:10px;margin-bottom:12px}
  .anthalys-resp-toolbar input{
    width:100%;max-width:none;
    padding:12px 13px;
    font-size:15px;
    box-sizing:border-box;
  }
  .anthalys-resp-filters{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    width:100%;
  }
  .anthalys-resp-filters button{
    width:100%;
    padding:10px 8px;
    font-size:13px;
    white-space:normal;
  }

  /* Sur telephone le tableau devient une liste de fiches lisibles, sans defilement horizontal. */
  .anthalys-resp-table-wrap{
    overflow:visible !important;
    border:0;
    border-radius:0;
    background:transparent;
  }
  .anthalys-resp-table{
    display:block;
    width:100% !important;
    min-width:0 !important;
    table-layout:auto;
    background:transparent;
  }
  .anthalys-resp-table thead{display:none}
  .anthalys-resp-table tbody{
    display:grid;
    gap:11px;
  }
  .anthalys-resp-table tbody tr{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 12px;
    width:100%;
    box-sizing:border-box;
    background:#fff !important;
    border:1px solid #d7e2ec;
    border-radius:15px;
    padding:0 12px 12px;
    box-shadow:0 4px 14px rgba(18,49,77,.05);
    overflow:hidden;
  }
  .anthalys-resp-table td{
    display:block;
    width:auto !important;
    min-width:0 !important;
    padding:9px 0;
    border:0 !important;
    border-bottom:1px solid #edf2f6 !important;
    white-space:normal !important;
    overflow-wrap:anywhere;
    font-size:14px;
    line-height:1.3;
    text-align:left !important;
  }
  .anthalys-resp-table td::before{
    display:block;
    margin-bottom:3px;
    color:#687c91;
    font-size:10px;
    line-height:1.15;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
  }
  .anthalys-resp-table td:nth-child(1)::before{content:"Client"}
  .anthalys-resp-table td:nth-child(2)::before{content:"Commande"}
  .anthalys-resp-table td:nth-child(3)::before{content:"Article"}
  .anthalys-resp-table td:nth-child(4)::before{content:"Designation"}
  .anthalys-resp-table td:nth-child(5)::before{content:"Affaire"}
  .anthalys-resp-table td:nth-child(6)::before{content:"Quantite"}
  .anthalys-resp-table td:nth-child(7)::before{content:"Avancement"}
  .anthalys-resp-table td:nth-child(8)::before{content:"Statut actuel"}
  .anthalys-resp-table td:nth-child(9)::before{content:"Date prevue"}
  .anthalys-resp-table td:nth-child(10)::before{content:"Detail"}

  .anthalys-resp-table td:nth-child(5){
    order:-10;
    grid-column:1/-1;
    margin:0 -12px 2px;
    padding:11px 12px;
    background:#f5f9fc;
    font-size:18px;
  }
  .anthalys-resp-table td:nth-child(1){order:-9}
  .anthalys-resp-table td:nth-child(6){order:-8}
  .anthalys-resp-table td:nth-child(2){order:-7;grid-column:1/-1}
  .anthalys-resp-table td:nth-child(3){order:-6;grid-column:1/-1}
  .anthalys-resp-table td:nth-child(4){order:-5;grid-column:1/-1}
  .anthalys-resp-table td:nth-child(7){order:-4;grid-column:1/-1}
  .anthalys-resp-table td:nth-child(8){order:-3;grid-column:1/-1}
  .anthalys-resp-table td:nth-child(9){order:-2;border-bottom:0 !important}
  .anthalys-resp-table td:nth-child(10){order:-1;border-bottom:0 !important;text-align:right !important}
  .anthalys-resp-progress>div{font-size:11px}
  .anthalys-resp-status{font-size:12px;padding:6px 9px}
  .anthalys-resp-detail{
    width:44px;height:44px;
    font-size:19px;
    touch-action:manipulation;
  }

  /* Fenetre de detail : plein ecran utile mais avec marges, aucune colonne coupee. */
  .anthalys-resp-modal{
    padding:8px;
    align-items:center;
  }
  .anthalys-resp-modal-card{
    width:calc(100vw - 16px);
    max-width:none;
    max-height:calc(100dvh - 16px);
    padding:18px 14px 20px;
    border-radius:17px;
    box-sizing:border-box;
    overflow-x:hidden;
  }
  .anthalys-resp-close{
    right:10px;top:10px;
    width:38px;height:38px;
    font-size:24px;
  }
  .anthalys-resp-modal-card h3{
    font-size:25px;
    line-height:1.1;
    padding-right:38px;
  }
  #anthalys-resp-subtitle{font-size:13px;overflow-wrap:anywhere;padding-right:8px}
  .anthalys-resp-summary{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px;
    margin:14px 0;
  }
  .anthalys-resp-summary div{padding:11px 10px;min-width:0}
  .anthalys-resp-summary small{font-size:10px;margin-bottom:4px}
  .anthalys-resp-summary strong{font-size:14px;overflow-wrap:anywhere}
  .anthalys-resp-rank-tabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:9px;
    scrollbar-width:thin;
  }
  .anthalys-resp-rank-tab{flex:0 0 auto;padding:8px 12px;font-size:13px}
  .anthalys-resp-rank-meta{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px;
    margin-bottom:12px;
  }
  .anthalys-resp-rank-meta>div{padding:9px 10px}
  .anthalys-resp-modal-card h4{font-size:20px;margin:15px 0 9px}
  .anthalys-resp-phase{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:5px 10px;
    align-items:start;
    padding:11px 12px;
    margin-bottom:8px;
  }
  .anthalys-resp-phase .phase-num{
    grid-column:1;
    grid-row:1;
    font-size:12px;
  }
  .anthalys-resp-phase strong{
    grid-column:1/-1;
    grid-row:2;
    font-size:15px;
    line-height:1.25;
    overflow-wrap:anywhere;
  }
  .anthalys-resp-phase code{
    grid-column:2;
    grid-row:1;
    min-width:58px;
    text-align:center;
    font-size:13px;
    box-sizing:border-box;
  }
  .anthalys-resp-phase>span:last-child{
    grid-column:1/-1 !important;
    grid-row:3;
    text-align:right;
    font-size:14px;
  }
}

@media (max-width:380px){
  .anthalys-resp-kpis{grid-template-columns:1fr 1fr !important}
  .anthalys-resp-summary{grid-template-columns:1fr !important}
  .anthalys-resp-rank-meta{grid-template-columns:1fr !important}
}
