:root{
--navy:#0a3568;--navy2:#123f78;--blue:#1688c8;--bg:#f3f6fa;--card:#fff;
--text:#17263a;--muted:#6b7888;--border:#dbe2ea;--green:#2e7d32;--orange:#ef8b16;--red:#bd2c2c;--grey:#7d8792
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:16px}
body{min-height:100vh}
a{color:inherit}
.app-header{background:var(--navy);color:#fff;padding:18px 20px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.app-title{font-size:25px;font-weight:850}.app-sub{font-size:15px;opacity:.92}.user-box{text-align:right;display:flex;flex-direction:column;gap:2px}.user-box span{font-size:12px;opacity:.9}
main{width:min(100%,760px);margin:0 auto;padding:16px}.wide{width:min(100%,1200px)}
.login-wrap{padding-top:40px}.brand-card{text-align:center;padding:20px}.brand-title{font-size:34px;font-weight:900;color:var(--navy)}.brand-sub{font-size:18px;color:var(--muted);margin-top:6px}
.card{background:var(--card);border-radius:18px;padding:20px;margin:14px 0;box-shadow:0 3px 14px rgba(15,42,75,.07)}
h1,h2,h3{margin:0 0 16px;line-height:1.18}h1{font-size:30px}h2{font-size:23px}.no-bottom{margin-bottom:3px}
.topnav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.topnav a{background:#fff;color:var(--navy);text-decoration:none;padding:10px 12px;border-radius:10px;font-weight:750;box-shadow:0 2px 8px rgba(15,42,75,.05)}.topnav a.active{background:var(--navy);color:#fff}
.form-stack{display:grid;gap:14px}.form-grid{display:grid;gap:12px}.form-grid.two{grid-template-columns:1fr 1fr}
label{display:block;font-weight:750;margin-bottom:6px}
input,select,textarea{width:100%;min-height:49px;border:1px solid var(--border);border-radius:12px;padding:11px 13px;font:inherit;background:#fff;color:var(--text);outline:none}
textarea{min-height:105px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(22,136,200,.11)}
button,.btn{display:inline-flex;align-items:center;justify-content:center;min-height:49px;border:0;border-radius:12px;padding:11px 16px;background:var(--navy);color:#fff;font:inherit;font-weight:850;text-decoration:none;cursor:pointer}
button.orange,.btn.orange{background:var(--orange)}button.green,.btn.green{background:var(--green)}button.secondary,.btn.secondary{background:#e7edf4;color:var(--navy)}
fieldset{border:1px solid var(--border);border-radius:14px;padding:14px}legend{font-weight:850;padding:0 8px}
.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.check-list{display:grid;gap:4px}.check{display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;background:#f8fafc;font-weight:650;margin:0}.check.single{background:transparent;padding:6px 0}.check input[type=checkbox]{width:23px;height:23px;min-height:23px;flex:0 0 23px;accent-color:var(--navy)}.check small{display:block;color:var(--muted);font-weight:500;margin-top:2px}
.kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin:12px 0}.kpi{background:#fff;border-radius:16px;padding:15px;box-shadow:0 2px 9px rgba(15,42,75,.05)}.kpi strong{display:block;font-size:29px;color:var(--navy)}.kpi span{font-size:13px;color:var(--muted)}
.filters{background:#fff;border-radius:16px;padding:11px;display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.filters button{min-height:40px;padding:8px 13px;border-radius:20px;background:#e8eef5;color:var(--navy);font-weight:800}.filters button.active{background:var(--navy);color:#fff}
.job-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}.job-card{display:block;background:#fff;border-radius:17px;padding:16px;text-decoration:none;color:inherit;border-left:6px solid var(--grey);box-shadow:0 2px 10px rgba(15,42,75,.05)}.job-card.green{border-left-color:var(--green)}.job-card.orange{border-left-color:var(--orange)}.job-card.red{border-left-color:var(--red)}.job-client{font-size:19px;font-weight:850}.job-meta{font-size:13px;line-height:1.55;color:#5f6d7d;margin-top:9px}
.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.strong{font-weight:800}.small{font-size:13px}.muted{color:var(--muted)}
.pill,.status-badge{display:inline-flex;align-items:center;border-radius:20px;padding:6px 9px;color:#fff;background:var(--grey);font-size:11px;font-weight:850;white-space:nowrap}.pill.green{background:var(--green)}.pill.orange{background:var(--orange)}.pill.red{background:var(--red)}.pill.grey{background:var(--grey)}
.progress{height:9px;background:#e6ecf2;border-radius:8px;overflow:hidden;margin:12px 0}.progress.large{height:12px}.progress i{display:block;height:100%;background:var(--blue)}
.info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:16px}.info-grid>div{background:#f7f9fc;border-radius:12px;padding:11px}.info-grid span{display:block;font-size:11px;color:var(--muted);margin-bottom:3px}.info-grid strong{font-size:14px}
.team-line{margin-top:12px;display:flex;gap:7px;flex-wrap:wrap;align-items:center}.team-line span{background:#edf2f7;border-radius:14px;padding:5px 8px;font-size:12px}.note{margin-top:13px;background:#f6f8fb;border-left:4px solid var(--blue);padding:11px;border-radius:8px}
.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.incident{border-top:1px solid var(--border);padding:11px 0}.incident:first-of-type{border-top:0}.incident strong{display:block}.incident span{font-size:12px;color:var(--muted)}.incident p{margin:5px 0 0}
.success,.danger{padding:12px 14px;border-radius:11px;margin-bottom:12px}.success{background:#e9f6ed;color:#21633a}.danger{background:#fdeaea;color:#8d2525}.empty{text-align:center;padding:30px}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.photo-grid figure{margin:0;background:#fff;border-radius:13px;overflow:hidden}.photo-grid img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}.photo-grid figcaption{padding:8px;font-size:11px;color:var(--muted)}
canvas#sig{display:block;width:100%;height:190px;background:#fff;border:2px dashed #aeb9c4;border-radius:12px;touch-action:none}
.users-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}.user-card h2{margin-bottom:0}
@media(max-width:760px){
 .kpi-grid{grid-template-columns:repeat(2,1fr)}.kpi-grid .kpi:last-child{grid-column:1/-1}
 .form-grid.two,.info-grid{grid-template-columns:1fr}.check-grid{grid-template-columns:1fr}.action-grid{grid-template-columns:1fr}
 .app-title{font-size:22px}.app-sub{font-size:13px}main,.wide{padding:13px}.card{padding:17px}h1{font-size:27px}
}
/* ===== Identité Audit-TEC / Artelec - TEC-Chantier ===== */


/* =========================================================
   TEC-CHANTIER — IDENTITE GRAPHIQUE
   Header principal
   ========================================================= */

.tec-real-header{
    width:100%;
    min-height:108px;
    display:flex;
    align-items:stretch;
    background:var(--navy);
    overflow:hidden;
    box-shadow:0 3px 12px rgba(10,53,104,.16);
}

.tec-header-visual{
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
}

.tec-header-visual-img{
    display:block;
    width:100%;
    height:108px;
    object-fit:cover;
    object-position:center;
}

.tec-header-user{
    flex:0 0 175px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:0 16px;
    color:#fff;
    background:linear-gradient(135deg,var(--navy),var(--navy2));
    border-left:1px solid rgba(255,255,255,.18);
}

.tec-user-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.14);
    font-size:19px;
}

.tec-user-info{
    min-width:0;
    display:flex;
    flex-direction:column;
    line-height:1.15;
}

.tec-user-info strong{
    color:#fff;
    font-size:14px;
    font-weight:850;
    white-space:nowrap;
}

.tec-user-info span{
    margin-top:4px;
    color:#dce9f7;
    font-size:11px;
    font-weight:700;
}

/* Tablette */
@media(max-width:900px){
    .tec-real-header{
        min-height:90px;
    }

    .tec-header-visual-img{
        height:90px;
    }

    .tec-header-user{
        flex-basis:145px;
        padding:0 10px;
    }
}

/* Smartphone */
@media(max-width:600px){
    .tec-real-header{
        min-height:76px;
    }

    .tec-header-visual-img{
        height:76px;
    }

    .tec-header-user{
        flex-basis:105px;
        padding:0 6px;
        gap:5px;
    }

    .tec-user-icon{
        width:29px;
        height:29px;
        flex-basis:29px;
        font-size:14px;
    }

    .tec-user-info strong{
        font-size:11px;
    }

    .tec-user-info span{
        font-size:9px;
    }
}

/* ===== TEC-CHANTIER : HEADER RESPONSIVE DEFINITIF ===== */

.tec-final-header{
    position:relative;
    width:100%;
    height:auto;
    margin:0;
    padding:0;
    overflow:hidden;
    background:#07396d;
}

.tec-final-banner{
    width:100%;
    height:auto;
    margin:0;
    padding:0;
}

.tec-final-banner img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    margin:0;
    padding:0;
}

/* Utilisateur superposé : ne retire aucune largeur au bandeau */
.tec-final-user{
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    width:155px;
    height:auto;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 10px;
    color:#fff;
    background:linear-gradient(
        90deg,
        rgba(7,57,109,.35) 0%,
        rgba(7,57,109,.90) 25%,
        #07396d 100%
    );
}

.tec-final-user-icon{
    width:32px;
    height:32px;
    flex:0 0 32px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.16);
    font-size:15px;
}

.tec-final-user-text{
    min-width:0;
    display:flex;
    flex-direction:column;
    line-height:1.15;
}

.tec-final-user-text strong{
    color:#fff;
    font-size:12px;
    font-weight:850;
    white-space:nowrap;
}

.tec-final-user-text span{
    margin-top:3px;
    color:#dce9f7;
    font-size:9px;
    font-weight:750;
}

/* Tablette */
@media(max-width:900px){
    .tec-final-user{
        width:125px;
        padding:0 6px;
    }

    .tec-final-user-icon{
        width:27px;
        height:27px;
        flex-basis:27px;
        font-size:13px;
    }

    .tec-final-user-text strong{
        font-size:10px;
    }
}

/* Téléphone : utilisateur sous le bandeau */
@media(max-width:600px){
    .tec-final-header{
        overflow:visible;
    }

    .tec-final-user{
        position:relative;
        top:auto;
        right:auto;
        bottom:auto;
        width:100%;
        min-height:38px;
        justify-content:flex-end;
        padding:5px 12px;
        background:#07396d;
    }
}

/* ===== HEADER PLEINE LARGEUR RESPONSIVE ===== */
.tec-final-header{
    position:relative;
    width:100%;
    max-width:none;
    height:auto;
    margin:0;
    padding:0;
    overflow:hidden;
    background:#07396d;
}

.tec-final-banner{
    width:100%;
    height:auto;
    margin:0;
    padding:0;
}

.tec-final-banner img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    margin:0;
    padding:0;
}

/* ===== BANDEAU 100% LARGEUR ECRAN ===== */
.tec-final-header{
    width:100vw !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    left:0 !important;
    right:0 !important;
}

.tec-final-banner{
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
}

.tec-final-banner img{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
}

/* ===== CORRECTION DEBORDEMENT HORIZONTAL ===== */
html,
body{
    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
    overflow-x:hidden;
}

.tec-final-header{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    left:auto !important;
    right:auto !important;
    box-sizing:border-box;
}

.tec-final-banner{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden;
}

.tec-final-banner img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
}

/* ===== BANDEAU A 90% ===== */
.tec-final-banner{
    width:90% !important;
    max-width:90% !important;
    margin:0 auto !important;
}

.tec-final-banner img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-width:100% !important;
}

/* ===== BANDEAU FINAL 100% ===== */
.tec-final-banner{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
}

.tec-final-banner img{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
}

/* ===== ZONE UTILISATEUR OPAQUE ===== */
.tec-final-user{
    background:#0b477f !important;
    opacity:1 !important;
}

/* ===== UTILISATEUR COMPACT ===== */
.tec-final-user{
    width:105px !important;
    flex:0 0 105px !important;
    padding:0 6px !important;
    gap:5px !important;
    background:#0b477f !important;
}

.tec-final-user-icon{
    width:25px !important;
    height:25px !important;
    flex:0 0 25px !important;
    font-size:12px !important;
}

.tec-final-user-text strong{
    font-size:10px !important;
}

.tec-final-user-text span{
    font-size:8px !important;
    margin-top:2px !important;
}

/* ===== NAVIGATION TEC-CHANTIER ===== */
@media(min-width:901px){
    .topnav{
        display:flex !important;
        align-items:center !important;
        flex-wrap:nowrap !important;
        gap:6px !important;
        width:100% !important;
        margin:12px 0 18px !important;
    }

    .topnav a{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        min-height:40px !important;
        padding:8px 10px !important;
        border-radius:9px !important;
        font-size:13px !important;
        font-weight:700 !important;
        line-height:1.1 !important;
        white-space:nowrap !important;
        text-decoration:none !important;
        box-sizing:border-box !important;
    }

    .topnav a.active{
        background:#1688c8 !important;
        color:#fff !important;
    }

    .topnav a:last-child{
        margin-left:auto !important;
        background:#d9232e !important;
        color:#fff !important;
        border-color:#d9232e !important;
    }
}

/* ===== KPI PILOTAGE - 6 CARTES PC ===== */
@media(min-width:901px){
    .kpi-grid{
        display:grid !important;
        grid-template-columns:repeat(6, minmax(0,1fr)) !important;
        gap:10px !important;
        width:100% !important;
    }

    .kpi{
        min-width:0 !important;
        padding:16px !important;
        box-sizing:border-box !important;
    }

    .kpi strong{
        font-size:30px !important;
        line-height:1 !important;
    }

    .kpi span{
        display:block !important;
        margin-top:10px !important;
        white-space:nowrap !important;
    }
}

/* ===== FILTRES PILOTAGE ===== */
.filter-zone{
    padding:11px 12px !important;
    border:1px solid #dbe3ec !important;
    border-radius:12px !important;
    background:#fff !important;
}

.filter-line{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:7px !important;
}

.filter-line button{
    min-height:40px !important;
    padding:8px 13px !important;
    border:1px solid #d5dde7 !important;
    border-radius:8px !important;
    background:#fff !important;
    color:#102d50 !important;
    font-size:14px !important;
    font-weight:700 !important;
    line-height:1 !important;
    transition:.12s ease !important;
}

.filter-line button:hover{
    border-color:#1688c8 !important;
    background:#f4faff !important;
}

.filter-line button.active{
    background:#123f78 !important;
    border-color:#123f78 !important;
    color:#fff !important;
}

.filter-count{
    display:inline-block !important;
    margin-left:4px !important;
    opacity:.65 !important;
    font-weight:800 !important;
}

.filter-line button.active .filter-count{
    opacity:.8 !important;
}

#companyFilters{
    padding-top:8px !important;
    margin-top:2px !important;
    border-top:1px solid #edf1f5 !important;
}

@media(max-width:600px){
    .filter-zone{
        padding:9px !important;
    }

    .filter-line{
        gap:6px !important;
    }

    .filter-line button{
        min-height:36px !important;
        padding:7px 9px !important;
        font-size:12px !important;
    }
}

/* ===== LIGNES DOSSIERS - PILOTAGE ===== */

@media(min-width:901px){

    .jobs-list{
        gap:10px !important;
    }

    .job-line{
        grid-template-columns:
            145px
            minmax(210px,1.35fr)
            minmax(190px,1.05fr)
            minmax(170px,.9fr)
            minmax(175px,.95fr)
            minmax(170px,.95fr) !important;

        gap:14px !important;
        padding:15px 16px !important;
        border-radius:12px !important;
        border-top:1px solid #e0e7ef !important;
        border-right:1px solid #e0e7ef !important;
        border-bottom:1px solid #e0e7ef !important;
        background:#fff !important;
        box-shadow:0 2px 8px rgba(10,53,104,.04) !important;
    }

    .job-line:hover{
        transform:translateY(-1px) !important;
        box-shadow:0 5px 14px rgba(10,53,104,.10) !important;
    }

    .client-name{
        font-size:16px !important;
        font-weight:800 !important;
        color:#092f5c !important;
        line-height:1.2 !important;
    }

    .line-title{
        margin-bottom:4px !important;
        font-size:11px !important;
        font-weight:800 !important;
        text-transform:uppercase !important;
        letter-spacing:.25px !important;
        color:#77879a !important;
    }

    .line-value{
        font-size:13px !important;
        font-weight:750 !important;
        color:#102d50 !important;
        line-height:1.3 !important;
    }

    .sub{
        margin-top:3px !important;
        color:#69798a !important;
        font-size:12px !important;
        line-height:1.3 !important;
    }

    .status-mini{
        font-size:13px !important;
        font-weight:800 !important;
        color:#092f5c !important;
    }

    .hours{
        margin-top:5px !important;
        font-size:12px !important;
        font-weight:700 !important;
        color:#53677c !important;
    }

    .progress-mini{
        margin-top:7px !important;
        height:5px !important;
        border-radius:5px !important;
        overflow:hidden !important;
    }

    .type-badge{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        min-width:118px !important;
        min-height:32px !important;
        padding:5px 10px !important;
        border-radius:7px !important;
        font-size:11px !important;
        font-weight:800 !important;
        letter-spacing:.3px !important;
        box-sizing:border-box !important;
    }

    .plan-badge{
        display:inline-flex !important;
        align-items:center !important;
        min-height:30px !important;
        padding:5px 9px !important;
        border-radius:7px !important;
        font-size:12px !important;
        font-weight:800 !important;
    }
}

/* ===== HEADER COMPACT FICHE DOSSIER ===== */
.job-header{
    min-height:76px;
    padding:12px max(20px,calc((100% - 1200px)/2));
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    box-sizing:border-box;
    background:linear-gradient(100deg,#092f5c 0%,#0b477f 58%,#123f78 100%);
    color:#fff;
    border-bottom:4px solid #1688c8;
}

.job-header-brand{
    display:flex;
    align-items:center;
    gap:18px;
    min-width:0;
}

.job-header-app{
    font-size:25px;
    line-height:1;
    font-weight:850;
    white-space:nowrap;
}

.job-header-app span{
    color:#20a8e0;
}

.job-header-separator{
    width:1px;
    height:38px;
    background:rgba(255,255,255,.30);
}

.job-header-info{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.job-header-info strong{
    font-size:18px;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.job-header-info span{
    margin-top:4px;
    font-size:12px;
    opacity:.85;
}

.job-header-user{
    display:flex;
    align-items:center;
    gap:7px;
    flex:0 0 auto;
}

.job-header-user-icon{
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    font-size:13px;
}

.job-header-user strong,
.job-header-user span{
    display:block;
}

.job-header-user strong{
    font-size:11px;
}

.job-header-user span{
    margin-top:1px;
    font-size:9px;
    opacity:.85;
}

@media(max-width:600px){
    .job-header{
        min-height:64px;
        padding:9px 12px;
        gap:8px;
    }

    .job-header-brand{
        gap:9px;
        min-width:0;
    }

    .job-header-app{
        font-size:17px;
    }

    .job-header-separator{
        height:31px;
    }

    .job-header-info strong{
        font-size:14px;
    }

    .job-header-info span{
        font-size:10px;
    }

    .job-header-user{
        display:none;
    }
}

/* ===== ICONES NAVIGATION TEC-CHANTIER ===== */
.topnav a,
.topnav button{
    display:inline-flex !important;
    align-items:center !important;
    gap:7px !important;
}

.nav-icon{
    display:block !important;
    width:18px !important;
    height:18px !important;
    flex:0 0 18px !important;
    object-fit:contain !important;
}

.topnav button .nav-icon{
    width:18px !important;
    height:18px !important;
}

/* ===== INFORMATIONS DU DOSSIER ===== */

.job-info-card{
    position:relative;
    overflow:hidden;
    border:1px solid #dbe3ec !important;
    border-left:5px solid #1688c8 !important;
    background:#fff;
}

.section-title{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
    padding-bottom:14px;
    border-bottom:1px solid #e7edf3;
}

.section-title-icon{
    width:40px;
    height:40px;
    flex:0 0 40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#f0f8fd;
    border:1px solid #d9edf8;
}

.section-title-icon img{
    width:21px;
    height:21px;
    object-fit:contain;
}

.section-title h2{
    margin:0 !important;
    color:#092f5c;
    font-size:18px;
    line-height:1.2;
}

.section-title span{
    display:block;
    margin-top:3px;
    color:#77879a;
    font-size:12px;
    font-weight:550;
}

.job-info-card label{
    color:#38516b;
    font-size:12px;
    font-weight:800;
}

.job-info-card input,
.job-info-card select,
.job-info-card textarea{
    border-radius:9px;
    border-color:#d7e0e9;
    background:#fbfcfe;
}

.job-info-card input:hover,
.job-info-card select:hover,
.job-info-card textarea:hover{
    border-color:#b8c9d9;
}

.job-info-card input:focus,
.job-info-card select:focus,
.job-info-card textarea:focus{
    background:#fff;
}

.info-save-btn{
    width:auto !important;
    min-height:44px;
    justify-self:start;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 18px !important;
    border-radius:9px !important;
    font-size:12px !important;
    font-weight:850 !important;
    letter-spacing:.2px;
}

.info-save-icon{
    width:20px;
    height:20px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.18);
    font-size:12px;
}

@media(max-width:600px){
    .section-title{
        align-items:flex-start;
        margin-bottom:15px;
    }

    .section-title-icon{
        width:36px;
        height:36px;
        flex-basis:36px;
    }

    .section-title h2{
        font-size:16px;
    }

    .section-title span{
        font-size:11px;
    }

    .info-save-btn{
        width:100% !important;
    }
}


/* ===== CONTRAT DE MAINTENANCE ===== */

.maintenance-card{
    border:1px solid #dbe3ec !important;
    border-left:5px solid #16a34a !important;
    background:#fff;
    overflow:hidden;
}

.maintenance-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding-bottom:15px;
    margin-bottom:16px;
    border-bottom:1px solid #e7edf3;
}

.maintenance-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.maintenance-title-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#ecfdf3;
    border:1px solid #ccebd7;
}

.maintenance-title-icon img{
    width:22px;
    height:22px;
    object-fit:contain;
}

.maintenance-title h2{
    margin:0 !important;
    color:#092f5c;
    font-size:18px;
    line-height:1.2;
}

.maintenance-title span{
    display:block;
    margin-top:3px;
    color:#77879a;
    font-size:12px;
    font-weight:550;
}

/* Compteurs du contrat */

.maintenance-card .summary-grid{
    gap:10px !important;
}

.maintenance-card .summary-box{
    min-height:84px;
    padding:14px 15px !important;
    border:1px solid #dfe7ee;
    border-radius:10px;
    background:#f9fbfc;
}

.maintenance-card .summary-box span{
    color:#6d7f91;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.25px;
}

.maintenance-card .summary-box strong{
    display:block;
    margin-top:7px;
    color:#123f78;
    font-size:22px;
    line-height:1;
}

/* Zone des visites */

.maintenance-visits{
    margin-top:22px;
    padding-top:17px;
    border-top:1px solid #e7edf3;
}

.maintenance-visits-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:13px;
}

.maintenance-visits-icon{
    width:32px;
    height:32px;
    flex:0 0 32px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#ecfdf3;
    color:#15803d;
    font-size:20px;
    font-weight:800;
}

.maintenance-visits-title h3{
    margin:0 !important;
    color:#092f5c;
    font-size:16px;
}

.maintenance-visits-title div > span{
    display:block;
    margin-top:2px;
    color:#77879a;
    font-size:11px;
}

/* Mobile */

@media(max-width:600px){

    .maintenance-header{
        align-items:flex-start;
    }

    .maintenance-title-icon{
        width:36px;
        height:36px;
        flex-basis:36px;
    }

    .maintenance-title h2{
        font-size:16px;
    }

    .maintenance-title span{
        font-size:11px;
    }

    .maintenance-card .summary-box{
        min-height:72px;
    }

    .maintenance-card .summary-box strong{
        font-size:19px;
    }
}


/* ===== STRUCTURE FORMULAIRE MAINTENANCE ===== */

.maintenance-form-section{
    margin-top:20px;
    margin-bottom:15px;
    padding-top:16px;
    border-top:1px solid #e7edf3;
}

.maintenance-form-title{
    display:flex;
    align-items:center;
    gap:10px;
}

.maintenance-form-title > span{
    width:30px;
    height:30px;
    flex:0 0 30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#ecfdf3;
    color:#15803d;
    border:1px solid #ccebd7;
    font-size:11px;
    font-weight:900;
}

.maintenance-form-title strong{
    display:block;
    color:#092f5c;
    font-size:15px;
    line-height:1.2;
}

.maintenance-form-title small{
    display:block;
    margin-top:3px;
    color:#77879a;
    font-size:11px;
    font-weight:550;
}

.maintenance-preparation-title{
    margin-top:22px;
}

.maintenance-save-btn{
    width:auto !important;
    min-height:44px;
    margin-top:4px;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 18px !important;
    border-radius:9px !important;
    font-size:12px !important;
    font-weight:850 !important;
    letter-spacing:.2px;
}

@media(max-width:600px){
    .maintenance-form-section{
        margin-top:17px;
    }

    .maintenance-form-title{
        align-items:flex-start;
    }

    .maintenance-save-btn{
        width:100% !important;
    }
}


/* ===== PLANIFICATION DOSSIER ===== */

.planning-card{
    border:1px solid #dbe3ec !important;
    border-left:5px solid #1688c8 !important;
    background:#fff;
    overflow:hidden;
}

.planning-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding-bottom:15px;
    margin-bottom:16px;
    border-bottom:1px solid #e7edf3;
}

