/* ===== Améliorations chiffrage (oct. 2026) ===== */
#espacePro #chiffListZone .table-scroll table{min-width:760px}
#espacePro #chiffListZone td:first-child{min-width:240px}
#espacePro #chiffListZone td:nth-child(2),#espacePro #chiffListZone td:nth-child(3){white-space:nowrap}
#espacePro #devisListBody tr[data-devis-id]{cursor:pointer}
#espacePro #devisListBody tr[data-devis-id]:hover td{background:#EEF4FB}
#devisRowMenu{display:none;position:absolute;z-index:200;min-width:250px;max-width:320px;background:#fff;border:1px solid var(--line);border-radius:4px;box-shadow:0 10px 30px rgba(14,33,56,.18);padding:6px;font-family:var(--font-body)}
#devisRowMenu .drm-head{padding:8px 10px 9px;border-bottom:1px solid var(--line);margin-bottom:4px}
#devisRowMenu .drm-title{font-weight:600;font-size:.88rem;color:var(--ink);line-height:1.3}
#devisRowMenu .drm-meta{font-family:var(--font-mono);font-size:.7rem;color:var(--steel);margin-top:2px}
#devisRowMenu button{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:3px;padding:8px 10px;font-family:var(--font-body);font-size:.84rem;font-weight:500;color:var(--ink);cursor:pointer}
#devisRowMenu button:hover,#devisRowMenu button:focus-visible{background:var(--paper);outline:none}
#devisRowMenu button.drm-danger{color:var(--warn)}
#devisRowMenu button.drm-danger:hover{background:#FBEAE5}
/* Quantité, unité et nature lisibles en entier */
#espacePro #vueChiffrage .table-scroll table{min-width:1480px}
#espacePro #vueChiffrage #chiffListZone .table-scroll table{min-width:760px}
#espacePro th.col-qty{width:84px;min-width:84px}
#espacePro th.col-unit{width:112px;min-width:112px}
#espacePro th.col-nature{width:170px;min-width:170px}
#espacePro #fournituresBody td input[type=number]{min-width:64px}
#espacePro #fournituresBody td select{min-width:96px}
/* Taxe par nature dans le récapitulatif */
#espacePro .recap-cell .taxe-ligne{display:flex;justify-content:space-between;gap:10px;font-family:var(--font-mono);font-size:.8rem;color:var(--white);padding:2px 0}
#espacePro .recap-cell .taxe-ligne span:first-child{color:var(--sky)}
#espacePro .recap-cell .taxe-moy{display:block;font-family:var(--font-mono);font-size:.7rem;color:var(--metal);margin-top:4px;font-weight:400}
/* Notifications : le conteneur est ajouté au <body>, hors de #espacePro → styles globaux */
.toast-container{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:2000;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast-container .toast{background:#0E2138;color:#fff;padding:12px 22px;border-radius:4px;font-family:'Inter',sans-serif;font-size:.88rem;box-shadow:0 8px 24px rgba(0,0,0,.3);max-width:90vw;text-align:center;animation:toastIn .2s ease}
.toast-container .toast.error{background:#C4472A}
/* Barre d'onglets : passe à la ligne au lieu de cacher les derniers onglets (Pliage) hors écran */
#espacePro .view-toggle{flex-wrap:wrap;overflow-x:visible}
#espacePro .view-toggle button{flex:0 0 auto}
