
body.toplevel_page_studio-crm-core #wpcontent{padding-left:0;background:#f7f1e8}
.scrm-app{display:flex;min-height:calc(100vh - 32px);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#2f2d2a}
.scrm-sidebar{width:245px;background:#eadfce;padding:30px 20px;flex-shrink:0}.scrm-logo{font-size:28px;font-weight:900;color:#9b7645;margin-bottom:35px}.scrm-logo small{font-size:13px;color:#7b7369}
.scrm-sidebar nav{display:flex;flex-direction:column;gap:8px}.scrm-sidebar a{padding:14px 16px;border-radius:16px;text-decoration:none;color:#4d453b;font-weight:800}.scrm-sidebar a.active,.scrm-sidebar a:hover{background:#fff;color:#9b7645}
.scrm-main{flex:1;padding:38px}.scrm-topbar{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:28px}.scrm-topbar h1{font-size:40px;margin:0}.scrm-topbar p,.muted{color:#7b7369}
.scrm-btn{border:0;background:#fff;color:#3b332c;padding:12px 18px;border-radius:15px;font-weight:900;text-decoration:none;cursor:pointer;box-shadow:0 8px 22px rgba(60,40,20,.05);display:inline-flex;align-items:center;justify-content:center}.scrm-btn.gold{background:#bd9358;color:#fff}.scrm-btn.danger,.scrm-card.danger{background:#fff5f5;color:#951b1b}.scrm-inline-btn{display:inline-block;background:#faf7f2;color:#9b7645;padding:8px 12px;border-radius:12px;text-decoration:none;font-weight:800}
.scrm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.scrm-grid{display:grid;gap:24px;margin-bottom:24px}.scrm-grid.two{grid-template-columns:1fr 1fr}
.scrm-card{background:#fff;border-radius:28px;padding:28px;box-shadow:0 10px 30px rgba(55,37,20,.045);text-decoration:none;color:inherit}.stat h2{font-size:42px;color:#a77d45;margin:0}.stat p{margin:4px 0 0}
.scrm-form{display:flex;flex-direction:column;gap:12px}.scrm-form label{font-weight:850;color:#5f554b}.scrm-form input,.scrm-form select,.scrm-form textarea,.scrm-search input{border:1px solid #eadfce;border-radius:15px;padding:13px 14px;background:#faf7f2;box-sizing:border-box;width:100%}.scrm-form textarea{min-height:90px}
.scrm-search{display:flex;gap:12px;margin-bottom:18px}.scrm-search input{flex:1}
.scrm-table{width:100%;border-collapse:collapse}.scrm-table th,.scrm-table td{text-align:left;padding:13px;border-bottom:1px solid #eee3d4}
.scrm-event{display:block;background:#faf7f2;border:1px solid #f0e8dc;border-radius:18px;padding:15px;margin-bottom:12px;text-decoration:none;color:inherit}.scrm-event strong,.scrm-event span,.scrm-event em{display:block}.scrm-event span,.scrm-event em{color:#81776b}
.scrm-tasks{list-style:none;padding:0;margin:0}.scrm-tasks li{display:flex;gap:14px;align-items:flex-start;border-bottom:1px solid #eee3d4;padding:14px 0}.task-check{width:32px;height:32px;border-radius:50%;border:1px solid #d5c5b0;background:#faf7f2;color:#a77d45;font-weight:900;cursor:pointer}.scrm-tasks strong,.scrm-tasks span,.scrm-tasks small{display:block}.scrm-tasks span,.scrm-tasks small{color:#81776b}
.scrm-modal{display:none;position:fixed;inset:0;z-index:99999;background:rgba(30,22,15,.42);align-items:center;justify-content:center;padding:20px}.scrm-modal.open{display:flex}.scrm-modal-content{background:#fff;border-radius:28px;padding:28px;width:min(720px,100%);max-height:90vh;overflow:auto;position:relative}.scrm-modal-content.small{width:min(480px,100%)}.modal-close{position:absolute;right:16px;top:14px;border:0;border-radius:50%;width:36px;height:36px;font-size:24px;cursor:pointer;background:#faf7f2}
#scrm-toast{position:fixed;right:24px;bottom:24px;background:#2f2d2a;color:white;padding:14px 18px;border-radius:14px;display:none;z-index:100000}#scrm-toast.show{display:block}
@media(max-width:1000px){.scrm-app{flex-direction:column}.scrm-sidebar{width:auto}.scrm-grid.two,.scrm-stats{grid-template-columns:1fr}.scrm-topbar{flex-direction:column}}

.scrm-pipeline{display:flex;gap:16px;overflow-x:auto;padding-bottom:12px}
.scrm-column{min-width:250px;background:#faf7f2;border-radius:22px;padding:16px;min-height:220px}
.scrm-column h3{margin:0 0 14px;color:#6f604f}
.scrm-column.drag-over{outline:2px dashed #bd9358}
.scrm-project-card{background:#fff;border-radius:16px;padding:14px;margin-bottom:10px;box-shadow:0 6px 16px rgba(50,35,20,.04);cursor:grab}
.scrm-project-card a{text-decoration:none;color:inherit}.scrm-project-card strong,.scrm-project-card span{display:block}.scrm-project-card span{color:#81776b;margin-top:4px}
.family-row,.workflow-step{background:#faf7f2;border:1px solid #f0e8dc;border-radius:18px;padding:14px;margin-bottom:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.scrm-actions-inline{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.scrm-workflow-layout{display:grid;grid-template-columns:280px 1fr;gap:22px}
.scrm-workflow-list{background:#fff;border-radius:24px;padding:16px;box-shadow:0 10px 30px rgba(55,37,20,.045)}
.scrm-workflow-list a{display:block;text-decoration:none;color:inherit;padding:14px;border-radius:16px;border-bottom:1px solid #eee3d4}
.scrm-workflow-list a.active,.scrm-workflow-list a:hover{background:#faf7f2}
.scrm-workflow-list strong,.scrm-workflow-list span{display:block}.scrm-workflow-list span{color:#81776b;font-size:13px}
.scrm-delete-form{margin-top:18px}
@media(max-width:1000px){.scrm-workflow-layout{grid-template-columns:1fr}.family-row,.workflow-step{grid-template-columns:1fr}}

.quote-line,.free-line,.discount-line{background:#faf7f2;border:1px solid #f0e8dc;border-radius:18px;padding:14px;margin-bottom:12px;display:grid;grid-template-columns:1.2fr 1.4fr .5fr .7fr auto;gap:10px;align-items:center}
.quote-estimate{background:#eadfce;border-radius:18px;padding:18px;font-size:20px;font-weight:900;color:#6f4e25}
.quote-document{background:#fff;border-radius:28px;padding:42px;max-width:900px;margin:auto;box-shadow:0 10px 30px rgba(55,37,20,.045)}
.quote-header{display:flex;justify-content:space-between;gap:30px;border-bottom:1px solid #eadfce;padding-bottom:22px;margin-bottom:24px}
.quote-total{text-align:right;font-size:30px;font-weight:900;color:#9b7645;margin-top:24px}
.inline-form{display:inline-flex}
@media print{.scrm-sidebar,.no-print,#wpadminbar,#adminmenumain{display:none!important}body.toplevel_page_studio-crm-core #wpcontent{margin-left:0!important}.scrm-main{padding:0}.quote-document{box-shadow:none;border-radius:0}}
@media(max-width:1000px){.quote-line,.free-line,.discount-line{grid-template-columns:1fr}}


/* V1.2.2 réglages dynamiques */
.settings-form{gap:26px}
.settings-repeater{background:#faf7f2;border:1px solid #f0e8dc;border-radius:22px;padding:20px}
.settings-repeater h3{margin:0 0 14px;font-size:22px;color:#5f554b}
.settings-repeater-rows{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.settings-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.settings-row input{background:#fff!important}
@media(max-width:700px){.settings-row{grid-template-columns:1fr}}

#scrm-toast.error{background:#9b1c1c!important}
button:disabled{opacity:.55;cursor:wait}

.inline-form{display:inline-flex!important;align-items:center;gap:8px}
.scrm-actions-inline{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}

.scrm-saved-flash{animation:scrmSavedFlash .8s ease}
@keyframes scrmSavedFlash{0%{box-shadow:0 0 0 0 rgba(189,147,88,.45)}100%{box-shadow:0 0 0 14px rgba(189,147,88,0)}}


/* V1.2.7 — Famille compacte */
.family-compact-list{display:flex;flex-direction:column;gap:10px}
.family-compact-row{background:#faf7f2;border:1px solid #f0e8dc;border-radius:18px;padding:14px}
.family-summary{display:flex;align-items:center;justify-content:space-between;gap:14px}
.family-summary strong,.family-summary span,.family-summary em{display:block}
.family-summary span{color:#81776b;margin-top:3px}
.family-summary em{color:#6f604f;margin-top:5px;font-style:normal;font-size:13px}
.family-edit-toggle{border:0;background:#fff;border-radius:12px;width:38px;height:38px;cursor:pointer;box-shadow:0 6px 16px rgba(50,35,20,.04)}
.family-edit-fields{display:none;margin-top:14px;grid-template-columns:1fr 1fr;gap:10px}
.family-compact-row.editing .family-edit-fields{display:grid}
.family-compact-row.editing{background:#fffdf9}
.family-actions{margin-top:16px}
.family-empty{margin:0}
@media(max-width:800px){.family-edit-fields{grid-template-columns:1fr}}


/* V1.2.8 — fiche projet compacte */
.project-compact-card{display:flex;flex-direction:column;gap:18px}
.project-compact-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.project-compact-header h4{margin:0;font-size:22px;color:#2f2d2a}
.project-compact-header p{margin:5px 0 0;color:#81776b}
.minimal-edit{border:1px solid #eadfce;background:#fff;border-radius:999px;width:34px;height:34px;line-height:1;cursor:pointer;color:#9b7645;font-size:15px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(50,35,20,.05)}
.minimal-edit:hover{background:#faf7f2;transform:translateY(-1px)}
.project-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project-info-grid div{background:#faf7f2;border:1px solid #f0e8dc;border-radius:16px;padding:13px 15px}
.project-info-grid span,.project-notes-read span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#9b8f82;font-weight:900;margin-bottom:5px}
.project-info-grid strong{display:block;font-size:16px;color:#2f2d2a}
.project-notes-read{background:#fffdf9;border-left:3px solid #bd9358;border-radius:12px;padding:12px 14px}
.project-notes-read p{margin:0;color:#4d453b;line-height:1.45}
.project-mini-flags{display:flex;gap:8px;flex-wrap:wrap}
.project-mini-flags span{background:#f0e8dc;color:#81776b;border-radius:999px;padding:6px 11px;font-size:12px;font-weight:900}
.project-mini-flags span.active{background:#bd9358;color:#fff}
.project-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project-edit-grid:has(> div:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
.project-toggle-row{display:flex;gap:18px;align-items:center;background:#faf7f2;border:1px solid #f0e8dc;border-radius:16px;padding:12px 14px}
.project-toggle-row label{margin:0!important;display:flex;align-items:center;gap:8px}
@media(max-width:800px){
    .project-info-grid,.project-edit-grid,.project-edit-grid:has(> div:nth-child(3)){grid-template-columns:1fr}
}


/* V1.2.9 ProjectClean */
.project-edit-form.hidden{display:none!important}
.project-mini-flags,.project-toggle-row{display:none!important}
.project-read-view{display:block}


/* V1.3.0 minimal edit icons */
.family-edit-toggle,
.minimal-edit{
    border:1px solid #eadfce;
    background:#fff;
    border-radius:999px;
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#9b7645;
    font-size:13px;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(50,35,20,.04);
}

.family-edit-toggle:hover,
.minimal-edit:hover{
    background:#faf7f2;
}

.scrm-delete-product{
    color:#b3261e;
    background:#fff5f5;
    border:1px solid #ffd7d7;
    border-radius:10px;
    padding:6px 10px;
    cursor:pointer;
    font-size:12px;
    font-weight:700;
}

.element-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.document-preview{background:#faf7f2;border:1px solid #f0e8dc;border-radius:18px;padding:22px;white-space:pre-wrap;line-height:1.55}
button.scrm-event{width:100%;text-align:left;border:0;cursor:pointer}
@media(max-width:800px){.element-choice-grid{grid-template-columns:1fr}}


/* V1.4.1 fixes */
.scrm-pipeline{
    display:flex!important;
    flex-direction:column!important;
    gap:18px!important;
    overflow:visible!important;
}
.scrm-column{
    width:100%!important;
    min-width:0!important;
    min-height:auto!important;
    box-sizing:border-box;
}
.scrm-column .scrm-project-card{
    max-width:100%;
}
.scrm-tasks li.overdue{
    background:#fff3f1;
    border-left:4px solid #c94b3f;
    padding-left:12px;
    border-radius:12px;
}
.scrm-tasks li.overdue small{
    color:#a7352d;
    font-weight:800;
}
.element-choice-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.scrm-section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:16px;
}
button.scrm-event{
    width:100%;
    text-align:left;
    border:0;
    cursor:pointer;
}
@media(max-width:800px){
    .element-choice-grid{grid-template-columns:1fr}
    .scrm-section-head{flex-direction:column;align-items:flex-start}
}


/* V1.4.2 templates inline */
.template-detail{
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:18px;
    padding:14px 16px;
    margin:12px 0;
}
.template-detail summary{
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    font-weight:800;
}
.template-detail summary span{
    color:#9b7645;
    font-size:13px;
}
.template-detail form{
    margin-top:16px;
}
.workflow-step select{
    border:1px solid #eadfce;
    border-radius:15px;
    padding:13px 14px;
    background:#fff;
    width:100%;
    box-sizing:border-box;
}


/* V1.4.3 task edit + document button fix */
.editable-tasks li{
    position:relative;
}
.editable-tasks .task-edit-toggle{
    margin-left:auto;
    flex-shrink:0;
}
.task-edit-form{
    width:100%;
    margin-top:12px;
    background:#fffdf9;
    border:1px solid #f0e8dc;
    border-radius:16px;
    padding:14px;
}
.task-edit-form.hidden{
    display:none!important;
}
.task-edit-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}
.element-choice-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
@media(max-width:800px){
    .task-edit-grid,.element-choice-grid{grid-template-columns:1fr}
}


/* V1.4.4 client card + quote fixes */
.project-client-card{display:flex;flex-direction:column;gap:16px}
.project-client-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.project-client-head h4{font-size:22px;margin:0}
.project-client-head span{display:block;color:#81776b;margin-top:4px}
.client-info-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.client-info-item{background:#faf7f2;border:1px solid #f0e8dc;border-radius:16px;padding:13px 15px}
.client-info-item span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#9b8f82;font-weight:900;margin-bottom:5px}
.client-info-item strong{display:block;font-size:15px;color:#2f2d2a;line-height:1.4}
.whatsapp-link{background:#e7f8ed;color:#167a3a}
.quote-line,.free-line,.discount-line{
    display:grid!important;
    grid-template-columns:1.2fr 1.4fr .55fr .8fr auto!important;
    gap:10px!important;
    align-items:center!important;
}
.discount-line{
    grid-template-columns:.9fr 1.4fr .55fr .8fr auto!important;
}
.quote-line > *, .free-line > *, .discount-line > *{
    min-width:0;
}
.template-detail{
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:18px;
    padding:14px 16px;
    margin:12px 0;
}
.template-detail summary{
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    font-weight:800;
}
.document-preview{background:#faf7f2;border:1px solid #f0e8dc;border-radius:18px;padding:22px;white-space:pre-wrap;line-height:1.55}
.element-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:900px){
    .client-info-list,.element-choice-grid{grid-template-columns:1fr}
    .quote-line,.free-line,.discount-line,.discount-line{grid-template-columns:1fr!important}
}


/* V1.4.5 JS fixes */
.quote-line,.free-line,.discount-line{
    display:grid!important;
    grid-template-columns:minmax(220px,1.2fr) minmax(220px,1.4fr) 90px 130px auto!important;
    gap:12px!important;
    align-items:center!important;
}
.quote-line select,
.quote-line input,
.free-line input,
.discount-line input,
.discount-line select{
    width:100%!important;
    box-sizing:border-box!important;
}
.quote-line .remove-row,
.free-line .remove-row,
.discount-line .remove-row{
    white-space:nowrap!important;
}
.task-edit-form.hidden{display:none!important}
@media(max-width:900px){
    .quote-line,.free-line,.discount-line{grid-template-columns:1fr!important}
}


/* V1.4.6 hardfix devis */
.quote-line,.free-line,.discount-line{
    display:grid!important;
    grid-template-columns:240px 1fr 90px 130px 120px!important;
    gap:12px!important;
    align-items:center!important;
    padding:14px!important;
}
.quote-line button.remove-row,
.free-line button.remove-row,
.discount-line button.remove-row{
    width:auto!important;
    min-width:110px!important;
    height:54px!important;
    align-self:center!important;
    justify-self:end!important;
    margin:0!important;
    box-shadow:none!important;
}
.quote-line select,.quote-line input,
.free-line input,
.discount-line select,.discount-line input{
    height:54px!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
@media(max-width:900px){
    .quote-line,.free-line,.discount-line{grid-template-columns:1fr!important}
    .quote-line button.remove-row,.free-line button.remove-row,.discount-line button.remove-row{justify-self:start!important}
}


/* V1.4.7 stable quote rows */
.quote-stable-lines{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
.quote-stable-line{
    display:grid;
    grid-template-columns:150px 240px minmax(180px,1fr) 90px 140px 110px;
    gap:10px;
    align-items:center;
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:18px;
    padding:14px;
}
.quote-stable-line input,
.quote-stable-line select{
    width:100%!important;
    min-width:0!important;
    height:48px!important;
    box-sizing:border-box!important;
}
.quote-stable-line button{
    height:48px!important;
    white-space:nowrap;
}
.quote-mini-preview{
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:18px;
    padding:18px;
}
.print-only{display:none}
@media print{
    .print-only{display:block}
}
@media(max-width:1100px){
    .quote-stable-line{grid-template-columns:1fr}
}


/* V1.4.8 quote modal stable + delete cross */
.quote-modal-stable{
    max-width:1150px!important;
}
.quote-create-stable .quote-stable-line,
.quote-edit-stable .quote-stable-line{
    display:grid!important;
    grid-template-columns:150px 240px minmax(220px,1fr) 90px 150px 120px!important;
    gap:10px!important;
    align-items:center!important;
    background:#faf7f2!important;
    border:1px solid #f0e8dc!important;
    border-radius:18px!important;
    padding:14px!important;
}
.quote-stable-line input,
.quote-stable-line select{
    width:100%!important;
    min-width:0!important;
    height:48px!important;
    box-sizing:border-box!important;
}
.quote-stable-line .remove-stable-line{
    height:48px!important;
    white-space:nowrap!important;
    margin:0!important;
    box-shadow:none!important;
}
.scrm-doc-item{
    position:relative;
    margin-bottom:12px;
}
.scrm-doc-item .scrm-event{
    padding-left:46px!important;
}
.doc-delete-x{
    position:absolute;
    top:12px;
    left:12px;
    z-index:3;
    width:26px;
    height:26px;
    border-radius:999px;
    border:1px solid #f0c9c9;
    background:#fff4f4;
    color:#9b1c1c;
    font-weight:900;
    line-height:1;
    cursor:pointer;
}
.doc-delete-x:hover{
    background:#ffdede;
}
@media(max-width:1100px){
    .quote-create-stable .quote-stable-line,
    .quote-edit-stable .quote-stable-line{
        grid-template-columns:1fr!important;
    }
}


/* V1.4.9 — devis/facture : layout propre dans la fenêtre */
#quoteModal .scrm-modal-content,
#quoteModal .quote-modal-stable{
    width:min(1180px, calc(100vw - 56px))!important;
    max-width:min(1180px, calc(100vw - 56px))!important;
    max-height:calc(100vh - 56px)!important;
    overflow:auto!important;
    box-sizing:border-box!important;
}

#quoteModal .quote-stable-lines{
    width:100%!important;
    overflow:visible!important;
}

#quoteModal .quote-stable-line{
    display:grid!important;
    grid-template-columns:minmax(120px,.8fr) minmax(180px,1.25fr) minmax(220px,1.6fr) 86px 132px 104px!important;
    gap:10px!important;
    align-items:center!important;
    width:100%!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}

#quoteModal .quote-stable-line input,
#quoteModal .quote-stable-line select{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:46px!important;
    box-sizing:border-box!important;
    font-size:15px!important;
}

#quoteModal .quote-stable-line .remove-stable-line{
    width:100%!important;
    min-width:0!important;
    max-width:104px!important;
    height:46px!important;
    padding:0 10px!important;
    margin:0!important;
    box-shadow:none!important;
    font-size:13px!important;
    white-space:nowrap!important;
    justify-self:end!important;
}

@media(max-width:1050px){
    #quoteModal .quote-stable-line{
        grid-template-columns:1fr 1fr!important;
    }
    #quoteModal .quote-stable-line .remove-stable-line{
        max-width:none!important;
        justify-self:stretch!important;
    }
}

@media(max-width:650px){
    #quoteModal .quote-stable-line{
        grid-template-columns:1fr!important;
    }
}


/* V1.4.10 — devis propre, lisible, sans débordement */
#quoteModal .scrm-modal-content,
#quoteModal .quote-modal-stable{
    width:min(1120px, calc(100vw - 64px))!important;
    max-width:min(1120px, calc(100vw - 64px))!important;
    max-height:calc(100vh - 64px)!important;
    overflow:auto!important;
    box-sizing:border-box!important;
}

#quoteModal .quote-stable-lines{
    display:flex!important;
    flex-direction:column!important;
    gap:14px!important;
    width:100%!important;
}

#quoteModal .quote-stable-line,
.quote-edit-stable .quote-stable-line{
    display:grid!important;
    grid-template-columns:130px 220px minmax(240px,1fr) 80px 130px 105px!important;
    gap:10px!important;
    align-items:center!important;
    width:100%!important;
    box-sizing:border-box!important;
    overflow:visible!important;
    padding:12px!important;
    min-height:76px!important;
    border-radius:18px!important;
}

#quoteModal .quote-stable-line input,
#quoteModal .quote-stable-line select,
.quote-edit-stable .quote-stable-line input,
.quote-edit-stable .quote-stable-line select{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:52px!important;
    min-height:52px!important;
    box-sizing:border-box!important;
    font-size:15px!important;
    line-height:1.25!important;
    padding:0 14px!important;
    overflow:visible!important;
}

#quoteModal .quote-stable-line select,
.quote-edit-stable .quote-stable-line select{
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
}

#quoteModal .quote-stable-line .remove-stable-line,
.quote-edit-stable .quote-stable-line .remove-stable-line{
    width:100%!important;
    max-width:105px!important;
    height:52px!important;
    min-height:52px!important;
    padding:0 8px!important;
    margin:0!important;
    box-shadow:none!important;
    font-size:13px!important;
    white-space:nowrap!important;
    justify-self:end!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}

@media(max-width:1050px){
    #quoteModal .quote-stable-line,
    .quote-edit-stable .quote-stable-line{
        grid-template-columns:1fr 1fr!important;
        min-height:auto!important;
    }
    #quoteModal .quote-stable-line .remove-stable-line,
    .quote-edit-stable .quote-stable-line .remove-stable-line{
        max-width:none!important;
        justify-self:stretch!important;
    }
}

@media(max-width:650px){
    #quoteModal .quote-stable-line,
    .quote-edit-stable .quote-stable-line{
        grid-template-columns:1fr!important;
    }
}


/* V1.4.11 quote calc polish */
#quoteModal .quote-estimate,
.quote-edit-stable .quote-estimate{
    position:sticky;
    bottom:0;
    z-index:5;
    border:1px solid #d9c4a7;
}
.quote-stable-line .line-type-select{
    font-weight:800;
}


/* V1.4.12 document UX */
.scrm-doc-item{
    position:relative;
    margin-bottom:12px;
}
.scrm-doc-item .scrm-event{
    padding-right:92px!important;
    padding-left:18px!important;
}
.doc-delete-x{
    position:absolute!important;
    top:10px!important;
    right:10px!important;
    left:auto!important;
    z-index:4;
    width:26px;
    height:26px;
    border-radius:999px;
    border:1px solid #f0c9c9;
    background:#fff4f4;
    color:#9b1c1c;
    font-weight:900;
    line-height:1;
    cursor:pointer;
}
.doc-delete-x:hover{
    background:#ffdede;
}
.doc-quick-actions{
    position:absolute;
    top:42px;
    right:10px;
    z-index:4;
    display:flex;
    gap:6px;
}
.doc-quick-actions .minimal-edit{
    width:26px!important;
    height:26px!important;
    font-size:12px!important;
    text-decoration:none!important;
}
.quote-danger-zone{
    margin-top:24px;
}
.scrm-grid:not(.two){
    grid-template-columns:1fr;
}


/* V1.4.13 document actions aligned */
.scrm-doc-item{
    position:relative;
}
.scrm-doc-item .scrm-event{
    padding-right:132px!important;
}
.doc-delete-x{
    top:12px!important;
    right:12px!important;
    left:auto!important;
}
.doc-quick-actions{
    position:absolute!important;
    top:12px!important;
    right:44px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:6px!important;
    z-index:4!important;
}
.doc-quick-actions .minimal-edit{
    width:26px!important;
    height:26px!important;
    font-size:12px!important;
    line-height:1!important;
}


/* V1.5.0 studio settings */
.studio-settings-card{
    margin-bottom:24px;
}
.studio-settings-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
@media(max-width:800px){
    .studio-settings-grid{
        grid-template-columns:1fr;
    }
}


/* V1.5.2 settings studio layout */
.studio-settings-card{
    margin:0 0 28px 0!important;
}
.studio-settings-card h3{
    margin-bottom:4px!important;
}
.studio-settings-form{
    margin-top:16px!important;
}
.studio-settings-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:18px!important;
    align-items:start!important;
}
.studio-settings-grid > div{
    min-width:0!important;
}
.studio-settings-grid textarea{
    min-height:92px!important;
}
@media(max-width:900px){
    .studio-settings-grid{
        grid-template-columns:1fr!important;
    }
}

/* V1.5.2 Google Maps link */
.maps-link{
    color:inherit!important;
    text-decoration:none!important;
    border-bottom:1px dashed #bd9358;
}
.maps-link:hover{
    color:#9b7645!important;
}

/* V1.5.2 quote status colors */
.scrm-doc-item.doc-status-validated .scrm-event{
    background:#eef8ef!important;
    border:1px solid #b8dfbe!important;
}
.scrm-doc-item.doc-status-validated .scrm-event span{
    color:#247a35!important;
}
.scrm-doc-item.doc-status-refused .scrm-event{
    background:#f2f2f2!important;
    border:1px solid #dedede!important;
    opacity:.78;
}
.scrm-doc-item.doc-status-refused .scrm-event span{
    color:#777!important;
}
.scrm-doc-item.doc-status-sent .scrm-event{
    background:#eef5ff!important;
    border:1px solid #bed7ff!important;
}
.scrm-doc-item.doc-status-sent .scrm-event span{
    color:#2e67b1!important;
}


/* V1.5.3 total estimate stability */
#quoteEstimate{
    font-variant-numeric: tabular-nums;
}


/* V1.5.4 total display */
#quoteEstimate{
    font-variant-numeric: tabular-nums;
}


/* V1.6.0 Project timeline */
.timeline-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:18px;
}
.timeline-item{
    display:grid;
    grid-template-columns:34px 1fr;
    gap:12px;
    align-items:flex-start;
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:16px;
    padding:12px;
}
.timeline-icon{
    width:30px;
    height:30px;
    border-radius:999px;
    background:#fff;
    border:1px solid #eadfce;
    color:#9b7645;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}
.timeline-content strong{
    display:block;
    color:#2f2d2a;
}
.timeline-content span{
    display:block;
    color:#81776b;
    font-size:13px;
    margin-top:2px;
}
.timeline-content p{
    margin:8px 0 0;
    color:#4d453b;
    line-height:1.45;
}
.timeline-note-form{
    border-top:1px solid #f0e8dc;
    padding-top:16px;
}


/* V1.6.1 timeline logging fixes */
.timeline-item .timeline-content strong{
    word-break:break-word;
}


/* V1.7.0 communications */
.comm-template-grid{
    display:grid;
    grid-template-columns:1fr 220px;
    gap:14px;
}
.comm-template-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:12px;
    align-items:end;
}
.comm-preview{
    margin-top:16px;
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:18px;
    padding:16px;
}
.comm-preview-head{
    margin-bottom:12px;
    color:#9b7645;
}
.comm-preview textarea[readonly],
.comm-preview input[readonly]{
    background:#fff;
}
.comm-template-detail textarea{
    min-height:150px;
}
@media(max-width:800px){
    .comm-template-grid,
    .comm-template-row{
        grid-template-columns:1fr;
    }
}


/* V1.7.1 communication modal */
.comm-action-card{
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:18px;
    padding:16px;
}
.comm-client-hint{
    margin:12px 0 0!important;
}
.comm-send-modal{
    max-width:720px!important;
}
.smtp-settings-card{
    margin-top:22px;
}


/* V1.7.2 communication via client buttons */
.comm-action-card{
    display:none!important;
}
.project-client-card .open-comm-modal{
    border:0;
    cursor:pointer;
}


/* V1.7.3 cleaner modal close */
.comm-send-modal .modal-close{
    position:absolute;
    top:18px;
    right:18px;
    width:42px;
    height:42px;
    border-radius:999px;
    border:1px solid #eee4d6;
    background:#fff;
    color:#4a4036;
    font-size:28px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.18s ease;
    box-shadow:none;
}

.comm-send-modal .modal-close:hover{
    background:#f7f1e7;
    transform:scale(1.04);
}


/* V1.7.6 LightBlue-ish email template layout */
.lb-template-layout{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:24px;
    align-items:start;
}
.lb-template-sidebar{
    background:#fff;
    border-radius:24px;
    padding:18px;
    box-shadow:0 18px 42px rgba(60,45,25,.07);
    position:sticky;
    top:24px;
}
.lb-sidebar-title{
    font-weight:900;
    color:#4d453b;
    margin:0 0 12px;
}
.lb-template-item{
    display:block;
    text-decoration:none;
    color:#2f2d2a;
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:16px;
    padding:14px 16px;
    margin-bottom:10px;
    transition:.18s ease;
}
.lb-template-item:hover{
    transform:translateY(-1px);
    background:#fff;
}
.lb-template-item.active{
    background:#eaf0ff;
    border-color:#c8d5f6;
}
.lb-template-item strong{
    display:block;
    font-size:15px;
}
.lb-template-item span{
    display:block;
    margin-top:4px;
    color:#8b7f72;
    font-size:12px;
    font-weight:800;
}
.lb-editor-card{
    min-height:620px;
}
.lb-editor-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    margin-bottom:18px;
}
.lb-template-form textarea{
    min-height:310px;
    font-family:inherit;
    line-height:1.5;
}
.smtp-test-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:12px;
    align-items:end;
    margin:18px 0;
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:18px;
    padding:14px;
}
@media(max-width:980px){
    .lb-template-layout{
        grid-template-columns:1fr;
    }
    .lb-template-sidebar{
        position:relative;
        top:0;
    }
    .lb-editor-head,
    .smtp-test-row{
        grid-template-columns:1fr;
        flex-direction:column;
    }
}


/* V1.7.7 document send + compact scrollable timeline + SMTP toggle */
.doc-send{border:1px solid #eadfce!important;background:#fff!important;cursor:pointer!important}
.timeline-list{max-height:470px;overflow:auto;padding-right:6px}
.timeline-item{grid-template-columns:30px 1fr!important;padding:10px!important}
.timeline-icon{width:26px!important;height:26px!important;font-size:12px!important}
.timeline-content p{display:none;margin-top:10px!important;background:#fff;border:1px solid #f0e8dc;border-radius:12px;padding:10px;max-height:180px;overflow:auto}
.timeline-item:hover .timeline-content p,.timeline-item:focus-within .timeline-content p{display:block}
.timeline-content strong{font-size:14px!important}
.timeline-content span{font-size:12px!important}
.smtp-toggle-line{display:flex!important;align-items:center;gap:10px;background:#faf7f2;border:1px solid #f0e8dc;border-radius:16px;padding:14px 16px;margin:14px 0;font-weight:900}
.smtp-toggle-line input{width:auto!important}
.smtp-fields{transition:.18s ease}


/* V1.7.8 fluid navigation polish */
.lb-template-item{
    cursor:pointer;
}
.lb-template-editor{
    transition:opacity .16s ease, transform .16s ease;
}
.lb-template-form input,
.lb-template-form textarea,
.lb-template-form select{
    transition:border-color .16s ease, background .16s ease;
}
.fluid-detail{
    transition:.18s ease;
}
.fluid-detail[open]{
    background:#fff;
    border-color:#d9c4a7;
    box-shadow:0 12px 28px rgba(60,45,25,.06);
}
.workflow-item.active,
.workflow-card.active,
[data-workflow-id].active{
    background:#eaf0ff!important;
    border-color:#c8d5f6!important;
}


/* V1.7.9 fluid workflows + document templates */
.template-tabs{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin:-70px 0 40px;
}
.document-template-layout .lb-template-sidebar,
.workflow-fluid-layout .lb-template-sidebar{
    max-height:calc(100vh - 160px);
    overflow:auto;
}
.lb-document-template-form textarea,
.workflow-fluid-form textarea{
    min-height:420px;
    font-family:inherit;
    line-height:1.5;
}
.workflow-fluid-item,
.lb-template-item[data-doc-template-id]{
    cursor:pointer;
}
@media(max-width:980px){
    .template-tabs{
        margin:0 0 20px;
        justify-content:flex-start;
        flex-wrap:wrap;
    }
}


/* V1.8.0 workflow structured rows + template button polish */
.workflow-steps-builder{
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:18px;
    padding:14px;
    margin:12px 0 18px;
}
.workflow-row{
    display:grid;
    grid-template-columns:180px 1fr 130px 42px;
    gap:10px;
    align-items:center;
    margin-bottom:10px;
}
.workflow-row-head{
    font-size:12px;
    font-weight:900;
    color:#8b7f72;
    text-transform:uppercase;
    letter-spacing:.06em;
    padding:0 4px;
}
.workflow-step-row input{
    height:46px!important;
    margin:0!important;
}
.remove-workflow-row{
    width:42px!important;
    height:42px!important;
    border-radius:999px!important;
    padding:0!important;
    font-size:18px!important;
}
.lb-editor-head{
    align-items:flex-start!important;
}
.lb-editor-head .scrm-actions-inline{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:10px!important;
    flex-wrap:wrap!important;
}
.template-tabs{
    align-items:center!important;
}
@media(max-width:900px){
    .workflow-row{
        grid-template-columns:1fr;
    }
    .workflow-row-head{
        display:none;
    }
}


/* V1.8.1 workflow + template polish */
.template-tabs{
    margin:0 0 24px!important;
    justify-content:flex-start!important;
    position:relative!important;
    z-index:1!important;
}
.template-tabs .scrm-btn{
    min-width:170px;
    text-align:center;
}
.lb-editor-head.workflow-editor-head{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
}
.workflow-editor-head .danger{
    white-space:nowrap;
}
.default-workflow-settings-card textarea{
    min-height:280px;
    font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size:14px;
    line-height:1.45;
}
.lb-editor-head .scrm-actions-inline{
    margin-left:auto;
}
.lb-editor-head .scrm-actions-inline .scrm-btn{
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
@media(max-width:900px){
    .lb-editor-head.workflow-editor-head{
        flex-direction:column;
    }
}


/* V1.8.2 workflow action feedback */
#addDefaultWorkflowsBtn:disabled,
#deleteWorkflowBtn:disabled{
    opacity:.55;
    cursor:wait!important;
}


/* V1.8.3 workflow buttons */
#addDefaultWorkflowsBtn[disabled],
#deleteWorkflowBtn[disabled]{
    opacity:.55;
    cursor:wait!important;
}


/* V1.8.4 workflow hard reset */
#addDefaultWorkflowsBtn[disabled],
#deleteWorkflowBtn[disabled]{
    opacity:.55!important;
    cursor:wait!important;
}


/* V1.8.5 workflow repair button */
#repairWorkflowsSchemaBtn{
    margin-left:10px;
}


/* V1.8.6 template hub */
.template-hub-tabs{
    margin:0 0 24px!important;
    justify-content:flex-start!important;
    flex-wrap:wrap;
}
.template-hub-panel > .scrm-topbar{
    display:none!important;
}
.template-hub-panel .template-tabs{
    display:none!important;
}
.template-hub-panel .lb-template-layout{
    margin-top:0!important;
}


/* V1.8.7 project task buttons */
[data-project-task-action]{
    cursor:pointer!important;
}
.two-cols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
@media(max-width:700px){
    .two-cols{grid-template-columns:1fr;}
}


/* V1.8.8 project buttons */
[data-project-task-action]{
    cursor:pointer!important;
}


/* V1.8.9 project task toolbar clickable fix */
.scrm-project-task-toolbar{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:12px!important;
    align-items:center!important;
    position:relative!important;
    z-index:50!important;
    pointer-events:auto!important;
    margin:16px 0!important;
}
.scrm-project-task-toolbar .project-action-btn,
[data-project-task-action]{
    pointer-events:auto!important;
    position:relative!important;
    z-index:51!important;
    cursor:pointer!important;
    user-select:none!important;
}
.scrm-old-task-button-hidden{
    display:none!important;
}
.scrm-project-task-toolbar .danger{
    margin-top:0!important;
}


/* V1.9.0 no duplicate toolbar */
.scrm-project-task-toolbar + .scrm-project-task-toolbar{
    display:none!important;
}
.scrm-old-task-button-hidden{
    display:none!important;
}


/* V1.9.1 hard hide duplicate task buttons */
.scrm-old-task-button-hidden{
    display:none!important;
}
[data-project-task-action]{
    pointer-events:auto!important;
    cursor:pointer!important;
    position:relative!important;
    z-index:20!important;
}


/* V1.9.2 workflow select */
#projectWorkflowModal select[name="workflow_id"] option{
    font-weight:700;
}


/* V1.9.3 — hide intrusive fixed version labels inside Studio CRM only */
body.toplevel_page_studio-crm-core .update-nag,
body.toplevel_page_studio-crm-core #wpfooter,
body.toplevel_page_studio-crm-core .wp-version,
body.toplevel_page_studio-crm-core .version,
body.toplevel_page_studio-crm-core [class*="version"]:not(.scrm-keep-version),
body.toplevel_page_studio-crm-core [id*="version"]:not(.scrm-keep-version){
    pointer-events:none;
}

/* Keep normal CRM content safe, but push WP/footer version behind modals/cards */
body.toplevel_page_studio-crm-core #wpfooter{
    display:none!important;
}

/* If a theme/plugin injects a loose fixed "Version x.x.x" element */
body.toplevel_page_studio-crm-core .scrm-hide-fixed-version{
    display:none!important;
}

/* Make CRM modals definitely above all admin overlays */
body.toplevel_page_studio-crm-core .scrm-modal{
    z-index:999999!important;
}
body.toplevel_page_studio-crm-core .scrm-modal-content{
    z-index:1000000!important;
}
body.toplevel_page_studio-crm-core #scrm-toast{
    z-index:1000001!important;
}


/* V1.10.0 unified project creation */
.unified-project-modal{
    max-width:1120px!important;
}
.unified-grid{
    display:grid;
    grid-template-columns:380px 1fr;
    gap:22px;
    align-items:start;
}
.unified-panel{
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:20px;
    padding:18px;
}
.unified-panel h3{
    margin-top:0!important;
}
.client-mode-row{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin:10px 0 14px;
}
.client-mode-row label,
.scrm-checkline{
    display:flex!important;
    align-items:center;
    gap:8px;
    font-weight:800;
}
.client-mode-row input,
.scrm-checkline input{
    width:auto!important;
}
.datetime-picker-row{
    display:grid;
    grid-template-columns:1fr 140px;
    gap:10px;
}
.time-shortcuts{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:8px 0 14px;
}
.time-shortcuts button{
    border:1px solid #eadfce;
    background:#fff;
    border-radius:999px;
    padding:7px 11px;
    cursor:pointer;
    font-weight:800;
}
.time-shortcuts button:hover{
    background:#f4eadb;
}
.participant-line{
    display:grid;
    grid-template-columns:1fr 160px 42px;
    gap:8px;
    align-items:center;
    margin-bottom:8px;
}
.remove-participant-line{
    width:42px;
    height:42px;
    border-radius:999px;
    border:1px solid #f0c9c9;
    background:#fff4f4;
    color:#9b1c1c;
    cursor:pointer;
    font-weight:900;
}
.contact-participants-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.contact-participant-pill{
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:16px;
    padding:10px 13px;
    min-width:190px;
}
.contact-participant-pill strong,
.contact-participant-pill span,
.contact-participant-pill small{
    display:block;
}
.contact-participant-pill span{
    color:#81776b;
    font-size:13px;
}
.contact-participant-pill small{
    margin-top:4px;
    color:#6e6256;
}
@media(max-width:980px){
    .unified-grid{
        grid-template-columns:1fr;
    }
    .datetime-picker-row,
    .participant-line{
        grid-template-columns:1fr;
    }
}


/* V1.10.1 button differentiation */
.btn-new-client::before{content:"＋ ";font-weight:900}
.btn-create-project::before{content:"📁 ";font-size:.95em}
.btn-new-project::before{content:"✦ ";font-weight:900}
.btn-new-client{
    background:#b99058!important;
}
.btn-create-project{
    background:#9f7a42!important;
}
.btn-new-project{
    background:#c69b5a!important;
}
.btn-new-client,
.btn-create-project,
.btn-new-project{
    color:#fff!important;
}

/* V1.10.1 interactive time picker */
.interactive-time-input{
    cursor:pointer!important;
    background:#fffdf9!important;
}
.time-picker-modal{
    max-width:560px!important;
}
.time-picker-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}
.time-picker-hours,
.time-picker-minutes{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
}
.time-picker-hours button,
.time-picker-minutes button{
    border:1px solid #eadfce;
    background:#fff;
    border-radius:14px;
    padding:12px 8px;
    cursor:pointer;
    font-weight:900;
}
.time-picker-hours button.active,
.time-picker-minutes button.active{
    background:#b99058;
    color:#fff;
    border-color:#b99058;
}
.time-picker-preview{
    text-align:center;
    font-size:42px;
    font-weight:900;
    margin:22px 0 16px;
}
.participant-role-select{
    min-width:150px;
}
@media(max-width:700px){
    .time-picker-grid{
        grid-template-columns:1fr;
    }
}


/* V1.10.2 hard visual patch */
.btn-new-client::before{content:"＋ ";font-weight:900}
.btn-create-project::before{content:"📁 ";font-size:.95em}
.btn-new-project::before{content:"✦ ";font-weight:900}
.btn-new-client{background:#b99058!important;color:#fff!important}
.btn-create-project{background:#8f6c3a!important;color:#fff!important}
.btn-new-project{background:#c69b5a!important;color:#fff!important}
.interactive-time-input{cursor:pointer!important;background:#fffdf9!important}
.time-picker-modal{max-width:560px!important}
.time-picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.time-picker-hours,.time-picker-minutes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.time-picker-hours button,.time-picker-minutes button{border:1px solid #eadfce;background:#fff;border-radius:14px;padding:12px 8px;cursor:pointer;font-weight:900}
.time-picker-hours button.active,.time-picker-minutes button.active{background:#b99058;color:#fff;border-color:#b99058}
.time-picker-preview{text-align:center;font-size:42px;font-weight:900;margin:22px 0 16px}
.participant-role-select{min-width:150px}
.contact-participants-list{display:flex;flex-wrap:wrap;gap:10px}
.contact-participant-pill{background:#faf7f2;border:1px solid #f0e8dc;border-radius:16px;padding:10px 13px;min-width:190px}
.contact-participant-pill strong,.contact-participant-pill span,.contact-participant-pill small{display:block}
@media(max-width:700px){.time-picker-grid{grid-template-columns:1fr}}


/* V1.10.3 dashboard buttons */
.dashboard-action-row-v1103{
    display:flex!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:16px!important;
    flex-wrap:wrap!important;
    margin:18px 0 28px!important;
}
.dashboard-action-row-v1103 .scrm-btn,
.dashboard-action-row-v1103 button,
.dashboard-action-row-v1103 a{
    margin:0!important;
}
.dashboard-btn-light,
.btn-new-client-clean{
    background:#eadcc7!important;
    color:#5a4630!important;
    border:1px solid #dfc9aa!important;
    box-shadow:0 14px 28px rgba(90,70,48,.10)!important;
}
.dashboard-btn-gold,
.btn-create-project-clean{
    background:#9f7435!important;
    color:#fff!important;
    border:1px solid #9f7435!important;
    box-shadow:0 14px 28px rgba(90,70,48,.18)!important;
}
.dashboard-btn-light .btn-icon,
.dashboard-btn-gold .btn-icon{
    display:inline-block;
    margin-right:8px;
}
.dashboard-action-row-v1103 .btn-new-client::before,
.dashboard-action-row-v1103 .btn-create-project::before{
    content:none!important;
}


/* V1.10.4 project icon + participant fallback display */
.clean-project-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:22px;
    height:22px;
    border-radius:999px;
    background:rgba(255,255,255,.22);
    margin-right:8px;
    font-size:18px;
    line-height:1;
}
.v1104-project-participants-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:10px;
    margin:12px 0 18px;
}
.v1104-participant-card{
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:16px;
    padding:12px 14px;
}
.v1104-participant-card strong,
.v1104-participant-card span,
.v1104-participant-card small{
    display:block;
}
.v1104-participant-card span{
    color:#7b7064;
    font-weight:800;
    margin-top:3px;
}


/* V1.10.7 remove old participant fallback output */
.v1105-participants-rendered,
.v1105-participant-grid,
.v1104-project-participants-list{
    display:none!important;
}


/* V1.11.14 agenda clean */
.agenda-server-controls{
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:16px!important;
    flex-wrap:wrap!important;
}
.agenda-server-tabs,
.agenda-server-nav{
    display:flex!important;
    gap:10px!important;
    align-items:center!important;
    flex-wrap:wrap!important;
}
.agenda-server-tab{
    display:inline-flex!important;
    padding:10px 18px!important;
    border-radius:999px!important;
    border:1px solid #eadfce!important;
    background:#fff!important;
    color:#2f2a24!important;
    text-decoration:none!important;
    font-weight:900!important;
}
.agenda-server-tab.active{
    background:#9f7435!important;
    border-color:#9f7435!important;
    color:#fff!important;
}
.agenda-server-nav strong{
    min-width:220px;
    text-align:center;
}
.agenda-server-week-grid{
    display:grid!important;
    grid-template-columns:repeat(7,minmax(150px,1fr))!important;
    gap:10px!important;
    min-height:520px!important;
}
.agenda-server-day{
    background:#faf7f2!important;
    border:1px solid #f0e8dc!important;
    border-radius:18px!important;
    overflow:hidden!important;
    min-height:480px!important;
}
.agenda-server-day-head{
    display:flex!important;
    justify-content:space-between!important;
    padding:12px 14px!important;
    background:#fff!important;
    border-bottom:1px solid #f0e8dc!important;
}
.agenda-server-day-body{
    display:grid!important;
    gap:8px!important;
    padding:10px!important;
}
.agenda-server-empty{
    color:#a59a8c!important;
    font-size:13px!important;
    padding:8px!important;
}
.agenda-server-event{
    display:block!important;
    text-decoration:none!important;
    color:#2f2a24!important;
    border-radius:14px!important;
    padding:10px!important;
    border:1px solid #eadfce!important;
    background:#fff!important;
    border-left:5px solid #9f7435!important;
}
.agenda-server-event strong,
.agenda-server-event span,
.agenda-server-event small{
    display:block!important;
}
.agenda-server-event span,
.agenda-server-event small{
    color:#756a5e!important;
    font-size:12px!important;
    margin-top:3px!important;
}
.agenda-server-month-grid{
    display:grid!important;
    grid-template-columns:repeat(7,minmax(120px,1fr))!important;
    gap:8px!important;
}
.agenda-server-month-cell{
    min-height:120px!important;
    background:#faf7f2!important;
    border:1px solid #f0e8dc!important;
    border-radius:14px!important;
    padding:8px!important;
}
.agenda-server-month-cell.off{
    opacity:.45!important;
}
.agenda-server-month-date{
    font-weight:900!important;
    margin-bottom:6px!important;
}
.agenda-server-mini-event{
    display:block!important;
    background:#fff!important;
    border:1px solid #eadfce!important;
    border-radius:10px!important;
    color:#2f2a24!important;
    text-decoration:none!important;
    padding:5px 7px!important;
    margin-bottom:5px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:12px!important;
}
@media(max-width:1200px){
    .agenda-server-week-grid,
    .agenda-server-month-grid{
        grid-template-columns:repeat(2,minmax(220px,1fr))!important;
    }
}
@media(max-width:700px){
    .agenda-server-week-grid,
    .agenda-server-month-grid{
        grid-template-columns:1fr!important;
    }
}


/* V1.11.15 safe agenda debug */
.agenda-safe-debug{
    margin-top:14px;
}
.agenda-safe-debug summary{
    cursor:pointer;
    font-weight:800;
}
.agenda-safe-debug table{
    margin-top:10px;
}


/* V1.11.16 agenda responsive width */
.agenda-server-calendar-card{
    overflow:hidden!important;
    max-width:100%!important;
}
#scrmAgendaAjaxCanvas{
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
}
.agenda-server-week-grid{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    width:100%!important;
    max-width:100%!important;
    gap:8px!important;
}
.agenda-server-day{
    min-width:0!important;
}
.agenda-server-day-head{
    min-width:0!important;
}
.agenda-server-day-head strong,
.agenda-server-day-head span{
    white-space:nowrap!important;
}
.agenda-server-event{
    min-width:0!important;
    overflow:hidden!important;
}
.agenda-server-event strong,
.agenda-server-event span,
.agenda-server-event small{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
@media(max-width:1350px){
    .agenda-server-week-grid{
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
    }
}
@media(max-width:900px){
    .agenda-server-week-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}
@media(max-width:620px){
    .agenda-server-week-grid{
        grid-template-columns:1fr!important;
    }
}


/* V1.11.17 type colors + clickable days */
.project-type-colors-card{
    margin-top:18px!important;
}
.project-type-colors-form{
    display:grid;
    gap:12px;
}
.type-color-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    background:#faf7f2;
    border:1px solid #f0e8dc;
    border-radius:16px;
    padding:12px 14px;
    font-weight:900;
}
.type-color-row input[type="color"]{
    width:56px;
    height:38px;
    border:0;
    background:transparent;
    cursor:pointer;
}
.agenda-clickable-day,
.agenda-server-day,
.agenda-server-month-cell{
    cursor:pointer;
}
.agenda-server-day:hover,
.agenda-server-month-cell:hover{
    box-shadow:0 10px 24px rgba(90,70,48,.12);
    transform:translateY(-1px);
}
.agenda-server-event,
.agenda-server-mini-event{
    transition:background-color .15s ease, color .15s ease, transform .15s ease;
}
.agenda-server-event:hover,
.agenda-server-mini-event:hover{
    transform:translateY(-1px);
}


/* V1.11.18 couleurs types séances */
.project-type-colors-card{
    margin-top:18px!important;
}
.project-type-colors-form{
    display:grid!important;
    gap:12px!important;
}
.type-color-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:16px!important;
    background:#faf7f2!important;
    border:1px solid #f0e8dc!important;
    border-radius:16px!important;
    padding:12px 14px!important;
    font-weight:900!important;
}
.type-color-row input[type="color"]{
    width:58px!important;
    height:38px!important;
    border:0!important;
    background:transparent!important;
    cursor:pointer!important;
}
.agenda-server-event,
.agenda-server-mini-event{
    border-left-width:5px!important;
    transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease!important;
}
.agenda-server-event:hover,
.agenda-server-mini-event:hover{
    transform:translateY(-1px)!important;
    box-shadow:0 10px 24px rgba(90,70,48,.14)!important;
}


/* V1.11.19 global project colors */
.scrm-colored-project{
    position:relative;
    transition:background-image .15s ease, border-color .15s ease, transform .15s ease;
}
.scrm-colored-project:hover{
    transform:translateY(-1px);
}
.scrm-type-color-pill{
    display:inline-flex;
    align-items:center;
    width:max-content;
    max-width:100%;
    margin-top:8px;
    padding:4px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
    line-height:1.2;
}
.agenda-server-event .scrm-type-color-pill,
.agenda-server-mini-event .scrm-type-color-pill{
    display:none!important;
}
.agenda-server-event,
.agenda-server-mini-event{
    border-left-width:5px!important;
}


/* V1.11.20 — cartes teintées par type de projet */
.scrm-type-tinted-card{
    position:relative!important;
    border-left:8px solid var(--project-color, #9f7435)!important;
    border-color:var(--project-border, rgba(159,116,53,.32))!important;
    background:linear-gradient(90deg, var(--project-soft, rgba(159,116,53,.14)) 0%, var(--project-soft-2, rgba(159,116,53,.06)) 35%, rgba(255,255,255,.86) 100%)!important;
    box-shadow:0 10px 24px rgba(90,70,48,.08)!important;
}
.scrm-type-tinted-card:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 30px rgba(90,70,48,.12)!important;
}
.scrm-type-tinted-card strong,
.scrm-type-tinted-card span,
.scrm-type-tinted-card small,
.scrm-type-tinted-card em{
    color:#2f2a24!important;
}
.scrm-type-tinted-card .scrm-type-color-pill{
    background:var(--project-soft, rgba(159,116,53,.14))!important;
    color:var(--project-color, #9f7435)!important;
}
.agenda-server-event.scrm-type-tinted-card,
.agenda-server-mini-event.scrm-type-tinted-card{
    color:#2f2a24!important;
}
.agenda-server-event.scrm-type-tinted-card strong,
.agenda-server-event.scrm-type-tinted-card span,
.agenda-server-event.scrm-type-tinted-card small,
.agenda-server-mini-event.scrm-type-tinted-card{
    color:#2f2a24!important;
}
/* Annule les anciens fonds pleins forcés en JS si présents */
.agenda-server-event,
.agenda-server-mini-event{
    background-clip:padding-box!important;
}


/* V1.11.21 — rendu couleurs propre sans dégradé */
.scrm-type-tinted-card{
    background:var(--project-soft, rgba(159,116,53,.08))!important;
    border:1px solid var(--project-border, rgba(159,116,53,.20))!important;
    border-left:10px solid var(--project-color, #9f7435)!important;
    box-shadow:0 8px 20px rgba(90,70,48,.05)!important;
}
.scrm-type-tinted-card:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 24px rgba(90,70,48,.08)!important;
}
.agenda-server-event.scrm-type-tinted-card,
.agenda-server-mini-event.scrm-type-tinted-card{
    background:var(--project-soft, rgba(159,116,53,.08))!important;
}
.scrm-type-tinted-card .scrm-type-color-pill{
    border:1px solid rgba(255,255,255,.4)!important;
}


/* V1.11.22 — retour au style propre d'origine */
.scrm-type-tinted-card{
    background:#fffdf9!important;
    border:1px solid #e9dfcf!important;
    border-left:8px solid var(--project-color, #b08b2d)!important;
    box-shadow:none!important;
}

.scrm-type-tinted-card:hover{
    transform:none!important;
    box-shadow:0 8px 18px rgba(90,70,48,.06)!important;
}

.agenda-server-event.scrm-type-tinted-card,
.agenda-server-mini-event.scrm-type-tinted-card{
    background:#fffdf9!important;
}

.scrm-type-tinted-card .scrm-type-color-pill{
    background:rgba(176,139,45,.10)!important;
    color:var(--project-color, #b08b2d)!important;
    border:none!important;
}

/* neutralise les anciens fonds teintés */
.scrm-type-tinted-card[style]{
    background:#fffdf9!important;
}


/* V1.11.25 — drag additif stable */
.scrm-agenda-draggable{
    cursor:grab!important;
}
.scrm-agenda-draggable.dragging{
    opacity:.45!important;
}
.scrm-drop-hover{
    outline:3px solid rgba(176,139,45,.30)!important;
    outline-offset:-3px!important;
    background-color:rgba(176,139,45,.04)!important;
}


/* V1.11.26 — agenda type Google */
.agenda-server-calendar-card{
    overflow:hidden!important;
}
#scrmAgendaAjaxCanvas{
    overflow:hidden!important;
}
.agenda-g-week{
    display:grid;
    grid-template-columns:72px minmax(0,1fr);
    min-width:0;
    width:100%;
}
.agenda-g-hour-col{
    display:grid;
    grid-template-rows:54px repeat(16, 62px);
}
.agenda-g-tz{
    font-size:12px;
    color:#5f6368;
    display:flex;
    align-items:flex-end;
    justify-content:flex-end;
    padding:0 8px 8px 0;
}
.agenda-g-hour{
    height:62px;
    font-size:12px;
    color:#5f6368;
    text-align:right;
    padding:4px 8px 0 0;
    border-top:1px solid #e6e8eb;
}
.agenda-g-days{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    border-left:1px solid #e6e8eb;
    min-width:0;
}
.agenda-g-days.one{
    grid-template-columns:1fr;
}
.agenda-g-day{
    min-width:0;
    border-right:1px solid #e6e8eb;
}
.agenda-g-day-head{
    height:54px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    border-bottom:1px solid #e6e8eb;
    background:#fff;
    text-transform:uppercase;
    font-size:12px;
    color:#5f6368;
}
.agenda-g-day-head strong{
    width:36px;
    height:36px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    color:#202124;
    font-weight:500;
}
.agenda-g-day-head strong.today{
    background:#1a73e8;
    color:#fff;
}
.agenda-g-day-body{
    position:relative;
    min-height:992px;
    background:repeating-linear-gradient(
        to bottom,
        #e6e8eb 0,
        #e6e8eb 1px,
        #fff 1px,
        #fff 62px
    );
}
.agenda-g-day-body.drop-hover,
.agenda-g-month-cell.drop-hover{
    outline:3px solid rgba(26,115,232,.24);
    outline-offset:-3px;
}
.agenda-g-event{
    position:absolute;
    left:4px;
    right:4px;
    z-index:3;
    display:block;
    border-radius:7px;
    padding:6px 8px;
    text-decoration:none!important;
    background:var(--project-color,#b08b2d);
    color:#fff!important;
    overflow:hidden;
    cursor:grab;
    box-shadow:0 1px 2px rgba(0,0,0,.12);
}
.agenda-g-event strong,
.agenda-g-event span{
    display:block;
    color:inherit!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.agenda-g-event strong{
    font-size:13px;
}
.agenda-g-event span{
    font-size:12px;
    opacity:.9;
}
.agenda-g-event.dragging,
.agenda-g-month-event.dragging{
    opacity:.45;
}
.agenda-g-event.saving,
.agenda-g-month-event.saving{
    opacity:.65;
    pointer-events:none;
}
.agenda-g-month{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    border-top:1px solid #e6e8eb;
    border-left:1px solid #e6e8eb;
}
.agenda-g-month-cell{
    min-height:138px;
    border-right:1px solid #e6e8eb;
    border-bottom:1px solid #e6e8eb;
    padding:8px 8px 6px;
    background:#fff;
    overflow:hidden;
}
.agenda-g-month-cell.off{
    background:#fafafa;
    color:#9aa0a6;
}
.agenda-g-month-date{
    width:28px;
    height:28px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    margin-bottom:5px;
}
.agenda-g-month-date.today{
    background:#1a73e8;
    color:#fff;
}
.agenda-g-month-event{
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
    text-decoration:none!important;
    color:#202124!important;
    margin:2px 0;
    font-size:13px;
    line-height:1.35;
    cursor:grab;
}
.agenda-g-month-event i{
    width:9px;
    height:9px;
    border-radius:999px;
    background:var(--project-color,#b08b2d);
    flex:0 0 auto;
}
.agenda-g-month-event span{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.agenda-g-more{
    border:0;
    background:transparent;
    color:#3c4043;
    font-weight:700;
    padding:3px 0;
    cursor:pointer;
}
.agenda-g-detail-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.25);
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.agenda-g-detail{
    background:#fff;
    border-radius:22px;
    padding:24px;
    width:min(520px, 100%);
    box-shadow:0 20px 60px rgba(0,0,0,.22);
    position:relative;
}
.agenda-g-detail-close{
    position:absolute;
    top:14px;
    right:14px;
    width:36px;
    height:36px;
    border:0;
    border-radius:999px;
    background:#f5f1eb;
    font-size:24px;
    cursor:pointer;
}
.agenda-g-detail-event{
    display:block;
    border-left:7px solid var(--project-color,#b08b2d);
    background:#fffdf9;
    border-radius:14px;
    padding:12px 14px;
    margin-top:10px;
    text-decoration:none!important;
    color:#2f2a24!important;
}
.agenda-g-detail-event strong,
.agenda-g-detail-event span{
    display:block;
    color:#2f2a24!important;
}
@media(max-width:1350px){
    #scrmAgendaAjaxCanvas{
        overflow-x:auto!important;
    }
    .agenda-g-week{
        min-width:1050px;
    }
}
@media(max-width:900px){
    .agenda-g-month{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}


/* V1.11.27 — repère d'heure pendant drag */
.agenda-g-day-body{
    position:relative!important;
}
.agenda-g-drop-indicator{
    position:absolute;
    left:0;
    right:0;
    height:0;
    border-top:2px solid #1a73e8;
    z-index:20;
    pointer-events:none;
    opacity:0;
    transform:translateY(-1px);
}
.agenda-g-drop-indicator.show{
    opacity:1;
}
.agenda-g-drop-indicator span{
    position:absolute;
    left:6px;
    top:-12px;
    background:#1a73e8;
    color:#fff;
    font-size:11px;
    font-weight:800;
    border-radius:999px;
    padding:3px 7px;
    box-shadow:0 4px 12px rgba(26,115,232,.25);
}

/* V1.11.27 — détail inline en vue mois */
.agenda-g-month-cell{
    position:relative!important;
}
.agenda-g-inline-detail{
    position:absolute;
    left:8px;
    right:8px;
    top:42px;
    z-index:30;
    background:#fff;
    border:1px solid #eadfce;
    border-left:7px solid var(--project-color,#b08b2d);
    border-radius:14px;
    padding:12px 12px 10px;
    box-shadow:0 16px 36px rgba(60,45,30,.18);
}
.agenda-g-inline-detail strong,
.agenda-g-inline-detail span,
.agenda-g-inline-detail small{
    display:block;
    color:#2f2a24!important;
}
.agenda-g-inline-detail span,
.agenda-g-inline-detail small{
    margin-top:4px;
    font-size:12px;
    color:#746b60!important;
}
.agenda-g-inline-close{
    position:absolute;
    top:8px;
    right:8px;
    width:24px;
    height:24px;
    border:0;
    border-radius:999px;
    background:#f5f1eb;
    cursor:pointer;
    font-size:17px;
    line-height:22px;
}
.agenda-g-inline-open{
    display:inline-flex;
    margin-top:10px;
    font-size:12px;
    font-weight:900;
    color:var(--project-color,#b08b2d)!important;
    text-decoration:none!important;
}


/* V1.11.28 — repère aligné sur le haut de la carte */
.agenda-g-day-body{
    position:relative!important;
}
.agenda-g-drop-indicator{
    position:absolute;
    left:0;
    right:0;
    height:0;
    border-top:2px solid #1a73e8;
    z-index:80;
    pointer-events:none;
    opacity:0;
    transform:translateY(-1px);
}
.agenda-g-drop-indicator.show{
    opacity:1;
}
.agenda-g-drop-indicator span{
    position:absolute;
    left:6px;
    top:-12px;
    background:#1a73e8;
    color:#fff;
    font-size:11px;
    font-weight:800;
    border-radius:999px;
    padding:3px 7px;
    box-shadow:0 4px 12px rgba(26,115,232,.25);
}

/* V1.11.28 — détails mois visibles, non coupés */
.agenda-g-month{
    overflow:visible!important;
}
.agenda-g-month-cell{
    position:relative!important;
    overflow:visible!important;
}
.agenda-server-calendar-card,
#scrmAgendaAjaxCanvas{
    overflow:visible!important;
}
.agenda-g-inline-detail{
    position:absolute;
    left:8px;
    right:auto;
    top:38px;
    z-index:9999;
    width:280px;
    max-width:calc(100vw - 48px);
    background:#fff;
    border:1px solid #eadfce;
    border-left:7px solid var(--project-color,#b08b2d);
    border-radius:14px;
    padding:14px 14px 12px;
    box-shadow:0 18px 46px rgba(60,45,30,.24);
}
.agenda-g-inline-detail.open-up{
    top:auto;
    bottom:38px;
}
.agenda-g-inline-detail strong,
.agenda-g-inline-detail span,
.agenda-g-inline-detail small{
    display:block;
    color:#2f2a24!important;
}
.agenda-g-inline-detail span,
.agenda-g-inline-detail small{
    margin-top:4px;
    font-size:12px;
    color:#746b60!important;
}
.agenda-g-inline-close{
    position:absolute;
    top:8px;
    right:8px;
    width:24px;
    height:24px;
    border:0;
    border-radius:999px;
    background:#f5f1eb;
    cursor:pointer;
    font-size:17px;
    line-height:22px;
}
.agenda-g-inline-open{
    display:inline-flex;
    margin-top:10px;
    font-size:12px;
    font-weight:900;
    color:var(--project-color,#b08b2d)!important;
    text-decoration:none!important;
}


/* V1.11.29 — bloc couleurs dynamique final */
#projectTypeColorsCardV1129{
    margin-top:18px!important;
}
#projectTypeColorsCardV1129 .type-color-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:16px!important;
}
#projectTypeColorsCardV1129 input[type="color"]{
    width:58px!important;
    height:38px!important;
}


/* V1.11.31 */
.agenda-g-event.dragging{
    opacity:.5!important;
}


/* V1.11.32 — Séances à venir, visuel harmonisé CRM */
.scrm-card:has(h2:first-child),
.scrm-card:has(h3:first-child){
    overflow:visible!important;
}

/* Bloc contenant le titre Séances à venir */
.scrm-card:has(h2:where(:not(.no-style))),
.scrm-card:has(h3:where(:not(.no-style))){
    box-shadow:0 18px 45px rgba(70,52,34,.06);
}

/* Cartes projet / séance à venir détectées */
.scrm-card a[href*="view=project&id="].scrm-type-tinted-card,
.scrm-card .scrm-type-tinted-card{
    background:#fffdf9!important;
    border:1px solid #eadfce!important;
    border-left:6px solid var(--project-color,#b08b2d)!important;
    border-radius:18px!important;
    box-shadow:0 8px 20px rgba(70,52,34,.045)!important;
    padding:18px 20px!important;
    margin:12px 0!important;
    min-height:auto!important;
    display:block!important;
}

.scrm-card .scrm-type-tinted-card:hover{
    transform:translateY(-1px)!important;
    box-shadow:0 12px 26px rgba(70,52,34,.075)!important;
}

.scrm-card .scrm-type-tinted-card strong{
    font-size:18px!important;
    line-height:1.2!important;
    margin-bottom:4px!important;
}

.scrm-card .scrm-type-tinted-card span,
.scrm-card .scrm-type-tinted-card em,
.scrm-card .scrm-type-tinted-card small{
    color:#746b60!important;
    font-size:14px!important;
    line-height:1.35!important;
}

.scrm-card .scrm-type-tinted-card .scrm-type-color-pill{
    margin-top:10px!important;
    padding:4px 10px!important;
    font-size:12px!important;
    border-radius:999px!important;
    background:rgba(176,139,45,.10)!important;
}

/* Ancien effet trop visible neutralisé */
.scrm-type-tinted-card{
    background:#fffdf9!important;
    background-image:none!important;
}


.scrm-upcoming-card-clean{
    border-left:0!important;
    background:#fff!important;
}

.scrm-upcoming-card-clean h2,
.scrm-upcoming-card-clean h3{
    margin-bottom:18px!important;
}

.scrm-upcoming-item-clean{
    max-width:100%!important;
}

.scrm-upcoming-limit-note{
    margin-top:14px!important;
    color:#8c8174!important;
    font-size:13px!important;
}


/* V1.11.33 — vrai nettoyage séances à venir */
.scrm-upcoming-card-clean .scrm-type-tinted-card,
.scrm-upcoming-card-clean .scrm-project-color-card,
.scrm-upcoming-card-clean a[href*="view=project&id="]{
    background:#fffdfa!important;
    background-image:none!important;
    border:1px solid #eadfce!important;
    border-left:6px solid var(--project-color,#b08b2d)!important;
    border-radius:20px!important;
    padding:18px 22px!important;
    box-shadow:none!important;
    min-height:unset!important;
}

.scrm-upcoming-card-clean .scrm-type-tinted-card::before,
.scrm-upcoming-card-clean .scrm-project-color-card::before,
.scrm-upcoming-card-clean a[href*="view=project&id="]::before{
    display:none!important;
    content:none!important;
}

.scrm-upcoming-card-clean .scrm-type-tinted-card:hover,
.scrm-upcoming-card-clean .scrm-project-color-card:hover{
    transform:none!important;
    box-shadow:0 8px 20px rgba(50,40,30,.05)!important;
}

.scrm-upcoming-card-clean .scrm-type-color-pill{
    background:rgba(176,139,45,.08)!important;
}

.scrm-upcoming-limit-note{
    display:none!important;
}


/* V1.11.37 — sécurité : aucune pastille de type directement au fond des cartes générales */
.scrm-card > .scrm-type-color-pill,
.scrm-section > .scrm-type-color-pill,
.scrm-panel > .scrm-type-color-pill{
    display:none!important;
}

/* V1.12.1 — Bookly settings */
.scrm-bookly-settings-card{margin-top:18px!important}.scrm-bookly-form{display:grid;gap:14px}.scrm-bookly-form label{display:grid;gap:7px;font-weight:800}.scrm-bookly-form select{width:100%}.scrm-bookly-ok,.scrm-bookly-warning{border-radius:14px;padding:10px 12px;font-weight:800;margin:12px 0 16px}.scrm-bookly-ok{background:#f2faf0;border:1px solid #dbead8;color:#49713b}.scrm-bookly-warning{background:#fff7e8;border:1px solid #f0ddba;color:#8a621c}

/* V1.12.2 — Bookly auto sync */
.scrm-bookly-auto-sync-box{margin-top:16px;border:1px solid #eadfce;background:#fffdf9;border-radius:16px;padding:14px}.scrm-bookly-auto-sync-box h4{margin:0 0 6px}


/* V1.12.3 — tâches cliquables + time picker global */
.scrm-task-clickable{
    cursor:pointer!important;
}
.scrm-task-clickable:hover{
    background:rgba(176,139,45,.05)!important;
}
.scrm-time-picker-popover{
    position:fixed;
    z-index:999999;
    width:248px;
    background:#fff;
    border:1px solid #eadfce;
    border-radius:18px;
    box-shadow:0 18px 45px rgba(60,45,30,.18);
    padding:14px;
}
.scrm-time-picker-title{
    font-weight:900;
    margin-bottom:10px;
}
.scrm-time-picker-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    max-height:220px;
}
.scrm-time-picker-hours,
.scrm-time-picker-minutes{
    display:grid;
    gap:6px;
    max-height:180px;
    overflow:auto;
}
.scrm-time-picker-hours button,
.scrm-time-picker-minutes button{
    border:1px solid #eadfce;
    background:#fffdf9;
    border-radius:12px;
    padding:8px;
    cursor:pointer;
    font-weight:800;
}
.scrm-time-picker-hours button.active,
.scrm-time-picker-minutes button.active{
    background:#b08b2d;
    border-color:#b08b2d;
    color:#fff;
}
.scrm-time-picker-ok{
    width:100%;
    margin-top:12px;
}


/* V1.12.4 */
.agenda-g-event strong{
    white-space:normal!important;
}

/* V1.12.5 — diagnostic/mapping/delete */
.scrm-bookly-diagnostic-card,.scrm-bookly-mapping-card{margin-top:18px!important}.scrm-diagnostic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:12px}.scrm-diagnostic-grid>div{border:1px solid #eadfce;background:#fffdf9;border-radius:14px;padding:12px}.scrm-diagnostic-grid strong,.scrm-diagnostic-grid span{display:block}.scrm-diagnostic-grid span{color:#746b60;margin-top:4px}.scrm-bookly-recent{margin-top:14px}.scrm-bookly-recent table{width:100%;border-collapse:collapse;margin-top:10px}.scrm-bookly-recent th,.scrm-bookly-recent td{border-bottom:1px solid #eadfce;padding:8px;text-align:left}.scrm-mapping-row{display:grid;grid-template-columns:1fr 240px;gap:12px;align-items:center;margin-bottom:10px}.scrm-danger-zone{margin-top:24px!important;border-color:#f1dada!important;background:#fffafa!important;opacity:.84}.scrm-danger-zone:hover{opacity:1}.scrm-danger-zone h3{color:#8f2b2b!important}.scrm-task-clickable{cursor:pointer!important}.scrm-task-clickable:hover{background:rgba(176,139,45,.05)!important}@media(max-width:760px){.scrm-mapping-row{grid-template-columns:1fr}}


/* V1.12.6 — tâches cliquables corrigées */
.editable-tasks li{
    position:relative;
}
.task-project-link{
    display:block;
    color:inherit!important;
    text-decoration:none!important;
    flex:1;
}
.task-project-link:hover strong{
    text-decoration:underline;
}
.editable-tasks li[data-task-project-id]{
    cursor:pointer;
}

/* V1.12.6 — zone sensible unifiée */
.danger-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
}
.danger-actions form{
    margin:0!important;
}
.contact-danger-inline{
    margin-top:18px!important;
}

/* On masque l'ancienne zone sensible injectée en bas si elle existe encore */
#scrmDangerZoneV125{
    display:none!important;
}

/* V1.12.6 — Réglages organisés comme Templates */
.scrm-settings-template-layout{
    display:grid;
    grid-template-columns:minmax(260px, 360px) minmax(0,1fr);
    gap:28px;
    align-items:start;
}
.scrm-settings-template-list{
    background:#fff;
    border-radius:28px;
    padding:24px;
    box-shadow:0 18px 45px rgba(70,52,34,.06);
}
.scrm-settings-template-item{
    width:100%;
    display:block;
    text-align:left;
    border:1px solid #eadfce;
    background:#fffdf9;
    color:#2f2a24;
    border-radius:18px;
    padding:18px 20px;
    margin-bottom:12px;
    font-weight:900;
    cursor:pointer;
}
.scrm-settings-template-item.active{
    background:#edf3ff;
    border-color:#c9d8ff;
}
.scrm-settings-template-panel{
    min-width:0;
}
.scrm-settings-panel-card.hidden{
    display:none!important;
}
.scrm-settings-panel-card{
    margin-top:0!important;
}
@media(max-width:980px){
    .scrm-settings-template-layout{
        grid-template-columns:1fr;
    }
}


/* V1.12.7 — tâches actives minimalistes */
.editable-tasks{
    display:grid!important;
    gap:0!important;
    margin:18px 0 0!important;
    padding:0!important;
}
.editable-tasks li{
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr) 42px!important;
    gap:16px!important;
    align-items:center!important;
    min-height:74px!important;
    padding:16px 0!important;
    margin:0!important;
    border:0!important;
    border-bottom:1px solid #eadfce!important;
    border-left:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#2f2a24!important;
}
.editable-tasks li::before,
.editable-tasks li::after{
    display:none!important;
    content:none!important;
}
.editable-tasks li.overdue{
    background:transparent!important;
    border-left:0!important;
}
.editable-tasks li.overdue .task-project-link small,
.editable-tasks li.overdue .task-read small{
    color:#9c3b34!important;
    font-weight:900!important;
}
.editable-tasks .task-check{
    width:40px!important;
    height:40px!important;
    border-radius:999px!important;
    border:1px solid #d8cbb8!important;
    background:#fffdf9!important;
    color:#a57936!important;
    font-size:20px!important;
    font-weight:900!important;
    position:static!important;
    box-shadow:none!important;
}
.editable-tasks .task-project-link,
.editable-tasks .task-read{
    display:block!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    border-left:0!important;
    background:transparent!important;
    box-shadow:none!important;
    text-decoration:none!important;
    color:#2f2a24!important;
}
.editable-tasks .task-project-link::before,
.editable-tasks .task-read::before{
    display:none!important;
    content:none!important;
}
.editable-tasks strong{
    display:block!important;
    font-size:18px!important;
    line-height:1.2!important;
    margin:0 0 4px!important;
}
.editable-tasks span,
.editable-tasks small{
    display:block!important;
    font-size:14px!important;
    line-height:1.35!important;
    color:#6f675e!important;
    margin:0!important;
}
.editable-tasks .task-edit-toggle,
.editable-tasks .minimal-edit{
    width:38px!important;
    height:38px!important;
    border-radius:999px!important;
    background:#fff!important;
    border:1px solid #eadfce!important;
    box-shadow:0 8px 20px rgba(70,52,34,.06)!important;
    position:static!important;
}
.editable-tasks li:hover{
    background:rgba(176,139,45,.035)!important;
}
.editable-tasks li:hover .task-project-link strong{
    text-decoration:none!important;
    color:#9f7435!important;
}

/* Supprime les héritages de cartes colorées appliqués par erreur aux tâches */
.editable-tasks .scrm-type-tinted-card,
.editable-tasks .scrm-project-color-card{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}

/* Zone sensible : suppression plus discrète mais lisible */
.danger-actions .danger-soft{
    opacity:.72;
}
.danger-actions .danger-soft:hover{
    opacity:1;
}


/* V1.12.8 — Dashboard : tâches lisibles mais minimalistes */
.scrm-tasks-balanced-card{
    border-left:0!important;
}
.editable-tasks,
.scrm-tasks{
    display:grid!important;
    gap:12px!important;
    padding:0!important;
    margin:18px 0 0!important;
}
.editable-tasks li.scrm-task-balanced-row,
.scrm-tasks li.scrm-task-balanced-row{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr) 42px!important;
    gap:16px!important;
    align-items:center!important;
    min-height:88px!important;
    padding:16px 18px!important;
    border:1px solid #eadfce!important;
    border-left:5px solid transparent!important;
    border-radius:18px!important;
    background:#fffdf9!important;
    box-shadow:0 8px 20px rgba(70,52,34,.035)!important;
    margin:0!important;
}
.editable-tasks li.scrm-task-balanced-row + li.scrm-task-balanced-row,
.scrm-tasks li.scrm-task-balanced-row + li.scrm-task-balanced-row{
    margin-top:0!important;
}
.editable-tasks li.scrm-task-balanced-row.is-overdue,
.scrm-tasks li.scrm-task-balanced-row.is-overdue,
.editable-tasks li.scrm-task-balanced-row.overdue,
.scrm-tasks li.scrm-task-balanced-row.overdue{
    border-left-color:#c9564d!important;
    background:#fff7f6!important;
}
.editable-tasks li.scrm-task-balanced-row.is-overdue small,
.scrm-tasks li.scrm-task-balanced-row.is-overdue small,
.editable-tasks li.scrm-task-balanced-row.overdue small,
.scrm-tasks li.scrm-task-balanced-row.overdue small{
    color:#9c302a!important;
    font-weight:900!important;
}
.editable-tasks li.scrm-task-balanced-row::before,
.editable-tasks li.scrm-task-balanced-row::after,
.scrm-tasks li.scrm-task-balanced-row::before,
.scrm-tasks li.scrm-task-balanced-row::after{
    display:none!important;
    content:none!important;
}
.editable-tasks .task-check,
.scrm-tasks .task-check{
    width:38px!important;
    height:38px!important;
    border-radius:999px!important;
    border:1px solid #d8cbb8!important;
    background:#fff!important;
    color:#a57936!important;
    box-shadow:none!important;
}
.editable-tasks .task-project-link,
.editable-tasks .task-read,
.scrm-tasks .task-project-link,
.scrm-tasks .task-read{
    display:block!important;
    min-width:0!important;
    background:transparent!important;
    border:0!important;
    padding:0!important;
    box-shadow:none!important;
    color:#2f2a24!important;
    text-decoration:none!important;
}
.editable-tasks strong,
.scrm-tasks strong{
    display:block!important;
    font-size:17px!important;
    line-height:1.2!important;
    margin:0 0 4px!important;
    color:#2f2a24!important;
}
.editable-tasks span,
.editable-tasks small,
.scrm-tasks span,
.scrm-tasks small{
    display:block!important;
    font-size:14px!important;
    line-height:1.35!important;
    color:#6f675e!important;
}
.editable-tasks .task-edit-toggle,
.editable-tasks .minimal-edit,
.scrm-tasks .task-edit-toggle,
.scrm-tasks .minimal-edit{
    width:38px!important;
    height:38px!important;
    border-radius:999px!important;
    background:#fff!important;
    border:1px solid #eadfce!important;
    box-shadow:0 8px 18px rgba(70,52,34,.055)!important;
    position:static!important;
}
.editable-tasks li.scrm-task-balanced-row:hover,
.scrm-tasks li.scrm-task-balanced-row:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 26px rgba(70,52,34,.065)!important;
}

/* V1.12.8 — Séances à venir : couleur du type visible, sans dégradé lourd */
.scrm-upcoming-balanced{
    border-left:0!important;
}
.scrm-upcoming-balanced .scrm-upcoming-item-balanced,
.scrm-upcoming-balanced a[href*="view=project&id="],
.scrm-upcoming-balanced .scrm-type-tinted-card,
.scrm-upcoming-balanced .scrm-project-color-card{
    display:block!important;
    background:#fffdf9!important;
    background-image:none!important;
    border:1px solid #eadfce!important;
    border-left:6px solid var(--project-color,#b08b2d)!important;
    border-radius:18px!important;
    box-shadow:0 8px 20px rgba(70,52,34,.035)!important;
    padding:18px 20px!important;
    min-height:0!important;
    margin:12px 0!important;
    color:#2f2a24!important;
    text-decoration:none!important;
}
.scrm-upcoming-balanced .scrm-upcoming-item-balanced:hover,
.scrm-upcoming-balanced a[href*="view=project&id="]:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 26px rgba(70,52,34,.065)!important;
}
.scrm-upcoming-balanced .scrm-upcoming-item-balanced::before,
.scrm-upcoming-balanced a[href*="view=project&id="]::before,
.scrm-upcoming-balanced .scrm-type-tinted-card::before,
.scrm-upcoming-balanced .scrm-project-color-card::before{
    display:none!important;
    content:none!important;
}
.scrm-upcoming-balanced strong,
.scrm-upcoming-balanced b{
    color:#2f2a24!important;
}
.scrm-upcoming-balanced em{
    color:#2f2a24!important;
}


/* V1.12.9 — Fix hover transparent dans agenda */
.scrm-calendar-event:hover,
.scrm-week-event:hover,
.fc-event:hover,
.fc-timegrid-event:hover,
.fc-daygrid-event:hover,
.scrm-upcoming-item-balanced:hover{
    opacity:1!important;
    filter:none!important;
    background-image:none!important;
}

/* V1.12.9 — Tâches compactes */
.editable-tasks,
.scrm-tasks{
    gap:8px!important;
}

.editable-tasks li.scrm-task-balanced-row,
.scrm-tasks li.scrm-task-balanced-row{
    min-height:64px!important;
    padding:10px 14px!important;
    border-radius:14px!important;
    grid-template-columns:34px minmax(0,1fr) 32px!important;
    gap:12px!important;
    box-shadow:none!important;
}

.editable-tasks .task-check,
.scrm-tasks .task-check{
    width:30px!important;
    height:30px!important;
    font-size:16px!important;
}

.editable-tasks strong,
.scrm-tasks strong{
    font-size:14px!important;
    margin:0 0 2px!important;
}

.editable-tasks span,
.editable-tasks small,
.scrm-tasks span,
.scrm-tasks small{
    font-size:12px!important;
    line-height:1.25!important;
}

.editable-tasks .task-edit-toggle,
.editable-tasks .minimal-edit,
.scrm-tasks .task-edit-toggle,
.scrm-tasks .minimal-edit{
    width:30px!important;
    height:30px!important;
    font-size:13px!important;
    box-shadow:none!important;
}

.editable-tasks li.scrm-task-balanced-row:hover,
.scrm-tasks li.scrm-task-balanced-row:hover{
    transform:none!important;
    box-shadow:none!important;
    background:#fffdfa!important;
}


/* ===============================
   V1.13.2 — Dashboard pixel maquette
   =============================== */

body.crm1132-body{
    --crm1132-bg:#f7f0e4;
    --crm1132-card:#fffdf9;
    --crm1132-line:#e7dccb;
    --crm1132-text:#181c24;
    --crm1132-muted:#6d645c;
    --crm1132-gold:#b88d3c;
    --crm1132-gold-soft:#f4ead6;
    --crm1132-red:#ca4d4b;
    --crm1132-green:#86aa8c;
    --crm1132-pink:#e9b4b5;
    --crm1132-purple:#b58bbf;
}

body.crm1132-body .scrm-main,
body.crm1132-body .scrm-content,
body.crm1132-body .wrap{
    background:linear-gradient(90deg,#f4ecdf 0,#fbf8f1 42%,#fffdf8 100%)!important;
}

.crm1132{
    max-width:1468px;
    margin:0 auto;
    padding:28px 34px 44px;
    color:var(--crm1132-text);
    font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",sans-serif;
}

/* Sidebar closer to maquette */
body.crm1132-body .scrm-sidebar{
    width:236px!important;
    background:rgba(255,250,241,.82)!important;
    border-right:1px solid #e9dece!important;
    padding:28px 22px!important;
}
body.crm1132-body .scrm-sidebar h1,
body.crm1132-body .scrm-sidebar .logo,
body.crm1132-body .scrm-sidebar .brand{
    font-size:24px!important;
    line-height:.95!important;
    color:#1d1f25!important;
    letter-spacing:-.02em!important;
}
body.crm1132-body .scrm-sidebar a,
body.crm1132-body .scrm-menu a{
    min-height:48px!important;
    border-radius:12px!important;
    padding:0 15px!important;
    display:flex!important;
    align-items:center!important;
    gap:13px!important;
    color:#1d1f25!important;
    font-size:14px!important;
    font-weight:600!important;
    text-decoration:none!important;
}
body.crm1132-body .scrm-sidebar a.active,
body.crm1132-body .scrm-menu a.active,
body.crm1132-body .scrm-sidebar a[aria-current="page"]{
    background:#fff!important;
    color:#a77422!important;
    box-shadow:0 8px 20px rgba(72,51,27,.05)!important;
}

/* Header */
.crm1132-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:26px;
}
.crm1132-head h1{
    margin:0 0 14px!important;
    font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",sans-serif!important;
    font-size:30px!important;
    line-height:1.05!important;
    font-weight:750!important;
    letter-spacing:-.03em!important;
    color:#1d2129!important;
}
.crm1132-head p{
    margin:0 0 4px!important;
    font-size:15px!important;
    color:#1d2129!important;
}
.crm1132-head span{
    display:block;
    font-size:13px!important;
    color:var(--crm1132-muted)!important;
}
.crm1132-actions{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    padding-top:8px;
}
.crm1132-btn{
    min-height:40px;
    border-radius:10px;
    padding:0 18px;
    border:1px solid #d8c6a8;
    background:#fffaf2;
    color:#9f6f24;
    font-weight:700;
    cursor:pointer;
}
.crm1132-btn.gold{
    background:linear-gradient(180deg,#c69b52,#af8136);
    color:#fff;
    border-color:#b38436;
    box-shadow:0 8px 18px rgba(141,96,34,.16);
}
.crm1132-btn.ghost{
    background:#fffdf9;
}

/* Stats */
.crm1132-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    margin-bottom:20px;
}
.crm1132-stat{
    display:grid;
    grid-template-columns:58px minmax(0,1fr);
    grid-template-rows:auto auto auto;
    column-gap:18px;
    align-items:center;
    min-height:126px;
    padding:22px 24px;
    border:1px solid var(--crm1132-line);
    border-radius:14px;
    background:rgba(255,255,255,.72);
    box-shadow:0 8px 22px rgba(56,42,28,.045);
    color:var(--crm1132-text)!important;
    text-decoration:none!important;
}
.crm1132-stat:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 26px rgba(56,42,28,.065);
}
.crm1132-stat-ico{
    grid-row:1 / span 3;
    width:56px;
    height:56px;
    border-radius:16px;
    background:var(--crm1132-gold-soft);
    color:var(--crm1132-gold);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:23px;
}
.crm1132-stat.pink .crm1132-stat-ico{
    background:#f7e1e4;
    color:#cf6f78;
}
.crm1132-stat strong{
    font-size:30px;
    line-height:1;
    font-weight:500;
    letter-spacing:-.03em;
}
.crm1132-stat em{
    font-style:normal;
    font-size:14px;
    color:#1e2026;
    margin-top:2px;
}
.crm1132-stat small{
    color:#9c6b20;
    font-size:12.5px;
    margin-top:12px;
}

/* Main grid proportions like maquette */
.crm1132-grid{
    display:grid;
    grid-template-columns:1.15fr .9fr 1fr;
    gap:18px;
    align-items:start;
}
.crm1132-card{
    background:rgba(255,255,255,.76);
    border:1px solid var(--crm1132-line);
    border-radius:14px;
    box-shadow:0 8px 22px rgba(56,42,28,.045);
    padding:22px;
    min-width:0;
}
.crm1132-card-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:16px;
}
.crm1132-card-title h2{
    margin:0!important;
    font-size:18px!important;
    line-height:1.15!important;
    font-family:inherit!important;
    font-weight:750!important;
    letter-spacing:-.02em!important;
}
.crm1132-card-title h2 b{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:18px;
    height:18px;
    border-radius:999px;
    background:#ddb35c;
    color:#fff;
    font-size:11px;
    vertical-align:middle;
}
.crm1132-card-title a{
    color:var(--crm1132-muted)!important;
    text-decoration:none!important;
    font-size:12.5px;
}

/* Task list: compact, not graphic */
.crm1132-task-list{
    display:grid;
}
.crm1132-task{
    display:grid;
    grid-template-columns:22px minmax(0,1fr) 42px 62px;
    gap:14px;
    align-items:center;
    min-height:58px;
    padding:12px 0;
    border-bottom:1px solid #eee5d8;
}
.crm1132-task:last-child{
    border-bottom:0;
}
.crm1132-check{
    width:20px;
    height:20px;
    border-radius:5px;
    border:1px solid #d6c9b8;
    background:#fff;
    cursor:pointer;
}
.crm1132-task-body{
    min-width:0;
    text-decoration:none!important;
    color:var(--crm1132-text)!important;
}
.crm1132-task-body strong{
    display:block;
    font-size:14px;
    line-height:1.2;
    margin-bottom:3px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.crm1132-task-body span{
    display:block;
    font-size:12.5px;
    color:var(--crm1132-muted);
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.crm1132-task-kind{
    width:40px;
    height:40px;
    border-radius:999px;
    background:#f5f2ec;
    color:#9d8b75;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
}
.crm1132-task time{
    text-align:right;
}
.crm1132-task time strong,
.crm1132-task time em{
    display:block;
    font-size:12.5px;
    color:var(--crm1132-muted);
    font-style:normal;
    font-weight:500;
}
.crm1132-task.overdue time em{
    color:var(--crm1132-red);
    font-weight:750;
}

/* Upcoming */
.crm1132-session-list{
    display:grid;
    gap:12px;
}
.crm1132-session{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    min-height:64px;
    text-decoration:none!important;
    color:var(--crm1132-text)!important;
}
.crm1132-photo{
    width:48px;
    height:48px;
    border-radius:14px;
    background:linear-gradient(135deg,var(--project-color,#b08b2d),#ead8b0);
    color:#fff;
    font-size:14px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
}
.crm1132-session-body{
    min-width:0;
}
.crm1132-session-body em{
    display:block;
    font-size:12.5px;
    color:var(--crm1132-muted);
    font-style:normal;
    margin-bottom:2px;
}
.crm1132-session-body strong{
    display:block;
    font-size:14.5px;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.crm1132-session-body small{
    display:block;
    font-size:12.5px;
    color:var(--crm1132-muted);
}
.crm1132-session b{
    border-radius:999px;
    background:#f3ecdf;
    color:#8d692c;
    padding:5px 9px;
    font-size:12px;
    white-space:nowrap;
}

/* Status */
.crm1132-status-body{
    display:grid;
    grid-template-columns:150px 1fr;
    gap:22px;
    align-items:center;
}
.crm1132-donut{
    width:138px;
    height:138px;
    border-radius:50%;
    background:conic-gradient(#e4c47f 0 30%, #91b197 30% 52%, #e49a9d 52% 78%, #c097c9 78% 100%);
    position:relative;
}
.crm1132-donut span{
    position:absolute;
    inset:42px;
    background:#fffdf9;
    border-radius:50%;
}
.crm1132-status-list{
    display:grid;
    gap:14px;
}
.crm1132-status-list div{
    display:grid;
    grid-template-columns:10px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
}
.crm1132-status-list span{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#e4c47f;
}
.crm1132-status-list .s2 span{background:#91b197;}
.crm1132-status-list .s3 span{background:#e49a9d;}
.crm1132-status-list .s4 span{background:#d8848a;}
.crm1132-status-list .s5 span{background:#b98bc6;}
.crm1132-status-list strong,
.crm1132-status-list em{
    font-size:13px;
    font-style:normal;
}

/* Projects / bottom */
.crm1132-projects{
    grid-column:span 2;
}
.crm1132-project-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}
.crm1132-project{
    display:block;
    border:1px solid var(--crm1132-line);
    border-radius:12px;
    overflow:hidden;
    background:#fff;
    color:var(--crm1132-text)!important;
    text-decoration:none!important;
}
.crm1132-project-img{
    height:124px;
    background:linear-gradient(135deg,color-mix(in srgb,var(--project-color,#b08b2d) 30%,white),#eadfce);
    color:var(--project-color,#b08b2d);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:24px;
}
.crm1132-project strong,
.crm1132-project em,
.crm1132-project b,
.crm1132-project small{
    display:block;
    margin-left:12px;
    margin-right:12px;
}
.crm1132-project strong{
    margin-top:12px;
    font-size:14px;
}
.crm1132-project em{
    font-style:normal;
    font-size:12.5px;
    color:var(--crm1132-muted);
}
.crm1132-project b{
    display:inline-block;
    margin-top:10px;
    border-radius:999px;
    background:color-mix(in srgb,var(--project-color,#b08b2d) 13%,white);
    color:var(--project-color,#b08b2d);
    padding:5px 9px;
    font-size:11.5px;
}
.crm1132-project small{
    margin-top:12px;
    margin-bottom:12px;
    color:var(--crm1132-muted);
    font-size:12px;
}

/* Activity */
.crm1132-activity-list{
    display:grid;
    gap:18px;
}
.crm1132-activity-item{
    display:grid;
    grid-template-columns:32px 1fr;
    gap:12px;
    align-items:start;
}
.crm1132-activity-item>span{
    width:28px;
    height:28px;
    border-radius:50%;
    background:var(--crm1132-gold-soft);
    color:var(--crm1132-gold);
    display:flex;
    align-items:center;
    justify-content:center;
}
.crm1132-activity-item strong{
    display:block;
    font-size:13.5px;
}
.crm1132-activity-item em{
    display:block;
    color:var(--crm1132-muted);
    font-size:12px;
    font-style:normal;
}

.crm1132-empty{
    color:var(--crm1132-muted);
    margin:0;
    font-size:13px;
}

/* Remove old dashboard leftovers when this renderer is active */
.crm1132 ~ .scrm-card,
.crm1132 ~ section,
.crm1132 + .scrm-card{
    display:none!important;
}

@media(max-width:1250px){
    .crm1132-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
    .crm1132-grid{grid-template-columns:1fr 1fr;}
    .crm1132-projects{grid-column:span 2;}
    .crm1132-status{grid-column:span 2;}
}
@media(max-width:820px){
    .crm1132{padding:22px 16px 42px;}
    .crm1132-head{flex-direction:column;}
    .crm1132-stats,
    .crm1132-grid,
    .crm1132-project-grid{grid-template-columns:1fr;}
    .crm1132-projects,
    .crm1132-status{grid-column:span 1;}
    .crm1132-status-body{grid-template-columns:1fr;}
}


/* ===============================
   V1.13.3 — Match maquette dashboard
   =============================== */

/* Cartes globales plus proches : moins hautes, plus aérées */
.crm1132-card{
    padding:22px 24px!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.82)!important;
    box-shadow:0 8px 22px rgba(56,42,28,.05)!important;
}

/* Titres comme la maquette : plus sobres */
.crm1132-card-title{
    margin-bottom:18px!important;
}
.crm1132-card-title h2{
    font-size:20px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
}
.crm1132-card-title a{
    font-size:13px!important;
    white-space:nowrap!important;
}

/* Séances à venir : exactement esprit maquette — lignes, avatar à gauche, texte, badge */
.crm1132-upcoming{
    padding:22px 24px!important;
}
.crm1132-session-list{
    display:grid!important;
    gap:16px!important;
}
.crm1132-session{
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr) auto!important;
    gap:16px!important;
    align-items:center!important;
    min-height:64px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    text-decoration:none!important;
}
.crm1132-session:hover{
    transform:none!important;
    background:transparent!important;
    opacity:1!important;
}
.crm1132-photo{
    width:58px!important;
    height:58px!important;
    border-radius:14px!important;
    background:linear-gradient(135deg, color-mix(in srgb, var(--project-color,#b08b2d) 35%, #fff), #f0e4d2)!important;
    color:#7d5a1f!important;
    font-size:13px!important;
    font-weight:800!important;
    overflow:hidden!important;
}
.crm1132-session-body em{
    font-size:13px!important;
    line-height:1.2!important;
    color:#6f675e!important;
    margin:0 0 4px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.crm1132-session-body strong{
    font-size:15px!important;
    line-height:1.2!important;
    font-weight:800!important;
    margin:0 0 3px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.crm1132-session-body small{
    font-size:12.5px!important;
    line-height:1.2!important;
    color:#6f675e!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.crm1132-session b{
    justify-self:end!important;
    border-radius:999px!important;
    padding:7px 13px!important;
    background:color-mix(in srgb, var(--project-color,#b08b2d) 13%, #fff)!important;
    color:color-mix(in srgb, var(--project-color,#b08b2d) 85%, #2f2a24)!important;
    font-size:12px!important;
    font-weight:800!important;
    max-width:120px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
}

/* Retirer les bordures verticales héritées sur les séances */
.crm1132-session::before,
.crm1132-session::after{
    display:none!important;
    content:none!important;
}

/* Tâches : 5 prochaines, look liste maquette */
.crm1132-tasks{
    padding:22px 24px!important;
}
.crm1132-task-list{
    display:grid!important;
    gap:0!important;
}
.crm1132-task{
    display:grid!important;
    grid-template-columns:24px minmax(0,1fr) 46px 62px!important;
    gap:14px!important;
    align-items:center!important;
    min-height:62px!important;
    padding:12px 0!important;
    border:0!important;
    border-bottom:1px solid #eee5d8!important;
    background:transparent!important;
    box-shadow:none!important;
}
.crm1132-task:last-child{
    border-bottom:0!important;
}
.crm1132-check{
    width:20px!important;
    height:20px!important;
    border-radius:5px!important;
    background:#fff!important;
    border:1px solid #d7cbb8!important;
}
.crm1132-task-body strong{
    font-size:14px!important;
    line-height:1.2!important;
    font-weight:750!important;
    margin-bottom:4px!important;
}
.crm1132-task-body span{
    font-size:12.5px!important;
    line-height:1.25!important;
    color:#6f675e!important;
}
.crm1132-task-kind{
    width:38px!important;
    height:38px!important;
    border-radius:999px!important;
    background:#f5f2ec!important;
    color:#9d8b75!important;
    font-size:0!important;
}
.crm1132-task-kind::before{
    content:'✓';
    font-size:13px;
}
.crm1132-task time strong,
.crm1132-task time em{
    font-size:12px!important;
    line-height:1.25!important;
}
.crm1132-task.overdue time em{
    color:#c9564d!important;
    font-weight:800!important;
}

/* Corrige les cartes trop étroites du layout */
.crm1132-grid{
    grid-template-columns:1.12fr .92fr 1fr!important;
}
.crm1132-upcoming .crm1132-card-title h2{
    max-width:none!important;
}

/* Projets par statut : plus proche de la maquette */
.crm1132-status-body{
    grid-template-columns:150px minmax(0,1fr)!important;
}
.crm1132-status-list div{
    grid-template-columns:10px minmax(0,1fr) auto!important;
}
.crm1132-status-list strong{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

/* Stats : proportions plus proches de la maquette */
.crm1132-stat{
    min-height:116px!important;
    padding:20px 22px!important;
}
.crm1132-stat strong{
    font-size:31px!important;
}
.crm1132-stat-ico{
    width:54px!important;
    height:54px!important;
}

/* Header */
.crm1132-head h1{
    font-size:32px!important;
}
.crm1132-actions{
    padding-top:4px!important;
}

/* Sécurité : éviter les textes qui cassent les cartes */
.crm1132 *{
    box-sizing:border-box;
}


/* ===============================
   V1.13.4 — Dashboard maquette complète
   =============================== */

body.crm1134-body{
    --c-bg:#f7f0e4;
    --c-card:#fffdf9;
    --c-line:#e8ddcd;
    --c-text:#191d25;
    --c-muted:#6e665f;
    --c-gold:#b98c3a;
    --c-gold-soft:#f4ead7;
    --c-red:#c9544d;
    --c-green:#86aa8c;
    --c-pink:#efdde0;
    --c-pink-strong:#d86f7c;
    --c-purple:#b98bc3;
}

body.crm1134-body .scrm-main,
body.crm1134-body .scrm-content,
body.crm1134-body .wrap{
    background:linear-gradient(90deg,#f4ecdf 0,#fbf8f1 45%,#fffdf8 100%)!important;
}

/* Sidebar : plus fine, plus proche maquette */
body.crm1134-body .scrm-sidebar{
    width:222px!important;
    background:linear-gradient(180deg,#fffaf1,#f6ecdd)!important;
    border-right:1px solid #e7dccb!important;
    padding:26px 18px!important;
}
body.crm1134-body .scrm-sidebar h1,
body.crm1134-body .scrm-sidebar .brand,
body.crm1134-body .scrm-sidebar .logo{
    font-family:"Snell Roundhand","Brush Script MT",cursive!important;
    font-size:34px!important;
    line-height:.8!important;
    font-weight:400!important;
    color:#2b2621!important;
    margin:0 0 44px!important;
}
body.crm1134-body .scrm-sidebar h1::after,
body.crm1134-body .scrm-sidebar .brand::after,
body.crm1134-body .scrm-sidebar .logo::after{
    content:"CRM";
    display:block;
    font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",sans-serif!important;
    font-size:13px!important;
    letter-spacing:.12em!important;
    margin-left:40px!important;
    margin-top:3px!important;
}
body.crm1134-body .scrm-sidebar a,
body.crm1134-body .scrm-menu a{
    min-height:45px!important;
    border-radius:12px!important;
    display:flex!important;
    align-items:center!important;
    gap:13px!important;
    padding:0 13px!important;
    color:#1c1f26!important;
    font-size:14px!important;
    font-weight:520!important;
    text-decoration:none!important;
    margin:4px 0!important;
}
body.crm1134-body .scrm-sidebar a::before,
body.crm1134-body .scrm-menu a::before{
    content:"□";
    width:18px;
    font-size:16px;
    color:#73695f;
}
body.crm1134-body .scrm-sidebar a[href*="dashboard"]::before{content:"⌂";}
body.crm1134-body .scrm-sidebar a[href*="project"]::before{content:"▣";}
body.crm1134-body .scrm-sidebar a[href*="client"]::before{content:"♧";}
body.crm1134-body .scrm-sidebar a[href*="task"]::before{content:"☑";}
body.crm1134-body .scrm-sidebar a[href*="agenda"]::before{content:"□";}
body.crm1134-body .scrm-sidebar a[href*="email"]::before{content:"✉";}
body.crm1134-body .scrm-sidebar a[href*="workflow"]::before{content:"⌘";}
body.crm1134-body .scrm-sidebar a[href*="setting"]::before{content:"⚙";}
body.crm1134-body .scrm-sidebar a.active,
body.crm1134-body .scrm-menu a.active,
body.crm1134-body .scrm-sidebar a[aria-current="page"]{
    background:#fff!important;
    color:#a77422!important;
    box-shadow:0 8px 20px rgba(72,51,27,.045)!important;
}

/* Main */
.crm1134{
    max-width:1420px;
    margin:0 auto;
    padding:28px 30px 42px;
    color:var(--c-text);
    font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",sans-serif;
}
.crm1134-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:24px;
    margin-bottom:26px;
}
.crm1134-head h1{
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:32px!important;
    line-height:1.08!important;
    font-weight:500!important;
    letter-spacing:-.03em!important;
    margin:0 0 10px!important;
}
.crm1134-head p{
    margin:0 0 3px!important;
    font-size:15px!important;
}
.crm1134-head span{
    display:block;
    color:var(--c-muted);
    font-size:13px;
}
.crm1134-actions{
    display:flex;
    gap:12px;
    padding-top:8px;
}
.crm1134-btn{
    min-height:40px;
    border-radius:9px;
    border:1px solid #d8c5a5;
    padding:0 18px;
    background:#fffdf9;
    color:#9f6f24;
    font-weight:750;
    cursor:pointer;
    box-shadow:none;
}
.crm1134-btn span{
    margin-right:8px;
}
.crm1134-btn.gold{
    color:#fff;
    border-color:#b48639;
    background:linear-gradient(180deg,#c69b52,#af8136);
    box-shadow:0 7px 16px rgba(143,96,33,.16);
}

/* KPI cards */
.crm1134-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    margin-bottom:18px;
}
.crm1134-stat{
    min-height:124px;
    display:grid;
    grid-template-columns:56px minmax(0,1fr);
    grid-template-rows:auto auto auto;
    column-gap:18px;
    align-items:center;
    padding:20px 22px;
    background:rgba(255,255,255,.75);
    border:1px solid var(--c-line);
    border-radius:13px;
    box-shadow:0 8px 20px rgba(56,42,28,.045);
    color:var(--c-text)!important;
    text-decoration:none!important;
}
.crm1134-stat-ico{
    grid-row:1/span 3;
    width:54px;
    height:54px;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--c-gold-soft);
    color:var(--c-gold);
    font-size:22px;
}
.crm1134-stat.pink .crm1134-stat-ico{
    background:var(--c-pink);
    color:var(--c-pink-strong);
}
.crm1134-stat strong{
    font-size:31px;
    line-height:1;
    font-weight:500;
}
.crm1134-stat em{
    font-style:normal;
    font-size:14.5px;
    line-height:1.15;
}
.crm1134-stat small{
    color:#9f6f24;
    font-size:12.5px;
    margin-top:10px;
}

/* Grid exactly like mockup */
.crm1134-grid{
    display:grid;
    grid-template-columns:1.15fr .9fr 1fr;
    gap:18px;
    align-items:start;
}
.crm1134-card{
    background:rgba(255,255,255,.78);
    border:1px solid var(--c-line);
    border-radius:13px;
    box-shadow:0 8px 20px rgba(56,42,28,.045);
    padding:20px;
    min-width:0;
}
.crm1134-card-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:16px;
}
.crm1134-card-title h2{
    margin:0!important;
    font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",sans-serif!important;
    font-size:18px!important;
    font-weight:760!important;
    line-height:1.15!important;
    letter-spacing:-.02em!important;
}
.crm1134-card-title h2 b{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:18px;
    height:18px;
    border-radius:999px;
    background:#ddb35c;
    color:#fff;
    font-size:11px;
    margin-left:4px;
}
.crm1134-card-title a{
    font-size:12.5px;
    color:var(--c-muted)!important;
    text-decoration:none!important;
}

/* Tasks like mockup */
.crm1134-task-list{
    display:grid;
}
.crm1134-task{
    display:grid;
    grid-template-columns:22px minmax(0,1fr) 40px 58px;
    gap:13px;
    align-items:center;
    min-height:58px;
    padding:11px 0;
    border-bottom:1px solid #eee5d8;
}
.crm1134-task:last-child{border-bottom:0;}
.crm1134-check{
    width:20px;
    height:20px;
    border-radius:5px;
    border:1px solid #d6c9b8;
    background:#fff;
    cursor:pointer;
}
.crm1134-task-body{
    text-decoration:none!important;
    color:var(--c-text)!important;
    min-width:0;
}
.crm1134-task-body strong{
    display:block;
    font-size:14px;
    line-height:1.2;
    margin-bottom:3px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.crm1134-task-body span{
    display:block;
    font-size:12.5px;
    color:var(--c-muted);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.crm1134-task-icon{
    width:38px;
    height:38px;
    border-radius:999px;
    background:#f5f2ec;
    color:#9d8b75;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
}
.crm1134-task time{
    text-align:right;
}
.crm1134-task time strong,
.crm1134-task time em{
    display:block;
    font-size:12px;
    line-height:1.25;
    font-weight:500;
    color:var(--c-muted);
    font-style:normal;
}
.crm1134-task.overdue time em{
    color:var(--c-red);
    font-weight:800;
}

/* Upcoming identical direction */
.crm1134-session-list{
    display:grid;
    gap:16px;
}
.crm1134-session{
    display:grid;
    grid-template-columns:58px minmax(0,1fr) auto;
    gap:15px;
    align-items:center;
    min-height:58px;
    text-decoration:none!important;
    color:var(--c-text)!important;
}
.crm1134-photo{
    width:56px;
    height:56px;
    border-radius:14px;
    background:linear-gradient(135deg,color-mix(in srgb,var(--project-color,#b08b2d) 30%,#fff),#efe2cf);
    color:#7d5a1f;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:13px;
}
.crm1134-session-body{min-width:0;}
.crm1134-session-body em{
    display:block;
    color:var(--c-muted);
    font-size:12.5px;
    margin-bottom:3px;
    font-style:normal;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.crm1134-session-body strong{
    display:block;
    font-size:14.5px;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.crm1134-session-body small{
    display:block;
    color:var(--c-muted);
    font-size:12.5px;
}
.crm1134-session b{
    border-radius:999px;
    background:color-mix(in srgb,var(--project-color,#b08b2d) 13%,#fff);
    color:color-mix(in srgb,var(--project-color,#b08b2d) 80%,#2f2a24);
    padding:6px 11px;
    font-size:12px;
    white-space:nowrap;
}

/* Donut */
.crm1134-status-body{
    display:grid;
    grid-template-columns:150px 1fr;
    gap:22px;
    align-items:center;
}
.crm1134-donut{
    width:138px;
    height:138px;
    border-radius:50%;
    background:conic-gradient(#e4c47f 0 30%, #91b197 30% 52%, #e49a9d 52% 78%, #c097c9 78% 100%);
    position:relative;
}
.crm1134-donut span{
    position:absolute;
    inset:42px;
    background:#fffdf9;
    border-radius:50%;
}
.crm1134-status-list{
    display:grid;
    gap:13px;
}
.crm1134-status-list div{
    display:grid;
    grid-template-columns:10px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
}
.crm1134-status-list span{
    width:10px;
    height:10px;
    border-radius:999px;
    background:#e4c47f;
}
.crm1134-status-list .s2 span{background:#91b197;}
.crm1134-status-list .s3 span{background:#e49a9d;}
.crm1134-status-list .s4 span{background:#d8848a;}
.crm1134-status-list .s5 span{background:#b98bc6;}
.crm1134-status-list strong,
.crm1134-status-list em{
    font-size:13px;
    font-style:normal;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Bottom */
.crm1134-projects{grid-column:span 2;}
.crm1134-project-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}
.crm1134-project{
    display:block;
    border:1px solid var(--c-line);
    border-radius:12px;
    background:#fff;
    overflow:hidden;
    text-decoration:none!important;
    color:var(--c-text)!important;
}
.crm1134-project-img{
    height:124px;
    background:linear-gradient(135deg,color-mix(in srgb,var(--project-color,#b08b2d) 30%,white),#eadfce);
    color:var(--project-color,#b08b2d);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:24px;
}
.crm1134-project strong,
.crm1134-project em,
.crm1134-project b,
.crm1134-project small{
    display:block;
    margin-left:12px;
    margin-right:12px;
}
.crm1134-project strong{margin-top:12px;font-size:14px;}
.crm1134-project em{font-style:normal;font-size:12.5px;color:var(--c-muted);}
.crm1134-project b{
    display:inline-block;
    margin-top:10px;
    border-radius:999px;
    background:color-mix(in srgb,var(--project-color,#b08b2d) 13%,white);
    color:var(--project-color,#b08b2d);
    padding:5px 9px;
    font-size:11.5px;
}
.crm1134-project small{margin-top:12px;margin-bottom:12px;color:var(--c-muted);font-size:12px;}

.crm1134-activity-list{display:grid;gap:18px;}
.crm1134-activity-item{
    display:grid;
    grid-template-columns:32px 1fr;
    gap:12px;
    align-items:start;
}
.crm1134-activity-item>span{
    width:28px;
    height:28px;
    border-radius:999px;
    background:var(--c-gold-soft);
    color:var(--c-gold);
    display:flex;
    align-items:center;
    justify-content:center;
}
.crm1134-activity-item strong{display:block;font-size:13.5px;}
.crm1134-activity-item em{display:block;color:var(--c-muted);font-size:12px;font-style:normal;}
.crm1134-empty{margin:0;color:var(--c-muted);font-size:13px;}

/* Hide old dashboard leftovers */
.crm1134 ~ .scrm-card,
.crm1134 ~ section,
.crm1134 + .scrm-card{
    display:none!important;
}

@media(max-width:1250px){
    .crm1134-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
    .crm1134-grid{grid-template-columns:1fr 1fr;}
    .crm1134-projects,.crm1134-status{grid-column:span 2;}
}
@media(max-width:820px){
    .crm1134{padding:22px 16px 42px;}
    .crm1134-head{flex-direction:column;}
    .crm1134-stats,.crm1134-grid,.crm1134-project-grid{grid-template-columns:1fr;}
    .crm1134-projects,.crm1134-status{grid-column:span 1;}
    .crm1134-status-body{grid-template-columns:1fr;}
}


/* ===============================
   V1.13.5 — fond clair + SVG + tâches réellement à venir
   =============================== */

body.crm135-body{
    background:#fbfaf7!important;
}

body.crm135-body .scrm-main,
body.crm135-body .scrm-content,
body.crm135-body .wrap{
    background:linear-gradient(90deg,#faf5ec 0,#fffdf8 42%,#ffffff 100%)!important;
}

body.crm135-body .scrm-sidebar{
    background:linear-gradient(180deg,#fffdf8,#fbf4ea)!important;
}

/* Icônes SVG propres, cohérentes maquette */
.crm135-svg{
    display:inline-flex;
    width:22px;
    height:22px;
    align-items:center;
    justify-content:center;
}
.crm135-svg svg{
    width:22px;
    height:22px;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* Sidebar : remplacer les glyphes par une approche plus fine si l'ancienne icône reste */
body.crm135-body .scrm-sidebar a::before,
body.crm135-body .scrm-menu a::before{
    opacity:.82!important;
    font-size:15px!important;
    width:18px!important;
}

/* KPI : icônes SVG centrées et cartes plus proches mockup */
body.crm135-body .crm1134-stat-ico,
body.crm135-body .crm1132-stat-ico{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
body.crm135-body .crm1134-stat-ico .crm135-svg,
body.crm135-body .crm1132-stat-ico .crm135-svg{
    color:var(--c-gold,#b98c3a)!important;
}
body.crm135-body .crm1134-stat.pink .crm1134-stat-ico .crm135-svg,
body.crm135-body .crm1132-stat.pink .crm1132-stat-ico .crm135-svg{
    color:var(--c-pink-strong,#d86f7c)!important;
}

/* Tâches : afficher comme la maquette, même quand la liste existe */
body.crm135-body .crm1134-tasks .crm1134-empty{
    font-size:13.5px!important;
    color:#756c63!important;
}

body.crm135-body .crm1134-task-list{
    gap:0!important;
}

body.crm135-body .crm1134-task{
    grid-template-columns:22px minmax(0,1fr) 40px 62px!important;
    min-height:58px!important;
    padding:11px 0!important;
}

body.crm135-body .crm1134-task-icon .crm135-svg{
    width:18px!important;
    height:18px!important;
    color:#8f8270!important;
}
body.crm135-body .crm1134-task-icon .crm135-svg svg{
    width:18px!important;
    height:18px!important;
    stroke-width:1.8!important;
}

body.crm135-body .crm1134-task time strong{
    font-size:12px!important;
    color:#6f675e!important;
}
body.crm135-body .crm1134-task time em{
    font-size:12px!important;
}
body.crm135-body .crm1134-task.overdue time em{
    color:#c9544d!important;
}

/* Cartes/fond encore plus clairs */
body.crm135-body .crm1134-card,
body.crm135-body .crm1134-stat{
    background:rgba(255,255,255,.88)!important;
    border-color:#ece2d5!important;
    box-shadow:0 7px 20px rgba(56,42,28,.035)!important;
}

body.crm135-body .crm1134-card:hover,
body.crm135-body .crm1134-stat:hover{
    box-shadow:0 10px 26px rgba(56,42,28,.055)!important;
}

/* Stats : réduire le côté énorme visible sur ta capture */
body.crm135-body .crm1134-stat{
    min-height:112px!important;
    padding:18px 21px!important;
}
body.crm135-body .crm1134-stat strong{
    font-size:29px!important;
}
body.crm135-body .crm1134-stat em{
    font-size:14px!important;
}
body.crm135-body .crm1134-stat small{
    font-size:12px!important;
}

/* Séances : maintenir la ligne maquette, pas de gros bloc */
body.crm135-body .crm1134-session{
    padding:0!important;
    border:0!important;
}
body.crm135-body .crm1134-session:hover{
    background:transparent!important;
}

/* Boutons */
body.crm135-body .crm1134-btn{
    box-shadow:none!important;
}
body.crm135-body .crm1134-btn.gold{
    box-shadow:0 7px 16px rgba(143,96,33,.12)!important;
}


/* V1.13.6 — fond encore plus clair */
body.crm135-body,
body.crm1134-body,
body.crm1132-body{
    background:#fffdf8!important;
}
body.crm135-body .scrm-main,
body.crm135-body .scrm-content,
body.crm135-body .wrap,
body.crm1134-body .scrm-main,
body.crm1134-body .scrm-content,
body.crm1134-body .wrap{
    background:linear-gradient(90deg,#fbf6ee 0,#fffdf9 42%,#ffffff 100%)!important;
}
body.crm135-body .scrm-sidebar,
body.crm1134-body .scrm-sidebar{
    background:linear-gradient(180deg,#fffdf8,#fbf6ee)!important;
}

/* V1.13.6 — icônes SVG sidebar en dur */
.crm136-nav-icon{
    width:20px!important;
    min-width:20px!important;
    height:20px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#7d766d!important;
}
.crm136-nav-icon svg{
    width:18px!important;
    height:18px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.85!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}
body.crm135-body .scrm-sidebar a::before,
body.crm135-body .scrm-menu a::before,
body.crm1134-body .scrm-sidebar a::before,
body.crm1134-body .scrm-menu a::before{
    content:none!important;
    display:none!important;
}
body.crm135-body .scrm-sidebar a.active .crm136-nav-icon,
body.crm135-body .scrm-menu a.active .crm136-nav-icon,
body.crm1134-body .scrm-sidebar a.active .crm136-nav-icon,
body.crm1134-body .scrm-menu a.active .crm136-nav-icon{
    color:#a77422!important;
}

/* Tâches : garde une hauteur visuelle même avec 5 éléments */
.crm1134-tasks .crm1134-empty{
    display:block!important;
}

/* Si les tâches sont importées, rendu compact */
.crm1134-task-list{
    min-height:0!important;
}
.crm1134-task{
    visibility:visible!important;
    opacity:1!important;
}


/* V1.13.7 — sécurise l'affichage tâches dashboard */
.crm1134-task-list{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
}
.crm1134-task{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
}
.crm1134-tasks .crm1134-empty{
    color:#6e665f!important;
}


/* V1.13.8 — tâches dashboard adaptatives */
.crm1134-task-list,
.crm1134-task{
    visibility:visible!important;
    opacity:1!important;
}


/* V1.13.9 — tâches dashboard exactement façon mockup */
body.crm135-body .crm1134-tasks,
body.crm1134-body .crm1134-tasks{
    padding:22px 26px!important;
}

body.crm135-body .crm1134-task-list,
body.crm1134-body .crm1134-task-list{
    display:grid!important;
    gap:0!important;
    margin-top:0!important;
}

body.crm135-body .crm1134-task,
body.crm1134-body .crm1134-task{
    display:grid!important;
    grid-template-columns:24px minmax(0,1fr) 42px 68px!important;
    gap:18px!important;
    align-items:center!important;
    min-height:78px!important;
    padding:16px 0!important;
    border:0!important;
    border-bottom:1px solid #eee5d8!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
}

body.crm135-body .crm1134-task:last-child,
body.crm1134-body .crm1134-task:last-child{
    border-bottom:0!important;
}

body.crm135-body .crm1134-check,
body.crm1134-body .crm1134-check{
    width:22px!important;
    height:22px!important;
    border-radius:5px!important;
    border:1px solid #d5cab9!important;
    background:#fff!important;
    box-shadow:none!important;
    position:static!important;
}

body.crm135-body .crm1134-task-body,
body.crm1134-body .crm1134-task-body{
    display:block!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-left:0!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    color:#1f232b!important;
    text-decoration:none!important;
}

body.crm135-body .crm1134-task-body::before,
body.crm135-body .crm1134-task-body::after,
body.crm1134-body .crm1134-task-body::before,
body.crm1134-body .crm1134-task-body::after{
    display:none!important;
    content:none!important;
}

body.crm135-body .crm1134-task-body strong,
body.crm1134-body .crm1134-task-body strong{
    display:block!important;
    font-size:15px!important;
    line-height:1.25!important;
    font-weight:720!important;
    margin:0 0 5px!important;
    color:#1f232b!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

body.crm135-body .crm1134-task-body span,
body.crm1134-body .crm1134-task-body span{
    display:block!important;
    font-size:13px!important;
    line-height:1.25!important;
    color:#6e665f!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

body.crm135-body .crm1134-task-icon,
body.crm1134-body .crm1134-task-icon{
    width:40px!important;
    height:40px!important;
    border-radius:999px!important;
    background:#f6f4ef!important;
    color:#8c8378!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-shadow:none!important;
}

body.crm135-body .crm1134-task-icon .crm135-svg,
body.crm1134-body .crm1134-task-icon .crm135-svg,
body.crm135-body .crm1134-task-icon svg,
body.crm1134-body .crm1134-task-icon svg{
    width:18px!important;
    height:18px!important;
}

body.crm135-body .crm1134-task time,
body.crm1134-body .crm1134-task time{
    text-align:right!important;
    align-self:center!important;
}

body.crm135-body .crm1134-task time strong,
body.crm1134-body .crm1134-task time strong{
    display:block!important;
    font-size:13px!important;
    line-height:1.25!important;
    color:#6e665f!important;
    font-weight:500!important;
}

body.crm135-body .crm1134-task time em,
body.crm1134-body .crm1134-task time em{
    display:block!important;
    font-size:12.5px!important;
    line-height:1.25!important;
    color:#6e665f!important;
    font-style:normal!important;
    font-weight:500!important;
}

body.crm135-body .crm1134-task.overdue time em,
body.crm1134-body .crm1134-task.overdue time em{
    color:#c9544d!important;
    font-weight:800!important;
}

body.crm135-body .crm1134-task.overdue,
body.crm1134-body .crm1134-task.overdue{
    background:transparent!important;
}

body.crm135-body .crm1134-task.overdue .crm1134-task-body strong,
body.crm1134-body .crm1134-task.overdue .crm1134-task-body strong{
    color:#1f232b!important;
}


/* V1.13.10 — affinage exact mockup tâches */
body.crm135-body .crm1134-task,
body.crm1134-body .crm1134-task{
    grid-template-columns:22px minmax(0,1fr) 38px 64px!important;
    gap:14px!important;
    min-height:64px!important;
    padding:14px 0!important;
}

body.crm135-body .crm1134-task-body strong,
body.crm1134-body .crm1134-task-body strong{
    font-size:13.5px!important;
    line-height:1.15!important;
    font-weight:620!important;
    letter-spacing:-0.01em!important;
    margin:0 0 3px!important;
}

body.crm135-body .crm1134-task-body span,
body.crm1134-body .crm1134-task-body span{
    font-size:11.8px!important;
    line-height:1.25!important;
    font-weight:430!important;
    color:#756d64!important;
}

body.crm135-body .crm1134-task-icon,
body.crm1134-body .crm1134-task-icon{
    width:34px!important;
    height:34px!important;
}

body.crm135-body .crm1134-task-icon svg,
body.crm1134-body .crm1134-task-icon svg,
body.crm135-body .crm1134-task-icon .crm135-svg,
body.crm1134-body .crm1134-task-icon .crm135-svg{
    width:15px!important;
    height:15px!important;
}

body.crm135-body .crm1134-task time strong,
body.crm1134-body .crm1134-task time strong{
    font-size:11.5px!important;
    line-height:1.1!important;
    font-weight:520!important;
}

body.crm135-body .crm1134-task time em,
body.crm1134-body .crm1134-task time em{
    font-size:11px!important;
    line-height:1.1!important;
}

body.crm135-body .crm1134-check,
body.crm1134-body .crm1134-check{
    width:18px!important;
    height:18px!important;
    border-radius:4px!important;
}

body.crm135-body .crm1134-task-list,
body.crm1134-body .crm1134-task-list{
    gap:0!important;
}

body.crm135-body .crm1134-tasks,
body.crm1134-body .crm1134-tasks{
    padding:20px 24px!important;
}


/* V1.13.13 — modales fermables proprement */
body.scrm-modal-open{
    overflow:hidden;
}
.scrm-modal.hidden,
.modal.hidden,
[id$="Modal"].hidden{
    display:none!important;
}
.scrm-modal.open,
.scrm-modal.active,
.modal.open,
.modal.active,
[id$="Modal"].open,
[id$="Modal"].active{
    display:flex!important;
}


/* =========================================================
   V1.14.0 — Design global mockup CRM
   ========================================================= */

body.scrm-ui-v114{
    --v114-bg:#fffdf8;
    --v114-sidebar:#fbf4ea;
    --v114-card:#ffffff;
    --v114-border:#eadfce;
    --v114-text:#1e222a;
    --v114-muted:#6f675e;
    --v114-gold:#b88b3d;
    --v114-gold-dark:#9c6f23;
    --v114-gold-soft:#f4ead7;
    --v114-green:#87aa8e;
    --v114-green-soft:#e9f3eb;
    --v114-red:#cf6462;
    --v114-red-soft:#fdebec;
    --v114-purple:#b88ac4;
    --v114-shadow:0 8px 24px rgba(60,42,24,.055);
    background:#fffdf8!important;
    color:var(--v114-text)!important;
    font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",sans-serif!important;
}

body.scrm-ui-v114 .scrm-main,
body.scrm-ui-v114 .scrm-content,
body.scrm-ui-v114 .wrap,
body.scrm-ui-v114 #wpbody-content{
    background:linear-gradient(90deg,#fbf6ee 0,#fffdf9 42%,#ffffff 100%)!important;
}

/* Shell / main */
.scrm-v114-main{
    max-width:1480px!important;
    margin:0 auto!important;
    padding:28px 32px 48px!important;
}

body.scrm-ui-v114 h1{
    font-size:30px!important;
    line-height:1.08!important;
    font-weight:650!important;
    letter-spacing:-.025em!important;
    color:var(--v114-text)!important;
    margin-top:0!important;
}

body.scrm-ui-v114 h2,
body.scrm-ui-v114 h3{
    color:var(--v114-text)!important;
    letter-spacing:-.015em!important;
}

/* Sidebar */
body.scrm-ui-v114 .scrm-v114-sidebar,
body.scrm-ui-v114 .scrm-sidebar,
body.scrm-ui-v114 .scrm-menu{
    width:220px!important;
    min-width:220px!important;
    background:linear-gradient(180deg,#fffdf8,#fbf4ea)!important;
    border-right:1px solid #e9dece!important;
    padding:26px 18px!important;
    box-shadow:none!important;
}

.scrm-v114-logo{
    margin:0 0 36px!important;
    color:#2b2621!important;
    line-height:.85!important;
}
.scrm-v114-logo span{
    display:block;
    font-family:"Snell Roundhand","Brush Script MT",cursive!important;
    font-size:34px!important;
    font-weight:400!important;
}
.scrm-v114-logo small{
    display:block;
    font-size:13px!important;
    letter-spacing:.12em!important;
    margin-left:42px!important;
    margin-top:2px!important;
    font-weight:500!important;
}

body.scrm-ui-v114 .scrm-sidebar a,
body.scrm-ui-v114 .scrm-menu a,
body.scrm-ui-v114 aside a{
    min-height:44px!important;
    border-radius:12px!important;
    display:flex!important;
    align-items:center!important;
    gap:13px!important;
    padding:0 13px!important;
    margin:4px 0!important;
    color:#1e222a!important;
    font-size:14px!important;
    font-weight:540!important;
    text-decoration:none!important;
    background:transparent!important;
    box-shadow:none!important;
}

body.scrm-ui-v114 .scrm-sidebar a::before,
body.scrm-ui-v114 .scrm-menu a::before,
body.scrm-ui-v114 aside a::before{
    display:none!important;
    content:none!important;
}

.scrm-v114-nav-icon{
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#787067!important;
}
.scrm-v114-nav-icon svg{
    width:17px!important;
    height:17px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.85!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}

body.scrm-ui-v114 .scrm-sidebar a.active,
body.scrm-ui-v114 .scrm-menu a.active,
body.scrm-ui-v114 .scrm-sidebar a[aria-current="page"]{
    background:#fff!important;
    color:var(--v114-gold-dark)!important;
    box-shadow:0 8px 20px rgba(72,51,27,.045)!important;
}
body.scrm-ui-v114 .scrm-sidebar a.active .scrm-v114-nav-icon,
body.scrm-ui-v114 .scrm-menu a.active .scrm-v114-nav-icon{
    color:var(--v114-gold)!important;
}

.scrm-v114-user{
    position:sticky;
    top:calc(100vh - 86px);
    margin-top:48px;
    display:grid;
    grid-template-columns:36px 1fr 16px;
    column-gap:10px;
    align-items:center;
    color:#1e222a;
}
.scrm-v114-avatar{
    grid-row:1 / span 2;
    width:36px;
    height:36px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#d8c3a1;
    color:#fff;
    font-weight:800;
}
.scrm-v114-user strong{
    font-size:13px;
    line-height:1.1;
}
.scrm-v114-user em{
    font-size:11.5px;
    color:var(--v114-muted);
    font-style:normal;
}
.scrm-v114-user b{
    grid-row:1 / span 2;
    color:var(--v114-muted);
}

/* Cards */
.scrm-v114-card,
body.scrm-ui-v114 .scrm-card{
    background:rgba(255,255,255,.86)!important;
    border:1px solid var(--v114-border)!important;
    border-radius:14px!important;
    box-shadow:var(--v114-shadow)!important;
    padding:22px!important;
    color:var(--v114-text)!important;
}

/* Tables / lists */
.scrm-v114-table,
body.scrm-ui-v114 table{
    width:100%!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    background:#fff!important;
    border:1px solid var(--v114-border)!important;
    border-radius:14px!important;
    overflow:hidden!important;
    box-shadow:var(--v114-shadow)!important;
}

body.scrm-ui-v114 thead th,
body.scrm-ui-v114 table th{
    font-size:11px!important;
    text-transform:none!important;
    color:#6f675e!important;
    font-weight:650!important;
    background:#fffdf9!important;
    border-bottom:1px solid #eee5d8!important;
    padding:13px 14px!important;
}

body.scrm-ui-v114 tbody td,
body.scrm-ui-v114 table td{
    padding:13px 14px!important;
    border-bottom:1px solid #f0e8dc!important;
    font-size:13px!important;
    color:#262a31!important;
}
body.scrm-ui-v114 tbody tr:last-child td{
    border-bottom:0!important;
}
body.scrm-ui-v114 tbody tr:hover td{
    background:#fffaf2!important;
}

/* Buttons */
.scrm-v114-button,
body.scrm-ui-v114 .scrm-btn,
body.scrm-ui-v114 button:not(.components-button){
    border-radius:9px!important;
    min-height:38px!important;
    padding:8px 16px!important;
    font-weight:720!important;
    border:1px solid #d8c5a5!important;
    background:#fffdf9!important;
    color:var(--v114-gold-dark)!important;
    box-shadow:none!important;
    cursor:pointer;
}

body.scrm-ui-v114 .scrm-btn.gold,
body.scrm-ui-v114 button.gold,
body.scrm-ui-v114 .crm1134-btn.gold{
    color:#fff!important;
    border-color:#b48639!important;
    background:linear-gradient(180deg,#c69b52,#af8136)!important;
    box-shadow:0 7px 16px rgba(143,96,33,.12)!important;
}

/* Fields */
.scrm-v114-field,
body.scrm-ui-v114 input:not([type="checkbox"]):not([type="radio"]),
body.scrm-ui-v114 select,
body.scrm-ui-v114 textarea{
    min-height:40px!important;
    border:1px solid #e3d7c7!important;
    border-radius:10px!important;
    background:#fffdf9!important;
    color:#252932!important;
    padding:9px 12px!important;
    box-shadow:none!important;
    outline:none!important;
}
body.scrm-ui-v114 textarea{
    min-height:96px!important;
}
body.scrm-ui-v114 input:focus,
body.scrm-ui-v114 select:focus,
body.scrm-ui-v114 textarea:focus{
    border-color:#caa359!important;
    box-shadow:0 0 0 3px rgba(184,139,61,.12)!important;
}

/* Badges */
.scrm-v114-badge,
body.scrm-ui-v114 .badge,
body.scrm-ui-v114 .pill,
body.scrm-ui-v114 [class*="status"]{
    border-radius:999px!important;
    padding:5px 10px!important;
    font-size:11.5px!important;
    font-weight:750!important;
    background:var(--v114-gold-soft)!important;
    color:var(--v114-gold-dark)!important;
}

/* Page-specific layouts */
body.scrm-ui-v114[data-scrm-view="projects"] .scrm-v114-main,
body.scrm-ui-v114[data-scrm-view="clients"] .scrm-v114-main,
body.scrm-ui-v114[data-scrm-view="tasks"] .scrm-v114-main,
body.scrm-ui-v114[data-scrm-view="emails"] .scrm-v114-main,
body.scrm-ui-v114[data-scrm-view="workflows"] .scrm-v114-main,
body.scrm-ui-v114[data-scrm-view="quotes"] .scrm-v114-main,
body.scrm-ui-v114[data-scrm-view="galleries"] .scrm-v114-main,
body.scrm-ui-v114[data-scrm-view="settings"] .scrm-v114-main{
    display:block!important;
}

/* Project/client detail cards */
body.scrm-ui-v114[data-scrm-view="project"] .scrm-card,
body.scrm-ui-v114[data-scrm-view="client"] .scrm-card{
    border-radius:14px!important;
    padding:20px!important;
}

/* Tabs */
body.scrm-ui-v114 .tabs,
body.scrm-ui-v114 .scrm-tabs{
    display:flex!important;
    gap:18px!important;
    border-bottom:1px solid #e8ddcd!important;
    margin:18px 0!important;
}
body.scrm-ui-v114 .tabs a,
body.scrm-ui-v114 .scrm-tabs a,
body.scrm-ui-v114 .tab{
    padding:10px 0!important;
    color:#6f675e!important;
    text-decoration:none!important;
    border-bottom:2px solid transparent!important;
}
body.scrm-ui-v114 .tabs a.active,
body.scrm-ui-v114 .scrm-tabs a.active,
body.scrm-ui-v114 .tab.active{
    color:var(--v114-gold-dark)!important;
    border-bottom-color:var(--v114-gold)!important;
}

/* Tasks page */
body.scrm-ui-v114[data-scrm-view="tasks"] .scrm-tasks li,
body.scrm-ui-v114[data-scrm-view="tasks"] .editable-tasks li{
    background:#fff!important;
    border:1px solid var(--v114-border)!important;
    border-radius:12px!important;
    box-shadow:none!important;
    margin-bottom:10px!important;
}

/* Agenda */
body.scrm-ui-v114[data-scrm-view="agenda"] .agenda-g-shell,
body.scrm-ui-v114[data-scrm-view="agenda"] .scrm-card{
    background:#fff!important;
}
body.scrm-ui-v114 .agenda-g-event,
body.scrm-ui-v114 .agenda-g-month-event{
    border-radius:10px!important;
    box-shadow:none!important;
}

/* Settings/template layout */
body.scrm-ui-v114[data-scrm-view="settings"] .scrm-settings-template-list,
body.scrm-ui-v114[data-scrm-view="templates"] .scrm-settings-template-list{
    background:#fff!important;
    border:1px solid var(--v114-border)!important;
    border-radius:14px!important;
    box-shadow:var(--v114-shadow)!important;
}
body.scrm-ui-v114 .scrm-settings-template-item{
    border-radius:12px!important;
}

/* Danger zone softer */
body.scrm-ui-v114 .danger,
body.scrm-ui-v114 .scrm-danger-zone{
    background:#fff7f7!important;
    border-color:#f0dada!important;
}

/* Mobile */
@media(max-width:900px){
    body.scrm-ui-v114 .scrm-sidebar,
    body.scrm-ui-v114 .scrm-menu,
    body.scrm-ui-v114 .scrm-v114-sidebar{
        width:78px!important;
        min-width:78px!important;
        padding:18px 10px!important;
    }
    body.scrm-ui-v114 .scrm-sidebar a,
    body.scrm-ui-v114 .scrm-menu a{
        justify-content:center!important;
        padding:0!important;
        font-size:0!important;
    }
    .scrm-v114-logo small,
    .scrm-v114-user strong,
    .scrm-v114-user em,
    .scrm-v114-user b{
        display:none!important;
    }
    .scrm-v114-logo span{
        font-size:24px!important;
    }
    .scrm-v114-user{
        grid-template-columns:1fr!important;
        justify-items:center!important;
    }
}


/* =========================================================
   V1.14.1 — Sidebar icons no duplicates
   ========================================================= */
body.scrm-ui-v114 .scrm-sidebar a > .crm136-nav-icon,
body.scrm-ui-v114 .scrm-menu a > .crm136-nav-icon,
body.scrm-ui-v114 aside a > .crm136-nav-icon,
body.scrm-ui-v114 .scrm-sidebar a > .crm135-svg,
body.scrm-ui-v114 .scrm-menu a > .crm135-svg,
body.scrm-ui-v114 aside a > .crm135-svg{
    display:none!important;
}
body.scrm-ui-v114 .scrm-sidebar a > .scrm-v114-nav-icon ~ .scrm-v114-nav-icon,
body.scrm-ui-v114 .scrm-menu a > .scrm-v114-nav-icon ~ .scrm-v114-nav-icon,
body.scrm-ui-v114 aside a > .scrm-v114-nav-icon ~ .scrm-v114-nav-icon{
    display:none!important;
}

/* =========================================================
   V1.14.1 — Fiche projet style mockup
   ========================================================= */
.scrm-v141-project-page{
    max-width:1480px!important;
}

.scrm-v141-project-shell{
    margin-bottom:28px;
}

.scrm-v141-project-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.scrm-v141-project-top a{
    color:#9c6f23!important;
    text-decoration:none!important;
    font-size:13px;
    font-weight:650;
}

.scrm-v141-project-actions{
    display:flex;
    gap:10px;
}

.scrm-v141-project-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:22px;
}

.scrm-v141-project-header h1{
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:30px!important;
    font-weight:500!important;
    line-height:1.1!important;
    margin:0 0 8px!important;
}

.scrm-v141-project-header p{
    margin:0;
    color:#6f675e;
    font-size:14px;
}

.scrm-v141-project-header p span{
    display:inline-block;
    margin-left:8px;
    font-size:11px;
    color:#8b7d6b;
    background:#f5f0e8;
    border-radius:999px;
    padding:3px 8px;
}

.scrm-v141-status{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    background:#f4ead7;
    color:#9c6f23;
    font-size:12px;
    font-weight:750;
    padding:6px 12px;
}

.scrm-v141-tabs{
    display:flex;
    gap:34px;
    border-bottom:1px solid #e8ddcd;
    margin-bottom:26px;
}

.scrm-v141-tabs a{
    padding:12px 0 13px;
    font-size:13px;
    color:#1e222a;
    text-decoration:none;
    border-bottom:2px solid transparent;
}

.scrm-v141-tabs a.active{
    color:#9c6f23;
    border-bottom-color:#b88b3d;
}

.scrm-v141-project-grid{
    display:grid;
    grid-template-columns:1fr 1.45fr .95fr;
    gap:20px;
    align-items:stretch;
}

.scrm-v141-panel{
    background:#fff;
    border:1px solid #eadfce;
    border-radius:14px;
    box-shadow:0 8px 22px rgba(56,42,28,.04);
    padding:20px;
    min-height:340px;
}

.scrm-v141-panel h2{
    font-size:16px!important;
    margin:0 0 24px!important;
}

.scrm-v141-panel dl{
    margin:0;
    display:grid;
    gap:16px;
}

.scrm-v141-panel dt{
    font-size:11px;
    color:#8a8177;
    margin-bottom:4px;
}

.scrm-v141-panel dd{
    margin:0;
    font-size:13px;
    color:#1e222a;
    font-weight:600;
}

.scrm-v141-progress{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:center;
    margin-bottom:24px;
}

.scrm-v141-progress span,
.scrm-v141-progress b{
    font-size:12px;
    color:#6f675e;
}

.scrm-v141-progress i{
    grid-column:span 2;
    height:8px;
    border-radius:999px;
    background:#f1eadf;
    overflow:hidden;
}

.scrm-v141-progress em{
    display:block;
    height:100%;
    border-radius:999px;
    background:#b88b3d;
}

.scrm-v141-task-preview{
    display:grid;
    gap:16px;
}

.scrm-v141-task-preview div{
    display:grid;
    grid-template-columns:22px 1fr auto;
    gap:10px;
    align-items:center;
}

.scrm-v141-task-preview span{
    width:18px;
    height:18px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #ded4c6;
    color:#aaa093;
    font-size:11px;
}

.scrm-v141-task-preview div.done span{
    background:#e9f3eb;
    border-color:#b7d1be;
    color:#4f8b5d;
}

.scrm-v141-task-preview strong{
    font-size:13px;
    color:#1e222a;
}

.scrm-v141-task-preview em{
    font-style:normal;
    font-size:11px;
    color:#6f675e;
    background:#f6f1e8;
    border-radius:999px;
    padding:4px 8px;
}

.scrm-v141-task-preview div.done em{
    color:#4f8b5d;
    background:#e9f3eb;
}

.scrm-v141-panel textarea{
    width:100%;
    min-height:46px!important;
    resize:vertical;
    margin-bottom:18px;
}

.scrm-v141-note{
    background:#f7f1e8;
    border-radius:12px;
    padding:14px;
    margin-bottom:26px;
}

.scrm-v141-note strong{
    display:block;
    font-size:12px;
    margin-bottom:8px;
}

.scrm-v141-note p{
    margin:0;
    font-size:13px;
    color:#1e222a;
}

.scrm-v141-panel h3{
    font-size:14px!important;
    margin:0 0 16px!important;
}

.scrm-v141-next{
    border-top:1px solid #eee5d8;
    padding-top:14px;
}

.scrm-v141-next strong,
.scrm-v141-next span{
    display:block;
    font-size:13px;
}

.scrm-v141-next span{
    color:#6f675e;
    margin-top:3px;
}

.scrm-v141-legacy-block{
    margin-top:18px!important;
}

@media(max-width:1100px){
    .scrm-v141-project-grid{
        grid-template-columns:1fr;
    }
}

/* =========================================================
   V1.15.0 — Billing foundation
   ========================================================= */
.scrm-billing-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:22px;
}
.scrm-billing-head h1{
    margin:0 0 6px!important;
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:34px!important;
    font-weight:500!important;
}
.scrm-billing-head p{
    margin:0;
    color:#6f675e;
}
.scrm-billing-head>div:last-child{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.scrm-billing-kpis{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    margin-bottom:18px;
}
.scrm-billing-kpis article{
    background:#fff;
    border:1px solid #eadfce;
    border-radius:14px;
    padding:20px;
    box-shadow:0 8px 22px rgba(56,42,28,.04);
}
.scrm-billing-kpis strong{
    display:block;
    font-size:24px;
    margin-bottom:6px;
    color:#1e222a;
}
.scrm-billing-kpis span{
    color:#6f675e;
    font-size:13px;
}
.scrm-billing-two{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}
.scrm-billing-list h2{
    margin-top:0!important;
}
.scrm-billing-badge{
    display:inline-flex;
    border-radius:999px;
    padding:5px 10px;
    background:#f4ead7;
    color:#9c6f23;
    font-size:11.5px;
    font-weight:800;
}
.scrm-billing-badge.status-paid{
    background:#e9f3eb;
    color:#4f8b5d;
}
.scrm-billing-badge.status-partial{
    background:#fff3d7;
    color:#a77620;
}
.scrm-billing-settings form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px 18px;
}
.scrm-billing-settings label{
    font-weight:700;
    color:#514940;
}
.scrm-billing-settings textarea,
.scrm-billing-settings button,
.scrm-billing-settings .scrm-billing-check,
.scrm-billing-settings p{
    grid-column:span 2;
}
.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}
@media(max-width:900px){
    .scrm-billing-two,
    .scrm-billing-kpis,
    .scrm-billing-settings form,
    .grid-3{
        grid-template-columns:1fr;
    }
    .scrm-billing-settings textarea,
    .scrm-billing-settings button,
    .scrm-billing-settings .scrm-billing-check,
    .scrm-billing-settings p{
        grid-column:span 1;
    }
}

/* V1.15.1 — Billing editor */
.scrm-billing-editor-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin-bottom:18px}
.scrm-billing-totals{display:grid;grid-template-columns:1fr auto;gap:10px 18px}
.scrm-billing-totals span{color:#6f675e}.scrm-billing-totals strong{color:#1e222a}
.scrm-billing-card-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.scrm-billing-card-head h2{margin:0!important}
@media(max-width:1000px){.scrm-billing-editor-grid{grid-template-columns:1fr}}

/* V1.15.7 — billing stable UI */
.scrm-billing-modal{
    background:rgba(28,24,20,.44)!important;
}
.scrm-billing-modal-inner,
#scrmBillingDocModal .scrm-modal-inner,
#scrmBillingLineModal .scrm-modal-inner,
#scrmBillingPaymentModal .scrm-modal-inner,
#scrmBillingUpdateModal .scrm-modal-inner{
    background:#fffdf9!important;
    border:1px solid #eadfce!important;
    box-shadow:0 24px 70px rgba(35,25,18,.20)!important;
    border-radius:26px!important;
    max-height:88vh!important;
    overflow:auto!important;
}
#scrmBillingDocModal .scrm-billing-modal-inner{
    width:min(620px,92vw)!important;
}
.scrm-billing-search-results{
    display:none;
    margin-top:8px;
    border:1px solid #eadfce;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
}
.scrm-billing-search-results.visible{
    display:block!important;
}
.scrm-billing-result{
    width:100%!important;
    display:block!important;
    text-align:left!important;
    border:0!important;
    border-bottom:1px solid #f1e8dc!important;
    background:#fff!important;
    color:#1e222a!important;
    border-radius:0!important;
    padding:12px 14px!important;
    box-shadow:none!important;
}
.scrm-billing-result:hover{
    background:#fbf5ec!important;
}
.scrm-billing-result strong,
.scrm-billing-result span{
    display:block;
}
.scrm-billing-result span,
.scrm-billing-no-result{
    font-size:12px;
    color:#746a60;
}
.scrm-billing-no-result{
    padding:12px 14px;
}
.danger-soft,
.scrm-btn.danger-soft{
    color:#9d2e2e!important;
    border-color:#efd4d4!important;
    background:#fff7f7!important;
}

/* V1.15.8 — UI facturation premium stable */
.scrm-billing-modal{
    background:rgba(25,22,18,.42)!important;
    backdrop-filter:blur(3px)!important;
}
.scrm-billing-modal-inner,
#scrmBillingDocModal .scrm-modal-inner,
#scrmBillingLineModal .scrm-modal-inner,
#scrmBillingPaymentModal .scrm-modal-inner,
#scrmBillingUpdateModal .scrm-modal-inner{
    background:#fffdfa!important;
    border:1px solid #eadfce!important;
    box-shadow:0 26px 80px rgba(42,30,20,.22)!important;
    border-radius:30px!important;
    padding:34px!important;
    max-height:88vh!important;
    overflow:auto!important;
}
#scrmBillingDocModal .scrm-billing-modal-inner,
#scrmBillingDocModal .scrm-modal-inner{
    width:min(600px,92vw)!important;
}
#scrmBillingLineModal .scrm-billing-modal-inner,
#scrmBillingLineModal .scrm-modal-inner{
    width:min(960px,94vw)!important;
}
.scrm-billing-modal-inner h2,
#scrmBillingDocModal h2,
#scrmBillingLineModal h2,
#scrmBillingPaymentModal h2,
#scrmBillingUpdateModal h2{
    font-size:24px!important;
    line-height:1.1!important;
    margin:0 0 24px!important;
    letter-spacing:-.02em!important;
}
.scrm-billing-modal-inner label{
    font-size:14px!important;
    font-weight:720!important;
    color:#5c5248!important;
    margin:14px 0 8px!important;
}
.scrm-billing-modal-inner input,
.scrm-billing-modal-inner select,
.scrm-billing-modal-inner textarea{
    min-height:52px!important;
    border-radius:16px!important;
    border:1px solid #e4d8c7!important;
    background:#fff!important;
    font-size:15px!important;
    padding:13px 15px!important;
}
.scrm-billing-modal-inner textarea{
    min-height:130px!important;
}
.scrm-billing-modal-inner .scrm-btn.gold{
    min-height:54px!important;
    border-radius:16px!important;
    margin-top:14px!important;
    font-size:16px!important;
}
.scrm-billing-search-results{
    display:none;
    margin-top:8px!important;
    border:1px solid #eadfce!important;
    border-radius:16px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 10px 24px rgba(42,30,20,.07)!important;
}
.scrm-billing-search-results.visible{
    display:block!important;
}
.scrm-billing-result{
    width:100%!important;
    display:block!important;
    text-align:left!important;
    border:0!important;
    border-bottom:1px solid #f1e8dc!important;
    border-radius:0!important;
    background:#fff!important;
    color:#1f2430!important;
    padding:12px 14px!important;
    box-shadow:none!important;
}
.scrm-billing-result:hover{
    background:#fbf5ec!important;
}
.scrm-billing-result strong,
.scrm-billing-result span{
    display:block!important;
}
.scrm-billing-result span{
    color:#766c61!important;
    font-size:12px!important;
    margin-top:2px!important;
}
.scrm-modal-close{
    width:48px!important;
    height:48px!important;
    border-radius:16px!important;
    background:#fffaf2!important;
    border:1px solid #e4d6be!important;
    color:#9c6f23!important;
}

/* V1.15.9 — billing action buttons */
.scrm-billing-head .scrm-btn{
    white-space:nowrap!important;
}

/* V1.16.0 — Facturation sans colonne unité */
.grid-2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
@media(max-width:900px){
    .grid-2{grid-template-columns:1fr;}
}
.scrm-billing-editor table th:nth-child(4),
.scrm-billing-editor table td:nth-child(4){
    /* colonne PU HT après suppression unité : garde alignement propre */
}

/* V1.16.1 — modal import PROSELECT */
#scrmProselectModal.hidden{
    display:none!important;
}


/* V1.16.2 — PROSELECT import modal */
#scrmProselectModal{
    position:fixed!important;
    inset:0!important;
    align-items:center!important;
    justify-content:center!important;
    background:rgba(25,22,18,.42)!important;
    z-index:999999!important;
}
#scrmProselectModal.hidden{
    display:none!important;
}
#scrmProselectModal.open,
#scrmProselectModal.active{
    display:flex!important;
}
#scrmProselectModal .scrm-modal-inner{
    background:#fffdfa!important;
    border:1px solid #eadfce!important;
    border-radius:28px!important;
    box-shadow:0 26px 80px rgba(42,30,20,.22)!important;
    padding:34px!important;
    width:min(560px,92vw)!important;
}

/* V1.16.3 — infos facturation */
.scrm-billing-sep{
    border:0;
    border-top:1px solid #eadfce;
    margin:18px 0 8px;
}
#scrmBillingAdminModal textarea{
    min-height:120px!important;
}

/* V1.17.0 — fiche projet active */
.scrm-v170-project{
    max-width:1480px;
    margin:0 auto;
}
.scrm-v170-project-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}
.scrm-v170-project-top a{
    color:#9c6f23;
    text-decoration:none;
    font-weight:700;
}
.scrm-v170-project-top>div{
    display:flex;
    gap:10px;
}
.scrm-v170-project-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:22px;
}
.scrm-v170-project-header h1{
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:38px!important;
    font-weight:500!important;
    margin:0 0 8px!important;
}
.scrm-v170-project-header p{
    margin:0;
    color:#6f675e;
}
.scrm-v170-project-header span,
.scrm-v170-status{
    display:inline-flex;
    border-radius:999px;
    padding:5px 10px;
    background:#f4ead7;
    color:#9c6f23;
    font-weight:800;
    font-size:12px;
}
.scrm-v170-tabs{
    display:flex;
    gap:34px;
    border-bottom:1px solid #eadfce;
    margin-bottom:26px;
}
.scrm-v170-tabs button{
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
    padding:12px 0!important;
    color:#1f2430!important;
    font-weight:650!important;
    border-bottom:2px solid transparent!important;
}
.scrm-v170-tabs button.active{
    color:#9c6f23!important;
    border-bottom-color:#b88b3d!important;
}
.scrm-v170-grid{
    display:grid;
    grid-template-columns:1fr 1.45fr .95fr;
    gap:22px;
}
.scrm-v170-panel{
    background:#fff;
    border:1px solid #eadfce;
    border-radius:16px;
    padding:24px;
    box-shadow:0 8px 24px rgba(56,42,28,.04);
}
.scrm-v170-panel.wide{
    grid-column:1 / -1;
}
.scrm-v170-panel h2{
    margin:0 0 24px!important;
    font-size:18px!important;
}
.scrm-v170-panel dl{
    display:grid;
    gap:16px;
    margin:0;
}
.scrm-v170-panel dt{
    font-size:12px;
    color:#8a8177;
}
.scrm-v170-panel dd{
    margin:0;
    font-weight:700;
}
.scrm-v170-progress{
    display:grid;
    grid-template-columns:1fr auto;
    gap:12px;
    margin-bottom:24px;
}
.scrm-v170-progress i{
    grid-column:span 2;
    height:8px;
    border-radius:999px;
    background:#f1eadf;
    overflow:hidden;
}
.scrm-v170-progress em{
    display:block;
    height:100%;
    background:#b88b3d;
}
.scrm-v170-task-preview{
    display:grid;
    gap:16px;
}
.scrm-v170-task-preview div{
    display:grid;
    grid-template-columns:28px 1fr auto;
    gap:12px;
    align-items:center;
}
.scrm-v170-task-preview button,
.scrm-v170-task-row button{
    width:24px!important;
    height:24px!important;
    min-height:24px!important;
    padding:0!important;
    border-radius:999px!important;
    border:1px solid #d8cfc2!important;
    background:#fff!important;
    color:#4f8b5d!important;
}
.scrm-v170-task-preview div.done button,
.scrm-v170-task-row.done button{
    background:#e9f3eb!important;
    border-color:#b7d1be!important;
}
.scrm-v170-task-preview em,
.scrm-v170-task-row em{
    font-style:normal;
    border-radius:999px;
    padding:5px 10px;
    background:#f4ead7;
    color:#6f675e;
    font-size:12px;
    font-weight:700;
}
.scrm-v170-task-preview div.done em,
.scrm-v170-task-row.done em{
    background:#e9f3eb;
    color:#4f8b5d;
}
.scrm-v170-note-form{
    display:grid;
    gap:12px;
    margin-bottom:22px;
}
.scrm-v170-note-form textarea{
    min-height:96px!important;
}
.scrm-v170-note{
    background:#f7f1e8;
    padding:16px;
    border-radius:14px;
    margin-bottom:24px;
}
.scrm-v170-next{
    border-top:1px solid #eadfce;
    padding-top:14px;
}
.scrm-v170-next strong,
.scrm-v170-next span{
    display:block;
}
.scrm-v170-task-list{
    display:grid;
    gap:10px;
}
.scrm-v170-task-row{
    display:grid;
    grid-template-columns:32px 1fr auto;
    gap:14px;
    align-items:center;
    padding:14px;
    border:1px solid #eadfce;
    border-radius:14px;
}
.scrm-v170-task-row span{
    display:block;
    color:#6f675e;
    font-size:13px;
    margin-top:2px;
}
.scrm-v170-card-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    margin-bottom:18px;
}
.scrm-v170-card-head h2{
    margin:0!important;
}
.scrm-v170-table{
    width:100%;
}
.scrm-v170-notes{
    display:grid;
    gap:12px;
}
.scrm-v170-notes>div{
    background:#f7f1e8;
    padding:14px;
    border-radius:14px;
}
@media(max-width:1100px){
    .scrm-v170-grid{
        grid-template-columns:1fr;
    }
}

/* =========================================================
   V1.17.1 — Harmonisation boutons mockup + fiche projet
   ========================================================= */

.scrm-btn,
button.scrm-btn,
a.scrm-btn,
.wp-core-ui .scrm-btn{
    min-height:38px!important;
    padding:0 18px!important;
    border-radius:10px!important;
    border:1px solid #d9c8aa!important;
    background:#fffdf9!important;
    color:#9c6f23!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:38px!important;
    box-shadow:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    text-decoration:none!important;
}
.scrm-btn:hover{
    background:#fbf6ec!important;
    transform:none!important;
}
.scrm-btn.gold,
button.scrm-btn.gold,
a.scrm-btn.gold{
    background:#b88b3d!important;
    border-color:#b88b3d!important;
    color:#fff!important;
    box-shadow:0 10px 18px rgba(184,139,61,.14)!important;
}
.scrm-btn.danger-soft{
    color:#9d2e2e!important;
    border-color:#efd4d4!important;
    background:#fff7f7!important;
}

/* Onglets projet comme le mockup */
.scrm-v170-tabs{
    gap:34px!important;
    border-bottom:1px solid #eadfce!important;
    margin-bottom:26px!important;
}
.scrm-v170-tabs button,
.scrm-v170-tabs .scrm-btn{
    min-height:auto!important;
    height:auto!important;
    line-height:1.2!important;
    padding:12px 0 14px!important;
    border:0!important;
    border-bottom:2px solid transparent!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#1f2430!important;
    font-size:14px!important;
    font-weight:600!important;
}
.scrm-v170-tabs button.active{
    color:#9c6f23!important;
    border-bottom-color:#b88b3d!important;
}
.scrm-v170-project-top .scrm-btn{
    min-width:72px!important;
    height:38px!important;
    border-radius:9px!important;
}
.scrm-v170-status{
    background:#f4ead7!important;
    color:#9c6f23!important;
    padding:7px 13px!important;
    border-radius:999px!important;
}

/* Tâches façon mockup */
.scrm-v170-task-preview{
    gap:18px!important;
}
.scrm-v170-task-preview div{
    grid-template-columns:28px 1fr auto!important;
    min-height:34px!important;
}
.scrm-v170-task-preview strong{
    font-size:14px!important;
    font-weight:700!important;
    color:#1f2430!important;
}
.scrm-v170-task-preview button,
.scrm-v170-task-row button{
    width:22px!important;
    height:22px!important;
    min-height:22px!important;
    border-radius:999px!important;
    font-size:12px!important;
    background:#fff!important;
    border:1.4px solid #d8cfc2!important;
    color:#9c6f23!important;
    box-shadow:none!important;
}
.scrm-v170-task-preview div.done button,
.scrm-v170-task-row.done button{
    background:#e9f3eb!important;
    border-color:#bdd9c4!important;
    color:#4f8b5d!important;
}
.scrm-v170-task-preview em,
.scrm-v170-task-row em{
    font-size:12px!important;
    padding:5px 10px!important;
    background:#f4ead7!important;
    color:#766c61!important;
}
.scrm-v170-task-preview div.done em,
.scrm-v170-task-row.done em{
    background:#e9f3eb!important;
    color:#4f8b5d!important;
}
.scrm-v170-task-row{
    border:0!important;
    border-bottom:1px solid #eadfce!important;
    border-radius:0!important;
    padding:13px 0!important;
}

/* Actions contact */
.scrm-v171-contact-line{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    flex-wrap:wrap!important;
}
.scrm-v171-mini-action{
    width:28px!important;
    height:28px!important;
    border:1px solid #e1d4c0!important;
    border-radius:999px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#fffdf9!important;
    color:#9c6f23!important;
    text-decoration:none!important;
    font-size:13px!important;
    line-height:1!important;
}
.scrm-v171-mini-action:hover{
    background:#f4ead7!important;
}
.scrm-v171-head-actions{
    display:flex!important;
    gap:10px!important;
    flex-wrap:wrap!important;
}

/* Modale édition projet */
#scrmV171ProjectEditModal{
    position:fixed!important;
    inset:0!important;
    align-items:center!important;
    justify-content:center!important;
    background:rgba(25,22,18,.42)!important;
    z-index:999999!important;
}
#scrmV171ProjectEditModal.hidden{
    display:none!important;
}
#scrmV171ProjectEditModal.open,
#scrmV171ProjectEditModal.active{
    display:flex!important;
}
#scrmV171ProjectEditModal .scrm-modal-inner{
    width:min(620px,92vw)!important;
    background:#fffdfa!important;
    border:1px solid #eadfce!important;
    border-radius:26px!important;
    padding:32px!important;
    box-shadow:0 26px 80px rgba(42,30,20,.22)!important;
}

/* =========================================================
   V1.17.2 — Polish visuel strict fiche projet / mockup
   ========================================================= */

/* Neutraliser les vieux styles de boutons sur la fiche projet */
.scrm-v170-project .scrm-btn,
.scrm-v170-project button.scrm-btn,
.scrm-v170-project a.scrm-btn{
    height:34px!important;
    min-height:34px!important;
    padding:0 15px!important;
    border-radius:8px!important;
    border:1px solid #d8c7a7!important;
    background:#fffdf9!important;
    color:#9c6f23!important;
    box-shadow:none!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:34px!important;
}
.scrm-v170-project .scrm-btn.gold{
    background:#b88b3d!important;
    color:#fff!important;
    border-color:#b88b3d!important;
}

/* Onglets : texte discret, pas boutons */
.scrm-v170-project .scrm-v170-tabs{
    display:flex!important;
    align-items:flex-end!important;
    gap:38px!important;
    padding:0!important;
    margin:0 0 26px!important;
    border-bottom:1px solid #eadfce!important;
    background:transparent!important;
}
.scrm-v170-project .scrm-v170-tabs button,
.scrm-v170-project .scrm-v170-tabs button.scrm-btn,
.scrm-v170-project nav.scrm-v170-tabs button{
    appearance:none!important;
    -webkit-appearance:none!important;
    min-height:0!important;
    height:auto!important;
    width:auto!important;
    padding:0 0 14px!important;
    margin:0!important;
    border:0!important;
    border-bottom:2px solid transparent!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#1f2430!important;
    font-size:13px!important;
    font-weight:600!important;
    line-height:1.25!important;
    text-align:left!important;
}
.scrm-v170-project .scrm-v170-tabs button.active{
    color:#9c6f23!important;
    border-bottom-color:#b88b3d!important;
}

/* Header mockup */
.scrm-v170-project .scrm-v170-project-top{
    align-items:flex-start!important;
}
.scrm-v170-project .scrm-v170-project-top>div{
    gap:8px!important;
}
.scrm-v170-project .scrm-v170-project-top .scrm-btn{
    height:34px!important;
    min-width:auto!important;
    border-radius:8px!important;
    font-size:12px!important;
}
.scrm-v170-project .scrm-v172-more-btn{
    width:42px!important;
    padding:0!important;
    font-size:18px!important;
}
.scrm-v170-project .scrm-v170-status{
    font-size:12px!important;
    padding:6px 12px!important;
    border-radius:999px!important;
    background:#f4ead7!important;
    color:#9c6f23!important;
}

/* Cases tâches minimalistes */
.scrm-v170-project .scrm-v170-task-preview div,
.scrm-v170-project .scrm-v170-task-row{
    align-items:center!important;
}
.scrm-v170-project .scrm-v170-task-preview button,
.scrm-v170-project .scrm-v170-task-row button{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    padding:0!important;
    border-radius:999px!important;
    border:1.5px solid #d7cbbb!important;
    background:#fff!important;
    color:transparent!important;
    box-shadow:none!important;
    font-size:0!important;
    line-height:1!important;
    position:relative!important;
}
.scrm-v170-project .scrm-v170-task-preview div:not(.done) button::after,
.scrm-v170-project .scrm-v170-task-row:not(.done) button::after{
    content:''!important;
    position:absolute!important;
    inset:5px!important;
    border-radius:999px!important;
    border:2px solid #9c6f23!important;
}
.scrm-v170-project .scrm-v170-task-preview div.done button,
.scrm-v170-project .scrm-v170-task-row.done button{
    background:#eaf4ee!important;
    border-color:#b9d5c2!important;
    color:transparent!important;
}
.scrm-v170-project .scrm-v170-task-preview div.done button::after,
.scrm-v170-project .scrm-v170-task-row.done button::after{
    content:'✓'!important;
    position:absolute!important;
    inset:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#4f8b5d!important;
    font-size:12px!important;
    font-weight:800!important;
}
.scrm-v170-project .scrm-v170-task-preview strong{
    font-size:13px!important;
    font-weight:700!important;
}
.scrm-v170-project .scrm-v170-task-preview em,
.scrm-v170-project .scrm-v170-task-row em{
    font-size:11px!important;
    padding:4px 9px!important;
    border-radius:999px!important;
}

/* Workflow / boutons dans tâches */
.scrm-v171-head-actions .scrm-btn{
    height:32px!important;
    min-height:32px!important;
    line-height:32px!important;
    font-size:12px!important;
}

/* Actions contact propres */
.scrm-v171-contact-line{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
}
.scrm-v171-mini-action{
    width:24px!important;
    height:24px!important;
    border-radius:999px!important;
    border:1px solid #e1d4c0!important;
    background:#fffdf9!important;
    color:#9c6f23!important;
    font-size:11px!important;
    text-decoration:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1!important;
}
.scrm-v171-mini-action:hover{
    background:#f4ead7!important;
}

/* Menu trois points */
.scrm-v172-more-menu{
    position:absolute!important;
    z-index:999999!important;
    width:210px!important;
    background:#fffdfa!important;
    border:1px solid #eadfce!important;
    border-radius:14px!important;
    box-shadow:0 18px 45px rgba(42,30,20,.15)!important;
    padding:6px!important;
}
.scrm-v172-more-menu button{
    width:100%!important;
    border:0!important;
    background:transparent!important;
    color:#1f2430!important;
    text-align:left!important;
    padding:10px 12px!important;
    border-radius:10px!important;
    font-size:13px!important;
    font-weight:600!important;
    box-shadow:none!important;
}
.scrm-v172-more-menu button:hover{
    background:#f7f1e8!important;
}

/* Modale projet */
#scrmV171ProjectEditModal{
    position:fixed!important;
    inset:0!important;
    display:none;
    align-items:center!important;
    justify-content:center!important;
    background:rgba(25,22,18,.42)!important;
    z-index:999999!important;
}
#scrmV171ProjectEditModal.open,
#scrmV171ProjectEditModal.active{
    display:flex!important;
}
#scrmV171ProjectEditModal.hidden{
    display:none!important;
}
#scrmV171ProjectEditModal .scrm-modal-inner{
    width:min(620px,92vw)!important;
    background:#fffdfa!important;
    border:1px solid #eadfce!important;
    border-radius:26px!important;
    padding:32px!important;
    box-shadow:0 26px 80px rgba(42,30,20,.22)!important;
}

/* =========================================================
   V1.17.3 — fiche projet : vitesse + édition structurée + checkboxes propres
   ========================================================= */
.scrm-v170-tabs [data-project-tab="sessions"]{display:none!important;}

.scrm-v170-project nav.scrm-v170-tabs{
    background:transparent!important;
    box-shadow:none!important;
    border:0!important;
    border-bottom:1px solid #eadfce!important;
    padding:0!important;
}
.scrm-v170-project nav.scrm-v170-tabs button{
    appearance:none!important;
    -webkit-appearance:none!important;
    min-height:0!important;
    height:auto!important;
    width:auto!important;
    padding:0 0 14px!important;
    margin:0!important;
    border:0!important;
    border-bottom:2px solid transparent!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    outline:none!important;
    color:#1f2430!important;
    font-size:13px!important;
    font-weight:600!important;
    line-height:1.25!important;
}
.scrm-v170-project nav.scrm-v170-tabs button.active{
    color:#9c6f23!important;
    border-bottom-color:#b88b3d!important;
}

.scrm-v173-edit-modal,.scrm-v173-email-modal{width:min(720px,92vw)!important;}
.scrm-v173-form-grid,.scrm-v173-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.scrm-v173-time-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px;}
.scrm-v173-time-chips button{
    height:34px!important;min-height:34px!important;padding:0 16px!important;
    border:1px solid #d8c7a7!important;border-radius:999px!important;
    background:#fff!important;color:#1f2430!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important;
}
.scrm-v173-time-chips button:hover{background:#f4ead7!important;color:#9c6f23!important;}

.scrm-v170-project .scrm-v170-task-preview button,
.scrm-v170-project .scrm-v170-task-row button{
    width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;
    border-radius:6px!important;border:1.5px solid #d6ccbd!important;background:#fffdf9!important;
    color:transparent!important;position:relative!important;overflow:hidden!important;padding:0!important;
}
.scrm-v170-project .scrm-v170-task-preview div:not(.done) button::after,
.scrm-v170-project .scrm-v170-task-row:not(.done) button::after{
    content:''!important;position:absolute!important;top:50%!important;left:50%!important;
    width:7px!important;height:7px!important;transform:translate(-50%,-50%)!important;
    border:1.8px solid #9c6f23!important;border-radius:999px!important;background:transparent!important;
}
.scrm-v170-project .scrm-v170-task-preview div.done button,
.scrm-v170-project .scrm-v170-task-row.done button{
    background:#eef7f1!important;border-color:#c7decf!important;
}
.scrm-v170-project .scrm-v170-task-preview div.done button::after,
.scrm-v170-project .scrm-v170-task-row.done button::after{
    content:''!important;position:absolute!important;top:48%!important;left:50%!important;
    width:8px!important;height:4px!important;border-left:2px solid #4f8b5d!important;
    border-bottom:2px solid #4f8b5d!important;transform:translate(-50%,-60%) rotate(-45deg)!important;
}
.scrm-v170-project .scrm-v170-task-preview strong,
.scrm-v170-project .scrm-v170-task-row strong{font-size:13px!important;line-height:1.25!important;}

#scrmV173EmailModal{position:fixed!important;inset:0!important;display:none;align-items:center!important;justify-content:center!important;background:rgba(25,22,18,.42)!important;z-index:999999!important;}
#scrmV173EmailModal.open,#scrmV173EmailModal.active{display:flex!important;}
#scrmV173EmailModal.hidden{display:none!important;}
#scrmV173EmailModal textarea{min-height:150px!important;}
@media(max-width:760px){.scrm-v173-form-grid,.scrm-v173-date-grid{grid-template-columns:1fr;}}

/* V1.18.0 — finitions mockup */
.scrm-v180-client-link{color:#1f2430!important;text-decoration:none!important;border-bottom:1px solid rgba(162,118,45,.25)!important}
.scrm-v180-client-link:hover{color:#a2762d!important}
.scrm-v172-more-menu button.danger{color:#9d2e2e!important}
.scrm-v172-more-menu button.danger:hover{background:#fff2f2!important}
.scrm-v170-project .scrm-v170-task-preview button,.scrm-v170-project .scrm-v170-task-row button{border-radius:4px!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important}
.scrm-v170-project .scrm-v170-task-preview div:not(.done) button::after,.scrm-v170-project .scrm-v170-task-row:not(.done) button::after{display:none!important}
#scrmV180InvoiceEmailModal{position:fixed!important;inset:0!important;align-items:center!important;justify-content:center!important;background:rgba(25,22,18,.42)!important;z-index:999999!important}
#scrmV180InvoiceEmailModal.hidden{display:none!important}
#scrmV180InvoiceEmailModal.open,#scrmV180InvoiceEmailModal.active{display:flex!important}
#scrmV180InvoiceEmailModal textarea{min-height:150px!important}
button.scrm-v171-mini-action{padding:0!important;min-height:26px!important;line-height:1!important;cursor:pointer!important}

/* V1.18.1 — corrections menu projet / actions facture */
.scrm-v181-more-menu{
    position:absolute!important;
    z-index:9999999!important;
    width:220px!important;
}
.scrm-v181-billing-actions{
    display:flex!important;
    gap:8px!important;
    align-items:center!important;
    justify-content:flex-end!important;
}
.scrm-v181-billing-actions .scrm-btn{
    height:30px!important;
    min-height:30px!important;
    line-height:30px!important;
    padding:0 12px!important;
    font-size:12px!important;
}

/* =========================================================
   V1.19.0 — Grosse passe visuelle inspirée mockup CRM total
   ========================================================= */

:root{
    --scrm-bg:#fbf8f1;
    --scrm-card:#fffdf9;
    --scrm-border:#eadfce;
    --scrm-text:#1f2430;
    --scrm-muted:#746d64;
    --scrm-gold:#b88b3d;
    --scrm-gold-dark:#9c6f23;
    --scrm-green:#4f8b5d;
    --scrm-red:#c85d56;
    --scrm-radius:16px;
    --scrm-shadow:0 12px 35px rgba(42,30,20,.06);
}

/* Base plus claire */
body.wp-admin,
#wpbody-content,
.scrm-app,
.scrm-main,
.scrm-content{
    background:linear-gradient(115deg,#fbf8f1 0%,#fffdf9 45%,#fbf8f1 100%)!important;
    color:var(--scrm-text)!important;
}

/* Sidebar mockup */
.scrm-sidebar{
    background:linear-gradient(180deg,#f8f1e5 0%,#fff9ef 100%)!important;
    border-right:1px solid #eadfce!important;
    box-shadow:none!important;
}
.scrm-sidebar .scrm-logo{
    font-family:Georgia,"Times New Roman",serif!important;
    color:#1f2430!important;
    font-weight:400!important;
    letter-spacing:-.02em!important;
}
.scrm-sidebar nav a{
    min-height:38px!important;
    border-radius:10px!important;
    margin:4px 12px!important;
    padding:0 12px!important;
    color:#2a2d34!important;
    font-size:13px!important;
    font-weight:650!important;
    background:transparent!important;
    border:1px solid transparent!important;
}
.scrm-sidebar nav a.active,
.scrm-sidebar nav a:hover{
    background:#fff!important;
    color:var(--scrm-gold-dark)!important;
    border-color:#f0e7d9!important;
    box-shadow:0 8px 22px rgba(42,30,20,.04)!important;
}

/* Titres */
.scrm-main h1,
.scrm-content h1{
    font-family:Georgia,"Times New Roman",serif!important;
    font-weight:500!important;
    letter-spacing:-.04em!important;
    color:#20242d!important;
}
.scrm-main h2,
.scrm-content h2{
    letter-spacing:-.02em!important;
    color:#20242d!important;
}

/* Cartes générales */
.scrm-card,
.scrm-v170-panel,
.scrm-kpi,
.scrm-box,
.scrm-widget{
    background:var(--scrm-card)!important;
    border:1px solid var(--scrm-border)!important;
    border-radius:var(--scrm-radius)!important;
    box-shadow:var(--scrm-shadow)!important;
}

/* Boutons globalement mockup */
.scrm-btn,
button.scrm-btn,
a.scrm-btn,
.wp-core-ui .scrm-btn{
    height:34px!important;
    min-height:34px!important;
    padding:0 14px!important;
    border-radius:8px!important;
    border:1px solid #d8c7a7!important;
    background:#fffdf9!important;
    color:var(--scrm-gold-dark)!important;
    font-size:12px!important;
    font-weight:750!important;
    line-height:34px!important;
    box-shadow:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    text-decoration:none!important;
}
.scrm-btn:hover{
    background:#fbf4e8!important;
}
.scrm-btn.gold,
button.scrm-btn.gold,
a.scrm-btn.gold{
    background:var(--scrm-gold)!important;
    border-color:var(--scrm-gold)!important;
    color:#fff!important;
    box-shadow:0 8px 18px rgba(184,139,61,.14)!important;
}

/* Inputs */
.scrm-main input,
.scrm-main select,
.scrm-main textarea,
.scrm-content input,
.scrm-content select,
.scrm-content textarea{
    border:1px solid #e4d8c7!important;
    border-radius:10px!important;
    background:#fffdf9!important;
    color:#1f2430!important;
    box-shadow:none!important;
}
.scrm-main label,
.scrm-content label{
    color:#5e554c!important;
    font-weight:750!important;
}

/* Badges */
.scrm-v170-status,
.scrm-badge,
.badge{
    border-radius:999px!important;
    padding:5px 10px!important;
    background:#f4ead7!important;
    color:var(--scrm-gold-dark)!important;
    font-size:12px!important;
    font-weight:800!important;
}

/* Fiche projet stricte */
.scrm-v170-project{
    max-width:1440px!important;
}
.scrm-v170-project-header h1{
    font-size:34px!important;
    line-height:1.02!important;
}
.scrm-v170-tabs{
    gap:30px!important;
}
.scrm-v170-tabs button{
    font-size:13px!important;
}

/* Checkbox SVG-like */
.scrm-v170-project .scrm-v170-task-preview button,
.scrm-v170-project .scrm-v170-task-row button{
    border-radius:4px!important;
    width:17px!important;
    height:17px!important;
    min-width:17px!important;
    min-height:17px!important;
    border:1.4px solid #d5cbbb!important;
    background:#fffdf9!important;
}
.scrm-v170-project .scrm-v170-task-preview div.done button,
.scrm-v170-project .scrm-v170-task-row.done button{
    background:#edf6f0!important;
    border-color:#c1d8c8!important;
}
.scrm-v170-project .scrm-v170-task-preview div.done button::after,
.scrm-v170-project .scrm-v170-task-row.done button::after{
    content:''!important;
    position:absolute!important;
    width:8px!important;
    height:4px!important;
    border-left:2px solid var(--scrm-green)!important;
    border-bottom:2px solid var(--scrm-green)!important;
    transform:translate(-50%,-60%) rotate(-45deg)!important;
    top:48%!important;
    left:50%!important;
}

/* Modale facture email premium */
#scrmV190InvoiceEmailModal{
    position:fixed!important;
    inset:0!important;
    align-items:center!important;
    justify-content:center!important;
    background:rgba(28,24,20,.42)!important;
    backdrop-filter:blur(3px)!important;
    z-index:999999!important;
}
#scrmV190InvoiceEmailModal.hidden{
    display:none!important;
}
#scrmV190InvoiceEmailModal.open,
#scrmV190InvoiceEmailModal.active{
    display:flex!important;
}
.scrm-v190-invoice-modal{
    width:min(660px,92vw)!important;
    background:#fffdfa!important;
    border:1px solid #eadfce!important;
    border-radius:24px!important;
    padding:30px!important;
    box-shadow:0 30px 90px rgba(42,30,20,.22)!important;
}
.scrm-v190-modal-head{
    display:flex!important;
    gap:14px!important;
    align-items:flex-start!important;
    margin-bottom:20px!important;
}
.scrm-v190-modal-icon{
    width:44px!important;
    height:44px!important;
    border-radius:14px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#f4ead7!important;
    color:var(--scrm-gold-dark)!important;
    font-size:18px!important;
}
.scrm-v190-modal-head h2{
    margin:0 0 5px!important;
    font-size:22px!important;
}
.scrm-v190-modal-head p{
    margin:0!important;
    color:#756d64!important;
}
#scrmV190InvoiceEmailForm{
    display:grid!important;
    gap:10px!important;
}
#scrmV190InvoiceEmailForm textarea{
    min-height:160px!important;
}
.scrm-v190-modal-actions{
    display:flex!important;
    justify-content:flex-end!important;
    gap:10px!important;
    margin-top:10px!important;
}

/* Historique emails */
.scrm-v190-email-list{
    display:grid!important;
    gap:10px!important;
}
.scrm-v190-email-row{
    display:grid!important;
    grid-template-columns:36px 1fr auto!important;
    gap:12px!important;
    align-items:center!important;
    padding:12px 0!important;
    border-bottom:1px solid #f0e6d8!important;
}
.scrm-v190-email-row:last-child{
    border-bottom:0!important;
}
.scrm-v190-email-icon{
    width:32px!important;
    height:32px!important;
    border-radius:999px!important;
    background:#f4ead7!important;
    color:var(--scrm-gold-dark)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.scrm-v190-email-row strong,
.scrm-v190-email-row span{
    display:block!important;
}
.scrm-v190-email-row span{
    color:#746d64!important;
    font-size:12px!important;
    margin-top:2px!important;
}
.scrm-v190-email-row em{
    font-style:normal!important;
    background:#e9f3eb!important;
    color:var(--scrm-green)!important;
    border-radius:999px!important;
    padding:5px 10px!important;
    font-size:12px!important;
    font-weight:800!important;
}

/* V1.21.0 — UI email/documents */
.scrm-v121-checkline{display:flex!important;align-items:center!important;gap:10px!important;margin:8px 0!important;font-weight:700!important;color:#5e554c!important}
.scrm-v121-checkline input{width:16px!important;height:16px!important;min-height:16px!important}
.scrm-v121-doc-list{display:grid!important;gap:10px!important}
.scrm-v121-doc-row{display:grid!important;grid-template-columns:36px 1fr auto!important;gap:12px!important;align-items:center!important;padding:12px 0!important;border-bottom:1px solid #f0e6d8!important}
.scrm-v121-doc-icon{width:32px!important;height:32px!important;border-radius:999px!important;background:#f4ead7!important;color:#9c6f23!important;display:flex!important;align-items:center!important;justify-content:center!important}
.scrm-v121-doc-row strong,.scrm-v121-doc-row span{display:block!important}
.scrm-v121-doc-row span{color:#746d64!important;font-size:12px!important;margin-top:2px!important}
.scrm-v121-doc-actions{display:flex!important;gap:8px!important;align-items:center!important}

/* V1.21.1 — Bookly reset */
.scrm-v1211-bookly-tools{
    margin-top:18px!important;
    padding:18px!important;
    border:1px solid #eadfce!important;
    border-radius:16px!important;
    background:#fffdf9!important;
}
.scrm-v1211-bookly-tools p{
    margin:8px 0 0!important;
    color:#746d64!important;
    font-size:13px!important;
}

/* V1.22.0 — navigation simplifiée, UI premium, recherche, dashboard */
.scrm-sidebar nav a{border-radius:18px;margin:4px 10px;padding:11px 14px;box-shadow:inset 0 0 0 1px rgba(176,139,45,.08);transition:transform .16s ease, box-shadow .16s ease, background .16s ease}.scrm-sidebar nav a:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(50,35,20,.08), inset 0 0 0 1px rgba(176,139,45,.16)}
.scrm-btn,.crm1134-btn,button.scrm-btn,a.scrm-btn{border-radius:999px!important;box-shadow:8px 8px 18px rgba(93,72,45,.10), -8px -8px 18px rgba(255,255,255,.85), inset 0 0 0 1px rgba(176,139,45,.10);transition:transform .16s ease, box-shadow .16s ease}.scrm-btn:hover,.crm1134-btn:hover{transform:translateY(-1px);box-shadow:10px 10px 22px rgba(93,72,45,.13), -10px -10px 22px rgba(255,255,255,.9), inset 0 0 0 1px rgba(176,139,45,.18)}
.scrm-v122-result-list{display:grid;gap:10px}.scrm-v122-result{display:block;padding:14px 16px;border-radius:18px;background:#fffaf2;text-decoration:none;box-shadow:inset 0 0 0 1px rgba(176,139,45,.12)}.scrm-v122-result strong{display:block;color:#2d2418}.scrm-v122-result span,.scrm-v122-result em{display:block;color:#8b7a65;font-style:normal;font-size:13px;margin-top:3px}.scrm-v122-search-card input{min-height:46px}
.crm1134-dashboard-pipeline{grid-column:1/-1;overflow:auto}.crm1134-dashboard-pipeline .scrm-pipeline{min-height:260px}.crm1134-past .crm1134-session{opacity:.92}.crm1134-session-list.compact{gap:8px}.crm1134-session-list.compact .crm1134-session{padding:10px 12px}
.scrm-v122-modal{max-width:620px}.scrm-v122-dropzone{display:flex!important;align-items:center;justify-content:center;min-height:150px;border:1.5px dashed rgba(176,139,45,.45);border-radius:26px;background:linear-gradient(145deg,#fffaf1,#f4eadb);text-align:center;cursor:pointer;box-shadow:inset 6px 6px 14px rgba(93,72,45,.06), inset -6px -6px 14px rgba(255,255,255,.85)}.scrm-v122-dropzone input{position:absolute;opacity:0;pointer-events:none}.scrm-v122-dropzone span{font-weight:700;color:#5b4932}.scrm-v122-dropzone small{font-weight:400;color:#9a866d}.scrm-v122-progress{height:9px;border-radius:999px;background:#eadfce;overflow:hidden;margin:12px 0}.scrm-v122-progress i{display:block;width:0;height:100%;border-radius:999px;background:#b08b2d;transition:width .2s ease}
.scrm-v122-date-wrap{display:flex;gap:8px;align-items:center}.scrm-v122-date-wrap .scrm-v122-date-input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important}.scrm-v122-date-button{width:100%;border:0;border-radius:18px;padding:12px 14px;text-align:left;background:#fffaf2;color:#3d3021;box-shadow:inset 4px 4px 10px rgba(93,72,45,.07), inset -4px -4px 10px rgba(255,255,255,.85);cursor:pointer}.scrm-v122-date-button:before{content:'📅 ';opacity:.75}


/* V1.22.1 — recherche sidebar + boutons premium globaux */
.scrm-sidebar-search{display:flex;align-items:center;gap:8px;margin:0 0 18px;padding:8px;background:#efe5d6;border-radius:22px;box-shadow:inset 5px 5px 12px rgba(128,98,60,.10),inset -5px -5px 12px rgba(255,255,255,.72)}
.scrm-sidebar-search input{width:100%;border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;padding:9px 8px!important;color:#4d453b;font-weight:700}.scrm-sidebar-search button{width:34px;height:34px;border:0;border-radius:50%;cursor:pointer;background:#f6ecdd;color:#9b7645;font-weight:900;box-shadow:6px 6px 14px rgba(128,98,60,.12),-6px -6px 14px rgba(255,255,255,.75)}
.scrm-btn,.scrm-inline-btn,.crm1134-btn,.button.scrm-btn{border:1px solid rgba(255,255,255,.72)!important;background:linear-gradient(145deg,#fffaf2,#eadfce)!important;color:#4a3d31!important;border-radius:999px!important;box-shadow:7px 7px 18px rgba(116,86,48,.13),-7px -7px 18px rgba(255,255,255,.82)!important;transition:transform .16s ease,box-shadow .16s ease,background .16s ease!important}.scrm-btn:hover,.scrm-inline-btn:hover,.crm1134-btn:hover{transform:translateY(-1px);box-shadow:10px 10px 24px rgba(116,86,48,.16),-9px -9px 22px rgba(255,255,255,.88)!important}.scrm-btn.gold,.crm1134-btn.gold,.scrm-inline-btn.gold{background:linear-gradient(145deg,#c7a06b,#a97d42)!important;color:#fff!important;border-color:rgba(255,255,255,.35)!important;text-shadow:0 1px 0 rgba(0,0,0,.08)}
.scrm-client-action-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.scrm-wide-select{width:100%;max-width:100%;padding:12px;border-radius:16px;border:1px solid rgba(80,60,35,.12);background:#fff}.scrm-client-project-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid rgba(80,60,35,.08)}.scrm-client-project-row .scrm-event{flex:1}.scrm-client-project-row>div{display:flex;gap:8px;flex-wrap:wrap}.scrm-card.wide{grid-column:1/-1}.scrm-v1221-modal{max-width:620px}.scrm-v122-result-list{display:flex;flex-direction:column;gap:10px}.scrm-v122-result{display:flex;flex-direction:column;gap:4px;padding:14px;border-radius:18px;background:#fff;text-decoration:none;color:#3b332c;box-shadow:0 8px 20px rgba(60,40,20,.05)}.scrm-v122-result span{color:#7b7369}.scrm-v122-result em{font-style:normal;color:#9b7645;font-size:12px;font-weight:800}

/* V1.22.2 — recherche active + dashboard 5 lignes */
.scrm-sidebar-search{position:relative;z-index:40}
.scrm-sidebar-suggestions{display:none;position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fffdf9;border:1px solid rgba(176,139,45,.18);border-radius:20px;padding:8px;box-shadow:0 22px 50px rgba(60,40,20,.16);max-height:390px;overflow:auto}
.scrm-sidebar-suggestions.open{display:block}
.scrm-sidebar-suggestion{display:block;padding:11px 12px;border-radius:14px;text-decoration:none!important;color:#3b332c!important}
.scrm-sidebar-suggestion:hover{background:#f6ecdd}
.scrm-sidebar-suggestion b,.scrm-sidebar-suggestion span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scrm-sidebar-suggestion b{font-size:13px}.scrm-sidebar-suggestion span{font-size:11.5px;color:#827465;margin-top:2px}
.scrm-sidebar-suggestion-empty{padding:12px;color:#827465;font-size:12px}
.crm1134-upcoming,.crm1134-past{min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important}
.crm1134-upcoming .crm1134-session-list,.crm1134-past .crm1134-session-list{max-height:none!important;overflow:visible!important}
.crm1134-session-list.compact{gap:12px!important}.crm1134-session-list.compact .crm1134-session{padding:0!important;min-height:58px!important}
.scrm-topbar .scrm-actions-inline{flex-wrap:wrap;justify-content:flex-end}


/* V1.22.3 — corrections dashboard/recherche/galerie */
.scrm-sidebar-suggestions{z-index:99999!important}
.crm1134-grid{align-items:stretch!important}
.crm1134-upcoming,.crm1134-past{height:auto!important;max-height:none!important;overflow:visible!important;padding-bottom:22px!important}
.crm1134-upcoming .crm1134-session-list,.crm1134-past .crm1134-session-list{display:grid!important;grid-template-rows:none!important;max-height:none!important;overflow:visible!important;gap:14px!important}
.crm1134-upcoming .crm1134-session,.crm1134-past .crm1134-session{display:grid!important;min-height:58px!important;visibility:visible!important;opacity:1!important}
.scrm-v1223-gallery-info{margin-top:18px!important}.scrm-v1223-gallery-fields{display:grid;grid-template-columns:1.4fr .7fr .7fr;gap:12px}.scrm-v1223-gallery-fields label{font-weight:800;color:#3b332c}.scrm-v1223-gallery-fields input{margin-top:6px;width:100%}.scrm-v1223-template-choice{padding:14px 16px;margin:0 0 18px;border-radius:18px;background:#fbf6ee;border:1px solid rgba(176,139,45,.16)}
@media(max-width:1100px){.scrm-v1223-gallery-fields{grid-template-columns:1fr}}


/* V1.22.5 — forcer les cartes dashboard à afficher jusqu'à 5 lignes */
.crm1134-upcoming .crm1134-session-list,
.crm1134-past .crm1134-session-list{display:grid!important;grid-auto-rows:minmax(58px,auto)!important;max-height:none!important;height:auto!important;overflow:visible!important;}
.crm1134-upcoming .crm1134-session,
.crm1134-past .crm1134-session{display:grid!important;visibility:visible!important;opacity:1!important;}

/* V1.22.6 — dashboard : laisser la place à 5 lignes */
.crm1134-upcoming,.crm1134-past{min-height:520px!important;height:auto!important;max-height:none!important;overflow:visible!important;}
.crm1134-upcoming .crm1134-session-list,.crm1134-past .crm1134-session-list{display:grid!important;grid-template-rows:repeat(auto-fit,minmax(58px,auto))!important;gap:14px!important;max-height:none!important;overflow:visible!important;}
.crm1134-upcoming .crm1134-session:nth-child(n),.crm1134-past .crm1134-session:nth-child(n){display:grid!important;visibility:visible!important;opacity:1!important;}

/* V1.23.3 — suppression rapide dans l'onglet Documents */
.scrm-v121-doc-row{grid-template-columns:28px 36px 1fr auto!important;position:relative!important}
.scrm-v121-doc-row .doc-delete-x{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;top:auto!important;left:auto!important;margin:0!important}

/* V1.23.6 — alignement actions documents */
.scrm-v121-doc-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;min-width:210px!important}
.scrm-v121-doc-actions .scrm-btn{height:48px!important;min-height:48px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;line-height:1!important;white-space:nowrap!important}
.scrm-v121-doc-actions .scrm-v1234-send-btn{width:54px!important;min-width:54px!important;padding:0!important;font-size:15px!important}
.scrm-v121-doc-actions a.scrm-btn{min-width:112px!important;padding-left:20px!important;padding-right:20px!important}

/* V1.23.7 — Email archive details */
.scrm-v1237-email-detail{display:block;cursor:pointer;}
.scrm-v1237-email-detail summary{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;list-style:none;}
.scrm-v1237-email-detail summary::-webkit-details-marker{display:none;}
.scrm-v1237-email-detail pre{white-space:pre-wrap;margin:14px 0 0 44px;padding:14px 16px;border-radius:18px;background:rgba(176,139,45,.07);font:inherit;color:#2d2a26;line-height:1.5;}

/* V1.24.0 — Réservation front-end / Google Agenda */
.scrm-booking-settings-card{margin-top:18px}
.scrm-booking-days{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;padding:12px 0}
.scrm-booking-days label{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.62);border:1px solid rgba(80,60,40,.08);border-radius:999px;padding:8px 11px;font-weight:700;color:#5c5146}
.scrm-booking-days input{margin:0}
.scrm-google-busy-event{opacity:.78;border-style:dashed!important;background:linear-gradient(135deg,rgba(140,133,124,.16),rgba(255,255,255,.62))!important;color:#5f574f!important;cursor:default!important}
.scrm-google-busy-event strong:before{content:'🔒 ';font-size:.9em}


/* ===== Booking ===== */

.scrm-booking-wrap{
    padding:20px;
}

.scrm-booking-step{
    display:none;
}

.scrm-booking-step.active{
    display:block;
}

.scrm-booking-calendar{
    display:flex;
    gap:18px;
    overflow-x:auto;
    padding-bottom:20px;
}

.scrm-booking-day{
    min-width:180px;
}

.scrm-booking-day-title{
    background:#d89a2f;
    color:#fff;
    padding:16px;
    border-radius:18px;
    text-align:center;
    font-weight:700;
    margin-bottom:12px;
}

.scrm-slot{
    width:100%;
    border:1px solid #ddd;
    background:#fff;
    border-radius:16px;
    padding:16px;
    margin-bottom:10px;
    cursor:pointer;
}

.scrm-slot:hover{
    border-color:#d89a2f;
}

.scrm-session-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:18px;
}

.scrm-session-card{
    border:none;
    border-radius:22px;
    padding:24px;
    background:#fff;
    cursor:pointer;
    font-weight:700;
}

.scrm-input{
    width:100%;
    padding:16px;
    border-radius:16px;
    border:1px solid #ddd;
    margin-bottom:14px;
}

.scrm-booking-next{
    margin-top:20px;
    border:none;
    background:#d89a2f;
    color:#fff;
    padding:16px 24px;
    border-radius:18px;
    cursor:pointer;
}

.scrm-confirm-box{
    background:#fff;
    padding:24px;
    border-radius:22px;
    margin-bottom:20px;
}

/* ===== Agenda Settings ===== */

.scrm-agenda-settings{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}



/* ===== Settings Fix ===== */

.wrap form{
    max-width:1200px;
}

.wrap table.form-table{
    display:none !important;
}



/* ===== CRM SETTINGS REWORK ===== */

.scrm-settings-wrap{
    max-width:1400px;
    margin:20px 0;
}

.scrm-settings-sections{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.scrm-settings-card{
    background:#fff;
    border-radius:28px;
    padding:32px;
    box-shadow:0 10px 30px rgba(0,0,0,0.04);
    border:1px solid #eadfcf;
}

.scrm-settings-card h2{
    margin-top:0;
    margin-bottom:24px;
    color:#9a6a1a;
    font-size:32px;
}

.scrm-settings-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
}

.scrm-settings-field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.scrm-settings-field label{
    font-weight:700;
}

.scrm-settings-field input,
.scrm-settings-field select{
    min-height:52px;
    border-radius:16px;
    border:1px solid #ddd;
    padding:12px 16px;
}

.scrm-day-row{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.scrm-day-pill{
    padding:12px 18px;
    border-radius:999px;
    background:#f3f3f3;
    border:1px solid #e5d7c0;
    font-weight:600;
}

.scrm-day-pill.active{
    background:#d89a2f;
    color:#fff;
}


/* V1.25.2 — centre de réglages CRM complet */
.scrm-settings-topbar{align-items:center!important;gap:18px!important}
.scrm-settings-version{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(176,139,45,.10);border:1px solid rgba(176,139,45,.22);color:#8a681f;font-weight:800;padding:10px 14px;white-space:nowrap}
.scrm-settings-center{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;align-items:start;margin-top:18px}
.scrm-settings-nav{position:sticky;top:48px;display:grid;gap:10px;background:linear-gradient(145deg,#fffdf9,#f7f0e7);border:1px solid rgba(176,139,45,.18);box-shadow:10px 10px 28px rgba(84,63,35,.06),-10px -10px 28px rgba(255,255,255,.82);border-radius:30px;padding:14px}
.scrm-settings-nav-item{border:0;text-align:left;background:transparent;border-radius:22px;padding:15px 16px;cursor:pointer;color:#5f554b;transition:.18s ease;display:grid;gap:4px;width:100%}
.scrm-settings-nav-item strong{font-size:15px;color:#362f28}.scrm-settings-nav-item span{font-size:12px;line-height:1.35;color:#8a8177;font-weight:600}
.scrm-settings-nav-item:hover{background:rgba(255,255,255,.75);transform:translateY(-1px)}
.scrm-settings-nav-item.active{background:linear-gradient(145deg,#fff8ec,#f1e3ce);box-shadow:inset 4px 4px 9px rgba(108,78,35,.08),inset -5px -5px 12px rgba(255,255,255,.9);border:1px solid rgba(176,139,45,.22)}
.scrm-settings-nav-item.active strong{color:#9b7424}
.scrm-settings-panels{min-width:0}.scrm-settings-panel{display:none}.scrm-settings-panel.active{display:grid;gap:18px;animation:scrmFadeIn .18s ease both}@keyframes scrmFadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.scrm-settings-card-pro{border-radius:32px!important;background:linear-gradient(145deg,#fffdf9,#f8f2ea)!important;border:1px solid rgba(176,139,45,.16)!important;box-shadow:14px 14px 34px rgba(75,56,30,.055),-12px -12px 30px rgba(255,255,255,.84)!important;padding:26px!important;margin:0!important;max-width:none!important}
.scrm-settings-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.scrm-settings-card-head h2{margin:0 0 5px!important;font-size:25px!important;color:#463b30!important;line-height:1.15}.scrm-settings-card-head p{margin:0!important}
.scrm-settings-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.scrm-settings-form-grid label,.scrm-booking-settings-card label,.scrm-bookly-form label{display:grid;gap:7px;font-weight:800;color:#5d5146}.scrm-settings-form-grid .wide{grid-column:1/-1}.scrm-settings-form-grid span{font-size:13px;color:#6d6258}.scrm-settings-form-grid input,.scrm-settings-form-grid select,.scrm-settings-form-grid textarea,.scrm-booking-settings-card input,.scrm-booking-settings-card select,.scrm-booking-settings-card textarea,.scrm-bookly-settings-card select{width:100%;min-height:50px;border-radius:18px!important;border:1px solid rgba(99,76,43,.14)!important;background:rgba(255,255,255,.72)!important;box-shadow:inset 3px 3px 7px rgba(82,60,28,.035),inset -3px -3px 8px rgba(255,255,255,.9)!important;padding:12px 14px!important}
.scrm-settings-repeaters-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.scrm-settings-repeaters-grid .settings-repeater{margin:0!important;background:rgba(255,255,255,.55)!important;border-color:rgba(176,139,45,.14)!important;border-radius:24px!important}.scrm-settings-repeaters-grid .settings-repeater h3{font-size:17px!important;margin-bottom:12px!important;color:#574b40!important}.settings-row input{min-height:48px!important;border-radius:16px!important}.settings-row{align-items:stretch!important}.remove-settings-row{align-self:stretch!important}
.scrm-settings-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:18px}.scrm-settings-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.scrm-settings-shortcut{display:grid;gap:6px;text-decoration:none!important;color:inherit!important;padding:22px!important;border-radius:26px!important}.scrm-settings-shortcut strong{font-size:20px;color:#493f35}.scrm-settings-shortcut span{color:#82786f;font-weight:600}.scrm-settings-placeholder{border-style:dashed!important;background:rgba(255,255,255,.42)!important}.scrm-settings-placeholder h2{margin-top:0!important}.scrm-settings-placeholder code{background:rgba(176,139,45,.09);padding:3px 7px;border-radius:8px}
.scrm-booking-settings-card h3,.scrm-bookly-settings-card h3{font-size:25px!important;margin:0 0 8px!important;color:#463b30!important}.scrm-booking-settings-card hr{border:0;border-top:1px solid rgba(176,139,45,.18);margin:22px 0}.scrm-grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.scrm-booking-days{background:rgba(255,255,255,.5);border-radius:22px;border:1px solid rgba(176,139,45,.12);padding:14px!important;margin:10px 0!important}.smtp-test-row{display:grid!important;grid-template-columns:1fr auto!important;gap:14px!important;align-items:end!important;margin-top:16px!important}.smtp-test-row label{margin:0!important}
@media(max-width:1100px){.scrm-settings-center{grid-template-columns:1fr}.scrm-settings-nav{position:relative;top:auto;grid-template-columns:repeat(2,minmax(0,1fr))}.scrm-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.scrm-settings-nav{grid-template-columns:1fr}.scrm-settings-form-grid,.scrm-settings-repeaters-grid,.scrm-settings-shortcuts,.smtp-test-row{grid-template-columns:1fr!important}.scrm-grid-4{grid-template-columns:1fr}.scrm-settings-card-head{display:grid}.scrm-settings-card-pro{padding:18px!important;border-radius:24px!important}.scrm-settings-version{justify-self:start}.scrm-settings-center{gap:14px}}


/* ===== V1.25.3 — Booking settings + front tunnel ===== */
.scrm-booking-native-card .scrm-checkline,.scrm-google-settings-card .scrm-checkline{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:rgba(176,139,45,.08);font-weight:700}.scrm-booking-days{margin:22px 0}.scrm-booking-days-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.scrm-day-toggle input{display:none}.scrm-day-toggle span{display:block;padding:11px 16px;border-radius:999px;background:#f2eee7;border:1px solid #e7d8bf;font-weight:800;cursor:pointer}.scrm-day-toggle input:checked+span{background:#b08b2d;color:#fff}.scrm-booking-services-list{display:flex;flex-direction:column;gap:14px;margin-bottom:16px}.scrm-booking-service-row{display:grid;grid-template-columns:1.5fr .65fr .65fr 1fr .5fr auto auto;gap:12px;align-items:end;padding:16px;border-radius:22px;background:#fbf8f2;border:1px solid #eadfcf}.scrm-booking-service-row label{display:flex;flex-direction:column;gap:6px;font-weight:700}.scrm-booking-service-row input{min-height:44px;border-radius:14px;border:1px solid #ded1bd;padding:8px 12px;background:white}.scrm-booking-service-row .compact{align-self:center}.scrm-booking-front-v1253{max-width:1080px;margin:30px auto;padding:26px;border-radius:30px;background:#f8f4ed;box-shadow:8px 8px 24px rgba(90,70,45,.10),-8px -8px 24px rgba(255,255,255,.75);font-family:inherit}.scrm-booking-front-v1253 .scrm-booking-head h2{margin:0 0 8px;font-size:clamp(28px,4vw,44px)}.scrm-booking-front-v1253 .scrm-booking-head p{margin:0 0 22px;color:#6f665c}.scrm-booking-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:20px 0}.scrm-booking-progress span{padding:10px;border-radius:999px;background:#eee7dc;color:#72685d;text-align:center;font-size:13px;font-weight:800}.scrm-booking-progress span.active{background:#b08b2d;color:white}.scrm-booking-step{display:none}.scrm-booking-step.active{display:block}.scrm-slot-days{display:flex;gap:14px;overflow-x:auto;padding:4px 4px 18px;scroll-snap-type:x proximity}.scrm-slot-day{min-width:154px;scroll-snap-align:start}.scrm-slot-day-head{background:#b08b2d;color:#fff;border-radius:18px 18px 12px 12px;padding:12px;text-align:center;font-weight:900;margin-bottom:10px}.scrm-slot-day-head span{display:block;font-size:13px;opacity:.92}.scrm-slot-btn{width:100%;border:1px solid #e3d5be;background:white;border-radius:16px;padding:13px 10px;margin-bottom:8px;font-weight:850;cursor:pointer;box-shadow:2px 2px 8px rgba(80,60,40,.05),-2px -2px 8px rgba(255,255,255,.8)}.scrm-slot-btn:hover,.scrm-slot-btn.selected{border-color:#b08b2d;background:#fff7e7;color:#8b681d}.scrm-slot-empty{padding:14px;border-radius:16px;background:#eee7dc;color:#7a6f63;text-align:center}.scrm-service-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.scrm-service-choice{display:block;position:relative;padding:18px;border:1px solid #e3d5be;background:white;border-radius:22px;cursor:pointer;box-shadow:4px 4px 16px rgba(80,60,40,.06),-4px -4px 16px rgba(255,255,255,.75)}.scrm-service-choice:before{content:"";position:absolute;inset:0 auto 0 0;width:7px;background:var(--scrm-service-color);border-radius:22px 0 0 22px}.scrm-service-choice input{position:absolute;opacity:0}.scrm-service-choice strong{display:block;font-size:18px}.scrm-service-choice span{display:block;margin-top:6px;color:#70665c}.scrm-service-choice:has(input:checked){border-color:#b08b2d;background:#fff8e8}.scrm-booking-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.scrm-booking-grid label{font-weight:750}.scrm-booking-grid input,.scrm-booking-grid textarea{width:100%;margin-top:7px;border:1px solid rgba(80,60,40,.14);border-radius:18px;padding:13px 15px;background:rgba(255,255,255,.85);box-shadow:inset 2px 2px 7px rgba(80,60,40,.06),inset -2px -2px 7px rgba(255,255,255,.85)}.scrm-booking-grid .wide{grid-column:1/-1}.scrm-booking-check{display:flex;gap:10px;align-items:center}.scrm-booking-check input{width:auto;margin:0}.scrm-booking-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.scrm-booking-next,.scrm-booking-prev,.scrm-booking-submit{border:0;border-radius:999px;padding:13px 20px;font-weight:900;cursor:pointer}.scrm-booking-next,.scrm-booking-submit{background:#b08b2d;color:white;box-shadow:0 10px 24px rgba(176,139,45,.22)}.scrm-booking-prev{background:white;color:#6d5b3d;border:1px solid #e6d8bf}.scrm-booking-next:disabled,.scrm-booking-submit:disabled{opacity:.55;cursor:not-allowed}.scrm-booking-summary{background:#fff;border:1px solid #e6d8bf;border-radius:22px;padding:18px;line-height:1.7}.scrm-booking-response{margin-top:14px;font-weight:800}.scrm-booking-response.error{color:#b42318}.scrm-booking-response.ok{color:#27733f}@media(max-width:900px){.scrm-booking-service-row{grid-template-columns:1fr 1fr}.scrm-booking-service-row .remove-booking-service{grid-column:1/-1}.scrm-booking-progress{grid-template-columns:1fr 1fr}.scrm-booking-grid{grid-template-columns:1fr}}@media(max-width:620px){.scrm-booking-front-v1253{padding:18px;border-radius:24px}.scrm-slot-day{min-width:140px}.scrm-booking-progress span{font-size:12px;padding:9px 6px}}


/* Google Agenda OAuth v1.25.4 */
.scrm-google-oauth-box{display:grid;grid-template-columns:1.5fr .6fr;gap:16px;margin:18px 0;padding:18px;border:1px solid rgba(176,139,45,.24);border-radius:22px;background:rgba(176,139,45,.06)}
.scrm-google-oauth-box strong{display:block;margin-bottom:8px;color:#3d3326}.scrm-google-oauth-box code{display:block;white-space:normal;word-break:break-all;background:#fff;padding:12px 14px;border-radius:14px;border:1px solid rgba(0,0,0,.06)}
.scrm-google-status{display:inline-flex;align-items:center;padding:10px 14px;border-radius:999px;font-weight:700;background:#f4f4f4}.scrm-google-status.connected{background:#e9f7ee;color:#1f7a3b}.scrm-google-status.disconnected{background:#fff0ee;color:#a33a2f}
.scrm-google-admin-notice{margin:0 0 18px;padding:15px 18px;border-radius:18px;background:#fff7e6;border:1px solid rgba(176,139,45,.28);color:#6b4b13;font-weight:700}.scrm-btn.danger{background:#fff0ee!important;color:#a33a2f!important;border-color:#f2c6bf!important}
@media(max-width:900px){.scrm-google-oauth-box{grid-template-columns:1fr}}

/* ===== Agenda v1.25.6 ===== */
.agenda-v1256-card{
    overflow:visible;
}
.agenda-v1256-week{
    border:1px solid rgba(20,20,20,.08);
    border-radius:24px;
    overflow:hidden;
    background:#fff;
}
.agenda-v1256-head{
    display:grid;
    grid-template-columns:86px repeat(7, minmax(130px, 1fr));
    border-bottom:1px solid rgba(20,20,20,.09);
    background:#fff;
}
.agenda-v1256-tz{
    padding:24px 14px 10px;
    color:#6f6a63;
    font-weight:700;
    border-right:1px solid rgba(20,20,20,.08);
    display:flex;
    align-items:end;
    justify-content:center;
}
.agenda-v1256-day-head{
    min-height:86px;
    padding:14px 12px 10px;
    text-align:center;
    border-right:1px solid rgba(20,20,20,.08);
    display:flex;
    flex-direction:column;
    gap:6px;
    justify-content:center;
    align-items:center;
}
.agenda-v1256-day-head:last-child{border-right:none;}
.agenda-v1256-day-head span{
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.05em;
    color:#3c3935;
    font-weight:800;
}
.agenda-v1256-day-head strong{
    width:42px;
    height:42px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    line-height:1;
}
.agenda-v1256-day-head.is-today strong{
    background:#2676e8;
    color:#fff;
}
.agenda-v1256-body{
    display:grid;
    grid-template-columns:86px repeat(7, minmax(130px, 1fr));
    min-height:1040px;
    position:relative;
}
.agenda-v1256-body.agenda-v1256-single{
    grid-template-columns:86px minmax(280px, 1fr);
}
.agenda-v1256-hours{
    position:relative;
    border-right:1px solid rgba(20,20,20,.08);
    background:#fff;
    z-index:2;
}
.agenda-v1256-hours div{
    height:80px;
    padding:0 12px;
    color:#7a746d;
    font-weight:700;
    text-align:right;
    transform:translateY(-9px);
}
.agenda-v1256-day-col{
    position:relative;
    min-height:1040px;
    border-right:1px solid rgba(20,20,20,.08);
    background:repeating-linear-gradient(to bottom, #fff 0, #fff 79px, rgba(20,20,20,.08) 80px);
}
.agenda-v1256-day-col:last-child{border-right:none;}
.agenda-v1256-event{
    position:absolute;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
    padding:10px 10px 8px;
    border:none;
    border-radius:13px;
    background:#9a9188;
    color:#fff !important;
    text-decoration:none !important;
    overflow:visible;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(0,0,0,.11);
    transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
    z-index:5;
    text-align:left;
    min-width:0;
}
.agenda-v1256-event:hover{
    transform:translateY(-1px);
    box-shadow:0 16px 34px rgba(0,0,0,.16);
    filter:saturate(1.05);
    z-index:50;
}
.agenda-v1256-crm{
    background:linear-gradient(135deg, #b08b2d, #d39b36);
}
.agenda-v1256-google{
    background:linear-gradient(135deg, #8d847b, #746b62);
}
.agenda-v1256-event strong{
    font-size:13px;
    line-height:1.15;
    max-width:100%;
    white-space:normal;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}
.agenda-v1256-event span,
.agenda-v1256-event em{
    font-size:12px;
    line-height:1.1;
    opacity:.92;
    font-style:normal;
}
.agenda-v1256-details{
    position:absolute;
    left:10px;
    top:calc(100% + 10px);
    width:250px;
    max-width:70vw;
    background:#1f2430;
    color:#fff;
    border-radius:18px;
    padding:14px;
    box-shadow:0 18px 42px rgba(0,0,0,.24);
    opacity:0;
    pointer-events:none;
    transform:translateY(-5px);
    transition:opacity .16s ease, transform .16s ease;
    display:flex;
    flex-direction:column;
    gap:6px;
    z-index:80;
}
.agenda-v1256-details:before{
    content:"";
    position:absolute;
    left:18px;
    top:-7px;
    width:14px;
    height:14px;
    transform:rotate(45deg);
    background:#1f2430;
}
.agenda-v1256-event:hover .agenda-v1256-details,
.agenda-v1256-event:focus .agenda-v1256-details{
    opacity:1;
    transform:translateY(0);
}
.agenda-v1256-details b{
    font-size:14px;
}
.agenda-v1256-details small{
    font-size:12px;
    opacity:.9;
}
.agenda-v1256-action{
    color:#ffd98e;
    font-weight:800;
    margin-top:4px;
}
.agenda-v1256-day-view h3{
    margin:0 0 18px;
    color:#9c6d1c;
}
.agenda-v1256-empty{
    padding:24px;
}
.agenda-v1256-mini-google{
    border:none;
    width:100%;
    text-align:left;
    cursor:pointer;
}
.agenda-v1256-event.is-loading{
    opacity:.65;
    cursor:wait;
}
@media(max-width:1100px){
    .agenda-v1256-week{overflow-x:auto;}
    .agenda-v1256-head,
    .agenda-v1256-body{
        min-width:1040px;
    }
}


/* ===== Agenda v1.25.7 hard fix ===== */
.agenda-v1256-card #scrmAgendaAjaxCanvas[data-v1257-agenda="1"]{
    display:block !important;
}
.agenda-v1256-card .agenda-server-week-grid{
    display:none !important;
}
.agenda-v1256-event{
    text-decoration:none !important;
    text-align:left !important;
}
.agenda-v1256-event:hover,
.agenda-v1256-event:focus{
    opacity:1 !important;
    filter:none !important;
}
.agenda-v1256-event .agenda-v1256-details{
    pointer-events:none;
}


/* ===== Agenda v1.25.8 ===== */

.scrm-agenda-v1258{
    --hour-height:86px;
    width:100%;
    background:#fff;
    border:1px solid #eadfcf;
    border-radius:26px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.04);
}

.scrm-agenda-v1258-head{
    display:grid;
    grid-template-columns:90px repeat(7, minmax(150px,1fr));
    min-width:1140px;
    border-bottom:1px solid #e7e7e7;
    background:#fff;
}

.scrm-agenda-v1258-tz{
    display:flex;
    align-items:center;
    justify-content:center;
    color:#666;
    font-size:14px;
    border-right:1px solid #e7e7e7;
}

.scrm-agenda-v1258-day-head{
    min-height:78px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    border-right:1px solid #e7e7e7;
    color:#222;
    font-weight:700;
}

.scrm-agenda-v1258-day-head strong{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    font-size:28px;
}

.scrm-agenda-v1258-day-head strong.is-today{
    background:#1a73e8;
    color:#fff;
}

.scrm-agenda-v1258-body{
    display:grid;
    grid-template-columns:90px repeat(7, minmax(150px,1fr));
    min-width:1140px;
    position:relative;
}

.scrm-agenda-v1258-times{
    border-right:1px solid #e7e7e7;
    background:#fff;
}

.scrm-agenda-v1258-time{
    box-sizing:border-box;
    padding:8px 12px 0 0;
    text-align:right;
    color:#666;
    font-size:15px;
    border-bottom:1px solid #eee;
}

.scrm-agenda-v1258-day{
    position:relative;
    border-right:1px solid #e7e7e7;
    background:#fff;
}

.scrm-agenda-v1258-line{
    position:absolute;
    left:0;
    right:0;
    height:1px;
    background:#eee;
}

.scrm-agenda-v1258-event{
    position:absolute;
    z-index:2;
    box-sizing:border-box;
    border:0;
    border-radius:10px;
    padding:10px;
    overflow:visible;
    color:#fff;
    text-align:left;
    cursor:pointer;
    text-decoration:none;
    font:inherit;
    box-shadow:0 3px 8px rgba(0,0,0,.12);
    transition:transform .15s ease, box-shadow .15s ease;
}

.scrm-agenda-v1258-event.is-google{
    background:#8f867d;
}

.scrm-agenda-v1258-event.is-crm{
    background:#b58a24;
}

.scrm-agenda-v1258-event:hover{
    opacity:1 !important;
    filter:none !important;
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(0,0,0,.18);
    z-index:30;
}

.scrm-agenda-v1258-title{
    display:block;
    font-weight:800;
    font-size:14px;
    line-height:1.18;
    max-height:34px;
    overflow:hidden;
}

.scrm-agenda-v1258-meta{
    display:block;
    margin-top:4px;
    font-size:12px;
    line-height:1.2;
    opacity:.95;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.scrm-agenda-v1258-hover{
    display:none;
    position:absolute;
    left:calc(100% + 10px);
    top:0;
    min-width:230px;
    max-width:280px;
    background:#191919;
    color:#fff;
    border-radius:14px;
    padding:14px;
    box-shadow:0 14px 40px rgba(0,0,0,.25);
    pointer-events:none;
    z-index:200;
}

.scrm-agenda-v1258-event:hover .scrm-agenda-v1258-hover{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.scrm-agenda-v1258-hover b{
    font-size:15px;
}

.scrm-agenda-v1258-hover em{
    font-style:normal;
    opacity:.85;
}

.scrm-agenda-v1258-hover small{
    opacity:.75;
}

@media(max-width:1180px){
    .scrm-agenda-v1258{
        overflow-x:auto;
    }
}



/* ===== Agenda v1.25.9 — affichage fiable des collisions ===== */
.agenda-v1256-event{
    box-sizing:border-box !important;
    opacity:1 !important;
}

.agenda-v1256-event:hover,
.agenda-v1256-event:focus{
    opacity:1 !important;
}

.agenda-v1256-event[data-overlap-cols="2"] strong,
.agenda-v1256-event[data-overlap-cols="3"] strong,
.agenda-v1256-event[data-overlap-cols="4"] strong{
    font-size:12px;
}

.agenda-v1256-event[data-overlap-cols="3"],
.agenda-v1256-event[data-overlap-cols="4"]{
    padding:8px 7px;
}

.agenda-v1256-details{
    pointer-events:none;
}

.agenda-v1256-event:hover .agenda-v1256-details,
.agenda-v1256-event:focus .agenda-v1256-details{
    display:flex !important;
}


/* ===== Agenda v1.26.0 — page recréée de zéro ===== */

.scrm-agenda260-card{
    padding:0 !important;
    overflow:hidden;
}

.scrm-agenda260-controls{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:center;
    flex-wrap:wrap;
}

.scrm-agenda260-tabs,
.scrm-agenda260-nav{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.scrm-agenda260-tabs a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 16px;
    border-radius:999px;
    text-decoration:none;
    color:#5b5246;
    border:1px solid #e7d8c1;
    background:#fff;
    font-weight:700;
}

.scrm-agenda260-tabs a.active{
    background:#b08b2d;
    color:#fff;
    border-color:#b08b2d;
}

.scrm-agenda260{
    width:100%;
    background:#fff;
    overflow:auto;
}

.scrm-agenda260-head{
    display:grid;
    grid-template-columns:90px repeat(7, minmax(150px,1fr));
    min-width:1140px;
    border-bottom:1px solid #e7e7e7;
}

.scrm-agenda260-tz{
    display:flex;
    align-items:center;
    justify-content:center;
    border-right:1px solid #e7e7e7;
    color:#666;
    font-size:14px;
}

.scrm-agenda260-day-head{
    min-height:76px;
    border-right:1px solid #e7e7e7;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    font-weight:800;
}

.scrm-agenda260-day-head span{
    font-size:13px;
    letter-spacing:.02em;
}

.scrm-agenda260-day-head strong{
    width:42px;
    height:42px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
}

.scrm-agenda260-day-head.is-today strong{
    background:#1a73e8;
    color:#fff;
}

.scrm-agenda260-grid{
    display:grid;
    grid-template-columns:90px repeat(7, minmax(150px,1fr));
    min-width:1140px;
}

.scrm-agenda260-grid-day{
    grid-template-columns:90px minmax(700px,1fr);
    min-width:790px;
}

.scrm-agenda260-hours{
    border-right:1px solid #e7e7e7;
    background:#fff;
}

.scrm-agenda260-hours > div{
    height:var(--agenda-hour-height);
    box-sizing:border-box;
    border-bottom:1px solid #eee;
    padding:8px 12px 0 0;
    text-align:right;
    color:#666;
    font-size:14px;
}

.scrm-agenda260-day{
    position:relative;
    height:calc(var(--agenda-hours) * var(--agenda-hour-height));
    min-width:0;
    border-right:1px solid #e7e7e7;
    background:#fff;
}

.scrm-agenda260-line{
    position:absolute;
    left:0;
    right:0;
    height:1px;
    background:#eee;
    z-index:1;
}

.scrm-agenda260-event{
    position:absolute;
    z-index:5;
    box-sizing:border-box;
    border:0;
    border-radius:10px;
    padding:9px 10px;
    color:#fff;
    text-align:left;
    text-decoration:none !important;
    cursor:pointer;
    overflow:visible;
    box-shadow:0 4px 10px rgba(0,0,0,.14);
    transition:transform .14s ease, box-shadow .14s ease;
    font:inherit;
}

.scrm-agenda260-event.is-crm{
    background:#b08b2d;
}

.scrm-agenda260-event.is-google{
    background:#8f867d;
}

.scrm-agenda260-event:hover,
.scrm-agenda260-event:focus{
    opacity:1 !important;
    transform:translateY(-1px);
    box-shadow:0 12px 25px rgba(0,0,0,.22);
    z-index:80;
}

.scrm-agenda260-event.is-loading{
    opacity:.6 !important;
    pointer-events:none;
}

.scrm-agenda260-title{
    display:block;
    font-size:13px;
    font-weight:850;
    line-height:1.15;
    max-height:32px;
    overflow:hidden;
}

.scrm-agenda260-meta{
    display:block;
    margin-top:4px;
    font-size:12px;
    line-height:1.15;
    opacity:.95;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.scrm-agenda260-pop{
    display:none;
    position:absolute;
    top:0;
    left:calc(100% + 10px);
    min-width:230px;
    max-width:290px;
    background:#1f1f1f;
    color:#fff;
    border-radius:16px;
    padding:14px;
    box-shadow:0 18px 45px rgba(0,0,0,.28);
    z-index:999;
    pointer-events:none;
}

.scrm-agenda260-event:hover .scrm-agenda260-pop,
.scrm-agenda260-event:focus .scrm-agenda260-pop{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.scrm-agenda260-pop b{
    font-size:15px;
}

.scrm-agenda260-pop small{
    opacity:.86;
}

.scrm-agenda260-pop em{
    font-style:normal;
    margin-top:4px;
    color:#f1d28c;
    font-weight:800;
}

.scrm-agenda260-dayonly-title{
    padding:18px 22px;
    font-weight:850;
    color:#6b4f22;
    border-bottom:1px solid #eee;
}

.scrm-agenda260-empty{
    padding:20px;
    color:#777;
}

.scrm-agenda260-month{
    display:grid;
    grid-template-columns:repeat(7, minmax(145px,1fr));
    min-width:1015px;
    background:#eee;
    gap:1px;
}

.scrm-agenda260-month-label{
    background:#f7f2ea;
    padding:12px;
    text-align:center;
    font-weight:800;
    color:#6b4f22;
}

.scrm-agenda260-month-cell{
    min-height:126px;
    background:#fff;
    padding:10px;
    box-sizing:border-box;
}

.scrm-agenda260-month-cell.is-off{
    background:#fafafa;
    color:#aaa;
}

.scrm-agenda260-month-cell > strong{
    display:block;
    margin-bottom:8px;
}

.scrm-agenda260-mini{
    display:block;
    width:100%;
    box-sizing:border-box;
    border:0;
    border-radius:8px;
    padding:6px 7px;
    margin-bottom:5px;
    text-align:left;
    text-decoration:none !important;
    color:#fff;
    font-size:12px;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    cursor:pointer;
}

.scrm-agenda260-mini.is-crm{
    background:#b08b2d;
}

.scrm-agenda260-mini.is-google{
    background:#8f867d;
}

@media(max-width:900px){
    .scrm-agenda260-controls{
        align-items:flex-start;
    }
    .scrm-agenda260-pop{
        left:0;
        top:calc(100% + 8px);
    }
}



/* ===== Agenda v1.26.1 — semaine compacte ===== */

.scrm-agenda260-head{
    grid-template-columns:78px repeat(7, minmax(140px,1fr));
    min-width:1058px;
}

.scrm-agenda260-grid{
    grid-template-columns:78px repeat(7, minmax(140px,1fr));
    min-width:1058px;
}

.scrm-agenda260-day-head{
    min-height:58px;
    gap:3px;
}

.scrm-agenda260-day-head span{
    font-size:12px;
}

.scrm-agenda260-day-head strong{
    width:34px;
    height:34px;
    font-size:22px;
}

.scrm-agenda260-tz{
    font-size:12px;
}

.scrm-agenda260-hours > div{
    padding:5px 8px 0 0;
    font-size:12px;
}

.scrm-agenda260-event{
    border-radius:8px;
    padding:6px 7px;
}

.scrm-agenda260-title{
    font-size:12px;
    line-height:1.12;
    max-height:28px;
}

.scrm-agenda260-meta{
    font-size:10.5px;
    margin-top:2px;
}

.scrm-agenda260-pop{
    min-width:220px;
}

.scrm-agenda260-controls{
    padding:18px 22px;
}



/* ===== Agenda v1.26.2 — semaine 8h/20h + lignes compactes ===== */

.scrm-agenda260-hours > div{
    padding:4px 8px 0 0;
    font-size:11.5px;
}

.scrm-agenda260-event{
    padding:5px 7px;
    border-radius:7px;
}

.scrm-agenda260-title{
    font-size:11.5px;
    max-height:25px;
}

.scrm-agenda260-meta{
    font-size:10px;
}

.scrm-agenda260-day-head{
    min-height:54px;
}

.scrm-agenda260-day-head strong{
    width:32px;
    height:32px;
    font-size:21px;
}



/* ===== Google sync v1.26.3 ===== */
.scrm-google-sync-box{
    margin-top:22px;
    padding:20px;
    border-radius:22px;
    background:#fffaf1;
    border:1px solid #ead7ad;
}

.scrm-google-sync-box h3{
    margin:0 0 8px;
    color:#8a651f;
}

.scrm-sync-result{
    color:#5f5548;
    font-weight:600;
}


/* ===== Sync compact v1.26.4 ===== */

.scrm-google-sync-box.compact{
    position:fixed;
    right:18px;
    bottom:18px;
    z-index:9999;
    margin-top:0;
    padding:10px 14px;
    border-radius:14px;
    background:rgba(255,250,241,.96);
    backdrop-filter:blur(10px);
    border:1px solid #ead7ad;
    box-shadow:0 10px 30px rgba(0,0,0,.10);
    max-width:320px;
}

.scrm-google-sync-inline{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.scrm-google-sync-label{
    font-size:11px;
    color:#6f6659;
    line-height:1.3;
}

.scrm-google-sync-link{
    border:0;
    background:none;
    padding:0;
    cursor:pointer;
    font-size:12px;
    font-weight:800;
    color:#b08b2d;
    text-decoration:underline;
}

.scrm-google-sync-link:hover{
    opacity:.8;
}

.scrm-sync-result{
    margin-top:4px;
    font-size:11px;
    color:#6b5b42;
}

@media(max-width:768px){
    .scrm-google-sync-box.compact{
        right:10px;
        left:10px;
        bottom:10px;
        max-width:none;
    }
}


/* ===== Sync inline + Drag v1.26.5 ===== */

.scrm-google-sync-box.compact.inline{
    position:static !important;
    right:auto !important;
    bottom:auto !important;
    z-index:auto !important;
    margin:14px 0 0 auto !important;
    width:fit-content;
    max-width:100%;
    padding:8px 12px;
    box-shadow:none;
    background:#fffaf1;
}

.scrm-agenda260-event.is-crm{
    cursor:grab;
}

.scrm-agenda260-event.is-crm:active,
.scrm-agenda260-event.is-dragging{
    cursor:grabbing;
}

.scrm-agenda260-event.is-dragging{
    opacity:.55 !important;
}

.scrm-agenda260-day.is-drop-target{
    background:linear-gradient(180deg, rgba(176,139,45,.08), rgba(176,139,45,.03));
    outline:2px dashed rgba(176,139,45,.45);
    outline-offset:-4px;
}

.scrm-agenda260-event.is-loading{
    opacity:.55 !important;
    pointer-events:none;
}



/* ===== Agenda v1.26.6 ===== */

.scrm-agenda260-topbar{
    display:none !important;
}

.scrm-agenda260-event.is-crm[data-project-id]{
    cursor:grab !important;
}

.scrm-agenda260-event.is-crm[data-project-id]:active,
.scrm-agenda260-event.is-crm[data-project-id].is-dragging{
    cursor:grabbing !important;
}

.scrm-agenda260-event.is-dragging{
    opacity:.45 !important;
    transform:scale(.98);
}

.scrm-agenda260-day.is-drop-target{
    background:linear-gradient(180deg, rgba(176,139,45,.10), rgba(176,139,45,.035)) !important;
    outline:2px dashed rgba(176,139,45,.55);
    outline-offset:-5px;
}


/* ===== Agenda v1.26.7 pointer drag ===== */

.scrm-agenda260-event.is-crm[data-project-id]{
    cursor:grab !important;
    user-select:none;
    -webkit-user-drag:none;
    touch-action:none;
}

.scrm-agenda260-event.is-crm[data-project-id]:active{
    cursor:grabbing !important;
}

.scrm-agenda260-dragging{
    cursor:grabbing !important;
}

.scrm-agenda260-drag-ghost{
    opacity:.88 !important;
    transform:scale(1.02);
    box-shadow:0 20px 45px rgba(0,0,0,.25) !important;
}

.scrm-agenda260-event.is-dragging{
    opacity:.35 !important;
}

.scrm-agenda260-day.is-drop-target{
    background:linear-gradient(180deg, rgba(176,139,45,.14), rgba(176,139,45,.04)) !important;
    outline:2px dashed rgba(176,139,45,.62);
    outline-offset:-5px;
}


/* ===== Agenda v1.26.8 — drag fiable sans lien natif ===== */
.scrm-agenda260-event.is-crm[data-project-id]{
    cursor:grab !important;
    user-select:none !important;
    -webkit-user-select:none !important;
    -webkit-user-drag:none !important;
    touch-action:none !important;
}

.scrm-agenda260-drag-grip{
    position:absolute;
    top:5px;
    right:6px;
    font-size:11px;
    opacity:.55;
    letter-spacing:-3px;
    pointer-events:none;
}

.scrm-agenda260-event.is-crm[data-project-id]:hover .scrm-agenda260-drag-grip{
    opacity:.9;
}

.scrm-agenda260-dragging,
.scrm-agenda260-dragging *{
    cursor:grabbing !important;
}

.scrm-agenda260-drag-ghost{
    opacity:.9 !important;
    transform:scale(1.02);
    box-shadow:0 22px 48px rgba(0,0,0,.28) !important;
    pointer-events:none !important;
}

.scrm-agenda260-event.is-dragging{
    opacity:.28 !important;
}

.scrm-agenda260-day.is-drop-target{
    background:linear-gradient(180deg, rgba(176,139,45,.16), rgba(176,139,45,.05)) !important;
    outline:2px dashed rgba(176,139,45,.7);
    outline-offset:-5px;
}


/* ===== Agenda v1.26.9 diagnostic drag ===== */
.scrm-agenda-drag-debug{
    margin:10px 0 0 auto;
    width:fit-content;
    display:flex;
    align-items:center;
    gap:8px;
    padding:7px 10px;
    border-radius:999px;
    background:#f8f0df;
    border:1px solid #e8d4aa;
    color:#6a5632;
    font-size:11px;
}

.scrm-agenda-drag-debug strong{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:20px;
    height:20px;
    border-radius:999px;
    background:#b08b2d;
    color:white;
    font-size:11px;
}

.scrm-agenda-drag-debug em{
    font-style:normal;
    opacity:.8;
}

.scrm-agenda260-event.is-crm[data-project-id],
.scrm-agenda260-event.is-google[data-google-row-id],
.scrm-agenda260-mini.is-google[data-google-row-id]{
    cursor:grab !important;
    user-select:none !important;
    -webkit-user-drag:none !important;
    touch-action:none !important;
}

.scrm-agenda260-dragging,
.scrm-agenda260-dragging *{
    cursor:grabbing !important;
}

.scrm-agenda260-drag-ghost{
    opacity:.9 !important;
    transform:scale(1.02);
    box-shadow:0 22px 48px rgba(0,0,0,.28) !important;
    pointer-events:none !important;
}

.scrm-agenda260-event.is-dragging,
.scrm-agenda260-mini.is-dragging{
    opacity:.35 !important;
}

.scrm-agenda260-day.is-drop-target{
    background:linear-gradient(180deg, rgba(176,139,45,.18), rgba(176,139,45,.05)) !important;
    outline:2px dashed rgba(176,139,45,.72);
    outline-offset:-5px;
}


/* ===== Agenda v1.27.0 advanced interactions ===== */

.scrm-agenda270-time-guide{
    position:fixed;
    height:0;
    border-top:2px solid #1a73e8;
    z-index:999998;
    pointer-events:none;
    display:none;
    align-items:center;
}

.scrm-agenda270-time-guide span{
    position:absolute;
    left:6px;
    top:-13px;
    background:#1a73e8;
    color:#fff;
    font-size:11px;
    font-weight:800;
    border-radius:999px;
    padding:3px 7px;
    box-shadow:0 4px 10px rgba(0,0,0,.18);
}

.scrm-agenda260-resize-handle{
    position:absolute;
    left:8px;
    right:8px;
    bottom:2px;
    height:8px;
    cursor:ns-resize;
    border-radius:999px;
    opacity:0;
    background:rgba(255,255,255,.55);
}

.scrm-agenda260-event:hover .scrm-agenda260-resize-handle{
    opacity:1;
}

.scrm-agenda260-event.is-resizing{
    opacity:.85 !important;
    outline:2px solid rgba(26,115,232,.7);
    outline-offset:2px;
}

.scrm-agenda270-selection{
    position:absolute;
    left:7px;
    right:7px;
    z-index:4;
    box-sizing:border-box;
    border-radius:10px;
    border:2px dashed rgba(176,139,45,.75);
    background:rgba(176,139,45,.13);
    padding:8px;
    color:#6b4f22;
    pointer-events:none;
}

.scrm-agenda270-selection strong{
    display:block;
    font-size:12px;
    font-weight:850;
}

.scrm-agenda270-selection span{
    display:block;
    font-size:11px;
    margin-top:2px;
}

.scrm-agenda260-day{
    cursor:crosshair;
}

.scrm-agenda260-event{
    cursor:grab;
}

.scrm-agenda260-event .scrm-agenda260-resize-handle{
    cursor:ns-resize;
}


/* ===== Agenda v1.27.1 double alert fix ===== */
.scrm-agenda260-event[data-just-dragged1271="1"]{
    pointer-events:none;
}

/* ===== Agenda v1.27.4 cleanup ===== */
#scrm-agenda-drag-debug-1269{display:none!important;}


/* ===== Agenda v1.27.7 clean fix ===== */
.scrm-agenda260-event.is-loading{
    pointer-events:none !important;
}


/* V1.27.12 — fiche projet : les onglets gardent une largeur stable */
.scrm-v170-project,
.scrm-v170-project *{box-sizing:border-box;}
.scrm-v170-project{width:100%!important;max-width:1440px!important;}
.scrm-v170-tab-content{width:100%!important;max-width:100%!important;display:block!important;}
.scrm-v170-tab-content > .scrm-v170-panel.wide,
.scrm-v170-tab-content > .scrm-v170-panel{width:100%!important;max-width:100%!important;}
.scrm-v170-card-head{width:100%;}

/* V1.27.13 — édition projet unifiée, proche de la création */
.scrm-v170-top-actions{display:flex;gap:10px;align-items:center}
.scrm-billing-project-back{display:inline-flex;margin-left:14px;text-decoration:none;font-weight:800;color:#9b6b19}
.scrm-v12713-project-edit-modal{max-width:980px!important;width:min(980px,94vw)!important;background:#fbf8f2!important;border-radius:28px!important;padding:28px!important}
.scrm-v12713-project-edit-form{display:grid;grid-template-columns:1.05fr .95fr;gap:26px;align-items:start}
.scrm-v12713-edit-card{background:#fffdf9;border:1px solid rgba(178,139,55,.22);border-radius:24px;padding:24px;box-shadow:0 18px 45px rgba(70,50,25,.06)}
.scrm-v12713-edit-card h3{margin:0 0 20px;font-size:22px;line-height:1.15;color:#1f2530}
.scrm-v12713-client-pill{min-height:52px;display:flex;align-items:center;border:1px solid rgba(178,139,55,.28);border-radius:14px;padding:0 18px;background:#fff;font-size:18px;font-weight:700;color:#232833}
.scrm-v12713-project-edit-form label{font-weight:800;color:#5f554d;margin:10px 0 6px;display:block}
.scrm-v12713-project-edit-form input,.scrm-v12713-project-edit-form select,.scrm-v12713-project-edit-form textarea{border-radius:14px!important;border:1px solid rgba(178,139,55,.28)!important;background:#fff!important;min-height:48px;font-size:16px}
.scrm-v12713-project-edit-form textarea{min-height:96px;padding:12px 14px!important}
.scrm-v12713-project-edit-form .scrm-v173-time-chips{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}
.scrm-v12713-project-edit-form .scrm-v173-time-chips button{border:1px solid rgba(178,139,55,.35);background:#fffdf9;color:#9b6b19;border-radius:14px;padding:10px 20px;font-weight:900;cursor:pointer}
.scrm-v12713-project-edit-form .scrm-actions-inline{margin-top:18px}
@media(max-width:900px){.scrm-v12713-project-edit-form{grid-template-columns:1fr}.scrm-v170-top-actions{flex-wrap:wrap}}

/* V1.27.15 — contact modifiable dans la modale projet */
.scrm-v12715-radio-row{display:flex;gap:18px;flex-wrap:wrap;margin:10px 0 14px}
.scrm-v12715-radio-row label{display:flex!important;align-items:center;gap:8px;margin:0!important;font-weight:800;color:#5f554d}
.scrm-v12715-radio-row input{min-height:auto!important;width:auto!important}
.scrm-v12715-contact-switch .muted{margin:0 0 10px;color:#7b7168}
.scrm-v12715-new-client.hidden,.scrm-v12715-existing-client.hidden{display:none!important}

/* Production CRM intégré */
.scrm-production-card{border:1px solid rgba(176,139,45,.18)}
.scrm-production-import-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;align-items:end;margin:14px 0}
.scrm-production-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 11px;font-weight:800;font-size:12px;background:#eee;color:#3b342e;white-space:nowrap}
.scrm-production-badge.is-a_preparer{background:#f3eadb;color:#7b561b}
.scrm-production-badge.is-en_production,.scrm-production-badge.is-pret_labo{background:#e6eef8;color:#27537a}
.scrm-production-badge.is-envoye_labo{background:#e7e5fb;color:#44368a}
.scrm-production-badge.is-recu_labo,.scrm-production-badge.is-a_livrer,.scrm-production-badge.is-pret_livraison{background:#e8f4e7;color:#386934}
.scrm-production-badge.is-livre{background:#dff2e1;color:#1f6d32}
.scrm-production-badge.is-bloque{background:#f8e1df;color:#98352e}
.scrm-production-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.scrm-production-table code{white-space:normal;font-size:11px;line-height:1.35;display:block;max-width:280px}
.scrm-production-line-form{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.scrm-production-line-form select{max-width:130px}
.scrm-production-line-form input[type=number]{width:82px}
.scrm-production-mini-list{display:grid;gap:8px;margin-top:10px}
.scrm-notice{border-radius:16px;padding:12px 14px;margin:0 0 14px;font-weight:700}
.scrm-notice.success{background:#e8f4e7;color:#386934}
.scrm-notice.error{background:#f8e1df;color:#98352e}

/* V1.27.18 — Production dashboard premium */
.scrm-production-topbar{align-items:center;gap:24px}.scrm-production-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0 24px}.scrm-kpi-card{background:linear-gradient(145deg,#fff,#fbf8f0);border:1px solid rgba(190,161,103,.25);box-shadow:0 18px 45px rgba(44,31,16,.07);border-radius:24px;padding:22px}.scrm-kpi-card span{display:block;color:#7a7166;font-size:13px;margin-bottom:8px}.scrm-kpi-card strong{font-size:32px;line-height:1;color:#22222a}.scrm-production-pipeline .scrm-card-head{display:flex;align-items:end;justify-content:space-between;gap:16px}.scrm-production-board{display:grid;grid-template-columns:repeat(7,minmax(190px,1fr));gap:14px;overflow-x:auto;padding-bottom:8px}.scrm-production-column{background:#fbfaf7;border:1px solid rgba(190,161,103,.2);border-radius:22px;padding:14px;min-height:240px}.scrm-production-column header{font-weight:800;margin-bottom:12px;color:#2a2830}.scrm-production-card-mini{display:block;text-decoration:none;background:#fff;border:1px solid rgba(190,161,103,.22);border-radius:18px;padding:13px;margin-bottom:10px;box-shadow:0 12px 28px rgba(35,25,12,.06);transition:.18s ease}.scrm-production-card-mini:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(35,25,12,.11)}.scrm-production-card-mini strong,.scrm-production-card-mini small,.scrm-production-card-mini em{display:block}.scrm-production-card-mini strong{color:#20202a}.scrm-production-card-mini small{color:#766f65;margin-top:4px}.scrm-production-card-mini em{font-style:normal;color:#b4862e;margin-top:8px;font-size:12px}.scrm-empty-col{font-size:13px}.scrm-production-detail-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(135deg,#fff,#fbf5ea);border:1px solid rgba(190,161,103,.28);border-radius:28px;padding:28px;margin:18px 0 18px;box-shadow:0 20px 55px rgba(46,30,12,.08)}.scrm-production-detail-hero h2{margin:.1rem 0 .25rem;font-size:30px}.scrm-eyebrow{text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#b4862e;font-size:12px}.scrm-production-detail-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;align-items:start}.scrm-production-products{display:grid;gap:12px}.scrm-production-product{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:16px;align-items:center;background:#fff;border:1px solid rgba(190,161,103,.2);border-radius:20px;padding:16px}.scrm-production-product strong,.scrm-production-product span,.scrm-production-product code{display:block}.scrm-production-product span{color:#716a60;margin-top:4px}.scrm-production-product code{margin-top:8px;white-space:normal;background:#fbf8f0;border-radius:10px;padding:6px 8px}.scrm-production-wf-list{display:grid;gap:10px;margin-top:14px}.scrm-production-wf-list a,.scrm-production-wf-list form{display:grid;grid-template-columns:1fr auto auto auto;gap:12px;align-items:center;background:#fff;border:1px solid rgba(190,161,103,.2);border-radius:16px;padding:13px;text-decoration:none}.scrm-production-wf-list a strong,.scrm-production-wf-list form strong{color:#22222a}.scrm-production-wf-list a span,.scrm-production-wf-list form span{color:#756d62}.scrm-production-wf-list a em{font-style:normal;color:#b4862e}.scrm-production-add-wf{display:grid;grid-template-columns:1fr 220px 160px auto;gap:10px;align-items:end;margin-bottom:14px}.scrm-production-import-modal{display:none;position:fixed;inset:0;background:rgba(20,17,12,.42);z-index:99999;align-items:center;justify-content:center;padding:30px}.scrm-production-import-modal.is-open{display:flex}.scrm-production-modal{position:relative;width:min(920px,96vw);background:#fff;border-radius:28px;border:1px solid rgba(190,161,103,.25);box-shadow:0 30px 90px rgba(0,0,0,.22);padding:30px}.scrm-modal-close{position:absolute;right:18px;top:18px;width:38px;height:38px;border:0;border-radius:50%;background:#f5efe4;font-size:24px;line-height:38px;cursor:pointer}.scrm-production-import-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.scrm-production-import-grid label{display:grid;gap:8px;font-weight:800}.scrm-production-line-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.scrm-production-line-form input{width:95px}.scrm-production-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:8px 14px;font-weight:800;background:#f4efe6;color:#453522}.scrm-production-badge.is-a_preparer{background:#f4efe6;color:#453522}.scrm-production-badge.is-en_production,.scrm-production-badge.is-retouche{background:#eaf0ff;color:#293a76}.scrm-production-badge.is-envoye_labo,.scrm-production-badge.is-pret_labo{background:#eee8ff;color:#4c367e}.scrm-production-badge.is-recu_labo,.scrm-production-badge.is-pret_livraison,.scrm-production-badge.is-a_livrer{background:#e9f8ef;color:#24633a}.scrm-production-badge.is-livre{background:#e5f6e6;color:#1e5d29}.scrm-production-badge.is-bloque{background:#ffe8e4;color:#842c1d}@media(max-width:1200px){.scrm-production-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.scrm-production-detail-grid{grid-template-columns:1fr}.scrm-production-product{grid-template-columns:1fr}.scrm-production-add-wf{grid-template-columns:1fr 1fr}}@media(max-width:760px){.scrm-production-kpis,.scrm-production-import-grid,.scrm-production-add-wf{grid-template-columns:1fr}.scrm-production-wf-list a,.scrm-production-wf-list form{grid-template-columns:1fr}.scrm-production-modal{padding:22px}.scrm-production-board{grid-template-columns:repeat(7,220px)}}


/* V1.27.19 — correctifs Production responsive + modale */
body.scrm-production-modal-open{overflow:hidden;}
.scrm-production-topbar,.scrm-production-kpis,.scrm-production-pipeline,.scrm-production-detail-hero,.scrm-production-detail-grid,.scrm-production-card,.scrm-production-products,.scrm-production-wf-list{max-width:100%;box-sizing:border-box;}
.scrm-production-pipeline{overflow:hidden;}
.scrm-production-board{width:100%;max-width:100%;display:flex!important;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;padding:4px 4px 14px;scrollbar-width:thin;}
.scrm-production-column{flex:0 0 235px;min-width:235px;}
.scrm-production-import-modal{display:none!important;position:fixed!important;inset:0!important;background:rgba(21,17,12,.48)!important;z-index:1000000!important;align-items:center!important;justify-content:center!important;padding:clamp(14px,3vw,34px)!important;box-sizing:border-box!important;}
.scrm-production-import-modal.is-open{display:flex!important;}
.scrm-production-modal{width:min(920px,calc(100vw - 32px))!important;max-height:calc(100vh - 32px)!important;overflow:auto!important;background:#fffdf9!important;border-radius:28px!important;border:1px solid rgba(190,161,103,.28)!important;box-shadow:0 30px 90px rgba(0,0,0,.28)!important;padding:clamp(20px,3vw,34px)!important;box-sizing:border-box!important;}
.scrm-production-modal .scrm-btn.gold{width:100%;justify-content:center;}
.scrm-production-detail-grid{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)!important;}
.scrm-production-product{grid-template-columns:minmax(0,1fr) minmax(320px,auto)!important;}
.scrm-production-product code{max-width:100%;overflow-wrap:anywhere;}
@media(max-width:1100px){.scrm-production-detail-grid,.scrm-production-product{grid-template-columns:1fr!important;}.scrm-production-line-form{width:100%;}.scrm-production-line-form select,.scrm-production-line-form input{flex:1 1 140px;}}
@media(max-width:760px){.scrm-production-kpis{grid-template-columns:1fr!important;}.scrm-production-column{flex-basis:82vw;min-width:82vw;}.scrm-production-modal{width:calc(100vw - 20px)!important;max-height:calc(100vh - 20px)!important;border-radius:22px!important;}.scrm-production-import-grid{grid-template-columns:1fr!important;}.scrm-production-topbar{flex-direction:column;align-items:stretch!important;}.scrm-production-topbar .scrm-actions-inline{width:100%;}.scrm-production-topbar .scrm-btn{width:100%;justify-content:center;}}

/* Production v1.27.20 — responsive + edition complete */
body.toplevel_page_studio-crm-core{overflow-x:hidden;}
.scrm-app,.scrm-main,.scrm-content,.scrm-page,.scrm-view,.scrm-card{max-width:100%;box-sizing:border-box;}
.scrm-main,.scrm-content{min-width:0;overflow-x:hidden;}
.scrm-production-pipeline{max-width:100%;overflow:hidden!important;}
.scrm-production-board{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:14px!important;width:100%!important;max-width:100%!important;overflow-x:visible!important;padding:4px 4px 14px!important;box-sizing:border-box!important;}
.scrm-production-column{min-width:0!important;flex:initial!important;width:auto!important;}
.scrm-production-card-mini{overflow-wrap:anywhere;}
.scrm-table-scroll{width:100%;max-width:100%;overflow-x:auto;}
.scrm-table-scroll .scrm-table{min-width:980px;}
.scrm-production-list-card{overflow:hidden;}
.scrm-production-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0;}
.scrm-production-item-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px;}
.scrm-production-product-edit{display:block!important;}
.scrm-production-product-edit .scrm-form{margin:0;}
.scrm-production-product-edit label{min-width:0;}
.scrm-production-product-edit input,.scrm-production-product-edit select,.scrm-production-product-edit textarea,.scrm-production-edit-grid input,.scrm-production-edit-grid select{width:100%;max-width:100%;box-sizing:border-box;}
.scrm-inline-btn.danger{background:#fff0ed!important;color:#9d3327!important;border-color:#f0c4bc!important;}
.scrm-production-back{display:flex;gap:10px;flex-wrap:wrap;}
@media(max-width:1450px){.scrm-production-board{grid-template-columns:repeat(3,minmax(220px,1fr))!important;}}
@media(max-width:1100px){.scrm-production-board{grid-template-columns:repeat(2,minmax(220px,1fr))!important;}.scrm-production-edit-grid{grid-template-columns:1fr;}.scrm-production-item-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){.scrm-production-board{grid-template-columns:1fr!important;}.scrm-production-item-grid{grid-template-columns:1fr;}.scrm-table-scroll .scrm-table{min-width:760px;}}

/* Production v1.27.21 — pipeline premium + édition sécurisée */
.scrm-production-pipeline{overflow:hidden!important;max-width:100%!important;}
.scrm-production-board{display:grid!important;grid-template-columns:repeat(7,minmax(170px,1fr))!important;gap:14px!important;overflow-x:auto!important;max-width:100%!important;padding:4px 4px 12px!important;box-sizing:border-box!important;}
.scrm-production-column{min-width:0!important;position:relative!important;overflow:hidden!important;}
.scrm-production-column header{display:flex!important;align-items:center!important;gap:9px!important;padding-bottom:10px!important;border-bottom:1px solid rgba(255,255,255,.55)!important;}
.scrm-production-status-icon{width:28px;height:28px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 6px 16px rgba(50,30,12,.08)}
.scrm-production-column.is-a_preparer{background:linear-gradient(160deg,#fff1eb 0%,#fffaf7 82%)!important;border-color:rgba(202,79,46,.25)!important;color:#9d3c25!important;}
.scrm-production-column.is-en_production{background:linear-gradient(160deg,#fff4df 0%,#fffaf3 82%)!important;border-color:rgba(211,137,39,.25)!important;color:#a76513!important;}
.scrm-production-column.is-envoye_labo{background:linear-gradient(160deg,#fff9db 0%,#fffdf2 82%)!important;border-color:rgba(201,164,42,.28)!important;color:#9b7a10!important;}
.scrm-production-column.is-recu_labo{background:linear-gradient(160deg,#eefadd 0%,#fbfff4 82%)!important;border-color:rgba(129,172,45,.28)!important;color:#658a22!important;}
.scrm-production-column.is-pret_livraison{background:linear-gradient(160deg,#e4f8df 0%,#f7fff5 82%)!important;border-color:rgba(79,158,67,.28)!important;color:#3e8736!important;}
.scrm-production-column.is-livre{background:linear-gradient(160deg,#ddf8e6 0%,#f6fff9 82%)!important;border-color:rgba(38,146,75,.30)!important;color:#287a42!important;}
.scrm-production-column.is-bloque{background:linear-gradient(160deg,#ffe8e2 0%,#fff8f5 82%)!important;border-color:rgba(176,54,28,.34)!important;color:#9e321d!important;}
.scrm-production-readonly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.scrm-production-readonly-grid p{margin:0;padding:14px;border:1px solid rgba(190,161,103,.18);border-radius:16px;background:#fffaf4}
.scrm-production-readonly-grid span{display:block;color:#7a7166;font-size:12px;font-weight:700;margin-bottom:4px}.scrm-production-readonly-grid strong{display:block;color:#22222a}.scrm-production-note{margin-top:14px;padding:14px;border-radius:16px;background:#fbf8f0}.scrm-production-note p{margin:.4rem 0 0}
.scrm-production-link-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:16px 0}.scrm-production-link-choices label{display:flex!important;align-items:center;gap:8px;padding:12px 14px;border:1px solid rgba(190,161,103,.22);border-radius:16px;background:#fffaf5;font-weight:800;cursor:pointer}.scrm-production-link-choices input{width:auto!important}.scrm-production-new-client{margin-top:10px;padding:14px;border-radius:18px;background:#fbf8f0;border:1px dashed rgba(180,134,46,.35)}
@media(max-width:1350px){.scrm-production-board{grid-template-columns:repeat(7,190px)!important;}.scrm-production-column{min-width:190px!important;}}
@media(max-width:760px){.scrm-production-board{grid-template-columns:repeat(7,82vw)!important}.scrm-production-readonly-grid{grid-template-columns:1fr}.scrm-production-link-choices{grid-template-columns:1fr}}

/* Studio CRM v1.27.22 — Production pipeline responsive + drag/drop */
.scrm-production-pipeline{max-width:100%!important;overflow:hidden!important;}
.scrm-production-board{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:14px!important;width:100%!important;max-width:100%!important;overflow:visible!important;padding-bottom:0!important;}
.scrm-production-column{min-width:0!important;position:relative;transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;background:linear-gradient(180deg, color-mix(in srgb, var(--stage-color,#c69a45) 8%, #fff), #fff)!important;border-color:color-mix(in srgb, var(--stage-color,#c69a45) 32%, rgba(190,161,103,.2))!important;}
.scrm-production-column header{display:flex;align-items:center;gap:9px;color:color-mix(in srgb, var(--stage-color,#c69a45) 74%, #201b15)!important;}
.scrm-production-status-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:color-mix(in srgb, var(--stage-color,#c69a45) 18%, #fff);color:var(--stage-color,#c69a45);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--stage-color,#c69a45) 24%, transparent);}
.scrm-production-dropzone{min-height:158px;display:block;}
.scrm-production-card-mini[draggable="true"]{cursor:grab;}
.scrm-production-card-mini.is-dragging{opacity:.55;transform:scale(.98);cursor:grabbing;}
.scrm-production-column.is-drag-over{transform:translateY(-2px);box-shadow:0 18px 44px color-mix(in srgb, var(--stage-color,#c69a45) 20%, transparent);border-color:var(--stage-color,#c69a45)!important;}
@media(max-width:1100px){.scrm-production-board{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:720px){.scrm-production-board{grid-template-columns:1fr!important;}.scrm-production-column{min-height:auto!important;}.scrm-production-dropzone{min-height:90px;}}

/* V1.27.23 — stabilisation admin / clients */
.toplevel_page_studio-crm-core .scrm-bulkbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0;padding:12px;border:1px solid #eadfce;border-radius:18px;background:#fffaf4}
.toplevel_page_studio-crm-core .scrm-checkline{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:#5f554b}
.toplevel_page_studio-crm-core .scrm-bulkbar select{border:1px solid #eadfce;border-radius:14px;padding:10px 12px;background:#fff;min-width:180px}
.toplevel_page_studio-crm-core .scrm-table-wrap{width:100%;overflow:auto;border-radius:18px}
.toplevel_page_studio-crm-core .scrm-check-col{width:42px}
.toplevel_page_studio-crm-core .scrm-clients-table input[type="checkbox"]{width:18px;height:18px}
.toplevel_page_studio-crm-core .crm1134-task time{min-width:118px;text-align:right}
.toplevel_page_studio-crm-core .crm1134-task time em{font-size:11px;line-height:1.15}

/* V1.27.24 — correction débordement tâches dashboard + import contacts */
body.crm135-body .crm1134-task,
body.crm1134-body .crm1134-task{
    grid-template-columns:18px minmax(0,1fr) 34px minmax(86px,104px)!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
}
body.crm135-body .crm1134-task time,
body.crm1134-body .crm1134-task time{
    min-width:0!important;
    max-width:104px!important;
    white-space:normal!important;
    overflow:hidden!important;
}
body.crm135-body .crm1134-task time strong,
body.crm1134-body .crm1134-task time strong,
body.crm135-body .crm1134-task time em,
body.crm1134-body .crm1134-task time em{
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
body.crm135-body .crm1134-task-body,
body.crm1134-body .crm1134-task-body{
    overflow:hidden!important;
}
.scrm-client-import-card[hidden]{display:none!important;}
.scrm-import-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:14px;align-items:end;}
.scrm-import-form label{display:grid;gap:7px;font-weight:700;color:#4f463c;}
.scrm-import-form input,.scrm-import-form select{width:100%;border:1px solid #e5dac8;border-radius:16px;background:#fff;padding:12px 14px;}
.scrm-notice{margin:12px 0;padding:12px 16px;border-radius:16px;border:1px solid #e5dac8;background:#fff;font-weight:700;}
.scrm-notice.success{background:#f3fbf5;border-color:#cbe9d2;color:#256b37;}
.scrm-notice.error{background:#fff6f4;border-color:#efc8c1;color:#a13a2f;}
@media (max-width:900px){.scrm-import-form{grid-template-columns:1fr;}.crm1134-tasks{overflow:hidden!important;}}

/* V1.27.27 — Harmonisation visuelle premium pré-grosse mise à jour
   Direction validée : fond clair premium, cartes douces, boutons neumorphisme subtil,
   coins très arrondis, ombres légères, doré discret. */
.toplevel_page_studio-crm-core{
  --scrm-bg:#f7f2ea;
  --scrm-panel:#fffdf9;
  --scrm-panel-soft:#fbf7ef;
  --scrm-gold:#b08b2d;
  --scrm-gold-2:#c9a55f;
  --scrm-ink:#28231d;
  --scrm-muted:#766f66;
  --scrm-line:rgba(176,139,45,.18);
  --scrm-shadow:0 18px 45px rgba(68,45,18,.075);
  --scrm-shadow-soft:0 8px 24px rgba(68,45,18,.055);
  --scrm-inner:inset 0 1px 0 rgba(255,255,255,.82), inset 0 -10px 24px rgba(176,139,45,.035);
}
.toplevel_page_studio-crm-core #wpcontent{background:var(--scrm-bg)!important;}
.toplevel_page_studio-crm-core .scrm-app,
body.crm1134-body,
body.crm135-body{background:linear-gradient(135deg,#f9f5ef 0%,#f4ecdf 100%)!important;color:var(--scrm-ink)!important;}
.toplevel_page_studio-crm-core .scrm-main,
body.crm1134-body .scrm-main{min-width:0!important;}
.toplevel_page_studio-crm-core .scrm-sidebar,
body.crm1134-body .scrm-sidebar,
body.crm135-body .scrm-sidebar{
  background:rgba(255,253,249,.78)!important;
  border-right:1px solid rgba(176,139,45,.16)!important;
  box-shadow:12px 0 34px rgba(68,45,18,.045)!important;
  backdrop-filter:blur(14px);
}
.toplevel_page_studio-crm-core .scrm-logo,
body.crm1134-body .scrm-sidebar h1,
body.crm1134-body .scrm-sidebar .brand,
body.crm1134-body .scrm-sidebar .logo{color:#3a3128!important;letter-spacing:-.04em!important;}
.toplevel_page_studio-crm-core .scrm-sidebar a,
body.crm1134-body .scrm-sidebar a,
body.crm135-body .scrm-sidebar a{
  border-radius:18px!important;
  color:#51483e!important;
  background:transparent!important;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease!important;
}
.toplevel_page_studio-crm-core .scrm-sidebar a:hover,
.toplevel_page_studio-crm-core .scrm-sidebar a.active,
body.crm1134-body .scrm-sidebar a:hover,
body.crm1134-body .scrm-sidebar a.active,
body.crm135-body .scrm-sidebar a:hover,
body.crm135-body .scrm-sidebar a.active{
  background:linear-gradient(145deg,#fff,#f7efe3)!important;
  color:#8a671e!important;
  transform:translateX(2px);
  box-shadow:var(--scrm-shadow-soft), var(--scrm-inner)!important;
}
.toplevel_page_studio-crm-core .scrm-card,
.toplevel_page_studio-crm-core .crm1134-card,
.toplevel_page_studio-crm-core .crm1134-stat,
.toplevel_page_studio-crm-core .project-compact-card,
.toplevel_page_studio-crm-core .project-client-card,
.toplevel_page_studio-crm-core .studio-settings-card,
.toplevel_page_studio-crm-core .settings-repeater,
.toplevel_page_studio-crm-core .comm-action-card,
.toplevel_page_studio-crm-core .smtp-settings-card,
.toplevel_page_studio-crm-core .template-detail,
.toplevel_page_studio-crm-core .scrm-production-column,
.toplevel_page_studio-crm-core .scrm-client-import-card,
.toplevel_page_studio-crm-core .scrm-modal-box{
  background:rgba(255,253,249,.92)!important;
  border:1px solid var(--scrm-line)!important;
  border-radius:28px!important;
  box-shadow:var(--scrm-shadow)!important;
}
.toplevel_page_studio-crm-core .scrm-card:hover,
.toplevel_page_studio-crm-core .crm1134-card:hover,
.toplevel_page_studio-crm-core .crm1134-stat:hover{box-shadow:0 22px 56px rgba(68,45,18,.095)!important;}
.toplevel_page_studio-crm-core .scrm-btn,
.toplevel_page_studio-crm-core .crm1134-btn,
.toplevel_page_studio-crm-core .button.scrm-btn,
.toplevel_page_studio-crm-core button.scrm-btn,
.toplevel_page_studio-crm-core .scrm-inline-btn,
.toplevel_page_studio-crm-core .button-primary{
  border:1px solid rgba(176,139,45,.18)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#fffdf9,#f3eadb)!important;
  color:#3d342b!important;
  box-shadow:6px 8px 18px rgba(68,45,18,.08), -5px -5px 16px rgba(255,255,255,.82), var(--scrm-inner)!important;
  font-weight:850!important;
  text-shadow:none!important;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease!important;
}
.toplevel_page_studio-crm-core .scrm-btn:hover,
.toplevel_page_studio-crm-core .crm1134-btn:hover,
.toplevel_page_studio-crm-core .scrm-inline-btn:hover,
.toplevel_page_studio-crm-core .button-primary:hover{transform:translateY(-1px);box-shadow:8px 12px 24px rgba(68,45,18,.105), -5px -5px 16px rgba(255,255,255,.9), var(--scrm-inner)!important;}
.toplevel_page_studio-crm-core .scrm-btn.gold,
.toplevel_page_studio-crm-core .crm1134-btn.gold,
.toplevel_page_studio-crm-core .button-primary{
  background:linear-gradient(145deg,#c9a55f,#a77d25)!important;
  color:#fff!important;
  border-color:rgba(118,86,23,.18)!important;
  box-shadow:0 14px 28px rgba(176,139,45,.24), inset 0 1px 0 rgba(255,255,255,.36)!important;
}
.toplevel_page_studio-crm-core input[type="text"],
.toplevel_page_studio-crm-core input[type="email"],
.toplevel_page_studio-crm-core input[type="tel"],
.toplevel_page_studio-crm-core input[type="url"],
.toplevel_page_studio-crm-core input[type="number"],
.toplevel_page_studio-crm-core input[type="date"],
.toplevel_page_studio-crm-core input[type="time"],
.toplevel_page_studio-crm-core input[type="datetime-local"],
.toplevel_page_studio-crm-core input[type="search"],
.toplevel_page_studio-crm-core textarea,
.toplevel_page_studio-crm-core select{
  background:#fffdf9!important;
  border:1px solid rgba(176,139,45,.2)!important;
  border-radius:17px!important;
  color:var(--scrm-ink)!important;
  box-shadow:inset 0 2px 7px rgba(68,45,18,.035)!important;
  outline:none!important;
}
.toplevel_page_studio-crm-core input:focus,
.toplevel_page_studio-crm-core textarea:focus,
.toplevel_page_studio-crm-core select:focus{border-color:rgba(176,139,45,.48)!important;box-shadow:0 0 0 4px rgba(176,139,45,.10), inset 0 2px 7px rgba(68,45,18,.035)!important;}
.toplevel_page_studio-crm-core table,
.toplevel_page_studio-crm-core .widefat{border:0!important;border-radius:22px!important;overflow:hidden!important;box-shadow:var(--scrm-shadow-soft)!important;background:#fffdf9!important;}
.toplevel_page_studio-crm-core th{background:#f5ecdd!important;color:#5f554b!important;font-weight:850!important;}
.toplevel_page_studio-crm-core td{border-color:rgba(176,139,45,.12)!important;}
.toplevel_page_studio-crm-core .scrm-project-card,
.toplevel_page_studio-crm-core .crm1134-session,
.toplevel_page_studio-crm-core .crm1134-task,
.toplevel_page_studio-crm-core .scrm-production-card-mini{
  border:1px solid rgba(176,139,45,.14)!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,#fffdf9,#fbf6ee)!important;
  box-shadow:0 8px 22px rgba(68,45,18,.055)!important;
}
.toplevel_page_studio-crm-core .scrm-topbar,
.toplevel_page_studio-crm-core .crm1134-head{gap:14px!important;}
.toplevel_page_studio-crm-core .scrm-topbar h1,
.toplevel_page_studio-crm-core .crm1134-head h1{letter-spacing:-.045em!important;color:#2f2923!important;}
.toplevel_page_studio-crm-core .scrm-notice{border-radius:18px!important;box-shadow:var(--scrm-shadow-soft)!important;}
@media(max-width:782px){
  .toplevel_page_studio-crm-core .scrm-sidebar{border-right:0!important;border-bottom:1px solid rgba(176,139,45,.16)!important;}
  .toplevel_page_studio-crm-core .scrm-card,
  .toplevel_page_studio-crm-core .crm1134-card,
  .toplevel_page_studio-crm-core .crm1134-stat{border-radius:24px!important;}
}


/* V1.27.48 — statuts contacts + correction checkboxes tableau de bord */
.scrm-app select,
.scrm-modal select,
.crm1134 select,
select.scrm-native-select{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:15px!important;
  line-height:1.25!important;
  color:#2f2d2a!important;
  background:#fffdf9!important;
  border:1px solid #e3d6c4!important;
  border-radius:14px!important;
  padding:12px 42px 12px 14px!important;
  min-height:46px!important;
  box-shadow:0 8px 18px rgba(72,49,27,.04)!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  background-image:linear-gradient(45deg, transparent 50%, #9b7645 50%),linear-gradient(135deg, #9b7645 50%, transparent 50%)!important;
  background-position:calc(100% - 18px) calc(50% - 3px),calc(100% - 12px) calc(50% - 3px)!important;
  background-size:6px 6px,6px 6px!important;
  background-repeat:no-repeat!important;
}
.scrm-app select:focus,
.scrm-modal select:focus,
.crm1134 select:focus{
  outline:none!important;
  border-color:#bd9358!important;
  box-shadow:0 0 0 4px rgba(189,147,88,.14)!important;
}
.crm1134-task,
.crm1134-task-row,
.crm1134-tasks li,
.scrm-dashboard-task,
.scrm-tasks li{
  position:relative!important;
}
.crm1134-tasks input[type="checkbox"],
.crm1134-card input[type="checkbox"],
.scrm-dashboard-task input[type="checkbox"],
.scrm-tasks input[type="checkbox"],
.scrm-task-check{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  max-width:22px!important;
  flex:0 0 22px!important;
  margin:0 12px 0 0!important;
  border-radius:8px!important;
  box-sizing:border-box!important;
}
.crm1134-tasks .task-check,
.crm1134-card .task-check,
.scrm-tasks .task-check{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  flex:0 0 24px!important;
  border-radius:9px!important;
  margin-right:14px!important;
  font-size:13px!important;
}
.crm1134-tasks a,
.crm1134-tasks .task-read,
.scrm-tasks .task-read{
  min-width:0!important;
  overflow:hidden!important;
}
.scrm-filter-pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:#f6efe4;
  border:1px solid #eadfce;
  border-radius:999px;
  padding:8px 12px;
  margin-bottom:14px;
  color:#6f604f;
  font-weight:800;
}
.scrm-filter-pill a{color:#9b7645;text-decoration:none;}

/* V1.27.49 — correction définitive cases à cocher dashboard/front */
.scrm-front-page .crm1134-task,
body:not(.wp-admin) .crm1134-task,
.crm1134-task{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr) 40px 96px!important;
  column-gap:14px!important;
  align-items:center!important;
}
.scrm-front-page .crm1134-check,
body:not(.wp-admin) .crm1134-check,
.crm1134-check,
.scrm-front-page .crm-dashboard-complete-task,
body:not(.wp-admin) .crm-dashboard-complete-task,
.crm-dashboard-complete-task{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  max-width:22px!important;
  min-height:22px!important;
  max-height:22px!important;
  flex:0 0 22px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid #d6c9b8!important;
  border-radius:7px!important;
  background:#fffdf9!important;
  box-shadow:none!important;
  position:static!important;
  transform:none!important;
  line-height:1!important;
  overflow:hidden!important;
}
.scrm-front-page .crm1134-task-body,
body:not(.wp-admin) .crm1134-task-body,
.crm1134-task-body{
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
.scrm-front-page .crm1134-task-body strong,
.scrm-front-page .crm1134-task-body span,
body:not(.wp-admin) .crm1134-task-body strong,
body:not(.wp-admin) .crm1134-task-body span,
.crm1134-task-body strong,
.crm1134-task-body span{
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.scrm-front-page .crm1134-task-icon,
body:not(.wp-admin) .crm1134-task-icon,
.crm1134-task-icon{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  padding:0!important;
}
.scrm-front-page .crm1134-task time,
body:not(.wp-admin) .crm1134-task time,
.crm1134-task time{
  min-width:86px!important;
  text-align:right!important;
}

/* V1.27.50 — Dashboard task checkbox as fixed SVG slot (no overlap) */
.crm1134-card.crm1134-tasks .crm1134-task-list,
.crm1134-tasks .crm1134-task-list{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
}
.crm1134-card.crm1134-tasks .crm1134-task,
.crm1134-tasks .crm1134-task,
.scrm-front-page .crm1134-task,
body:not(.wp-admin) .crm1134-task{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) 48px 112px!important;
  column-gap:18px!important;
  align-items:center!important;
  min-height:78px!important;
  padding:14px 0!important;
  overflow:visible!important;
}
.crm1134-card.crm1134-tasks .crm1134-check,
.crm1134-tasks .crm1134-check,
.scrm-front-page .crm1134-check,
body:not(.wp-admin) .crm1134-check,
.crm1134-check.crm-dashboard-complete-task{
  all:unset!important;
  box-sizing:border-box!important;
  grid-column:1!important;
  display:block!important;
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  max-width:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  position:relative!important;
  cursor:pointer!important;
  overflow:visible!important;
  transform:none!important;
}
.crm1134-card.crm1134-tasks .crm1134-check::before,
.crm1134-tasks .crm1134-check::before,
.scrm-front-page .crm1134-check::before,
body:not(.wp-admin) .crm1134-check::before,
.crm1134-check.crm-dashboard-complete-task::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  width:26px!important;
  height:26px!important;
  border:1.5px solid #d6c4ac!important;
  border-radius:9px!important;
  background:#fffdf9!important;
  box-shadow:0 8px 18px rgba(70,52,34,.04)!important;
  box-sizing:border-box!important;
}
.crm1134-card.crm1134-tasks .crm1134-check::after,
.crm1134-tasks .crm1134-check::after,
.scrm-front-page .crm1134-check::after,
body:not(.wp-admin) .crm1134-check::after,
.crm1134-check.crm-dashboard-complete-task::after{
  content:""!important;
  position:absolute!important;
  left:7px!important;
  top:6px!important;
  width:11px!important;
  height:8px!important;
  opacity:0!important;
  background-repeat:no-repeat!important;
  background-size:11px 8px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1.2 5.1 5 8.7 12.8 1.3' fill='none' stroke='%23a77d45' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}
.crm1134-card.crm1134-tasks .crm1134-check.is-done::after,
.crm1134-tasks .crm1134-check.is-done::after,
.crm1134-card.crm1134-tasks .crm1134-check[aria-pressed="true"]::after,
.crm1134-tasks .crm1134-check[aria-pressed="true"]::after{
  opacity:1!important;
}
.crm1134-card.crm1134-tasks .crm1134-task-body,
.crm1134-tasks .crm1134-task-body,
.scrm-front-page .crm1134-task-body,
body:not(.wp-admin) .crm1134-task-body{
  grid-column:2!important;
  min-width:0!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  transform:none!important;
}
.crm1134-card.crm1134-tasks .crm1134-task-body strong,
.crm1134-card.crm1134-tasks .crm1134-task-body span,
.crm1134-tasks .crm1134-task-body strong,
.crm1134-tasks .crm1134-task-body span{
  display:block!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.crm1134-card.crm1134-tasks .crm1134-task-icon,
.crm1134-tasks .crm1134-task-icon{
  grid-column:3!important;
  justify-self:center!important;
}
.crm1134-card.crm1134-tasks .crm1134-task time,
.crm1134-tasks .crm1134-task time{
  grid-column:4!important;
  justify-self:end!important;
}
@media(max-width:720px){
  .crm1134-card.crm1134-tasks .crm1134-task,
  .crm1134-tasks .crm1134-task,
  .scrm-front-page .crm1134-task,
  body:not(.wp-admin) .crm1134-task{
    grid-template-columns:34px minmax(0,1fr) 42px!important;
    grid-template-areas:"check body icon" "check body date"!important;
    row-gap:3px!important;
  }
  .crm1134-card.crm1134-tasks .crm1134-check,.crm1134-tasks .crm1134-check{grid-area:check!important;align-self:center!important;}
  .crm1134-card.crm1134-tasks .crm1134-task-body,.crm1134-tasks .crm1134-task-body{grid-area:body!important;}
  .crm1134-card.crm1134-tasks .crm1134-task-icon,.crm1134-tasks .crm1134-task-icon{grid-area:icon!important;}
  .crm1134-card.crm1134-tasks .crm1134-task time,.crm1134-tasks .crm1134-task time{grid-area:date!important;min-width:0!important;font-size:12px!important;}
}


/* V1.27.52 — Front project background parity / no ghost hover layer */
body.scrm-front-body,
body.scrm-front-body .scrm-front-shell,
body.scrm-front-body .scrm-app,
body.scrm-front-body .scrm-main,
body.scrm-front-body .scrm-v141-project-page,
body.scrm-front-body .scrm-v141-project-shell{
  background:#f7f3ec!important;
  background-color:#f7f3ec!important;
  filter:none!important;
  opacity:1!important;
}
body.scrm-front-body .scrm-v141-project-page:hover,
body.scrm-front-body .scrm-v141-project-shell:hover,
body.scrm-front-body .scrm-main:hover,
body.scrm-front-body .scrm-app:hover{
  background:#f7f3ec!important;
  background-color:#f7f3ec!important;
  filter:none!important;
  opacity:1!important;
  transform:none!important;
}
body.scrm-front-body .scrm-v141-project-page::before,
body.scrm-front-body .scrm-v141-project-page::after,
body.scrm-front-body .scrm-v141-project-shell::before,
body.scrm-front-body .scrm-v141-project-shell::after,
body.scrm-front-body .scrm-main::before,
body.scrm-front-body .scrm-main::after{
  content:none!important;
  display:none!important;
  pointer-events:none!important;
}
body.scrm-front-body .scrm-v141-project-page *,
body.scrm-front-body .scrm-v141-project-shell *{
  filter:none!important;
}
body.scrm-front-body .scrm-v141-project-page a:not(.scrm-btn):not(.scrm-inline-btn):hover,
body.scrm-front-body .scrm-v141-tabs a:hover{
  background:transparent!important;
}


/* V1.27.53 — Neutralisation définitive du hover/clic fantôme sur fiche projet front */
body.scrm-front-body:has(.scrm-v141-tabs),
body.scrm-front-body:has(.scrm-project-tabs),
body.scrm-front-body:has(a[href*="view=project"][href*="tab="]){
  background:#f4efe8!important;
}
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-front-shell,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-app,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-main,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-content,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-page,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-v141-project-page,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-v141-project-shell,
body.scrm-front-body:has(.scrm-project-tabs) .scrm-front-shell,
body.scrm-front-body:has(.scrm-project-tabs) .scrm-app,
body.scrm-front-body:has(.scrm-project-tabs) .scrm-main,
body.scrm-front-body:has(.scrm-project-tabs) .scrm-content,
body.scrm-front-body:has(.scrm-project-tabs) .scrm-page{
  background:#f4efe8!important;
  background-color:#f4efe8!important;
  background-image:none!important;
  cursor:default!important;
}
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-front-shell:hover,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-app:hover,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-main:hover,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-content:hover,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-page:hover,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-v141-project-page:hover,
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-v141-project-shell:hover,
body.scrm-front-body:has(.scrm-project-tabs) .scrm-front-shell:hover,
body.scrm-front-body:has(.scrm-project-tabs) .scrm-app:hover,
body.scrm-front-body:has(.scrm-project-tabs) .scrm-main:hover,
body.scrm-front-body:has(.scrm-project-tabs) .scrm-content:hover,
body.scrm-front-body:has(.scrm-project-tabs) .scrm-page:hover{
  background:#f4efe8!important;
  background-color:#f4efe8!important;
  background-image:none!important;
  box-shadow:none!important;
  transform:none!important;
  filter:none!important;
}
body.scrm-front-body:has(.scrm-v141-tabs) .scrm-task-clickable:not(.crm1134-task):not(.scrm-task):not(li):not(tr):hover,
body.scrm-front-body:has(.scrm-project-tabs) .scrm-task-clickable:not(.crm1134-task):not(.scrm-task):not(li):not(tr):hover{
  background:inherit!important;
  background-image:none!important;
  cursor:default!important;
}

/* V1.27.54 — le conteneur projet ne doit jamais être un lien/overlay cliquable */
body.scrm-front-body .scrm-ghost-link-unwrapped,
body.scrm-front-body .scrm-ghost-link-unwrapped:hover{
  display:block!important;
  cursor:default!important;
  text-decoration:none!important;
  color:inherit!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
}
body.scrm-front-body .scrm-ghost-link-unwrapped::before,
body.scrm-front-body .scrm-ghost-link-unwrapped::after{
  content:none!important;
  display:none!important;
}


/* V1.27.54 — DOM ghost wrapper neutralisé : aucune transition/hover sur le wrapper remplacé */
body.scrm-front-body .scrm-ghost-wrapper-unwrapped,
body.scrm-front-body .scrm-ghost-wrapper-unwrapped:hover{
  display:block!important;
  cursor:default!important;
  background:transparent!important;
  background-image:none!important;
  filter:none!important;
  opacity:1!important;
  transform:none!important;
  box-shadow:none!important;
  text-decoration:none!important;
  color:inherit!important;
}

/* ===== V1.28.9 — Interface premium des types de séances ===== */
.scrm-booking-services-list{gap:24px!important}.scrm-booking-service-row.scrm-booking-service-editor{display:block!important;padding:0!important;overflow:hidden;border-radius:28px!important;background:linear-gradient(145deg,#fffdf8,#f8f2e8)!important;border:1px solid rgba(176,139,45,.18)!important;box-shadow:0 18px 45px rgba(70,50,25,.08), inset 0 1px 0 rgba(255,255,255,.85)}.scrm-service-editor-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid rgba(120,95,55,.12);background:rgba(255,255,255,.54)}.scrm-service-title-zone{display:flex;align-items:center;gap:14px}.scrm-service-editor-icon,.scrm-section-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:48px;height:48px;border-radius:18px;background:linear-gradient(145deg,#f7ead3,#fff8ea);color:#9b741e;border:1px solid rgba(176,139,45,.18);font-weight:900}.scrm-service-title-zone strong{display:block;font-size:18px;color:#171717}.scrm-service-title-zone small,.scrm-section-intro small{display:block;margin-top:3px;color:#6f665c;font-weight:600}.scrm-service-editor-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.scrm-switchline{display:flex!important;align-items:center!important;gap:10px!important;font-weight:850!important;margin:0!important}.scrm-switchline input{position:absolute!important;opacity:0!important;pointer-events:none!important}.scrm-switchline span{width:46px;height:26px;border-radius:999px;background:#e7ded0;position:relative;box-shadow:inset 2px 2px 5px rgba(70,50,25,.12)}.scrm-switchline span:after{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:white;box-shadow:0 3px 8px rgba(0,0,0,.16);transition:.18s ease}.scrm-switchline input:checked+span{background:linear-gradient(135deg,#c89d3c,#a77b20)}.scrm-switchline input:checked+span:after{transform:translateX(20px)}.scrm-service-editor-top{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:24px 28px}.scrm-booking-service-editor .scrm-field{display:flex!important;flex-direction:column!important;gap:8px!important;font-weight:800!important;margin:0!important}.scrm-booking-service-editor .scrm-field>span:first-child{font-size:14px;color:#171717}.scrm-booking-service-editor input:not([type="checkbox"]):not([type="color"]){width:100%;min-height:50px!important;border-radius:14px!important;border:1px solid rgba(90,70,45,.17)!important;background:rgba(255,255,255,.9)!important;padding:10px 14px!important;box-shadow:inset 1px 1px 4px rgba(70,50,25,.04)!important}.scrm-booking-service-editor small{color:#6f665c;font-weight:600;line-height:1.45}.scrm-color-field,.scrm-unit-input{display:flex!important;align-items:center!important;border:1px solid rgba(90,70,45,.17)!important;border-radius:14px!important;background:rgba(255,255,255,.9)!important;overflow:hidden;min-height:50px}.scrm-color-field input[type="color"]{width:64px!important;height:50px!important;border:0!important;padding:7px!important;background:transparent!important}.scrm-color-field em,.scrm-unit-input em{font-style:normal;color:#4f4a44;font-weight:750;padding:0 14px;border-left:1px solid rgba(90,70,45,.1);white-space:nowrap}.scrm-unit-input input{border:0!important;border-radius:0!important;box-shadow:none!important;min-height:48px!important;background:transparent!important}.scrm-service-editor-section{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(300px,1fr);gap:32px;padding:26px 28px;border-top:1px solid rgba(120,95,55,.12)}.scrm-service-editor-section.last{border-bottom:0}.scrm-section-intro{display:flex;align-items:center;gap:18px}.scrm-section-intro strong{display:block;text-transform:uppercase;letter-spacing:.02em;font-size:15px;color:#161616}.scrm-section-fields{display:grid;gap:22px;align-items:start}.scrm-section-fields.two{grid-template-columns:1fr 1fr}.scrm-section-fields.one{grid-template-columns:minmax(260px,360px)}.scrm-section-fields.split>label+label{padding-left:28px;border-left:1px solid rgba(120,95,55,.18)}.scrm-example-box{border:1px solid rgba(176,139,45,.22);border-radius:16px;background:linear-gradient(145deg,#fff9ed,#f7ecda);padding:16px 18px;color:#3f3932}.scrm-example-box strong{display:block;margin-bottom:6px}.scrm-example-box p{margin:0;color:#51483f;line-height:1.5}.scrm-booking-service-editor .scrm-inline-btn.danger{border-color:rgba(219,67,67,.28)!important;color:#c53333!important;background:#fff!important}.scrm-booking-service-editor .scrm-inline-btn.danger:hover{background:#fff4f4!important}.scrm-booking-services-card #scrmAddBookingService{margin-top:4px}.scrm-booking-services-card form>.scrm-btn.gold{float:right;margin-top:4px}
@media(max-width:1050px){.scrm-service-editor-top,.scrm-service-editor-section{grid-template-columns:1fr}.scrm-section-fields.two{grid-template-columns:1fr 1fr}.scrm-section-fields.split>label+label{padding-left:0;border-left:0}}@media(max-width:720px){.scrm-service-editor-head{align-items:flex-start;flex-direction:column}.scrm-service-editor-actions{width:100%;justify-content:space-between}.scrm-service-editor-top,.scrm-service-editor-section{padding:20px}.scrm-section-fields.two{grid-template-columns:1fr}.scrm-section-fields.one{grid-template-columns:1fr}.scrm-section-intro{align-items:flex-start}.scrm-booking-services-card form>.scrm-btn.gold{float:none}}

/* V1.28.10 — badge nouvelles réservations */
.scrm-sidebar nav a{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.scrm-sidebar-badge{min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:linear-gradient(135deg,#d9a43a,#b98020);color:#fff;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(185,128,32,.28);}
.scrm-status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;background:#f8f1e7;color:#8a641d;font-weight:700;font-size:12px;}

/* V1.28.19 — Mini-séances */
.scrm-head-actions{display:flex;gap:10px;align-items:center}.scrm-ms-link .scrm-inline-form{display:flex;gap:10px;margin-top:12px}.scrm-ms-link input{flex:1}.scrm-ms-layout{display:grid;grid-template-columns:1fr 1.6fr;gap:18px;margin-top:18px}.scrm-ms-event-list{display:grid;gap:10px}.scrm-ms-row{display:grid;grid-template-columns:66px 1.4fr .9fr .8fr 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;cursor:pointer;transition:.18s}.scrm-ms-row:hover{box-shadow:0 12px 28px rgba(15,23,42,.08);transform:translateY(-1px)}.scrm-ms-thumb{width:66px;height:46px;border-radius:12px;background:#f4efe7 center/cover no-repeat}.scrm-progress{display:block;height:5px;border-radius:99px;background:#eee;margin-top:6px;overflow:hidden}.scrm-progress i{display:block;height:100%;background:linear-gradient(90deg,#b08b2d,#e0b85a)}.scrm-ms-calendar{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid rgba(15,23,42,.08);border-radius:18px;overflow:hidden}.scrm-ms-calendar>*{min-height:86px;border-right:1px solid rgba(15,23,42,.08);border-bottom:1px solid rgba(15,23,42,.08);padding:10px}.scrm-ms-calendar b{min-height:auto;text-align:center;color:#7c5cc4;background:#faf7ff}.scrm-ms-calendar em{display:block;margin-top:12px;padding:4px 7px;border-radius:999px;background:#f6ead4;color:#7b5615;font-size:11px;font-style:normal}.scrm-modal.show{display:flex!important;opacity:1;visibility:visible}.scrm-modal-content.wide{max-width:980px}.scrm-ms-front{max-width:1120px;margin:0 auto;padding:32px 18px;font-family:inherit}.scrm-ms-hero{padding:52px 34px;border-radius:28px;background:linear-gradient(135deg,#fbf6ee,#fff);border:1px solid rgba(176,139,45,.18);margin-bottom:24px}.scrm-ms-hero h1{font-size:42px;margin:0 0 8px}.scrm-ms-front-list{display:grid;gap:18px}.scrm-ms-front-card{display:grid;grid-template-columns:260px 1fr 160px;gap:22px;align-items:center;border:1px solid rgba(15,23,42,.1);border-radius:24px;padding:16px;background:#fff;box-shadow:0 18px 48px rgba(15,23,42,.06)}.scrm-ms-front-img{height:160px;border-radius:18px;background:#eee center/cover no-repeat}.scrm-ms-front-card h2{margin:0 0 6px}.scrm-ms-front-card .scrm-btn{margin-top:14px;width:100%}@media(max-width:900px){.scrm-ms-layout,.scrm-ms-front-card{grid-template-columns:1fr}.scrm-ms-row{grid-template-columns:56px 1fr}.scrm-ms-row>*:nth-child(n+3){display:none}.scrm-ms-front-img{height:220px}}

/* V1.28.24 — CRM front readability + participants + workflow builders */
.scrm-front-shell,.scrm-app{font-size:14px!important;line-height:1.45!important}
.scrm-front-shell h1,.scrm-app h1{font-size:clamp(24px,3vw,34px)!important;line-height:1.12!important}
.scrm-front-shell h2,.scrm-app h2{font-size:clamp(20px,2.3vw,26px)!important}
.scrm-front-shell h3,.scrm-app h3{font-size:18px!important}
.scrm-front-shell h4,.scrm-app h4{font-size:16px!important}
.scrm-front-shell input,.scrm-front-shell select,.scrm-front-shell textarea,
.scrm-app input,.scrm-app select,.scrm-app textarea{font-size:14px!important;min-height:42px;box-sizing:border-box}
.family-row,.family-edit-fields,.scrm-front-participants-panel .family-row{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:12px!important}
.family-row input,.family-row select,.family-row textarea,.family-edit-fields input,.family-edit-fields select,.family-edit-fields textarea{width:100%!important;min-width:0!important;font-size:14px!important;padding:11px 13px!important}
.scrm-hf-rule-list,.scrm-hf-wf-lines{display:flex;flex-direction:column;gap:10px;margin:14px 0}
.scrm-hf-rule-row{display:grid;grid-template-columns:1fr 1fr 1.3fr auto;gap:10px;align-items:center;background:#faf7f2;border:1px solid #f0e8dc;border-radius:18px;padding:12px}
.scrm-hf-wf-builder{background:#faf7f2;border:1px solid #f0e8dc;border-radius:20px;padding:16px;margin-bottom:14px}
.scrm-hf-wf-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}
.scrm-hf-wf-line{display:grid;grid-template-columns:1fr 1fr 2fr .8fr auto;gap:10px;align-items:center}
.scrm-hf-wf-line input{background:#fff!important}
@media(max-width:900px){.scrm-hf-rule-row,.scrm-hf-wf-line{grid-template-columns:1fr}.scrm-hf-wf-head{align-items:flex-start;flex-direction:column}}

/* Studio CRM v1.28.26 — lisibilité compacte + champs dynamiques */
.scrm-app, .scrm-main, .scrm-card, .scrm-form, .scrm-modal-content{font-size:15px!important;line-height:1.45!important;}
.scrm-main h1{font-size:34px!important;line-height:1.12!important;}
.scrm-main h2,.scrm-card h2{font-size:26px!important;line-height:1.15!important;}
.scrm-main h3,.scrm-card h3{font-size:22px!important;line-height:1.2!important;}
.scrm-form label{font-size:15px!important;line-height:1.35!important;}
.scrm-form input,.scrm-form select,.scrm-form textarea,.scrm-card input,.scrm-card select,.scrm-card textarea{font-size:15px!important;line-height:1.35!important;min-height:42px!important;padding:10px 13px!important;box-sizing:border-box!important;}
.scrm-form textarea,.scrm-card textarea{min-height:92px!important;}
.scrm-btn, .scrm-inline-btn, button.scrm-btn{font-size:14px!important;min-height:38px!important;padding:9px 14px!important;}
.scrm-v12826-hidden-client-select,.scrm-v12826-hidden-textarea{display:none!important;}
.scrm-v12826-client-search{position:relative;width:100%;}
.scrm-v12826-client-search-input{width:100%!important;}
.scrm-v12826-client-search-results{display:none;position:absolute;z-index:999999;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid rgba(180,150,95,.32);border-radius:16px;box-shadow:0 16px 40px rgba(38,26,10,.14);padding:8px;max-height:310px;overflow:auto;}
.scrm-v12826-client-search-results.visible{display:block;}
.scrm-v12826-client-search-results button{width:100%;display:block;text-align:left;border:0;background:#fff;border-radius:12px;padding:10px 12px;cursor:pointer;color:#25232c;}
.scrm-v12826-client-search-results button:hover{background:#faf6ee;}
.scrm-v12826-client-search-results strong{display:block;font-size:14px!important;line-height:1.25;}
.scrm-v12826-client-search-results span{display:block;color:#726b62;font-size:12px!important;margin-top:2px;}
.scrm-v12826-wf-builder{border:1px solid #eadfce;border-radius:22px;padding:16px;background:#fffdf9;margin-bottom:16px;}
.scrm-v12826-wf-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px;}
.scrm-v12826-wf-lines{display:flex;flex-direction:column;gap:10px;}
.scrm-v12826-wf-line{display:grid;grid-template-columns:1fr 1fr 2fr .8fr auto;gap:8px;align-items:center;background:#faf7f2;border:1px solid #f0e8dc;border-radius:16px;padding:10px;}
.scrm-v12826-rule-list{display:flex;flex-direction:column;gap:10px;}
.scrm-v12826-rule-row{display:grid;grid-template-columns:1fr 1fr 1.3fr auto;gap:8px;align-items:center;background:#faf7f2;border:1px solid #f0e8dc;border-radius:16px;padding:10px;}
.family-edit-fields,.family-row,.v1105-participant-grid,.project-edit-grid{gap:10px!important;}
.family-edit-fields input,.family-edit-fields select,.family-edit-fields textarea,.v1105-participant input,.v1105-participant select,.v1105-participant textarea,[name^="participant_"]{font-size:15px!important;min-width:160px!important;width:100%!important;min-height:42px!important;padding:10px 12px!important;}
@media(max-width:900px){.scrm-v12826-wf-line,.scrm-v12826-rule-row{grid-template-columns:1fr}.scrm-main h1{font-size:30px!important}.scrm-main h2,.scrm-card h2{font-size:24px!important}}

/* V1.29.5 — Production : workflow à traiter plus ergonomique */
.scrm-production-wf-card{overflow:hidden!important;}
.scrm-production-wf-groups{display:grid;gap:14px;margin-top:14px;}
.scrm-production-wf-group{border:1px solid rgba(176,139,45,.18);border-radius:22px;background:linear-gradient(145deg,#fffdf8,#faf4eb);box-shadow:0 10px 28px rgba(54,39,19,.045);overflow:hidden;}
.scrm-production-wf-group summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;}
.scrm-production-wf-group summary::-webkit-details-marker{display:none;}
.scrm-production-wf-group summary:after{content:'⌄';display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:12px;border:1px solid rgba(176,139,45,.2);color:#9b741e;background:#fffaf3;font-weight:900;transition:.18s ease;}
.scrm-production-wf-group[open] summary:after{transform:rotate(180deg);}
.scrm-production-wf-summary-main{display:flex;flex-direction:column;gap:4px;min-width:0;}
.scrm-production-wf-summary-main strong{font-size:16px;color:#25232c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.scrm-production-wf-summary-main small{color:#756f67;font-weight:650;}
.scrm-production-wf-count{margin-left:auto;white-space:nowrap;border-radius:999px;background:#f4eadb;color:#8c6218;font-size:13px;font-weight:850;padding:7px 11px;}
.scrm-production-wf-group.is-bloque .scrm-production-wf-count{background:#fff0ef;color:#b63131;}
.scrm-production-wf-group.is-en-cours .scrm-production-wf-count{background:#eef5ff;color:#315b9d;}
.scrm-production-wf-task-list{display:grid;gap:0;border-top:1px solid rgba(176,139,45,.14);background:rgba(255,255,255,.55);}
.scrm-production-wf-task{display:grid!important;grid-template-columns:18px minmax(220px,1fr) auto;align-items:center;gap:14px;padding:14px 20px!important;text-decoration:none!important;color:#25232c!important;border-bottom:1px solid rgba(176,139,45,.1)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
.scrm-production-wf-task:hover{background:#fffaf3!important;}
.scrm-production-wf-task:last-child{border-bottom:0!important;}
.scrm-production-wf-dot{width:10px;height:10px;border-radius:999px;background:#c49a3c;box-shadow:0 0 0 5px rgba(196,154,60,.12);}
.scrm-production-wf-task.is-bloque .scrm-production-wf-dot{background:#c94343;box-shadow:0 0 0 5px rgba(201,67,67,.11);}
.scrm-production-wf-task.is-en_cours .scrm-production-wf-dot,.scrm-production-wf-task.is-en-cours .scrm-production-wf-dot{background:#4f7ec4;box-shadow:0 0 0 5px rgba(79,126,196,.11);}
.scrm-production-wf-title{font-weight:850;line-height:1.25;}
.scrm-production-wf-meta{display:flex;align-items:center;gap:10px;white-space:nowrap;}
.scrm-production-wf-meta em{font-style:normal;border-radius:999px;background:#f4eadb;color:#806020;padding:6px 10px;font-size:12px;font-weight:850;}
.scrm-production-wf-task.is-bloque .scrm-production-wf-meta em{background:#fff0ef;color:#b63131;}
.scrm-production-wf-task.is-en_cours .scrm-production-wf-meta em,.scrm-production-wf-task.is-en-cours .scrm-production-wf-meta em{background:#eef5ff;color:#315b9d;}
.scrm-production-wf-meta time{color:#6f665c;font-weight:750;font-size:13px;}
@media(max-width:760px){.scrm-production-wf-group summary{align-items:flex-start;flex-direction:column}.scrm-production-wf-count{margin-left:0}.scrm-production-wf-task{grid-template-columns:18px 1fr;}.scrm-production-wf-meta{grid-column:2;justify-content:flex-start;flex-wrap:wrap}.scrm-production-wf-summary-main strong{white-space:normal}}

/* v1.29.6 — Production workflows: actions + dashboard UI */
.scrm-production-wf-card .scrm-production-wf-groups{
  display:grid;
  gap:16px;
}
.scrm-production-wf-group{
  border:1px solid rgba(198,154,69,.22);
  border-radius:22px;
  background:rgba(255,255,255,.76);
  box-shadow:0 18px 38px rgba(44,36,24,.05);
  overflow:hidden;
}
.scrm-production-wf-group summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  cursor:pointer;
  list-style:none;
}
.scrm-production-wf-group summary::-webkit-details-marker{display:none;}
.scrm-production-wf-summary-main{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.scrm-production-wf-summary-main strong{
  font-size:18px;
  color:#242432;
}
.scrm-production-wf-summary-main small{
  color:#867e72;
  font-size:13px;
}
.scrm-production-wf-count{
  padding:8px 12px;
  border-radius:999px;
  background:#f5eee3;
  color:#9a6d22;
  font-weight:700;
  white-space:nowrap;
}
.scrm-production-wf-task-list{
  display:grid;
  gap:10px;
  padding:0 16px 16px;
}
.scrm-production-wf-task{
  display:grid;
  grid-template-columns:12px minmax(220px,1fr) auto auto;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border:1px solid rgba(198,154,69,.18);
  border-radius:18px;
  background:#fffdf9;
  color:#242432;
  text-decoration:none;
}
.scrm-production-wf-task:hover{box-shadow:0 10px 22px rgba(44,36,24,.06);}
.scrm-production-wf-dot{
  width:10px;height:10px;border-radius:50%;background:#c69a45;display:block;
}
.scrm-production-wf-task.is-bloque .scrm-production-wf-dot{background:#c34a4a;}
.scrm-production-wf-task.is-en_cours .scrm-production-wf-dot{background:#4e83c4;}
.scrm-production-wf-title{font-weight:750;}
.scrm-production-wf-meta{
  display:flex;
  align-items:center;
  gap:10px;
  color:#786f63;
  white-space:nowrap;
}
.scrm-production-wf-meta em{
  font-style:normal;
  padding:6px 10px;
  border-radius:999px;
  background:#f5eee3;
  color:#8f6a31;
  font-weight:700;
}
.scrm-production-wf-quick-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.scrm-production-wf-quick-actions form{margin:0;}
.scrm-icon-btn{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid rgba(198,154,69,.35);
  background:#fffdf9;
  color:#9a6d22;
  font-weight:800;
  font-size:17px;
  cursor:pointer;
  text-decoration:none;
}
.scrm-icon-btn:hover{background:#f7efe2;}
.scrm-icon-btn.success{
  border-color:rgba(85,143,101,.25);
  background:#eff8f2;
  color:#558f65;
}
.scrm-icon-btn.danger{
  border-color:rgba(181,58,58,.28);
  background:#fffafa;
  color:#b53a3a;
}
.scrm-production-wf-editable{
  display:grid;
  gap:12px;
}
.scrm-production-wf-edit-card{
  position:relative;
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:stretch;
  padding:16px;
  border:1px solid rgba(198,154,69,.2);
  border-radius:20px;
  background:#fffdf9;
}
.scrm-production-wf-edit-form{
  display:grid;
  grid-template-columns:minmax(260px,1.4fr) 160px 170px minmax(160px,1fr) auto;
  gap:12px;
  align-items:end;
}
.scrm-production-wf-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:0;
}
.scrm-production-wf-field span{
  font-size:12px;
  font-weight:800;
  color:#81776a;
}
.scrm-production-wf-field input,
.scrm-production-wf-field select{
  min-height:44px;
  border:1px solid rgba(198,154,69,.28);
  border-radius:14px;
  padding:8px 12px;
  background:#fff;
}
.scrm-production-wf-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.scrm-production-wf-delete-form{display:flex;align-items:end;margin:0;}
@media (max-width: 1100px){
  .scrm-production-wf-task{grid-template-columns:12px 1fr;}
  .scrm-production-wf-meta,.scrm-production-wf-quick-actions{grid-column:2;}
  .scrm-production-wf-edit-form{grid-template-columns:1fr 1fr;}
  .scrm-production-wf-actions{grid-column:1/-1;}
}
@media (max-width: 760px){
  .scrm-production-wf-edit-card{grid-template-columns:1fr;}
  .scrm-production-wf-edit-form{grid-template-columns:1fr;}
}

/* v1.29.9 — workflow editor readable cards */
.scrm-v12828-workflows .scrm-v12828-wf-row{cursor:pointer;transition:background .15s ease, box-shadow .15s ease}
.scrm-v12828-workflows .scrm-v12828-wf-row.active{background:rgba(176,139,45,.10)}
.scrm-v12828-workflows .scrm-v12828-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--scrm-border,#dfd2bd);border-radius:12px;background:#fffaf3;color:#9b6d1f;font-weight:700;margin-right:4px;cursor:pointer}
.scrm-v12828-workflows .scrm-v12828-icon:hover{background:#f5ead8}
.scrm-v12828-workflows .scrm-v12828-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}
.scrm-v12828-workflows .scrm-v12828-col{background:#fffdf8;border:1px solid #eadfcf;border-radius:18px;padding:16px;box-shadow:0 12px 30px rgba(70,50,20,.05)}
.scrm-v12828-workflows .scrm-v12828-col-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.scrm-v12828-workflows .scrm-v12828-col-head h3{font-size:20px;line-height:1.05;margin:0;display:flex;gap:8px;align-items:center}
.scrm-v12828-workflows .scrm-v12828-col p{font-size:13px;color:#85796b;margin:0 0 14px}
.scrm-v12828-workflows .scrm-v12828-step-list{display:flex;flex-direction:column;gap:12px;min-height:44px}
.scrm-v12828-workflows .scrm-v12828-step-card{border:1px solid #e3d6c2;border-left:4px solid #c1933b;border-radius:14px;background:white;padding:12px;display:flex;flex-direction:column;gap:10px}
.scrm-v12828-workflows .scrm-v12828-step-title{width:100%;font-weight:700}
.scrm-v12828-workflows .scrm-v12828-step-meta{display:grid;grid-template-columns:minmax(120px,1fr) 90px 42px;gap:8px;align-items:center}
.scrm-v12828-workflows .scrm-v12828-mini{height:42px;border-radius:12px;border:1px solid #dfd2bd;background:#fffaf3;color:#9b6d1f;font-weight:800;cursor:pointer}
.scrm-v12828-workflows .scrm-v12828-mini.danger{border-color:#efc7c0;color:#b3382f;background:#fff7f5}
@media(max-width:1100px){.scrm-v12828-workflows .scrm-v12828-columns{grid-template-columns:1fr}.scrm-v12828-workflows .scrm-v12828-step-meta{grid-template-columns:1fr}}


/* V1.29.11 — bouton création workflow front */
.scrm-v12828-list-head .scrm-v12911-list-add{margin-left:auto;white-space:nowrap;}
.scrm-v12828-editor-card.scrm-v12911-new-active{outline:2px solid rgba(176,139,45,.24);box-shadow:0 20px 55px rgba(176,139,45,.13);}
.scrm-v12828-editor-card.scrm-v12911-new-active:before{content:'Nouveau workflow';display:inline-flex;margin:0 0 14px;padding:8px 13px;border-radius:999px;background:#f7efe0;color:#9b7122;font-weight:700;font-size:13px;}

/* V1.30.0 — Settings refactor: Type de séance → Workflow par statut */
.scrm-settings-center{display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px;align-items:start}.scrm-settings-nav{position:sticky;top:24px;display:flex;flex-direction:column;gap:10px}.scrm-settings-nav-item{border:1px solid rgba(176,139,45,.22);background:rgba(255,255,255,.74);border-radius:22px;padding:16px 18px;text-align:left;color:#262935;cursor:pointer;box-shadow:0 12px 30px rgba(30,25,15,.04)}.scrm-settings-nav-item strong{display:block;font-size:15px}.scrm-settings-nav-item span{display:block;margin-top:4px;font-size:12px;color:#85796a}.scrm-settings-nav-item.active{background:#fff7e5;border-color:rgba(176,139,45,.45);color:#9a6f1d}.scrm-settings-panels{min-width:0}.scrm-settings-panel{display:none}.scrm-settings-panel.active{display:flex;flex-direction:column;gap:22px}.scrm-settings-card-pro{border-radius:28px;padding:28px}.scrm-settings-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.scrm-settings-card-head h2{margin:0;font-size:30px;line-height:1.1}.scrm-v130-assignment-card{background:linear-gradient(180deg,#fffdf8,#fffaf1)}.scrm-v130-assignment-table-wrap{overflow:auto;border:1px solid rgba(176,139,45,.18);border-radius:24px;background:#fff}.scrm-v130-assignment-table{width:100%;border-collapse:separate;border-spacing:0;min-width:880px}.scrm-v130-assignment-table th,.scrm-v130-assignment-table td{padding:16px 14px;border-bottom:1px solid rgba(176,139,45,.14);vertical-align:middle}.scrm-v130-assignment-table thead th{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#817466;background:#fffaf1}.scrm-v130-assignment-table tbody th{width:190px;text-align:left}.scrm-v130-assignment-table tbody th span{display:inline-flex;padding:8px 12px;border-radius:999px;background:#f5ecdc;color:#9a6f1d}.scrm-v130-assignment-table select{width:100%;min-height:46px;border-radius:16px;border:1px solid rgba(176,139,45,.28);background:#fff;padding:0 12px;font-size:14px}.scrm-v130-helper-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.scrm-v130-helper-grid>div{border:1px solid rgba(176,139,45,.16);border-radius:20px;background:rgba(255,255,255,.62);padding:14px 16px}.scrm-v130-helper-grid strong{display:block;color:#9a6f1d}.scrm-v130-helper-grid span{display:block;margin-top:4px;color:#817466;font-size:13px;line-height:1.35}@media(max-width:980px){.scrm-settings-center{grid-template-columns:1fr}.scrm-settings-nav{position:static}.scrm-v130-helper-grid{grid-template-columns:1fr}}


/* V1.30.1 — attribution workflow unique par type de séance */
.scrm-v130-assignment-card-single .scrm-v130-assignment-table th:first-child{width:240px;}
.scrm-v130-assignment-card-single .scrm-v130-assignment-table td:nth-child(2){width:360px;}
.scrm-v130-trigger-stack{display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.35;color:var(--scrm-muted,#7b746b);}
.scrm-v130-trigger-stack span{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;}
.scrm-v130-trigger-stack strong{color:var(--scrm-ink,#26232b);}
.scrm-v130-assignment-card-single select{max-width:100%;}
@media (max-width: 980px){
  .scrm-v130-assignment-card-single .scrm-v130-assignment-table th:first-child,
  .scrm-v130-assignment-card-single .scrm-v130-assignment-table td:nth-child(2){width:auto;}
  .scrm-v130-trigger-stack{min-width:260px;}
}

/* V1.30.4 — Billing admin dynamic client search */
.scrm-billing-admin-client-finder{position:relative;width:100%;}
.scrm-billing-admin-client-finder input[type="search"]{width:100%;}
.scrm-billing-admin-client-finder .scrm-billing-search-results{display:none;position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:100100;background:#fff;border:1px solid rgba(180,150,95,.28);border-radius:18px;box-shadow:0 18px 45px rgba(38,26,10,.15);padding:8px;max-height:280px;overflow:auto;}
.scrm-billing-admin-client-finder .scrm-billing-search-results.visible{display:block;}
.scrm-billing-admin-client-finder .scrm-billing-result{width:100%;text-align:left;border:0;background:#fff;border-radius:14px;padding:11px 13px;cursor:pointer;color:#20202a;}
.scrm-billing-admin-client-finder .scrm-billing-result:hover{background:#faf6ee;}
.scrm-billing-admin-client-finder .scrm-billing-result strong{display:block;font-weight:700;}
.scrm-billing-admin-client-finder .scrm-billing-result span{display:block;margin-top:2px;font-size:13px;color:#726b62;}
.scrm-billing-admin-client-finder .scrm-billing-no-result{padding:10px 12px;color:#726b62;}

/* V1.30.5 — Universal dynamic relation fields */
.scrm-finder-hidden-select{display:none!important;}
.scrm-universal-client-input,.scrm-universal-project-input,
.scrm-billing-admin-client-finder input[type="search"],#scrmBillingAdminClientSearch,#scrmBillingClientSearch{
  width:100%; min-height:48px; border:1px solid var(--scrm-border,#d8cdbb); border-radius:14px; padding:0 16px; background:#fffdfa; color:#1f2330; font-size:16px; box-sizing:border-box;
}
.scrm-universal-search-results,.scrm-billing-search-results{
  position:relative; z-index:99999; margin-top:8px; display:none; background:#fff; border:1px solid var(--scrm-border,#d8cdbb); border-radius:16px; box-shadow:0 14px 40px rgba(55,42,20,.14); overflow:hidden; max-height:260px; overflow-y:auto;
}
.scrm-universal-search-results.visible,.scrm-billing-search-results.visible{display:block;}
.scrm-universal-search-results button,.scrm-billing-search-results button,.scrm-billing-result{
  appearance:none; width:100%; border:0; border-bottom:1px solid rgba(216,205,187,.7); background:#fff; padding:12px 14px; text-align:left; cursor:pointer; display:flex; flex-direction:column; gap:3px; color:#222633;
}
.scrm-universal-search-results button:hover,.scrm-billing-search-results button:hover,.scrm-billing-result:hover{background:#fbf5ea;}
.scrm-universal-search-results strong,.scrm-billing-search-results strong{font-weight:700;}
.scrm-universal-search-results span,.scrm-billing-search-results span{font-size:13px; opacity:.72;}
.scrm-universal-search-results p,.scrm-billing-search-results p,.scrm-billing-no-result{padding:12px 14px; margin:0; color:#8a8175;}


/* V1.30.7 — modale envoi facture propre / une colonne */
#scrmV180InvoiceEmailModal.scrm-invoice-send-overlay,
#scrmV190InvoiceEmailModal{
    position:fixed!important;
    inset:0!important;
    display:none;
    align-items:center!important;
    justify-content:center!important;
    padding:24px!important;
    background:rgba(28,24,20,.42)!important;
    backdrop-filter:blur(4px)!important;
    z-index:999999!important;
}
#scrmV180InvoiceEmailModal.open,
#scrmV180InvoiceEmailModal.active,
#scrmV190InvoiceEmailModal.open,
#scrmV190InvoiceEmailModal.active{
    display:flex!important;
}
#scrmV180InvoiceEmailModal.hidden,
#scrmV190InvoiceEmailModal.hidden{
    display:none!important;
}
#scrmV180InvoiceEmailModal .scrm-invoice-send-modal,
#scrmV190InvoiceEmailModal .scrm-v190-invoice-modal{
    width:min(720px,94vw)!important;
    max-width:720px!important;
    max-height:88vh!important;
    overflow:auto!important;
    box-sizing:border-box!important;
    background:#fffdfa!important;
    border:1px solid #eadfce!important;
    border-radius:30px!important;
    padding:34px!important;
    box-shadow:0 30px 90px rgba(42,30,20,.24)!important;
}
#scrmV180InvoiceEmailModal .scrm-invoice-send-head,
#scrmV190InvoiceEmailModal .scrm-v190-modal-head{
    display:block!important;
    margin:0 0 26px!important;
}
#scrmV180InvoiceEmailModal .scrm-invoice-send-head h2,
#scrmV190InvoiceEmailModal h2{
    margin:0 0 8px!important;
    font-size:30px!important;
    line-height:1.1!important;
    letter-spacing:-.02em!important;
}
#scrmV180InvoiceEmailModal .scrm-invoice-send-head p,
#scrmV190InvoiceEmailModal .scrm-v190-modal-head p{
    margin:0!important;
    color:#776f66!important;
    font-size:14px!important;
}
#scrmV180InvoiceEmailForm.scrm-invoice-send-form,
#scrmV190InvoiceEmailForm{
    display:flex!important;
    flex-direction:column!important;
    gap:18px!important;
    width:100%!important;
}
#scrmV180InvoiceEmailForm .scrm-invoice-field,
#scrmV190InvoiceEmailForm label{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
}
#scrmV190InvoiceEmailForm label{
    margin:0 0 -8px!important;
}
#scrmV180InvoiceEmailForm label,
#scrmV190InvoiceEmailForm label{
    font-size:14px!important;
    font-weight:750!important;
    color:#5c5248!important;
}
#scrmV180InvoiceEmailForm input,
#scrmV180InvoiceEmailForm textarea,
#scrmV190InvoiceEmailForm input,
#scrmV190InvoiceEmailForm textarea{
    display:block!important;
    width:100%!important;
    box-sizing:border-box!important;
    margin-top:8px!important;
    min-height:54px!important;
    border-radius:16px!important;
    border:1px solid #e4d8c7!important;
    background:#fff!important;
    color:#252833!important;
    font-size:16px!important;
    line-height:1.45!important;
    padding:14px 16px!important;
}
#scrmV180InvoiceEmailForm textarea,
#scrmV190InvoiceEmailForm textarea{
    min-height:190px!important;
    resize:vertical!important;
}
#scrmV180InvoiceEmailModal .scrm-invoice-send-actions,
#scrmV190InvoiceEmailModal .scrm-v190-modal-actions{
    display:flex!important;
    justify-content:flex-end!important;
    align-items:center!important;
    gap:12px!important;
    margin-top:6px!important;
    width:100%!important;
}
#scrmV180InvoiceEmailModal .scrm-invoice-send-actions .scrm-btn.gold,
#scrmV190InvoiceEmailModal .scrm-v190-modal-actions .scrm-btn.gold{
    width:auto!important;
    min-width:190px!important;
    margin:0!important;
    padding-inline:26px!important;
}
@media(max-width:640px){
    #scrmV180InvoiceEmailModal .scrm-invoice-send-modal,
    #scrmV190InvoiceEmailModal .scrm-v190-invoice-modal{
        padding:26px 20px!important;
        border-radius:24px!important;
    }
    #scrmV180InvoiceEmailModal .scrm-invoice-send-actions,
    #scrmV190InvoiceEmailModal .scrm-v190-modal-actions{
        flex-direction:column-reverse!important;
    }
    #scrmV180InvoiceEmailModal .scrm-invoice-send-actions .scrm-btn,
    #scrmV190InvoiceEmailModal .scrm-v190-modal-actions .scrm-btn{
        width:100%!important;
    }
}

/* V1.30.9 — sécurité clic boutons documents front */
[data-v121-open-gallery], [data-v121-open-document-upload]{pointer-events:auto !important; cursor:pointer !important; position:relative; z-index:3;}

/* V1.30.10 — champs date/heure natifs CRM */
.scrm-native-datetime-field{
  width:100%;
  min-height:48px;
  border:1px solid var(--scrm-border, #ded2c2);
  border-radius:14px;
  background:#fffefa;
  color:#25252d;
  padding:0 14px;
  font:inherit;
  box-sizing:border-box;
}
.scrm-native-datetime-field::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:.72;
  padding:8px;
}
.scrm-native-datetime-field:focus{
  outline:none;
  border-color:#b99058;
  box-shadow:0 0 0 3px rgba(185,144,88,.14);
}
#timePickerModal.scrm-modal:not(.open){display:none!important;}
.scrm-time-picker-popover{display:none!important;}

/* 2.21.0 — Réservation en ligne : réglages par séance */
.scrm-booking-rules-section{background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(250,247,240,.72));border-radius:24px;border:1px solid rgba(176,139,45,.16)}
.scrm-booking-rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;align-items:end;margin-top:18px}.scrm-booking-rules-grid .scrm-field select,.scrm-booking-rules-grid .scrm-field input{width:100%;border:1px solid rgba(44,38,32,.14);border-radius:16px;background:#fff;padding:13px 14px;font-weight:650;color:#40362d;box-shadow:inset 0 1px 2px rgba(40,30,20,.04)}.scrm-booking-rules-grid .scrm-switchline-wide{grid-column:1/-1;justify-content:flex-start;gap:12px}.scrm-booking-rules-grid .scrm-max-day-field{max-width:360px}.scrm-booking-front-v1253 .scrm-service-choice{cursor:pointer}.scrm-booking-front-v1253 .scrm-booking-loading,.scrm-booking-front-v1253 .scrm-slot-empty{padding:18px;border-radius:18px;background:rgba(255,255,255,.62);color:#756a60}@media(max-width:760px){.scrm-booking-rules-grid{grid-template-columns:1fr}}

/* 2.21.5 — champ horaires préférés éditable + lisible */
.scrm-booking-rules-grid .scrm-field-wide{grid-column:1/-1;}
.scrm-booking-rules-grid .scrm-preferred-times-field textarea{
  width:100%;
  min-height:56px;
  resize:vertical;
  border:1px solid rgba(44,38,32,.14);
  border-radius:16px;
  background:#fff;
  padding:13px 14px;
  font-weight:650;
  color:#40362d;
  box-shadow:inset 0 1px 2px rgba(40,30,20,.04);
  pointer-events:auto;
  user-select:text;
}


/* V2.21.54 — correctif mise en page réglages / réservation */
.scrm-settings-center,
.scrm-settings-panels,
.scrm-settings-panel,
.scrm-settings-card-pro,
#scrmSettingsBookingPanel,
#scrmBookingSettingsCard,
#scrmBookingServicesCard,
.scrm-booking-services-card{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
.scrm-settings-panel.active{overflow:visible!important;}
#scrmSettingsBookingPanel .scrm-settings-card-pro,
#scrmSettingsBookingPanel .scrm-card{overflow:hidden!important;}
.scrm-booking-services-list{width:100%!important;max-width:100%!important;}
.scrm-booking-service-row.scrm-booking-service-editor{width:100%!important;max-width:100%!important;box-sizing:border-box!important;clear:both!important;}
.scrm-service-editor-top,.scrm-service-editor-section,.scrm-section-fields{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
.scrm-booking-service-editor input,.scrm-booking-service-editor select,.scrm-booking-service-editor textarea{max-width:100%!important;box-sizing:border-box!important;}
.scrm-booking-services-card form>.scrm-btn.gold{float:none!important;display:inline-flex!important;margin-top:12px!important;}
.scrm-booking-services-card form:after{content:"";display:block;clear:both;}
.lb-template-form{display:block!important;}
.lb-template-form input,.lb-template-form select,.lb-template-form textarea{width:100%;max-width:100%;box-sizing:border-box;}
@media(max-width:1280px){
  #scrmSettingsBookingPanel .scrm-service-editor-section{grid-template-columns:1fr!important;gap:18px!important;}
  #scrmSettingsBookingPanel .scrm-section-fields.two{grid-template-columns:1fr!important;}
  #scrmSettingsBookingPanel .scrm-service-editor-top{grid-template-columns:1fr!important;}
  #scrmSettingsBookingPanel .scrm-section-fields.split>label+label{padding-left:0!important;border-left:0!important;}
}

/* V2.21.55 — réglages propres : onglet réservation cadré + templates éditables */
.scrm-v2-settings{align-items:flex-start!important;min-height:0!important;}
.scrm-v2-settings>article{min-width:0!important;max-width:100%!important;overflow:visible!important;}
.scrm-v2-settings [data-settings-panel]{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
.scrm-v2-settings [data-settings-panel][hidden]{display:none!important;}
.scrm-v2-settings [data-settings-panel="booking"]{overflow:visible!important;}
.scrm-v2-settings [data-settings-panel="booking"] .scrm-card,
.scrm-v2-settings [data-settings-panel="booking"] .scrm-settings-card-pro{width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important;margin-left:0!important;margin-right:0!important;}
.scrm-v2-settings [data-settings-panel="booking"] .scrm-settings-form-grid,
.scrm-v2-settings [data-settings-panel="booking"] .scrm-booking-rules-grid,
.scrm-v2-settings [data-settings-panel="booking"] .scrm-section-fields,
.scrm-v2-settings [data-settings-panel="booking"] .scrm-service-editor-top{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;min-width:0!important;max-width:100%!important;}
.scrm-v2-settings [data-settings-panel="booking"] .wide,
.scrm-v2-settings [data-settings-panel="booking"] .scrm-field-wide,
.scrm-v2-settings [data-settings-panel="booking"] .scrm-switchline-wide{grid-column:1/-1!important;}
.scrm-v2-settings [data-settings-panel="booking"] input,
.scrm-v2-settings [data-settings-panel="booking"] select,
.scrm-v2-settings [data-settings-panel="booking"] textarea{max-width:100%!important;box-sizing:border-box!important;}
.scrm-v2-settings [data-settings-panel="booking"] .scrm-booking-service-editor{position:relative!important;padding:0!important;overflow:hidden!important;}
.scrm-v2-settings [data-settings-panel="booking"] .scrm-booking-service-editor>.scrm-service-editor-top{padding:20px!important;cursor:pointer!important;}
.scrm-v2-settings [data-settings-panel="booking"] .scrm-booking-service-editor:not(.is-open)>.scrm-service-editor-section,
.scrm-v2-settings [data-settings-panel="booking"] .scrm-booking-service-editor:not(.is-open)>.scrm-smart-booking-box{display:none!important;}
.scrm-v2-settings [data-settings-panel="booking"] .scrm-booking-service-editor>.scrm-service-editor-top:after{content:'Modifier';justify-self:end;align-self:center;border:1px solid rgba(139,101,55,.26);border-radius:999px;padding:8px 14px;font-size:13px;font-weight:750;color:#8a6737;background:#fffaf1;}
.scrm-v2-settings [data-settings-panel="booking"] .scrm-booking-service-editor.is-open>.scrm-service-editor-top:after{content:'Replier';}
.scrm-v2-settings [data-settings-panel="booking"] .scrm-service-editor-section{padding:20px!important;border-top:1px solid rgba(139,101,55,.14)!important;}
.scrm-v2-settings [data-settings-panel="booking"] .scrm-section-intro{margin-bottom:16px!important;}
@media(max-width:1100px){.scrm-v2-settings [data-settings-panel="booking"] .scrm-settings-form-grid,.scrm-v2-settings [data-settings-panel="booking"] .scrm-booking-rules-grid,.scrm-v2-settings [data-settings-panel="booking"] .scrm-section-fields,.scrm-v2-settings [data-settings-panel="booking"] .scrm-service-editor-top{grid-template-columns:1fr!important;}}

.scrm-v2-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px;}
.scrm-v2-template-editor-layout{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:24px;align-items:start;}
.scrm-v2-template-list{display:flex;flex-direction:column;gap:10px;min-width:0;max-height:68vh;overflow:auto;padding-right:4px;}
.scrm-v2-template-row{appearance:none;text-align:left;border:1px solid rgba(139,101,55,.16);background:#fffdf8;border-radius:18px;padding:15px 17px;cursor:pointer;box-shadow:none;color:inherit;}
.scrm-v2-template-row strong{display:block;font-size:15px;font-weight:800;color:#282832;}
.scrm-v2-template-row small{display:block;margin-top:5px;color:#756f68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.scrm-v2-template-row.active{border-color:rgba(139,101,55,.42);background:#fff8ed;box-shadow:0 10px 30px rgba(80,55,20,.07);}
.scrm-v2-template-form{display:flex;flex-direction:column;gap:16px;min-width:0;border:1px solid rgba(139,101,55,.14);border-radius:24px;background:#fffdf8;padding:24px;}
.scrm-v2-template-form input,.scrm-v2-template-form select,.scrm-v2-template-form textarea{width:100%;max-width:100%;box-sizing:border-box;}
.scrm-v2-template-form footer{display:flex;gap:12px;justify-content:flex-end;align-items:center;}
.scrm-v2-btn.danger{background:#fff2ee!important;border-color:#e2b8aa!important;color:#9c3f29!important;}
@media(max-width:980px){.scrm-v2-template-editor-layout{grid-template-columns:1fr;}.scrm-v2-panel-head{flex-direction:column;}.scrm-v2-template-list{max-height:none;}}

/* ==========================================================
   SCRM 2.21.56 — Design system premium studio
   Esthétique uniquement : couleurs, espacements, cartes,
   boutons, champs, badges, tableaux et responsive.
   ========================================================== */
:root{
  --scrm-bg:#F7F3EC;
  --scrm-sidebar:#F3EEE6;
  --scrm-surface:#FFFFFF;
  --scrm-surface-soft:#FAF8F4;
  --scrm-text:#1F1D1A;
  --scrm-muted:#746F67;
  --scrm-discreet:#A39A8F;
  --scrm-border:#E7DFD4;
  --scrm-line:#EEE7DD;
  --scrm-gold:#B58A3A;
  --scrm-gold-hover:#9E742D;
  --scrm-gold-soft:#E7D6B8;
  --scrm-success:#2FA66A;
  --scrm-success-bg:#EAF6EF;
  --scrm-warning:#D49A2A;
  --scrm-warning-bg:#FFF5DE;
  --scrm-danger:#D65D54;
  --scrm-danger-bg:#FCEBE9;
  --scrm-neutral:#F2F0EB;
  --scrm-radius-card:10px;
  --scrm-radius-small:6px;
  --scrm-shadow-card:0 12px 30px rgba(50,40,28,.04);
}

body.toplevel_page_studio-crm-core #wpcontent,
body.studio-crm_page_studio-crm-core #wpcontent{padding-left:0;background:var(--scrm-bg)!important;}
body.toplevel_page_studio-crm-core #wpbody-content{background:var(--scrm-bg)!important;}

.scrm-app,
.scrm-front-app{
  background:var(--scrm-bg)!important;
  color:var(--scrm-text)!important;
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:14px;
  letter-spacing:-.005em;
}
.scrm-app{display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;min-height:calc(100vh - 32px);}
.scrm-main{min-width:0;padding:28px 32px!important;}

.scrm-sidebar{
  width:auto!important;
  background:var(--scrm-sidebar)!important;
  border-right:1px solid var(--scrm-border)!important;
  padding:24px 16px!important;
  box-sizing:border-box;
  position:sticky;
  top:32px;
  height:calc(100vh - 32px);
  overflow:auto;
}
.scrm-logo{font-size:18px!important;font-weight:650!important;color:var(--scrm-text)!important;margin:0 0 22px!important;line-height:1.2;letter-spacing:-.02em;}
.scrm-logo small{font-size:11px!important;color:var(--scrm-muted)!important;font-weight:500!important;}
.scrm-sidebar nav{gap:6px!important;}
.scrm-sidebar a,
.scrm-settings-nav a,
.scrm-sidebar .sidebar-item{
  min-height:34px!important;
  padding:0 10px!important;
  border-radius:var(--scrm-radius-small)!important;
  color:#3A342D!important;
  font-size:13px!important;
  font-weight:550!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  box-shadow:none!important;
  border:1px solid transparent!important;
  transition:all .18s ease!important;
}
.scrm-sidebar a.active,
.scrm-sidebar a:hover,
.scrm-settings-nav a.active,
.scrm-settings-nav a:hover{
  background:#EFE4D2!important;
  color:var(--scrm-gold)!important;
  border-color:#EADCC4!important;
}

.scrm-topbar{align-items:center!important;margin-bottom:20px!important;gap:16px!important;}
.scrm-topbar h1,.scrm-main h1{font-size:24px!important;line-height:1.15;font-weight:520!important;letter-spacing:-.025em!important;color:var(--scrm-text)!important;margin:0!important;}
.scrm-main h2,.scrm-card h2{font-size:16px!important;font-weight:650!important;letter-spacing:-.01em;color:var(--scrm-text)!important;}
.scrm-topbar p,.muted,.scrm-card p,.scrm-card small{color:var(--scrm-muted)!important;}

.scrm-card,.card,.scrm-workflow-list,.scrm-modal-content,.quote-document,
.scrm-settings-panel,.scrm-template-editor,.scrm-template-list,
.scrm-stat-card,.stat-card{
  background:var(--scrm-surface)!important;
  border:1px solid var(--scrm-border)!important;
  border-radius:var(--scrm-radius-card)!important;
  box-shadow:var(--scrm-shadow-card)!important;
  padding:18px!important;
  color:var(--scrm-text)!important;
}
.scrm-card{border-radius:var(--scrm-radius-card)!important;padding:18px!important;}
.scrm-grid{gap:18px!important;margin-bottom:18px!important;}
.scrm-grid.two{gap:18px!important;}
.scrm-stats{gap:16px!important;margin-bottom:18px!important;}
.stat h2,.stat-number{font-size:26px!important;font-weight:520!important;color:var(--scrm-text)!important;}
.stat p,.stat-label{font-size:12px!important;color:var(--scrm-muted)!important;}

.scrm-btn,.btn-primary,.button-primary,
.scrm-form button[type="submit"],button.scrm-save-template{
  min-height:34px!important;
  height:auto!important;
  padding:8px 14px!important;
  border-radius:var(--scrm-radius-small)!important;
  border:1px solid var(--scrm-gold)!important;
  background:var(--scrm-gold)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:600!important;
  box-shadow:none!important;
  cursor:pointer;
  transition:all .18s ease!important;
  text-decoration:none!important;
}
.scrm-btn:hover,.btn-primary:hover,.button-primary:hover,
.scrm-form button[type="submit"]:hover{background:var(--scrm-gold-hover)!important;border-color:var(--scrm-gold-hover)!important;color:#fff!important;}
.scrm-btn:not(.gold):not(.danger),.btn-secondary,.button:not(.button-primary),.scrm-inline-btn,
.scrm-actions-inline button:not(.scrm-danger):not(.danger){
  background:#fff!important;
  color:#3A342D!important;
  border:1px solid #E1D6C7!important;
  box-shadow:none!important;
}
.scrm-btn:not(.gold):not(.danger):hover,.btn-secondary:hover,.button:not(.button-primary):hover,.scrm-inline-btn:hover{
  background:var(--scrm-surface-soft)!important;
  border-color:var(--scrm-gold-soft)!important;
  color:var(--scrm-gold)!important;
}
.scrm-btn.danger,.scrm-danger,.danger{background:var(--scrm-danger-bg)!important;color:var(--scrm-danger)!important;border-color:#F1C7C3!important;}

.scrm-form input,.scrm-form select,.scrm-form textarea,.scrm-search input,.input,select,textarea,
.scrm-input,.scrm-template-editor input,.scrm-template-editor textarea{
  background:#fff!important;
  border:1px solid var(--scrm-border)!important;
  border-radius:var(--scrm-radius-small)!important;
  color:var(--scrm-text)!important;
  font-size:12px!important;
  min-height:34px!important;
  padding:8px 12px!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
.scrm-form textarea,textarea,.scrm-template-editor textarea{min-height:96px!important;line-height:1.5;}
.scrm-form input:focus,.scrm-form select:focus,.scrm-form textarea:focus,.scrm-search input:focus,.input:focus,select:focus,textarea:focus{
  outline:none!important;
  border-color:var(--scrm-gold)!important;
  box-shadow:0 0 0 3px rgba(181,138,58,.12)!important;
}
.scrm-form label{color:#4B433A!important;font-size:12px!important;font-weight:650!important;}

.scrm-table{width:100%;border-collapse:collapse!important;background:#fff;border-radius:var(--scrm-radius-card);overflow:hidden;}
.scrm-table th{font-size:11px!important;font-weight:600!important;color:var(--scrm-muted)!important;text-align:left;padding:10px 12px!important;border-bottom:1px solid var(--scrm-border)!important;}
.scrm-table td{font-size:12px!important;color:var(--scrm-text)!important;padding:12px!important;border-bottom:1px solid var(--scrm-line)!important;}
.scrm-table tr:hover{background:var(--scrm-surface-soft)!important;}

.badge,.scrm-badge,[class*="badge-"],.scrm-status{
  display:inline-flex!important;align-items:center!important;min-height:22px!important;padding:2px 9px!important;border-radius:999px!important;font-size:11px!important;font-weight:600!important;border:0!important;line-height:1.2!important;
}
.badge-reserved,.status-reserved,.scrm-status-reserved{background:var(--scrm-warning-bg)!important;color:var(--scrm-gold)!important;}
.badge-success,.status-done,.status-paid,.scrm-status-success{background:var(--scrm-success-bg)!important;color:var(--scrm-success)!important;}
.badge-warning,.status-pending,.status-partial,.scrm-status-warning{background:var(--scrm-warning-bg)!important;color:var(--scrm-warning)!important;}
.badge-danger,.status-late,.status-overdue,.scrm-status-danger{background:var(--scrm-danger-bg)!important;color:var(--scrm-danger)!important;}

.scrm-tabs,.tabs{display:flex!important;gap:24px!important;border-bottom:1px solid var(--scrm-border)!important;background:transparent!important;}
.scrm-tab,.tab{padding:12px 0!important;font-size:12px!important;color:var(--scrm-muted)!important;border:0!important;background:transparent!important;}
.scrm-tab.active,.tab.active{color:var(--scrm-gold)!important;border-bottom:2px solid var(--scrm-gold)!important;}

.scrm-event,.scrm-project-card,.family-row,.workflow-step,.quote-line,.free-line,.discount-line,.scrm-column{
  background:var(--scrm-surface-soft)!important;
  border:1px solid var(--scrm-border)!important;
  border-radius:var(--scrm-radius-card)!important;
  box-shadow:none!important;
}
.scrm-project-card:hover,.scrm-event:hover{background:#fff!important;border-color:var(--scrm-gold-soft)!important;}
.scrm-column{min-width:260px!important;padding:14px!important;}
.scrm-column h3{color:#4D453B!important;font-size:13px!important;font-weight:650!important;}

/* Réglages : évite que les onglets longs cassent la page */
.scrm-settings-layout,.settings-layout{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;gap:18px!important;align-items:start!important;}
.scrm-settings-content,.settings-content{min-width:0!important;overflow:visible!important;}
.scrm-booking-service,.scrm-reservation-service,.booking-service-card{
  max-width:100%!important;overflow:hidden!important;border-radius:var(--scrm-radius-card)!important;
}
.scrm-booking-service-body,.reservation-service-body{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:12px!important;}
.scrm-template-row,.template-row{border:1px solid var(--scrm-border)!important;border-radius:var(--scrm-radius-card)!important;background:#fff!important;margin-bottom:10px!important;padding:14px!important;}
.scrm-template-row:hover,.template-row:hover{background:var(--scrm-surface-soft)!important;border-color:var(--scrm-gold-soft)!important;}

@media(max-width:1000px){
  .scrm-app{display:block!important;padding-bottom:74px!important;}
  .scrm-sidebar{position:fixed!important;left:0;right:0;bottom:0;top:auto!important;height:64px!important;width:100%!important;z-index:9999;border-right:0!important;border-top:1px solid var(--scrm-border)!important;padding:8px 10px!important;overflow-x:auto!important;}
  .scrm-logo{display:none!important;}
  .scrm-sidebar nav{display:flex!important;flex-direction:row!important;gap:6px!important;min-width:max-content;}
  .scrm-sidebar a{height:42px!important;min-width:74px!important;justify-content:center!important;font-size:11px!important;padding:0 8px!important;}
  .scrm-main{padding:20px 14px!important;}
  .scrm-grid.two,.scrm-stats,.scrm-settings-layout,.settings-layout{grid-template-columns:1fr!important;}
  .scrm-topbar{flex-direction:column!important;align-items:flex-start!important;}
  .scrm-table thead{display:none;}
  .scrm-table,.scrm-table tbody,.scrm-table tr,.scrm-table td{display:block;width:100%;box-sizing:border-box;}
  .scrm-table tr{background:#fff;border:1px solid var(--scrm-border);border-radius:var(--scrm-radius-card);margin-bottom:10px;box-shadow:var(--scrm-shadow-card);}
  .scrm-table td{border-bottom:1px solid var(--scrm-line)!important;}
  .scrm-table td:last-child{border-bottom:0!important;}
}


/* ==========================================================
   Studio CRM 2.21.57 — Premium design system réellement appliqué à l'interface V2
   Ciblage volontairement large sur .scrm-v2-* : couche esthétique uniquement.
   ========================================================== */
:root{
  --scrm-premium-bg:#F7F3EC;
  --scrm-premium-sidebar:#F3EEE6;
  --scrm-premium-surface:#FFFFFF;
  --scrm-premium-surface-soft:#FAF8F4;
  --scrm-premium-text:#1F1D1A;
  --scrm-premium-muted:#746F67;
  --scrm-premium-discreet:#A39A8F;
  --scrm-premium-gold:#B58A3A;
  --scrm-premium-gold-hover:#9E742D;
  --scrm-premium-gold-soft:#E7D6B8;
  --scrm-premium-border:#E7DFD4;
  --scrm-premium-line:#EEE7DD;
  --scrm-premium-success:#2FA66A;
  --scrm-premium-success-bg:#EAF6EF;
  --scrm-premium-warning:#D49A2A;
  --scrm-premium-warning-bg:#FFF5DE;
  --scrm-premium-danger:#D65D54;
  --scrm-premium-danger-bg:#FCEBE9;
  --scrm-premium-shadow:0 12px 30px rgba(50,40,28,.04);
  --scrm-premium-radius:10px;
  --scrm-premium-radius-small:6px;
}
html body .scrm-v2-app{
  grid-template-columns:180px minmax(0,1fr) !important;
  min-height:100vh !important;
  background:var(--scrm-premium-bg) !important;
  color:var(--scrm-premium-text) !important;
  font-family:Inter, "Helvetica Neue", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size:14px !important;
  line-height:1.45 !important;
}
html body .scrm-v2-app *{box-sizing:border-box;}
html body .scrm-v2-sidebar{
  width:180px !important;
  padding:24px 16px !important;
  background:var(--scrm-premium-sidebar) !important;
  border-right:1px solid var(--scrm-premium-border) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
html body .scrm-v2-logo{margin:0 0 22px !important;text-align:left !important;font-family:Inter,system-ui,sans-serif !important;}
html body .scrm-v2-logo strong{font-family:Inter,system-ui,sans-serif !important;font-size:18px !important;font-style:normal !important;font-weight:650 !important;letter-spacing:-.02em !important;color:var(--scrm-premium-text) !important;}
html body .scrm-v2-logo span{font-size:10px !important;letter-spacing:.16em !important;color:var(--scrm-premium-gold) !important;}
html body .scrm-v2-sidebar nav{gap:6px !important;}
html body .scrm-v2-sidebar a{
  height:34px !important;
  min-height:34px !important;
  padding:0 10px !important;
  border-radius:var(--scrm-premium-radius-small) !important;
  color:#3A342D !important;
  font-size:13px !important;
  font-weight:550 !important;
  gap:10px !important;
  border:1px solid transparent !important;
  box-shadow:none !important;
  transition:all .18s ease !important;
}
html body .scrm-v2-sidebar a .dashicons{font-size:16px !important;width:16px !important;height:16px !important;color:#7D746A !important;}
html body .scrm-v2-sidebar a:hover,
html body .scrm-v2-sidebar a.active{background:#EFE4D2 !important;color:var(--scrm-premium-gold) !important;border-color:#EADCC4 !important;}
html body .scrm-v2-sidebar a.active .dashicons{color:var(--scrm-premium-gold) !important;}
html body .scrm-v2-user{border-radius:var(--scrm-premium-radius) !important;background:rgba(255,255,255,.48) !important;border:1px solid rgba(231,223,212,.8) !important;padding:10px !important;}
html body .scrm-v2-avatar{background:#EFE4D2 !important;color:var(--scrm-premium-gold) !important;}
html body .scrm-v2-main{padding:28px 32px 48px !important;min-width:0 !important;}
html body .scrm-v2-topbar{height:auto !important;margin-bottom:24px !important;}
html body .scrm-v2-title{margin:0 0 22px !important;align-items:center !important;}
html body .scrm-v2-title h1,
html body .scrm-v2-modal h2{
  font-family:Inter,system-ui,sans-serif !important;
  font-size:24px !important;
  font-weight:520 !important;
  line-height:1.18 !important;
  letter-spacing:-.02em !important;
  color:var(--scrm-premium-text) !important;
}
html body .scrm-v2-title p,
html body .scrm-v2-card p,
html body .scrm-v2-card small,
html body .scrm-v2-row-main small,
html body .scrm-v2-session-row small{color:var(--scrm-premium-muted) !important;}
html body .scrm-v2-card,
html body .scrm-v2-stats div,
html body .scrm-v2-modal-box,
html body .scrm-v2-settings nav,
html body .scrm-v2-template-editor,
html body .scrm-v2-template-list{
  background:var(--scrm-premium-surface) !important;
  border:1px solid var(--scrm-premium-border) !important;
  border-radius:var(--scrm-premium-radius) !important;
  box-shadow:var(--scrm-premium-shadow) !important;
}
html body .scrm-v2-card{padding:18px !important;}
html body .scrm-v2-card > header{margin-bottom:12px !important;}
html body .scrm-v2-card h2{font-family:Inter,system-ui,sans-serif !important;font-size:16px !important;font-weight:650 !important;letter-spacing:-.01em !important;color:var(--scrm-premium-text) !important;}
html body .scrm-v2-grid{gap:18px !important;margin-bottom:18px !important;}
html body .scrm-v2-stats{gap:16px !important;margin-bottom:18px !important;}
html body .scrm-v2-stats div{padding:16px !important;}
html body .scrm-v2-stats b{font-family:Inter,system-ui,sans-serif !important;font-size:26px !important;font-weight:520 !important;color:var(--scrm-premium-text) !important;}
html body .scrm-v2-stats span{font-size:12px !important;color:var(--scrm-premium-muted) !important;font-weight:550 !important;}
html body .scrm-v2-btn,
html body .scrm-v2-modal button,
html body .scrm-v2-card button,
html body .scrm-btn,
html body button.scrm-btn{
  border-radius:var(--scrm-premium-radius-small) !important;
  min-height:34px !important;
  height:auto !important;
  padding:8px 14px !important;
  font-size:12px !important;
  font-weight:600 !important;
  box-shadow:none !important;
  transform:none !important;
  transition:all .18s ease !important;
}
html body .scrm-v2-btn.primary,
html body .scrm-v2-btn.gold,
html body .scrm-btn.gold,
html body .scrm-v2-card button[type="submit"],
html body .scrm-v2-modal button[type="submit"]{background:var(--scrm-premium-gold) !important;color:#fff !important;border:1px solid var(--scrm-premium-gold) !important;text-shadow:none !important;}
html body .scrm-v2-btn.primary:hover,
html body .scrm-v2-btn.gold:hover,
html body .scrm-btn.gold:hover{background:var(--scrm-premium-gold-hover) !important;border-color:var(--scrm-premium-gold-hover) !important;}
html body .scrm-v2-btn:not(.primary):not(.gold):not(.danger),
html body .scrm-v2-card button:not([type="submit"]):not(.danger){background:#fff !important;color:#3A342D !important;border:1px solid #E1D6C7 !important;}
html body .scrm-v2-btn:not(.primary):not(.gold):not(.danger):hover,
html body .scrm-v2-card button:not([type="submit"]):not(.danger):hover{background:var(--scrm-premium-surface-soft) !important;color:var(--scrm-premium-gold) !important;border-color:var(--scrm-premium-gold-soft) !important;}
html body .scrm-v2-btn.danger,
html body button.danger{background:var(--scrm-premium-danger-bg) !important;color:var(--scrm-premium-danger) !important;border-color:#F1C7C3 !important;}
html body .scrm-v2-app input,
html body .scrm-v2-app select,
html body .scrm-v2-app textarea{
  background:#fff !important;
  border:1px solid var(--scrm-premium-border) !important;
  border-radius:var(--scrm-premium-radius-small) !important;
  color:var(--scrm-premium-text) !important;
  font-size:12px !important;
  min-height:34px !important;
  padding:8px 12px !important;
  box-shadow:none !important;
}
html body .scrm-v2-app textarea{min-height:96px !important;line-height:1.5 !important;}
html body .scrm-v2-app input:focus,
html body .scrm-v2-app select:focus,
html body .scrm-v2-app textarea:focus{outline:none !important;border-color:var(--scrm-premium-gold) !important;box-shadow:0 0 0 3px rgba(181,138,58,.12) !important;}
html body .scrm-v2-table{width:100% !important;border-collapse:collapse !important;background:#fff !important;border-radius:var(--scrm-premium-radius) !important;overflow:hidden !important;}
html body .scrm-v2-table th{font-size:11px !important;font-weight:600 !important;color:var(--scrm-premium-muted) !important;text-align:left !important;padding:10px 12px !important;border-bottom:1px solid var(--scrm-premium-border) !important;text-transform:none !important;letter-spacing:0 !important;}
html body .scrm-v2-table td{font-size:12px !important;color:var(--scrm-premium-text) !important;padding:12px !important;border-top:0 !important;border-bottom:1px solid var(--scrm-premium-line) !important;}
html body .scrm-v2-table tr:hover td{background:var(--scrm-premium-surface-soft) !important;}
html body .scrm-v2-badge,
html body .scrm-v2-status,
html body [class*="scrm-v2-badge"]{display:inline-flex !important;align-items:center !important;min-height:22px !important;padding:2px 9px !important;border-radius:999px !important;font-size:11px !important;font-weight:600 !important;border:0 !important;line-height:1.2 !important;background:var(--scrm-premium-warning-bg) !important;color:var(--scrm-premium-warning) !important;}
html body .scrm-v2-badge.is_confirme,
html body .scrm-v2-badge.is-confirmé,
html body .scrm-v2-badge.is_livre,
html body .scrm-v2-badge.is_livraison{background:var(--scrm-premium-success-bg) !important;color:var(--scrm-premium-success) !important;}
html body .scrm-v2-badge.is_selection,
html body .scrm-v2-badge.is_retard,
html body .scrm-v2-badge.is_en_retard{background:var(--scrm-premium-danger-bg) !important;color:var(--scrm-premium-danger) !important;}
html body .scrm-v2-tabs,
html body .scrm-v2-tabbar{display:flex !important;gap:24px !important;border-bottom:1px solid var(--scrm-premium-border) !important;background:transparent !important;}
html body .scrm-v2-tab,
html body .scrm-v2-tabs a{padding:12px 0 !important;font-size:12px !important;color:var(--scrm-premium-muted) !important;border:0 !important;background:transparent !important;text-decoration:none !important;}
html body .scrm-v2-tab.active,
html body .scrm-v2-tabs a.active{color:var(--scrm-premium-gold) !important;border-bottom:2px solid var(--scrm-premium-gold) !important;}
html body .scrm-v2-project-card,
html body .scrm-v2-pipeline div,
html body .scrm-v2-prod-pipeline div,
html body .scrm-v2-task-row,
html body .scrm-v2-session-row{border-color:var(--scrm-premium-line) !important;}
html body .scrm-v2-project-card,
html body .scrm-v2-pipeline div,
html body .scrm-v2-prod-pipeline div{background:var(--scrm-premium-surface-soft) !important;border-radius:var(--scrm-premium-radius) !important;box-shadow:none !important;}
html body .scrm-v2-settings{grid-template-columns:220px minmax(0,1fr) !important;gap:18px !important;align-items:start !important;max-width:100% !important;}
html body .scrm-v2-settings nav{position:sticky !important;top:24px !important;padding:8px !important;gap:6px !important;overflow:auto !important;max-height:calc(100vh - 48px) !important;}
html body .scrm-v2-settings nav button{min-height:38px !important;border:1px solid transparent !important;background:transparent !important;border-radius:var(--scrm-premium-radius-small) !important;padding:0 10px !important;color:#3A342D !important;font-size:13px !important;font-weight:550 !important;box-shadow:none !important;}
html body .scrm-v2-settings nav button:hover,
html body .scrm-v2-settings nav button.active{background:#EFE4D2 !important;color:var(--scrm-premium-gold) !important;border-color:#EADCC4 !important;}
html body .scrm-v2-settings [data-settings-panel]{min-width:0 !important;overflow:visible !important;}
html body .scrm-booking-services-list{display:flex !important;flex-direction:column !important;gap:10px !important;max-width:100% !important;}
html body .scrm-booking-service-row{
  display:block !important;
  max-width:100% !important;
  overflow:hidden !important;
  background:#fff !important;
  border:1px solid var(--scrm-premium-border) !important;
  border-radius:var(--scrm-premium-radius) !important;
  box-shadow:var(--scrm-premium-shadow) !important;
  padding:14px !important;
}
html body .scrm-booking-service-row:not(.is-open):not(:first-child) > :not(.scrm-service-editor-head){display:none !important;}
html body .scrm-booking-service-row .scrm-service-editor-head{display:grid !important;grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(88px,.45fr)) !important;gap:10px !important;align-items:end !important;cursor:pointer !important;}
html body .scrm-booking-service-row .scrm-service-editor-section,
html body .scrm-booking-service-row .scrm-section-fields{display:grid !important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr)) !important;gap:10px !important;margin-top:12px !important;}
html body .scrm-booking-service-row label{min-width:0 !important;}
html body .scrm-booking-service-row input,
html body .scrm-booking-service-row select,
html body .scrm-booking-service-row textarea{width:100% !important;max-width:100% !important;}
html body .scrm-smart-booking-box{grid-column:1/-1 !important;background:var(--scrm-premium-surface-soft) !important;border:1px solid var(--scrm-premium-line) !important;border-radius:var(--scrm-premium-radius) !important;padding:12px !important;}
html body .scrm-switchline{display:flex !important;align-items:center !important;gap:9px !important;font-size:12px !important;color:#4B433A !important;}
html body .scrm-switchline input{width:16px !important;min-height:16px !important;accent-color:var(--scrm-premium-gold) !important;}
html body .scrm-template-row,
html body .template-row,
html body [data-template-id]{border:1px solid var(--scrm-premium-border) !important;border-radius:var(--scrm-premium-radius) !important;background:#fff !important;margin-bottom:10px !important;padding:14px !important;box-shadow:none !important;}
html body .scrm-template-row:hover,
html body .template-row:hover,
html body [data-template-id]:hover{background:var(--scrm-premium-surface-soft) !important;border-color:var(--scrm-premium-gold-soft) !important;}
@media(max-width:1000px){
  html body .scrm-v2-app{display:block !important;padding-bottom:74px !important;}
  html body .scrm-v2-sidebar{position:fixed !important;left:0 !important;right:0 !important;bottom:0 !important;top:auto !important;height:64px !important;width:100% !important;z-index:9999 !important;border-right:0 !important;border-top:1px solid var(--scrm-premium-border) !important;padding:8px 10px !important;overflow-x:auto !important;}
  html body .scrm-v2-logo,.scrm-v2-user{display:none !important;}
  html body .scrm-v2-sidebar nav{display:flex !important;flex-direction:row !important;gap:6px !important;min-width:max-content !important;}
  html body .scrm-v2-sidebar a{height:42px !important;min-width:74px !important;justify-content:center !important;font-size:11px !important;padding:0 8px !important;}
  html body .scrm-v2-main{padding:20px 14px !important;}
  html body .scrm-v2-grid.two,
  html body .scrm-v2-grid.project,
  html body .scrm-v2-grid.client,
  html body .scrm-v2-stats,
  html body .scrm-v2-settings{grid-template-columns:1fr !important;}
  html body .scrm-v2-settings nav{position:static !important;max-height:none !important;}
  html body .scrm-booking-service-row .scrm-service-editor-head{grid-template-columns:1fr 1fr !important;}
  html body .scrm-v2-table thead{display:none !important;}
  html body .scrm-v2-table,.scrm-v2-table tbody,.scrm-v2-table tr,.scrm-v2-table td{display:block !important;width:100% !important;}
  html body .scrm-v2-table tr{background:#fff !important;border:1px solid var(--scrm-premium-border) !important;border-radius:var(--scrm-premium-radius) !important;margin-bottom:10px !important;box-shadow:var(--scrm-premium-shadow) !important;}
}


/* Studio CRM 2.21.64 — Dashboard tâches : polices plus calmes sans modifier le moteur de tâches */
.crm1134-card.crm1134-tasks .crm1134-card-title h2,
.crm1134-tasks .crm1134-card-title h2{font-size:22px!important;line-height:1.18!important;letter-spacing:-.01em!important;}
.crm1134-card.crm1134-tasks .crm1134-card-title h2 b,
.crm1134-tasks .crm1134-card-title h2 b{width:32px!important;height:32px!important;min-width:32px!important;font-size:14px!important;}
.crm1134-card.crm1134-tasks .crm1134-task,
.crm1134-tasks .crm1134-task{min-height:64px!important;padding:10px 0!important;column-gap:14px!important;}
.crm1134-card.crm1134-tasks .crm1134-task-body strong,
.crm1134-tasks .crm1134-task-body strong{font-size:16px!important;line-height:1.22!important;font-weight:650!important;}
.crm1134-card.crm1134-tasks .crm1134-task-body span,
.crm1134-tasks .crm1134-task-body span{font-size:13px!important;line-height:1.25!important;}
.crm1134-card.crm1134-tasks .crm1134-task time,
.crm1134-tasks .crm1134-task time{font-size:14px!important;}
.scrm-v2-card [data-dashboard-tasks-list] .scrm-v2-task-row{min-height:58px!important;padding:10px 0!important;}
.scrm-v2-card [data-dashboard-tasks-list] .scrm-v2-row-main strong{font-size:15px!important;line-height:1.25!important;}
.scrm-v2-card [data-dashboard-tasks-list] .scrm-v2-row-main small,
.scrm-v2-card [data-dashboard-tasks-list] .scrm-v2-task-meta{font-size:12.5px!important;}
.scrm-v2-card [data-dashboard-tasks-count]{width:32px!important;height:32px!important;min-width:32px!important;font-size:14px!important;}