.planning-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.planning-title-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#eef8fd;
    border:1px solid #d5ebf7;
}

.planning-title-icon span{
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #1688c8;
    border-radius:6px;
    color:#1688c8;
    font-size:13px;
    font-weight:900;
}

.planning-title h2{
    margin:0 !important;
    color:#092f5c;
    font-size:18px;
    line-height:1.2;
}

.planning-title > div:last-child > span{
    display:block;
    margin-top:3px;
    color:#77879a;
    font-size:12px;
    font-weight:550;
}

.planning-card fieldset{
    margin:2px 0 0;
    padding:14px;
    border:1px solid #dfe7ee;
    border-radius:10px;
    background:#fbfcfe;
}

.planning-card fieldset legend{
    padding:0 7px;
    color:#092f5c;
    font-size:12px;
    font-weight:850;
}

.planning-card .check{
    border:1px solid #e2e8ef;
    background:#fff;
}

.planning-rule{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:12px 14px;
    border:1px solid #dbe8f2;
    border-radius:9px;
    background:#f5faff;
}

.planning-rule-icon{
    width:24px;
    height:24px;
    flex:0 0 24px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#1688c8;
    color:#fff;
    font-size:13px;
    font-weight:900;
}

.planning-rule strong{
    display:block;
    color:#123f78;
    font-size:12px;
}

