@import url("v3/care-categories.css");
/* Reading view, shared by laboratory and prescriber modes. */
.cv3-sheet{color:var(--text,#203c4c);font-size:15px;line-height:1.5;max-width:100%;min-width:0;overflow-x:hidden}
.cv3-sheet *{box-sizing:border-box}
.cv3-classification{font-size:13px;color:var(--text3,#627888);margin:0 0 14px}
.cv3-sheet-nav{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.cv3-sheet-nav a{padding:6px 12px;border:1px solid #cce4e1;border-radius:20px;color:#245f65;background:#f1f8f7;text-decoration:none;font-size:13px;font-weight:600}
.cv3-sheet-nav a:hover,.cv3-sheet-nav a:focus-visible{background:#dcefea;text-decoration:underline}
.cv3-workflow-block{scroll-margin-top:16px}
.cv3-essential{background:#f1f8f7;border:1px solid #cce4e1;border-radius:14px;padding:16px;margin-bottom:18px;min-width:0}
.cv3-essential>.cv3-tube{display:flex;align-items:center;gap:15px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid #d5e8e5;min-width:0}
.cv3-essential>.cv3-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.cv3-essential>.cv3-grid>.cv3-info:last-child{grid-column:1/-1}
.cv3-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;min-width:0}
.cv3-info{min-width:0;max-width:100%}
.cv3-label{font-size:12px;font-weight:650;color:var(--text3,#617987);margin-bottom:4px}
.cv3-value{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;max-width:100%}
.cv3-important .cv3-value{font-size:16px;font-weight:650;line-height:1.35}
.cv3-pending{display:inline-block;font-size:11px;color:#805719;background:#fff3d8;border-radius:5px;padding:1px 6px;margin-top:5px}
.cv3-section{padding:17px 0;border-bottom:1px solid #e2e9ec;min-width:0}
.cv3-section h3{font-size:17px;margin:0 0 14px;color:var(--text,#203c4c)}
.cv3-instructions .cv3-grid{grid-template-columns:1fr}
.cv3-instructions{border-left:3px solid #298b87;padding-left:14px;margin:15px 0}
.cv3-section summary{font-size:14px;font-weight:600;cursor:pointer;padding:4px 0;color:#426776}
.cv3-section[open]>summary{margin-bottom:14px}
.cv3-source{color:#456779;font-size:13px}
.cv3-tube-photo{margin:0;flex:0 0 auto}
.cv3-tube-photo img{max-width:76px!important;max-height:92px!important;width:auto!important;height:auto!important;object-fit:contain}
.cv3-tube>.cv3-info{flex:1 1 auto}
.v3-historical-source{margin-top:24px;border-top:1px solid #e2e9ec;padding-top:15px;font-size:13px}
.v3-historical-source>summary{cursor:pointer;color:#627888;font-weight:600}
.cv3-supplier-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:15px 18px;color:#633f0c;background:linear-gradient(135deg,#fff3d8,#ffe4ad);border:2px solid #d99b35;border-radius:14px;text-decoration:none;box-shadow:0 3px 10px rgba(125,82,18,.12)}
.cv3-supplier-cta:hover{background:linear-gradient(135deg,#ffedc3,#ffd991);border-color:#b97918}
.cv3-supplier-cta small,.cv3-supplier-cta strong{display:block}
.cv3-supplier-cta small{font-size:12px;margin-bottom:2px}
.cv3-supplier-cta strong{font-size:17px}
.cv3-supplier-cta b{font-size:26px}
.cv3-inline-document{display:inline-block;margin:6px 0 2px;padding:7px 11px;color:#245f85;background:#e8f3fa;border:1px solid #9fc9df;border-radius:8px;font-weight:700;text-decoration:none}
.cv3-inline-document:hover{text-decoration:underline;background:#dcedf7}
@media(max-width:560px){.cv3-essential{padding:14px}.cv3-essential>.cv3-grid,.cv3-grid{grid-template-columns:1fr}.cv3-essential>.cv3-grid>.cv3-info:last-child{grid-column:auto}.cv3-important .cv3-value{font-size:15px}.cv3-tube-photo img{max-width:64px!important;max-height:80px!important}}

/* Fixed-size glossary photos: never put a labelled legacy pill beside a second label. */
.cv3-materials{display:grid;gap:8px;min-width:0;max-width:100%;margin:4px 0 16px;padding-bottom:14px;border-bottom:1px solid #d5e8e5}
.cv3-material{display:flex;align-items:center;gap:12px;min-width:0;max-width:100%}
.cv3-material-image{display:block;flex:0 0 64px;width:64px!important;height:72px!important;max-width:64px!important;max-height:72px!important;object-fit:contain;background:#fff;border:1px solid #d7e0ec;border-radius:9px;padding:4px}
.cv3-material-name{min-width:0;flex:1;font-size:15px;font-weight:650;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.cv3-materials--list{margin:0;padding:0;border:0}
.cv3-materials--list .cv3-material{gap:8px}
.cv3-materials--list .cv3-material-image{flex-basis:40px;width:40px!important;height:48px!important;max-width:40px!important;max-height:48px!important;padding:2px}
.cv3-materials--list .cv3-material-name{font-size:12px;font-weight:500}
.cv3-sheet{container-type:inline-size}
@container(max-width:480px){.cv3-sheet .cv3-grid{grid-template-columns:minmax(0,1fr)}.cv3-essential>.cv3-grid>.cv3-info:last-child{grid-column:auto}}
.detail.mp-drawer:has(.cv3-sheet){width:min(600px,100vw);overflow-x:hidden}
.detail-body:has(.cv3-sheet){min-width:0;width:100%}
@media(max-width:600px){.detail.mp-drawer:has(.cv3-sheet){width:100vw;border-left:0}.detail.mp-drawer:has(.cv3-sheet) .detail-body{padding:14px}.cv3-supplier-cta{padding:12px;gap:8px}.cv3-supplier-cta strong{font-size:15px}.cv3-material-image{flex-basis:56px;width:56px!important;max-width:56px!important;height:64px!important;max-height:64px!important}}
/* Drawer already starts below the header: do not reserve that height twice. */
.detail.mp-drawer:has(.cv3-sheet){padding-top:0}

.cv3-mobile-material{display:none}
@media(max-width:768px){.cv3-mobile-material{display:block;margin-top:9px}table:has(.cv3-mobile-material) .mp-col-tube{display:none!important}.cv3-mobile-material .cv3-material-name{font-size:12px}}
@media(max-width:768px){
 .mp-table-wrap table.mp-dense:has(.cv3-mobile-material){min-width:0!important;width:100%;table-layout:fixed}
 .mp-table-wrap table.mp-dense:has(.cv3-mobile-material) :is(th,td){min-width:0!important;padding:9px 6px}
 .mp-table-wrap table.mp-dense:has(.cv3-mobile-material) .mp-col-code{width:24%!important}
 .mp-table-wrap table.mp-dense:has(.cv3-mobile-material) .mp-col-nom{width:58%!important}
 .mp-table-wrap table.mp-dense:has(.cv3-mobile-material) .mp-col-secteur{width:18%!important}
 .mp-table-wrap table.mp-dense--presc:has(.cv3-mobile-material) .mp-col-nom{width:80%!important}
 .mp-table-wrap table.mp-dense--presc:has(.cv3-mobile-material) .mp-col-secteur{width:20%!important}
 .mp-table-wrap table.mp-dense:has(.cv3-mobile-material) :is(.mp-col-delai,.mp-col-prel){display:none!important}
}
.cv3-sheet .cv3-cost{margin:12px 0 20px;padding:16px;border:1px solid #e8b4b4;border-radius:12px;background:#fff8f8}
.cv3-sheet .cv3-cost h4{margin:0 0 12px}
.cv3-sheet .cv3-cost .cot-nabm-euro{font-size:clamp(28px,3vw,38px)!important;font-weight:900!important;color:#b91c1c!important;line-height:1.2}

/* Analysis pencil: the reading sheet with local editing controls. */
#editModal .edit-modal-box:has(.analysis-editor-sheet){width:min(960px,calc(100vw - 24px));max-width:960px}
.analysis-editor-sheet .analysis-status-strip{--identity-control-height:35px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;padding:18px;gap:16px}
.analysis-editor-sheet .analysis-status-strip .field-purpose{display:none!important}
.analysis-editor-sheet .analysis-status-strip>.edit-field{display:grid;grid-template-rows:16px var(--identity-control-height);gap:4px;align-content:start}
.analysis-editor-sheet .analysis-status-strip>.edit-field>label:first-child{height:16px;min-height:16px;line-height:16px;margin:0;padding:0;border:0;background:transparent;border-radius:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.analysis-editor-sheet .analysis-status-strip>.edit-field>input:not([type="checkbox"]),
.analysis-editor-sheet .analysis-status-strip>.edit-field>select{height:var(--identity-control-height);min-height:var(--identity-control-height);padding-top:0;padding-bottom:0}
.analysis-editor-sheet .analysis-status-strip>.edit-field:has(#editAnalyseSillage){display:grid;grid-template-rows:16px var(--identity-control-height);gap:4px}
.analysis-editor-sheet .analysis-status-strip>.edit-field>label:has(#editAnalyseSillage){grid-row:2;box-sizing:border-box;height:var(--identity-control-height);min-height:var(--identity-control-height);padding:0 12px;display:flex;align-items:center}
.analysis-editor-sheet .analysis-status-strip>.edit-field>label:has(.sheet-analysis-id){display:flex;align-items:baseline;gap:7px;overflow:visible}
.sheet-analysis-id{display:inline-block;min-width:0;max-width:55%;overflow:hidden;text-overflow:ellipsis;padding:1px 6px;border:1px solid #c7d8e4;border-radius:999px;background:#f6fafc;color:#617989;font-size:9px;font-weight:700;line-height:13px;text-transform:none;letter-spacing:0;vertical-align:baseline}
.analysis-editor-sheet .analysis-internet-state{grid-column:1/-1;order:1;background:transparent;border:0;min-height:18px;padding:0;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:8px;line-height:18px}
.analysis-editor-sheet .analysis-internet-state small,
.analysis-editor-sheet .analysis-internet-state strong{display:inline-block;margin:0;line-height:18px}
.analysis-editor-sheet .sheet-classification{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.analysis-editor-sheet .sheet-classification .sheet-edit-row{width:auto;margin:0}
.analysis-editor-sheet .sheet-creation-catalog-note{grid-column:1/-1;margin:0;padding:8px 10px;border:1px solid #c7dce3;border-radius:8px;background:#f4fafc;color:#4a6574;font-size:12px}
.analysis-editor-sheet .sheet-catalog-controls{display:grid;gap:9px}
.analysis-editor-sheet .sheet-catalog-controls label{display:grid;gap:5px;color:#607889;font-weight:700;font-size:12px}
.analysis-editor-sheet .sheet-catalog-controls select:not([multiple]){width:100%;min-height:36px}
.analysis-editor-sheet .sheet-catalog-controls select[multiple]{width:100%;min-height:120px}
.analysis-editor-sheet .sheet-catalog-controls .sheet-catalog-error:empty{display:none}
.analysis-editor-sheet .sheet-edit-section{padding:16px;margin:16px 0;border-radius:16px}
.analysis-editor-sheet .sheet-edit-section>h3{padding:12px 14px;margin:0 0 12px;border-radius:10px;font-size:19px}
.analysis-editor-sheet .sheet-edit-section>.visual-review-grid,
.analysis-editor-sheet .sheet-edit-more>.visual-review-grid{gap:10px}
.analysis-editor-sheet .sheet-edit-section>.cv3-grid:empty{display:none}
.sheet-edit-row{min-width:0;padding:10px 11px;align-self:start;border:1px solid #dce5e8;border-radius:10px;background:#fff}
.sheet-edit-row>.visual-field-heading{min-height:30px;align-items:flex-start}
.sheet-edit-row>.visual-field-heading>strong{color:#607889;font-size:13px;line-height:1.35}
.sheet-edit-row>.visual-field-value{margin-top:6px;font-size:15px;line-height:1.4}
.sheet-field-audience{display:inline-block;margin:2px 0 0;padding:1px 6px;border-radius:999px;background:#edf3f7;color:#607889;font-size:9px;font-weight:750;line-height:14px;text-transform:uppercase;letter-spacing:.03em}
.visual-summary .sheet-field-audience{background:#dff2ec;color:#236b58}
.visual-prescription .sheet-field-audience{background:#e8f0ff;color:#30568a}
.visual-sampling .sheet-field-audience{background:#e3f3ec;color:#236b58}
.visual-laboratory .sheet-field-audience{background:#fff1d8;color:#885b16}
.sheet-edit-action{position:static;border:1px solid #b9d6d4;border-radius:7px;background:#f5faf9;color:#087e83;padding:5px 9px;font:inherit;font-size:12px;cursor:pointer;flex-shrink:0}
.sheet-edit-action:hover{background:#e3f2f0}
.sheet-edit-action:focus-visible{outline:2px solid #087e83;outline-offset:3px}
.sheet-edit-controls{padding:12px;background:#f3f8f8;border:1px solid #cce4e1;border-radius:9px;margin-top:7px;min-width:0}
.analysis-editor-sheet .sheet-value-controls{display:grid;gap:9px}
.analysis-editor-sheet .sheet-value-controls label{display:grid;gap:5px;color:#607889;font-weight:700;font-size:12px}
.analysis-editor-sheet .sheet-value-controls label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}
.analysis-editor-sheet .sheet-glims-suggest{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.analysis-editor-sheet .sheet-glims-suggest small{flex-basis:100%;color:#607889}
.analysis-editor-sheet .sheet-glims-chip{font:600 12px ui-monospace,Menlo,monospace;padding:3px 8px;border:1px solid #9fb4c3;border-radius:12px;background:#f3f7fa;cursor:pointer}
.analysis-editor-sheet .sheet-value-controls input:not([type=checkbox]),.analysis-editor-sheet .sheet-value-controls select,.analysis-editor-sheet .sheet-value-controls textarea{width:100%;min-height:36px}
.analysis-editor-sheet .sheet-value-controls textarea{min-height:110px}
.sheet-edit-controls .edit-field{margin-bottom:0!important;min-width:0}
.sheet-edit-controls input,.sheet-edit-controls select,.sheet-edit-controls textarea{max-width:100%;box-sizing:border-box}
.sheet-edit-more{margin-top:16px;border:1px dashed #cedddd;border-radius:9px;padding:10px 14px}
.sheet-edit-more>summary{color:#58717c;font-size:13px;cursor:pointer}
.sheet-edit-more[open]>.cv3-grid{margin-top:20px}
.sheet-edit-row:has(#editLocalisationGlimsWrap),.sheet-edit-row:has(#editCodesGlims),.sheet-edit-row:has(#editCotationComplexe){grid-column:1/-1}
.sheet-needs-review{border-left:4px solid #d9a346}
.sheet-needs-review:not(.mandatory-field){background:#fff8e8}
.sheet-edit-row.mandatory-field{background:#eef0ff;border-left:4px solid #6674b5}
.sheet-edit-row.mandatory-missing{background:#fff1f1;border-color:#e1a4a7;border-left:4px solid #b52c32}
.sheet-draft-note{display:block;flex-basis:100%;color:#617987;font-size:12px;margin-bottom:6px}
@media(max-width:650px){.analysis-editor-sheet .analysis-status-strip,.analysis-editor-sheet .sheet-classification,.analysis-editor-sheet .cv3-grid{grid-template-columns:minmax(0,1fr)}.analysis-editor-sheet .sheet-edit-section{padding:11px;margin:12px 0}.analysis-editor-sheet .sheet-edit-section>h3{font-size:17px}.sheet-edit-controls [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important}}

.sheet-field-status{display:block;color:#805719;font-size:11px;margin-top:6px}

.sheet-preview-chips{display:flex;flex-wrap:wrap;gap:6px;margin:3px 0 8px;white-space:normal}
.sheet-preview-chip{display:inline-flex;align-items:center;border:1px solid #bddad8;background:#edf7f6;color:#245d61;border-radius:18px;padding:5px 10px;font-size:13px;line-height:1.4;overflow-wrap:anywhere;max-width:100%}
.sheet-preview-chip:has(.sheet-synonym-kind){gap:8px}
.sheet-synonym-primary{border-color:#a6c2e4;background:#e8f0ff;color:#244c7c}
.sheet-synonym-extended{border-color:#cad8df;background:#f3f6f8;color:#536b78}
.sheet-synonym-kind{font-size:10px;font-weight:750;text-transform:uppercase;white-space:nowrap;opacity:.8}
.sheet-synonym-principal-editor>label,.sheet-synonym-principal-editor>#editSupplier_mots_cles_principaux,.sheet-synonym-principal-editor>.field-purpose{display:none!important}
.sheet-synonym-help{margin:12px 0 2px;color:#536b78;font-size:12px}
.analysis-editor-sheet .sheet-cotation-cost{margin:10px 0 0;padding:11px}
.analysis-editor-sheet .sheet-cotation-cost h4{font-size:12px;margin-bottom:8px}
.analysis-editor-sheet .sheet-materials{margin:2px 0 0;padding:0;border:0}
.analysis-editor-sheet .sheet-materials .cv3-material{gap:10px}
.analysis-editor-sheet .sheet-materials .cv3-material-image{flex-basis:52px;width:52px!important;max-width:52px!important;height:58px!important;max-height:58px!important}
.analysis-editor-sheet .sheet-materials .cv3-material-name{font-size:14px}
.sheet-edit-row:has(#editSynonymes),.sheet-edit-row:has(#editSupplier_mots_cles_principaux){grid-column:1/-1}
.sheet-delay-formula{display:block;color:#5b6b78;font-size:12px;margin-top:6px}
.sheet-delay-group{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;padding:8px;border:1px dashed #6674b5;border-radius:10px}

/* Reviewed supplier sheets: calm reading layout with a prominent document action. */
.cv3-sheet .cv3-rc-panel{padding:16px 18px;margin:16px 0 20px;background:#fff5df;border:1px solid #e4bd70;border-left:5px solid #b87813;border-radius:12px}
.cv3-sheet .cv3-rc-panel h3{margin:0 0 8px;font-size:17px;color:#69450e}
.cv3-sheet .cv3-rc-panel .cv3-documents{margin:8px 0}.cv3-sheet .cv3-rc-panel h4{font-size:13px;margin:8px 0;color:#78572a}
.cv3-sheet .cv3-rc-panel .cv3-inline-document{display:block;background:#fff;border-color:#c99740;color:#67420b;padding:11px 14px}
.cv3-sheet .cv3-reviewed-sampling{padding:18px;background:#f6faf9;border:1px solid #d8e6e0;border-radius:12px;margin-bottom:16px}
.cv3-sheet .cv3-reviewed-sampling h3,.cv3-sheet .cv3-reviewed-delay h3{font-size:16px;margin-bottom:14px}
.cv3-sheet .cv3-secondary{background:#f7f9fb;border:1px solid #dce3e9;border-radius:10px;padding:13px 16px;margin-top:18px}
.cv3-sheet .cv3-secondary>summary{font-size:14px;color:#435b6b}.cv3-sheet .cv3-secondary[open]>.cv3-grid{padding-top:14px}
.cv3-sheet .cv3-secondary .cv3-grid{grid-template-columns:minmax(0,1fr)}
.cv3-sheet .cv3-secondary .cv3-info{padding:10px 0;border-bottom:1px solid #e4e9ee}

.cv3-sheet:has(.cv3-reviewed-sampling) .cv3-supplier-cta{background:#f7f9fb;border:1px solid #d9e1e7;box-shadow:none;padding:10px 14px;border-radius:9px;color:#405767;margin-bottom:14px}
.cv3-sheet:has(.cv3-reviewed-sampling) .cv3-supplier-cta strong{font-size:14px}.cv3-sheet:has(.cv3-reviewed-sampling) .cv3-supplier-cta b{font-size:20px}
.cv3-sheet .cv3-rc-panel .cv3-documents:has(.cv3-inline-document)>h4{display:none}

.cv3-sheet .cv3-bricks{list-style:none;margin:0;padding:0}

/* Supplier proposal: two user workflow blocks, plus laboratory handling for staff. */
.cv3-sheet .cv3-workflow-block{padding:18px;margin:0 0 18px;border:1px solid #d9e3eb;border-left:4px solid #497da4;border-radius:12px;background:#f5f8fc}
.cv3-sheet .cv3-workflow-block.cv3-sampling{background:#f3faf7;border-color:#d0e4db;border-left-color:#318477}
.cv3-sheet .cv3-workflow-block.cv3-laboratory{background:#fff8ec;border-color:#eadbc0;border-left-color:#b58737}
.cv3-sheet .cv3-workflow-block h3{font-size:17px;margin:0 0 16px}
.cv3-sheet .cv3-block-material{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid #d7e6df}
.cv3-sheet .cv3-block-more{margin-top:16px;padding-top:12px;border-top:1px solid #dce5e8}
.cv3-sheet .cv3-block-more>summary{font-size:13px;color:#456576}
.cv3-sheet .cv3-block-more[open]>.cv3-grid{margin-top:14px;grid-template-columns:1fr}
.cv3-sheet .cv3-block-material .cv3-materials{margin:4px 0 0;padding:0;border:0}
.cv3-sheet .cv3-contact-bar{margin:0 0 18px;padding:12px 16px;background:#f5f8fa;border:1px solid #d7e2e9;border-radius:10px}
.cv3-sheet .cv3-contact-link{display:inline-block;color:#245f85;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.cv3-sheet .cv3-essential-instruction{margin:14px 0;line-height:1.5}
.cv3-sheet .cv3-essential-instruction:empty{display:none}
.cv3-sheet .cv3-essential-instruction>.cv3-info+.cv3-info{margin-top:12px}
.cv3-sheet .cv3-clinical-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cv3-sheet .cv3-clinical-list li{padding:9px 12px;background:#fff;border-left:3px solid #7f9db9;border-radius:5px;font-size:14px}
.cv3-sheet .cv3-clinical-list small{display:block;color:#617987;margin-top:3px;font-size:12px}
.cv3-sheet .cv3-cost-reference{grid-column:1;font-size:12px}
.cv3-sheet .cv3-cost-reference>summary{color:#456576;cursor:pointer}
.cv3-sheet .cv3-cost-reference[open] .cot-nabm-libelle{margin-top:6px}
.cv3-sheet .cv3-workflow-block .cot-nabm-card{border:0;padding:0;background:transparent}

/* Compact price: title, code, coefficient and euros on one line; reference below. */
.cv3-sheet .cv3-cost{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:baseline;margin:12px 0 0;padding:10px 0 0;border:0;border-top:1px solid #dce4ed;border-radius:0;background:transparent}
.cv3-sheet .cv3-cost h4{grid-column:1;grid-row:1;margin:0;font-size:12px;font-weight:600;color:var(--text3,#617987)}
.cv3-sheet .cv3-cost>.d-field{grid-column:2;padding:0;border:0;background:transparent}
.cv3-sheet .cv3-cost>.d-field>.d-lbl{display:none}
.cv3-sheet .cv3-cost .cot-nabm-root{gap:8px}
.cv3-sheet .cv3-cost .cot-nabm-card{border:0;padding:0;background:transparent}
.cv3-sheet .cv3-cost .cot-nabm-card:has(>.cot-nabm-loaded){display:grid;grid-template-columns:auto auto auto;justify-content:start;align-items:baseline;gap:3px 10px}
.cv3-sheet .cv3-cost .cot-nabm-loaded{display:contents}
.cv3-sheet .cv3-cost .cot-nabm-line{grid-column:1;grid-row:1;margin:0;font-size:12px}
.cv3-sheet .cv3-cost .cot-nabm-brow{grid-column:2;grid-row:1;font-size:12px;white-space:nowrap;font-weight:400}
.cv3-sheet .cv3-cost .cot-nabm-bcoef{color:inherit}
.cv3-sheet .cv3-cost .cot-nabm-euro{grid-column:3;grid-row:1;margin:0;font-size:13px!important;font-weight:650!important;color:#b91c1c!important;letter-spacing:normal;white-space:nowrap}
.cv3-sheet .cv3-cost .cv3-cost-reference{grid-column:1/-1;grid-row:2;font-size:11px}
.cv3-sheet .cv3-cost .cv3-cost-reference>summary{padding:0;font-size:11px;font-weight:400;color:var(--text3,#617987)}
.cv3-sheet .cv3-cost .cot-nabm-free>.cot-nabm-root{margin-top:4px}
@media(max-width:420px){.cv3-sheet .cv3-cost{column-gap:7px}.cv3-sheet .cv3-cost .cot-nabm-card:has(>.cot-nabm-loaded){column-gap:6px}}

/* The tube remains prominent beside the title, and again in sampling. */
.cv3-title-row{display:flex;align-items:center;gap:18px}
.cv3-title-copy{flex:1;min-width:0}
.cv3-title-material{flex:0 1 220px;min-width:160px}
.cv3-title-material .cv3-materials{margin:0;padding:0;border:0}
.cv3-title-material .cv3-material-name{font-size:12px;line-height:1.35}
@media(max-width:600px){.cv3-title-row{flex-wrap:wrap;gap:10px}.cv3-title-copy{flex-basis:100%}.cv3-title-material{flex-basis:100%;min-width:0}}
/* Éditeur de fiche : « clip » ne crée pas de conteneur de défilement, le pied Enregistrer reste flottant. */
#editForm.cv3-sheet{overflow-x:clip}

.sheet-field-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.sheet-clear-action{font-size:12px;color:#9b3535}

/* Editing is the reading sheet with local actions; configuration stays folded. */
.analysis-editor-sheet .sheet-edit-heading{display:grid;grid-template-columns:minmax(0,2fr) minmax(200px,1fr);gap:8px 24px;padding:8px 0 20px;margin-bottom:18px;border-bottom:1px solid #d9e3eb}
.analysis-editor-sheet .sheet-edit-heading>[data-field-key="label"]{grid-column:1;grid-row:1}
.analysis-editor-sheet .sheet-edit-heading>[data-field-key="synonyms"]{grid-column:1;grid-row:2}
.analysis-editor-sheet .sheet-edit-heading>[data-field-key="material"]{grid-column:2;grid-row:1/3}
.analysis-editor-sheet .sheet-edit-heading>[data-field-key="label"]>.cv3-value{font-size:23px;font-weight:750;color:#172131}
.analysis-editor-sheet .sheet-main-field{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.analysis-editor-sheet .sheet-main-field>.sheet-field-audience{display:none}
.analysis-editor-sheet .sheet-main-field>.visual-field-heading{min-height:24px;gap:6px;display:flex;justify-content:space-between;align-items:baseline}
.analysis-editor-sheet .sheet-main-field>.visual-field-heading>strong{font-size:13px;font-weight:650;color:#7a8b9d}
.analysis-editor-sheet .sheet-main-field>.cv3-value{font-size:16px;margin-top:4px;line-height:1.5}
.analysis-editor-sheet .sheet-main-field .sheet-field-actions{gap:6px;flex-shrink:0}
.analysis-editor-sheet .sheet-main-field .sheet-field-actions>button{padding:2px 3px;min-height:22px;border:0;background:transparent;font-size:11px;color:#387775;border-radius:3px}
.analysis-editor-sheet .sheet-main-field .sheet-field-actions>button:hover{background:#e4eeed;text-decoration:underline}
.analysis-editor-sheet .sheet-main-field .sheet-field-actions>button:focus-visible{outline:2px solid #387775;outline-offset:2px}
.analysis-editor-sheet .sheet-main-field.mandatory-missing>.cv3-value{color:#a52d34}
.analysis-editor-sheet .sheet-main-field>.sheet-field-status{font-size:10px;margin-top:3px}
.analysis-editor-sheet .sheet-main-field>.sheet-edit-controls{padding:12px;background:#fff;border:1px solid #c8d8dd;border-radius:8px;margin-top:10px}
.analysis-editor-sheet .cv3-workflow-block>.cv3-grid{gap:22px 26px}
.analysis-editor-sheet .cv3-workflow-block>h3{background:#e0f1eb;color:#216e5e}
.analysis-editor-sheet .cv3-workflow-block.cv3-laboratory>h3{background:#fcf0d9;color:#805b1e}
.analysis-editor-sheet .sheet-other-fields{margin:22px 0}
.analysis-editor-sheet .sheet-other-fields>.cv3-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.analysis-editor-sheet .sheet-other-help{font-size:13px;color:#667987;margin:14px 0}
.analysis-editor-sheet .sheet-other-fields .analysis-status-strip{margin-top:20px}
@media(max-width:650px){.analysis-editor-sheet .sheet-edit-heading,.analysis-editor-sheet .sheet-other-fields>.cv3-grid{grid-template-columns:minmax(0,1fr)}.analysis-editor-sheet .sheet-edit-heading>[data-field-key]{grid-column:1;grid-row:auto}}

/* Formulaire d'édition : rubriques stables et brouillon enregistré en une fois. */
#editModal .edit-modal-box:has(.analysis-editor-sheet){width:min(1080px,calc(100vw - 24px));max-width:1080px}
#editForm.analysis-editor-sheet{padding:16px 24px 0;background:#fff;color:#233849}
.analysis-editor-sheet>.analysis-status-strip{display:grid;margin:0 0 14px;padding:12px 14px;border:1px solid #d4e0e7;border-radius:8px;background:#f5f8fb;grid-template-columns:1.2fr 1fr 1fr;gap:10px 18px}
.analysis-editor-sheet .analysis-status-strip .analysis-internet-state{font-size:11px}
.sheet-editor-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 18px;padding:0 0 10px;border-bottom:1px solid #d6e1e7}
.sheet-editor-tabs button{font:inherit;font-size:13px;font-weight:600;border:1px solid transparent;background:#f0f4f7;color:#405769;border-radius:6px;padding:9px 12px;cursor:pointer}
.sheet-editor-tabs button[aria-pressed=true]{background:#155d80;color:#fff}
.sheet-editor-tabs button:focus-visible{outline:3px solid #82b7cc;outline-offset:2px}
.sheet-editor-pane{padding:0 0 18px;min-width:0}
.sheet-editor-pane>h3{margin:0 0 3px;font-size:18px;color:#203d50}
.sheet-pane-help{margin:0 0 18px;color:#647887;font-size:12px}
.analysis-editor-sheet .sheet-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;padding:0;margin:0;border:0}
.analysis-editor-sheet .sheet-form-grid>.sheet-edit-row{grid-row:auto;grid-column:auto;margin:0;min-width:0;align-self:start;padding:0;border:0;background:transparent}
.analysis-editor-sheet .sheet-form-grid>[data-field-key=label],.analysis-editor-sheet .sheet-form-grid>[data-field-key=synonyms],.analysis-editor-sheet .sheet-form-grid>[data-v3-field=clinical_information]{grid-column:1/-1}
.analysis-editor-sheet .sheet-form-grid .sheet-classification{grid-column:1/-1;display:block;border-top:1px solid #dce5eb;padding-top:16px}
.analysis-editor-sheet .sheet-edit-row>.visual-field-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;min-height:20px}
.analysis-editor-sheet .sheet-edit-row>.visual-field-heading>strong{font-size:13px;color:#334e60;font-weight:650;line-height:1.4}
.analysis-editor-sheet .sheet-edit-row>.visual-field-value{font-size:14px;margin:4px 0;white-space:pre-line}
.analysis-editor-sheet .sheet-edit-row>.sheet-edit-controls{margin:0;padding:0;border:0;background:transparent;border-radius:0}
.analysis-editor-sheet .sheet-edit-row>.sheet-field-audience:not([hidden]){display:inline-block;margin:0 0 6px;font-size:10px;color:#5264a0;background:#eef0fc}
.analysis-editor-sheet .sheet-field-status{display:none}
.analysis-editor-sheet .sheet-inline-editor .sheet-field-actions,.analysis-editor-sheet .sheet-direct-field .sheet-field-actions{align-self:start}
.analysis-editor-sheet .sheet-field-actions>button{font-size:11px;padding:2px 4px;min-height:20px;background:transparent;border:0;color:#557080}
.analysis-editor-sheet .sheet-field-actions>.sheet-clear-action{color:#86605d}
.analysis-editor-sheet .sheet-direct-field>.sheet-edit-controls>.edit-field>label:first-child,.analysis-editor-sheet .sheet-edit-controls .field-purpose{display:none!important}
.analysis-editor-sheet .sheet-edit-controls input:not([type=checkbox]):not([type=radio]),.analysis-editor-sheet .sheet-edit-controls select,.analysis-editor-sheet .sheet-edit-controls textarea{width:100%;box-sizing:border-box;font-size:14px;border:1px solid #c5d4de;background:#fff;color:#253f50;border-radius:6px;padding:8px 10px;min-height:36px;max-width:100%}
.analysis-editor-sheet .sheet-edit-controls textarea{min-height:68px;resize:vertical;line-height:1.45}
.analysis-editor-sheet .sheet-edit-controls small{font-size:11px;line-height:1.4;color:#74848e}
.analysis-editor-sheet .sheet-value-controls>label:first-child:has(>textarea),.analysis-editor-sheet .sheet-value-controls>label:first-child:has(>input[type=text]){font-size:0;gap:0}
.analysis-editor-sheet .sheet-value-controls>small{display:none}
.analysis-editor-sheet .sheet-classification-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
.analysis-editor-sheet .sheet-catalog-controls select[multiple]{min-height:86px}
.analysis-editor-sheet .sheet-other-fields{margin:18px 0 0;padding:10px 14px;border:1px solid #d8e2e8;border-radius:7px}
.analysis-editor-sheet .sheet-other-fields .sheet-edit-row{padding:10px;background:#f8fafb;border:1px solid #e2e9ed}
.analysis-editor-sheet .clinical-edit-footer{position:sticky;bottom:0;margin:0 -24px;padding:12px 24px;background:#fff;border-top:1px solid #d2dee6;z-index:3;box-shadow:0 -4px 14px #17364f08}
.analysis-editor-sheet .sheet-draft-note{font-size:11px;margin-bottom:8px}
.analysis-editor-sheet [hidden]{display:none!important}
@media(max-width:650px){#editForm.analysis-editor-sheet{padding:12px 14px 0}.analysis-editor-sheet>.analysis-status-strip,.analysis-editor-sheet .sheet-form-grid,.analysis-editor-sheet .sheet-classification-controls{grid-template-columns:minmax(0,1fr)}.analysis-editor-sheet .clinical-edit-footer{margin:0 -14px;padding:10px 14px}.sheet-editor-tabs{gap:4px}.sheet-editor-tabs button{padding:8px;font-size:12px}}
/* Douze rubriques (08/10/2026) : mêmes intitulés que la relecture et la modification. */
.cv3-rubrique{padding:12px 0;border-top:1px solid var(--border,#e3eaef)}.cv3-rubrique:first-of-type{border-top:0;padding-top:0}
.cv3-rubrique-title{margin:0 0 8px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#5a6b75)}
.cv3-rubrique .cv3-grid+.cv3-block-more,.cv3-rubrique .cv3-grid+.cv3-grid{margin-top:8px}
/* Consultation plus lisible (08/10/2026) : l’essentiel en tête, rubriques en cartes légères. */
.cv3-sheet .cv3-essentials{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:0 0 16px}
.cv3-sheet .cv3-essential{padding:12px 14px;border:1px solid #d9e3eb;border-radius:12px;background:#fff}
.cv3-sheet .cv3-essential .cv3-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#5a6b75;margin-bottom:4px}
.cv3-sheet .cv3-essential>.cv3-value{font-size:20px;font-weight:700;color:#17394d}
.cv3-sheet .cv3-essential-price{border-color:#efc9c9;background:#fffafa}
.cv3-sheet .cv3-essential-price .cot-nabm-euro{font-size:22px!important;font-weight:800!important;color:#b91c1c!important}
.cv3-sheet .cv3-essential-price .cv3-value{font-size:14px;font-weight:500}
.cv3-sheet .cv3-essential-price .cot-nabm-card{margin:0;padding:0;border:0;background:transparent}
.cv3-sheet .cv3-workflow-block{background:#f7f9fb;border-left-width:3px}
.cv3-sheet .cv3-workflow-block.cv3-sampling{background:#f6faf8}
.cv3-sheet .cv3-workflow-block>h3{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#2b5d55;background:none;padding:0;margin:0 0 12px}
.cv3-sheet .cv3-workflow-block.cv3-laboratory>h3{color:#2f5574}
.cv3-sheet .cv3-rubrique{background:#fff;border:1px solid #e3eaef;border-radius:10px;padding:12px 14px;margin:0 0 10px}
.cv3-sheet .cv3-rubrique:first-of-type{padding-top:12px;border-top:1px solid #e3eaef}
.cv3-sheet .cv3-rubrique-title{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:13px;color:#17394d}
.cv3-sheet .cv3-rubrique-title::before{content:"";width:8px;height:8px;border-radius:50%;background:#318477;flex:none}
.cv3-sheet .cv3-laboratory .cv3-rubrique-title::before{background:#497da4}
.cv3-sheet .cv3-rubrique .cv3-grid{gap:10px 18px}
.cv3-sheet .cv3-rubrique .cv3-block-more{margin-top:8px;border:0;padding:0;background:none}
/* Cases plus compactes ; le prix en petite case dans sa rubrique. */
.cv3-sheet .cv3-essentials{grid-template-columns:repeat(auto-fill,minmax(160px,220px));gap:8px;margin:0 0 12px}
.cv3-sheet .cv3-essential{padding:8px 12px;border-radius:10px}
.cv3-sheet .cv3-essential .cv3-label{font-size:11px;margin-bottom:2px}
.cv3-sheet .cv3-essential>.cv3-value{font-size:17px}
.cv3-sheet .cv3-essentials-small{margin:0}
.cv3-sheet .cv3-essential-price .cot-nabm-euro{font-size:17px!important}
.cv3-sheet .cv3-essential-price .cot-nabm-reference,.cv3-sheet .cv3-essential-price .cot-nabm-card .cot-nabm-line+.cot-nabm-line{font-size:12px}
.cv3-sheet .cv3-rubrique[data-rubrique="prix"] .cv3-rubrique-title{margin-bottom:6px}
/* Ligne Tube · Résultat · Réalisation (08/10/2026). */
.cv3-sheet .cv3-essentials-row{grid-template-columns:minmax(200px,1.4fr) repeat(2,minmax(140px,1fr));align-items:stretch}
@media(max-width:700px){.cv3-sheet .cv3-essentials-row{grid-template-columns:1fr 1fr}.cv3-sheet .cv3-essential-tube{grid-column:1/-1}}
.cv3-sheet .cv3-essential-tube .cv3-materials{margin:0;padding:0;border:0;gap:6px}
.cv3-sheet .cv3-essential-tube .cv3-material{display:flex;align-items:center;gap:10px}
.cv3-sheet .cv3-essential-tube .cv3-material-image{width:40px;height:46px;object-fit:contain}
.cv3-sheet .cv3-essential-tube .cv3-material-name{font-size:14px;font-weight:600;color:#17394d}
.cv3-sheet .cv3-h24{display:inline-flex;align-items:center;gap:5px;margin-top:6px;padding:2px 8px;border-radius:999px;background:#e6f3f1;color:#14534b;font-size:12px;font-weight:700}
.cv3-sheet .cv3-essential-h24{border-color:#b9ddd5}
.cv3-sheet .cv3-essential-note{margin-top:4px;font-size:12px;color:#5a6b75}
/* Lecture sur une ligne : une case seule prend toute la largeur, les valeurs multiples en pastilles. */
.cv3-sheet .cv3-rubrique .cv3-grid>.cv3-info:only-child{grid-column:1/-1}
.cv3-sheet .cv3-rubrique .cv3-bricks{display:flex;flex-wrap:wrap;gap:6px}
.cv3-sheet .cv3-rubrique .cv3-bricks li{padding:3px 10px;border-radius:999px;background:#eef4f2;color:#17394d;font-size:14px}
.cv3-sheet .cv3-garde{display:inline-flex;margin-top:6px;margin-left:4px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:700;background:#fff4e5;color:#8a5a00}
.cv3-sheet .cv3-garde-realisation{background:#e6f3f1;color:#14534b}
.cv3-sheet .cv3-source-ref{color:#7a8a94}
/* Sous-traitant en bas de fiche, en petit : lien vers sa fiche et contacts repliés. */
.cv3-sheet .cv3-supplier-footer{margin:4px 0 16px;padding:10px 12px;border:1px solid #e3eaef;border-radius:10px;background:#f7f9fb;font-size:13px}
.cv3-sheet .cv3-supplier-footer .cv3-supplier-cta{display:flex;justify-content:space-between;align-items:center;padding:0;margin:0 0 6px;border:0;background:none;box-shadow:none;font-size:13px}
.cv3-sheet .cv3-supplier-footer .cv3-supplier-cta strong{font-size:13px}
.cv3-sheet .cv3-supplier-footer .cv3-supplier-cta small{font-size:12px}
.cv3-sheet .cv3-supplier-contacts>summary{cursor:pointer;color:#456576;font-weight:600}
.cv3-sheet .cv3-supplier-contacts .cv3-value{margin-top:6px;font-size:13px;line-height:1.5}
.cv3-sheet .cv3-rubrique .cv3-documents{margin:0 0 8px;padding:0;border:0;background:none}
.cv3-sheet .cv3-rubrique .cv3-documents h4{margin:0 0 4px;font-size:12px;color:#5a6b75;text-transform:none}
.cv3-sheet .cv3-rubrique .cv3-documents a{font-size:14px}
.cv3-sheet .cv3-supplier-footer{grid-column:1/-1;align-self:start;height:auto}
.cv3-sheet .cv3-contacts{display:grid;gap:6px;margin-top:8px}
.cv3-sheet .cv3-contact{font-size:13.5px;line-height:1.45}
.cv3-sheet .cv3-contact strong{color:#17394d;margin-right:4px}
.cv3-sheet .cv3-contact span{color:#46606f}
.cv3-sheet .cv3-contact .cv3-contact-link{margin-left:8px;white-space:nowrap}
/* Prix sur toute la largeur et sur une ligne : code · coefficient · montant · détail ; prix fournisseur à côté. */
.cv3-sheet .cv3-essentials-small{grid-template-columns:1fr}
.cv3-sheet .cv3-essential-price{display:flex;flex-wrap:wrap;align-items:center;gap:6px 24px}
.cv3-sheet .cv3-essential-price .d-lbl{display:none}
.cv3-sheet .cv3-essential-price .d-field{margin:0;padding:0;border:0;background:none}
.cv3-sheet .cv3-essential-price .cot-nabm-card,.cv3-sheet .cv3-essential-price .cot-nabm-fetch{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:0;background:none}
.cv3-sheet .cv3-essential-price .cot-nabm-card+.cot-nabm-card{margin-top:4px}
.cv3-sheet .cv3-essential-price .cot-nabm-brow{display:inline-flex;gap:4px}
.cv3-sheet .cv3-essential-price .cv3-cost-reference{font-size:12.5px}
.cv3-sheet .cv3-essential-price .cv3-cost-reference[open]{flex-basis:100%}
.cv3-sheet .cv3-price-supplier{font-size:13px;color:#46606f}
/* Alignement (08/10/2026) : code GLIMS et « Copier le lien » sur une ligne ; cases de même hauteur sur toute la largeur. */
#dHead{display:grid;grid-template-columns:auto 1fr;column-gap:14px;align-items:center}
#dHead>.cv3-title-row{grid-column:1/-1}
#dHead>.mp-detail-code-row{grid-row:2;grid-column:1;margin-top:0}
#dHead>.mp-detail-actions{grid-row:2;grid-column:2;margin:0;justify-self:start}
#dHead>:not(.cv3-title-row):not(.mp-detail-code-row):not(.mp-detail-actions){grid-column:1/-1}
.cv3-sheet .cv3-essentials-row{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px}
.cv3-sheet .cv3-essentials-row>.cv3-essential{flex:1 1 0;min-width:150px;display:flex;flex-direction:column;justify-content:flex-start}
.cv3-sheet .cv3-essentials-row>.cv3-essential-tube{flex:1.6 1 0;min-width:220px}
.cv3-sheet .cv3-essentials-row .cv3-material-image{width:34px;height:40px}
.cv3-sheet .cv3-essentials-row .cv3-essential-tube .cv3-material-name{font-size:17px;font-weight:700;line-height:1.25}
.cv3-sheet .cv3-essentials-row .cv3-essential-tube .cv3-material{min-height:40px}
.cv3-sheet .cv3-essentials-row>.cv3-essential>.cv3-value{line-height:1.25;min-height:40px;display:flex;align-items:center}

/* Consultation labo : fiche centrée et parcours côte à côte (retour Alicia, 15/10/2026). */
.detail.mp-drawer.open:has(.cv3-sheet--laboratory){
 left:50%;right:auto;top:calc(var(--hdr-h,88px) + 16px);bottom:16px;
 width:min(1280px,calc(100vw - 48px));transform:translateX(-50%);
 border:1px solid var(--mp-border);border-radius:16px;box-shadow:0 16px 64px rgba(15,27,45,.22);
}
.cv3-sheet--laboratory .cv3-workflow-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.cv3-sheet--laboratory .cv3-workflow-columns>.cv3-workflow-block{min-width:0;margin:0}
.cv3-sheet--laboratory .cv3-workflow-columns .cv3-grid{grid-template-columns:minmax(0,1fr)}
.cv3-sheet--laboratory .cv3-supplier-footer{margin-top:16px}
@media(max-width:800px){
 .detail.mp-drawer.open:has(.cv3-sheet--laboratory){left:0;right:0;top:var(--hdr-h,88px);bottom:0;width:100%;transform:none;border-radius:0}
 .cv3-sheet--laboratory .cv3-workflow-columns{grid-template-columns:minmax(0,1fr);gap:14px}
}