.planning-rule .muted{
    margin-top:3px;
    font-size:11px;
    line-height:1.45;
}

.planning-save-btn{
    width:auto !important;
    min-height:44px;
    justify-self:start;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 18px !important;
    border-radius:9px !important;
    font-size:12px !important;
    font-weight:850 !important;
    letter-spacing:.2px;
}

@media(max-width:600px){

    .planning-header{
        align-items:flex-start;
    }

    .planning-title-icon{
        width:36px;
        height:36px;
        flex-basis:36px;
    }

    .planning-title h2{
        font-size:16px;
    }

    .planning-title > div:last-child > span{
        font-size:11px;
    }

    .planning-rule{
        padding:10px;
    }

    .planning-save-btn{
        width:100% !important;
    }
}


/* ===== EQUIPE / RENFORT ===== */

.team-card{
    border:1px solid #dbe3ec !important;
    border-left:5px solid #1688c8 !important;
    background:#fff;
    overflow:hidden;
}

.team-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding-bottom:14px;
    margin-bottom:14px;
    border-bottom:1px solid #e7edf3;
}

.team-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.team-title-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#eef8fd;
    border:1px solid #d5ebf7;
}

.team-title-icon img{
    width:22px;
    height:22px;
    object-fit:contain;
}

.team-title h2{
    margin:0 !important;
    color:#092f5c;
    font-size:18px;
    line-height:1.2;
}

.team-title span{
    display:block;
    margin-top:3px;
    color:#77879a;
    font-size:12px;
    font-weight:550;
}

.team-lead-badge{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:5px 10px;
    border-radius:999px;
    background:#eef8fd;
    border:1px solid #cfe7f5;
    color:#0b69a3;
    font-size:11px;
    font-weight:900;
    white-space:nowrap;
}

.team-info{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-bottom:14px;
    padding:11px 13px;
    border:1px solid #dbe8f2;
    border-radius:9px;
    background:#f5faff;
}

.team-info-icon{
    width:24px;
    height:24px;
    flex:0 0 24px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#1688c8;
    color:#fff;
    font-size:13px;
    font-weight:900;
}

.team-info strong{
    display:block;
    color:#123f78;
    font-size:12px;
}

.team-info span{
    display:block;
    margin-top:3px;
    color:#6c7f91;
    font-size:11px;
}

.team-card .check{
    border:1px solid #e2e8ef;
    background:#fff;
}

.team-card .check:has(input:checked){
    border-color:#9fd1eb;
    background:#f2faff;
}

.team-save-btn{
    width:auto !important;
    min-height:44px;
    justify-self:start;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 18px !important;
    border-radius:9px !important;
    font-size:12px !important;
    font-weight:850 !important;
    letter-spacing:.2px;
}

@media(max-width:600px){

    .team-header{
        align-items:flex-start;
    }

    .team-title-icon{
        width:36px;
        height:36px;
        flex-basis:36px;
    }

    .team-title h2{
        font-size:16px;
    }

    .team-title span{
        font-size:11px;
    }

    .team-lead-badge{
        font-size:9px;
        padding:4px 7px;
    }

    .team-save-btn{
        width:100% !important;
    }
}


/* ===== POINTAGE TEMPS CHANTIER / MAINTENANCE ===== */

.timer-card{
    border:1px solid #dbe3ec !important;
    border-left:5px solid #1688c8 !important;
    background:#fff;
    overflow:hidden;
}

.timer-card.timer-running{
    border-left-color:#f59e0b !important;
}

.timer-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding-bottom:14px;
    margin-bottom:14px;
    border-bottom:1px solid #e7edf3;
}

.timer-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.timer-title-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#eef8fd;
    border:1px solid #d5ebf7;
}

.timer-title-icon span{
    color:#1688c8;
    font-size:17px;
    font-weight:900;
}

.timer-running .timer-title-icon{
    background:#fff7ed;
    border-color:#fed7aa;
}

.timer-running .timer-title-icon span{
    color:#ea580c;
}

.timer-title h2{
    margin:0 !important;
    color:#092f5c;
    font-size:18px;
    line-height:1.2;
}

.timer-title > div:last-child > span{
    display:block;
    margin-top:3px;
    color:#77879a;
    font-size:12px;
    font-weight:550;
}

.timer-status{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:5px 10px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
}

.timer-status.stopped{
    color:#64748b;
    background:#f1f5f9;
    border:1px solid #dce3ea;
}

.timer-status.running{
    color:#b45309;
    background:#fff7ed;
    border:1px solid #fed7aa;
}

.timer-ready-info{
    margin-bottom:14px;
    padding:11px 13px;
    border:1px solid #dbe8f2;
    border-radius:9px;
    background:#f5faff;
    color:#63778a;
    font-size:12px;
}

.timer-running-info{
    display:flex;
    align-items:center;
    gap:11px;
    margin-bottom:14px;
    padding:12px 14px;
    border:1px solid #fed7aa;
    border-radius:9px;
    background:#fff7ed;
}

.timer-running-dot{
    width:10px;
    height:10px;
    flex:0 0 10px;
    border-radius:50%;
    background:#f97316;
    box-shadow:0 0 0 4px rgba(249,115,22,.12);
}

.timer-running-info strong{
    display:block;
    color:#9a3412;
    font-size:12px;
}

.timer-running-info span{
    display:block;
    margin-top:2px;
    color:#b45309;
    font-size:11px;
}

.timer-form{
    margin:0;
}

.timer-action-btn{
    min-height:48px !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:11px 20px !important;
    border-radius:9px !important;
    font-size:13px !important;
    font-weight:900 !important;
}

.timer-action-btn > span{
    font-size:13px;
}

.timer-start-btn{
    background:#123f78 !important;
}

.timer-stop-btn{
    background:#ea580c !important;
    border-color:#ea580c !important;
}

@media(max-width:600px){

    .timer-header{
        align-items:flex-start;
    }

    .timer-title-icon{
        width:36px;
        height:36px;
        flex-basis:36px;
    }

    .timer-title h2{
        font-size:16px;
    }

    .timer-title > div:last-child > span{
        font-size:11px;
    }

    .timer-action-btn{
        width:100% !important;
    }
}


/* ===== RETOUR DE JOURNEE / COMPTE RENDU ===== */

.daily-report-card{
    border:1px solid #dbe3ec !important;
    border-left:5px solid #1688c8 !important;
    background:#fff;
    overflow:hidden;
}

.daily-report-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding-bottom:14px;
    margin-bottom:16px;
    border-bottom:1px solid #e7edf3;
}

.daily-report-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.daily-report-title-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#eef8fd;
    border:1px solid #d5ebf7;
}

.daily-report-title-icon span{
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #1688c8;
    border-radius:50%;
    color:#1688c8;
    font-size:13px;
    font-weight:900;
}

.daily-report-title h2{
    margin:0 !important;
    color:#092f5c;
    font-size:18px;
    line-height:1.2;
}

.daily-report-title > div:last-child > span{
    display:block;
    margin-top:3px;
    color:#77879a;
    font-size:12px;
    font-weight:550;
}

.daily-report-badge{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:5px 10px;
    border-radius:999px;
    background:#eef8fd;
    border:1px solid #cfe7f5;
    color:#0b69a3;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
}

.daily-report-form label{
    color:#38516b;
    font-size:12px;
    font-weight:800;
}

.daily-report-form select,
.daily-report-form textarea{
    border-radius:9px;
    border-color:#d7e0e9;
    background:#fbfcfe;
}

.daily-report-form select:focus,
.daily-report-form textarea:focus{
    background:#fff;
}

.daily-report-save-btn{
    width:auto !important;
    min-height:44px;
    justify-self:start;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 18px !important;
    border-radius:9px !important;
    font-size:12px !important;
    font-weight:850 !important;
    letter-spacing:.2px;
}

@media(max-width:600px){

    .daily-report-header{
        align-items:flex-start;
    }

    .daily-report-title-icon{
        width:36px;
        height:36px;
        flex-basis:36px;
    }

    .daily-report-title h2{
        font-size:16px;
    }

    .daily-report-title > div:last-child > span{
        font-size:11px;
    }

    .daily-report-badge{
        font-size:9px;
        padding:4px 7px;
    }

    .daily-report-save-btn{
        width:100% !important;
    }
}


/* ===== SIGNALEMENT TERRAIN ===== */

.incident-card{
    border:1px solid #dbe3ec !important;
    border-left:5px solid #f59e0b !important;
    background:#fff;
    overflow:hidden;
}

.incident-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding-bottom:14px;
    margin-bottom:14px;
    border-bottom:1px solid #e7edf3;
}

.incident-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.incident-title-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#ea580c;
    font-size:22px;
    font-weight:900;
}

.incident-title h2{
    margin:0 !important;
    color:#092f5c;
    font-size:18px;
    line-height:1.2;
}

.incident-title span{
    display:block;
    margin-top:3px;
    color:#77879a;
    font-size:12px;
    font-weight:550;
}

.incident-badge{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:5px 10px;
    border-radius:999px;
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#c2410c;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
}

.incident-info{
    margin-bottom:14px;
    padding:11px 13px;
    border:1px solid #fed7aa;
    border-radius:9px;
    background:#fffaf3;
    color:#9a5b22;
    font-size:12px;
    line-height:1.45;
}

.incident-form label{
    color:#38516b;
    font-size:12px;
    font-weight:800;
}

.incident-form select,
.incident-form textarea{
    border-radius:9px;
    border-color:#e2d8cc;
    background:#fffdfb;
}

.incident-form select:focus,
.incident-form textarea:focus{
    background:#fff;
    border-color:#f59e0b;
    box-shadow:0 0 0 3px rgba(245,158,11,.10);
}

.incident-submit-btn{
    width:auto !important;
    min-height:44px;
    justify-self:start;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 18px !important;
    border-radius:9px !important;
    font-size:12px !important;
    font-weight:900 !important;
}

.incident-submit-icon{
    width:20px;
    height:20px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.20);
    font-weight:900;
}

@media(max-width:600px){

    .incident-header{
        align-items:flex-start;
    }

    .incident-title-icon{
        width:36px;
        height:36px;
        flex-basis:36px;
    }

    .incident-title h2{
        font-size:16px;
    }

    .incident-title span{
        font-size:11px;
    }

    .incident-badge{
        font-size:9px;
        padding:4px 7px;
    }

    .incident-submit-btn{
        width:100% !important;
    }
}


/* ===== ACTIONS RAPIDES TERRAIN ===== */

.terrain-actions{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px !important;
    margin-top:14px;
}

.terrain-actions > a,
.terrain-actions > form{
    min-width:0;
    margin:0 !important;
}

.terrain-actions > form{
    display:flex;
}

.terrain-photo-btn,
.terrain-finish-btn{
    width:100% !important;
    min-height:64px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:11px !important;
    padding:11px 16px !important;
    border-radius:11px !important;
    box-sizing:border-box !important;
    text-decoration:none !important;
    text-align:left !important;
}

.terrain-photo-btn{
    background:#eef8fd !important;
    border:1px solid #cfe7f5 !important;
    color:#123f78 !important;
}

.terrain-photo-btn:hover{
    background:#e5f5fc !important;
    border-color:#9fd1eb !important;
}

.terrain-action-icon{
    width:25px;
    height:25px;
    flex:0 0 25px;
    object-fit:contain;
}

.terrain-photo-btn > span,
.terrain-finish-btn > span:last-child{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.terrain-photo-btn strong,
.terrain-finish-btn strong{
    font-size:12px;
    font-weight:900;
    line-height:1.2;
}

.terrain-photo-btn small{
    margin-top:3px;
    color:#6d8194;
    font-size:10px;
    font-weight:600;
}

.terrain-finish-btn{
    background:#2f8f3a !important;
    border:1px solid #2f8f3a !important;
    color:#fff !important;
}

.terrain-finish-btn:hover{
    background:#287c32 !important;
    border-color:#287c32 !important;
}

.terrain-finish-icon{
    width:28px;
    height:28px;
    flex:0 0 28px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.16);
    color:#fff;
    font-size:16px;
    font-weight:900;
}

.terrain-finish-btn small{
    margin-top:3px;
    color:rgba(255,255,255,.80);
    font-size:10px;
    font-weight:600;
}

@media(max-width:600px){

    .terrain-actions{
        grid-template-columns:1fr !important;
        gap:8px !important;
    }

    .terrain-photo-btn,
    .terrain-finish-btn{
        min-height:58px !important;
    }
}


/* ===== TEMPS REALISES ===== */

.time-entries-card{
    border:1px solid #dbe3ec !important;
    border-left:5px solid #1688c8 !important;
    background:#fff;
    overflow:hidden;
}

.time-entries-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding-bottom:14px;
    margin-bottom:15px;
    border-bottom:1px solid #e7edf3;
}

.time-entries-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.time-entries-title-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#eef8fd;
    border:1px solid #d5ebf7;
    color:#1688c8;
    font-size:23px;
    font-weight:900;
}

.time-entries-title h2{
    margin:0 !important;
    color:#092f5c;
    font-size:18px;
    line-height:1.2;
}

.time-entries-title span{
    display:block;
    margin-top:3px;
    color:#77879a;
    font-size:12px;
    font-weight:550;
}

.time-entries-badge{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:5px 10px;
    border-radius:999px;
    background:#eef8fd;
    border:1px solid #cfe7f5;
    color:#0b69a3;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
}

.time-table-wrap{
    width:100%;
    overflow-x:auto;
    border:1px solid #e0e7ef;
    border-radius:10px;
}

.time-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.time-table thead{
    background:#f6f9fc;
}

.time-table th{
    padding:10px 9px !important;
    color:#60758a;
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.25px;
    white-space:nowrap;
}

.time-table td{
    padding:10px 9px !important;
    color:#263f58;
    font-size:12px;
    vertical-align:top;
}

.time-entry-row{
    border-top:1px solid #e7edf3;
}

.time-entry-row:hover{
    background:#fbfdff;
}

.time-state{
    display:inline-flex;
    align-items:center;
    min-height:25px;
    padding:4px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
}

.time-state-saved{
    color:#166534;
    background:#ecfdf3;
    border:1px solid #ccebd7;
}

.time-state-corrected{
    color:#1d4ed8;
    background:#eff6ff;
    border:1px solid #bfdbfe;
}

.time-state-open{
    color:#b45309;
    background:#fff7ed;
    border:1px solid #fed7aa;
}

.time-lunch-alert{
    margin-top:6px;
    color:#b45309;
    font-size:11px;
    font-weight:800;
}

.time-correct-link{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:4px 9px;
    cursor:pointer;
    border:1px solid #cfe0ee;
    border-radius:7px;
    background:#f5faff;
    color:#0b477f;
    font-size:11px;
    font-weight:850;
}

.time-correct-link:hover{
    background:#eaf6fc;
}

.time-correct-save{
    min-height:40px !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:8px 13px !important;
    border-radius:8px !important;
    font-size:11px !important;
    font-weight:850 !important;
}

.time-total{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-top:14px;
    padding:13px 15px;
    border:1px solid #dbe8f2;
    border-radius:10px;
    background:#f5faff;
}

.time-total-label{
    color:#60758a;
    font-size:10px;
    font-weight:900;
    letter-spacing:.35px;
}

.time-total > strong{
    color:#123f78;
    font-size:20px;
    white-space:nowrap;
}

@media(max-width:600px){

    .time-entries-header{
        align-items:flex-start;
    }

    .time-entries-title-icon{
        width:36px;
        height:36px;
        flex-basis:36px;
    }

    .time-entries-title h2{
        font-size:16px;
    }

    .time-entries-title span{
        font-size:11px;
    }

    .time-entries-badge{
        font-size:9px;
        padding:4px 7px;
    }

    .time-table{
        min-width:720px;
    }

    .time-total{
        align-items:flex-start;
        flex-direction:column;
        gap:5px;
    }
}


/* ===== HISTORIQUES DOSSIER ===== */

.history-card{
    border:1px solid #dbe3ec !important;
    border-left:5px solid #1688c8 !important;
    background:#fff;
}

.history-maintenance-card{
    border-left-color:#2f9147 !important;
}

.history-sav-card{
    border-left-color:#1688c8 !important;
}

.history-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding-bottom:14px;
    margin-bottom:15px;
    border-bottom:1px solid #e7edf3;
}

.history-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.history-title-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#eef8fd;
    border:1px solid #d5ebf7;
    color:#1688c8;
    font-size:21px;
    font-weight:900;
}

.history-maintenance-card .history-title-icon{
    background:#eff9f1;
    border-color:#d4ead9;
    color:#2f9147;
}

.history-title h2{
    margin:0 !important;
    color:#092f5c;
    font-size:18px;
    line-height:1.2;
}

.history-title span{
    display:block;
    margin-top:3px;
    color:#77879a;
    font-size:12px;
}

.history-badge{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:5px 10px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
}

.history-badge-sav,
.history-badge-chantier{
    color:#0b69a3;
    background:#eef8fd;
    border:1px solid #cfe7f5;
}

.history-badge-maintenance{
    color:#24743a;
    background:#eff9f1;
    border:1px solid #cfe8d4;
}

.history-timeline,
.history-card .timeline{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.history-item{
    margin:0 !important;
    padding:13px 15px !important;
    border:1px solid #e4eaf0 !important;
    border-left:4px solid #1688c8 !important;
    border-radius:9px !important;
    background:#f8fafc !important;
    box-shadow:none !important;
}

.history-maintenance-card .history-item{
    border-left-color:#2f9147 !important;
}

.history-item-sav{
    border-left-color:#1688c8 !important;
}

.history-item-office{
    border-left-color:#e39a16 !important;
    background:#fffaf1 !important;
}

.history-item-alert{
    border-left-color:#e07b19 !important;
    background:#fff9f2 !important;
}

.history-meta{
    margin-bottom:6px !important;
    color:#708399 !important;
    font-size:11px !important;
    line-height:1.35;
}

.history-step{
    display:inline-block;
    color:#0b69a3;
    font-weight:900;
}

.history-step-office{
    color:#b66a09;
}

.history-event-title{
    display:block;
    color:#0b315d;
    font-size:14px;
    line-height:1.35;
}

.history-alert-title{
    color:#a8510b;
}

.history-report-heading{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:5px;
}

.history-report-heading .history-event-title{
    display:inline-block;
}

.history-result{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:3px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
}

.history-result-ok{
    color:#166534;
    background:#ecfdf3;
    border:1px solid #ccebd7;
}

.history-result-alert{
    color:#b45309;
    background:#fff7ed;
    border:1px solid #fed7aa;
}

.history-result-follow{
    color:#1d4ed8;
    background:#eff6ff;
    border:1px solid #bfdbfe;
}

.history-result-progress{
    color:#0b69a3;
    background:#eef8fd;
    border:1px solid #cfe7f5;
}

.history-item > div:not(.meta):not(.history-report-heading){
    margin-top:4px;
    color:#334e68;
    font-size:12px;
    line-height:1.5;
}

@media(max-width:600px){

    .history-header{
        align-items:flex-start;
    }

    .history-title-icon{
        width:36px;
        height:36px;
        flex-basis:36px;
    }

    .history-title h2{
        font-size:16px;
    }

    .history-title span{
        font-size:11px;
    }

    .history-badge{
        font-size:9px;
        padding:4px 7px;
    }

    .history-item{
        padding:11px 12px !important;
    }
}


/* ===== SYNTHESE HAUTE DOSSIER ===== */

.job-summary-card{
    border:1px solid #dbe3ec !important;
    border-left:5px solid #1688c8 !important;
    background:#fff;
}

.job-summary-maintenance{
    border-left-color:#2f9147 !important;
}

.job-summary-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    padding-bottom:15px;
    margin-bottom:16px;
    border-bottom:1px solid #e5ebf1;
}

.job-summary-client{
    min-width:0;
}

.job-summary-type{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:3px 8px;
    margin-bottom:7px;
    border-radius:999px;
    color:#0b69a3;
    background:#eef8fd;
    border:1px solid #cfe7f5;
    font-size:9px;
    font-weight:900;
    letter-spacing:.35px;
}

.job-summary-maintenance .job-summary-type{
    color:#24743a;
    background:#eff9f1;
    border-color:#cfe8d4;
}

.job-summary-client h1{
    margin:0 !important;
    color:#082f5b;
    font-size:28px;
    line-height:1.1;
}

.job-summary-site{
    margin-top:5px;
    color:#718399;
    font-size:13px;
}

.job-summary-status{
    margin-top:2px;
    white-space:nowrap;
}

.job-summary-grid{
    gap:10px !important;
}

.job-summary-box{
    padding:13px 14px !important;
    border:1px solid #e5ebf1;
    border-radius:10px !important;
    background:#f7f9fc !important;
}

.job-summary-box span{
    display:block;
    margin-bottom:5px;
    color:#74869a !important;
    font-size:11px !important;
}

.job-summary-box strong{
    display:block;
    color:#082f5b !important;
    font-size:15px !important;
    line-height:1.25;
}

.job-summary-maintenance .job-summary-box{
    background:#f8fbf8 !important;
}

.job-summary-progress{
    height:9px !important;
    margin:15px 0 13px !important;
    border-radius:999px !important;
    background:#e7edf3 !important;
    overflow:hidden;
}

.job-summary-progress i{
    display:block;
    height:100%;
    border-radius:999px;
}

.job-summary-kpis{
    gap:10px !important;
}

.job-summary-kpis > div{
    padding:12px 10px !important;
    border:1px solid #e5ebf1;
    border-radius:10px !important;
    background:#f7f9fc !important;
}

.job-summary-kpis strong{
    color:#082f5b !important;
    font-size:20px !important;
}

.job-summary-kpis span{
    margin-top:4px;
    color:#74869a !important;
    font-size:10px !important;
    font-weight:700;
}

.job-summary-team{
    display:flex !important;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    margin-top:14px !important;
    padding-top:12px;
    border-top:1px solid #e7edf3;
}

.job-summary-team > b{
    color:#082f5b;
    font-size:12px;
}

.job-summary-team > span{
    display:inline-flex;
    align-items:center;
    min-height:27px;
    padding:4px 9px !important;
    margin:0 !important;
    border:1px solid #d9e6f0;
    border-radius:999px !important;
    background:#f2f7fb !important;
    color:#244968;
    font-size:11px !important;
}

.job-summary-maintenance .job-summary-team > span{
    border-color:#d6e9da;
    background:#f1f8f2 !important;
    color:#28653a;
}

@media(max-width:600px){

    .job-summary-head{
        gap:12px;
    }

    .job-summary-client h1{
        font-size:23px;
    }

    .job-summary-status{
        font-size:9px !important;
    }

    .job-summary-grid{
        grid-template-columns:1fr 1fr !important;
    }

    .job-summary-grid-maintenance{
        grid-template-columns:1fr 1fr !important;
    }

    .job-summary-box{
        padding:11px !important;
    }

    .job-summary-box strong{
        font-size:13px !important;
    }

    .job-summary-kpis{
        grid-template-columns:repeat(3,1fr) !important;
    }

    .job-summary-kpis strong{
        font-size:17px !important;
    }
}


/* ===== CONTROLE BUREAU ===== */

.office-control-card{
    border:1px solid #dbe3ec !important;
    border-left:5px solid #94a3b8 !important;
    background:#fff;
}

.office-control-action{
    border-left-color:#ed8a12 !important;
}

.office-control-done{
    border-left-color:#2f9147 !important;
}

.office-control-return{
    border-left-color:#1688c8 !important;
}

.office-control-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding-bottom:14px;
    margin-bottom:15px;
    border-bottom:1px solid #e7edf3;
}

.office-control-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.office-control-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#f1f5f9;
    border:1px solid #dce4ec;
    color:#64748b;
    font-size:21px;
    font-weight:900;
}

.office-control-action .office-control-icon{
    background:#fff7ed;
    border-color:#fed7aa;
    color:#d97706;
}

.office-control-done .office-control-icon{
    background:#eff9f1;
    border-color:#d4ead9;
    color:#2f9147;
}

.office-control-return .office-control-icon{
    background:#eef8fd;
    border-color:#d5ebf7;
    color:#1688c8;
}

.office-control-title h2{
    margin:0 !important;
    color:#092f5c;
    font-size:18px;
    line-height:1.2;
}

.office-control-title span{
    display:block;
    margin-top:3px;
    color:#77879a;
    font-size:12px;
}

.office-control-badge{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:5px 10px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
}

.office-control-badge-action{
    color:#b45309;
    background:#fff7ed;
    border:1px solid #fed7aa;
}

.office-control-badge-return{
    color:#0b69a3;
    background:#eef8fd;
    border:1px solid #cfe7f5;
}

.office-control-badge-done{
    color:#24743a;
    background:#eff9f1;
    border:1px solid #cfe8d4;
}

.office-control-badge-wait{
    color:#64748b;
    background:#f1f5f9;
    border:1px solid #dce4ec;
}

.office-control-message{
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-bottom:14px;
    padding:12px 14px;
    border:1px solid #e1e8ef;
    border-radius:9px;
    background:#f8fafc;
}

.office-control-message strong{
    color:#123f78;
    font-size:13px;
}

.office-control-message span{
    color:#65788c;
    font-size:12px;
    line-height:1.45;
}

.office-control-action .office-control-message{
    background:#fffaf3;
    border-color:#f6dfbf;
}

.office-control-done .office-control-message{
    background:#f5fbf6;
    border-color:#d9eadc;
}

.office-control-btn{
    width:100%;
    min-height:54px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:11px !important;
    padding:10px 14px !important;
    border-radius:9px !important;
    background:#0d477f !important;
    text-decoration:none !important;
}

.office-control-btn-icon{
    width:30px;
    height:30px;
    flex:0 0 30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-weight:900;
}

.office-control-btn > span:last-child{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
}

.office-control-btn strong{
    color:#fff;
    font-size:12px;
}

.office-control-btn small{
    color:#d8e8f7;
    font-size:10px;
    font-weight:500;
}

.office-control-secondary{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-height:39px;
    font-size:11px !important;
    font-weight:850 !important;
}

@media(max-width:600px){

    .office-control-header{
        align-items:flex-start;
    }

    .office-control-icon{
        width:36px;
        height:36px;
        flex-basis:36px;
    }

    .office-control-title h2{
        font-size:16px;
    }

    .office-control-title span{
        font-size:11px;
    }

    .office-control-badge{
        font-size:9px;
        padding:4px 7px;
    }
}

