/* Développés — mise en page propre (le reste vient de ../cad/css/app.css) */
main.dev { grid-template-columns: minmax(380px, 34%) 1fr 330px; }
.centre { display: flex; flex-direction: column; padding: 8px; min-width: 0; min-height: 0; }
.centre { gap: 8px; }
.centre .vue { flex: 1; }
.centre .vue-titre b { color: var(--texte); font-weight: 600; }
.dev-groupe { margin: 6px 0 2px; padding: 6px 8px; background: #eef2f6; border-radius: 6px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dev-groupe small { color: var(--doux); font-weight: 400; margin-left: auto; }
.dev-ligne { display: grid; grid-template-columns: 22px 46px 1fr auto; gap: 6px; align-items: center; padding: 5px 6px; border-bottom: 1px solid #eef2f6; cursor: pointer; }
.dev-ligne:hover { background: #f8fafc; }
.dev-ligne.actif { background: var(--accent-clair); outline: 1px solid var(--accent); }
.dev-ligne .rep { font-weight: 700; }
.dev-ligne .des { font-size: 12.5px; line-height: 1.3; min-width: 0; }
.dev-ligne .des small { display: block; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etat { font-size: 11px; padding: 1px 6px; border-radius: 9px; white-space: nowrap; }
.etat.a-verifier { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.etat.verifie { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.etat.pret { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.verifier { width: 100%; margin: 6px 0 10px; }
.verifier.ok { background: #16a34a; border-color: #16a34a; color: #fff; }
.remarques-source { font-size: 12px; color: var(--doux); margin: 4px 0 8px; }
.debit-barre { padding: 16px; font-size: 15px; }
.debit-barre b { font-size: 18px; }
.toast-dev { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1d2530; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1200; max-width: 90vw; }
.toast-dev.erreur { background: #b42318; }
body.rs-has-bar { box-sizing: border-box; }

/* format de tôle et morceaux */
.barre-format { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; margin-bottom: 6px; border: 1px solid var(--bord); border-radius: 6px; font-size: 12.5px; }
.barre-format label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.barre-format button { margin-left: auto; }
.trop { color: #b42318; }
.dev-ligne .des small.trop { color: #b42318; }
.tole-ok { color: #166534; font-size: 12.5px; }
.bloc-morceaux { border: 1px solid var(--bord); border-radius: 6px; padding: 6px 10px 8px; margin: 4px 0 10px; background: #fafbfc; }
.bloc-morceaux h3 { margin: 2px 0 6px; }
.bloc-morceaux .alerte button { margin-top: 6px; }
.pas-parties { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.pas-parties span { flex: 1; }
.pas-parties button { width: 30px; padding: 2px 0; font-size: 16px; }
.pas-parties b { min-width: 76px; text-align: center; }
/* lignes de rappel : ce qui est décidé ailleurs (formats de tôle, machines), avec « Modifier » */
.barre-format { flex-direction: column; align-items: stretch; gap: 4px; }
.rappel { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.rappel b { min-width: 58px; }
.rappel .rappel-texte { color: var(--doux); }
.rappel button.lien, .bloc-fabrication button.lien, .bloc-controle button.lien { border: 0; background: none; padding: 0; color: var(--accent, #c2410c); font: inherit; text-decoration: underline; cursor: pointer; }
.rappel .tole-ok, .rappel .trop { margin-left: auto; }
.rappel button.ajuster { margin-left: 0; padding: 2px 8px; font-size: 12px; }
.bloc-morceaux button.changer-format { margin-top: 6px; }
/* Fabrication : la machine de chaque opération de la pièce (elle construit sa gamme) ; Contrôle : les cotes à contrôler,
   tolérances ISO 13920 (demande de Chris, 03/12/2026) */
.bloc-fabrication, .bloc-controle { border: 1px solid var(--bord); border-radius: 6px; padding: 6px 10px 8px; margin: 4px 0 10px; background: #fafbfc; }
.bloc-fabrication h3, .bloc-controle h3 { margin: 2px 0 6px; display: flex; align-items: center; gap: 6px; }
.fab-total { margin-left: auto; font-weight: 600; font-size: 13px; white-space: nowrap; }
.ctl-norme { margin-left: auto; font-weight: 400; font-size: 12.5px; color: #475569; white-space: nowrap; }
.fab-op { padding: 6px 0; border-top: 1px solid #eef1f4; }
.fab-tete { display: flex; gap: 2px; align-items: baseline; }
.fab-tete .fab-nom { flex: 1; }
.fab-op.depot-avant { box-shadow: inset 0 3px 0 #ea580c; }
.fab-op.depot-apres { box-shadow: inset 0 -3px 0 #ea580c; }
.fab-nom { font-weight: 600; font-size: 13px; }
.fab-temps { font-size: 12.5px; color: #475569; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fab-cout { color: #1c2430; }
.fab-poste { display: flex; gap: 6px; margin-top: 3px; }
.fab-poste select, .fab-poste input.poste, .ctl-norme select { font: inherit; padding: 4px 6px; border: 1px solid var(--bord); border-radius: 4px; background: #fff; }
.fab-poste select:focus, .fab-poste input.poste:focus, .ctl-norme select:focus { outline: 2px solid #fdba74; border-color: var(--accent); }
.ctl-norme select { padding: 1px 4px; font-size: 12.5px; }
.fab-poste select.poste, .fab-poste input.poste { flex: 1; min-width: 0; }
.fab-poste select.gaz { flex: none; width: auto; }
.fab-op.non .fab-nom { text-decoration: line-through; color: #94a3b8; }
.fab-trous { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 13px; cursor: pointer; }
.fab-trous input { margin: 0; }
.fab-op .alerte { margin-top: 4px; }
.fab-op details.bloc-decoupe { margin: 6px 0 0; }
.bloc-fabrication button.fab-gamme { margin-top: 6px; font-size: 13px; }
.ctl-pied button.lien { font-size: 13px; }
.ctl-cote { display: grid; grid-template-columns: 18px 40px 1fr auto 70px; gap: 6px; align-items: baseline; padding: 3px 0; border-top: 1px solid #eef1f4; font-size: 13px; cursor: pointer; }
.ctl-cote input { margin: 0; align-self: center; }
/* un contrôle après le débit, un après la mise en forme ; le repère de chaque cote (C1-A…) */
.ctl-phase { margin-top: 8px; padding: 2px 0; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #475569; }
.ctl-marque { font-weight: 700; font-size: 12px; color: #c2410c; white-space: nowrap; }
.ctl-cote.non .ctl-marque { color: #cbd5e1; font-weight: 400; }
.ctl-cote.non span { color: #94a3b8; }
.ctl-cote .ctl-nominal, .ctl-cote .ctl-tol { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* la tolérance d'une cote : celle de la classe en grisé, ou ce qu'on tape (« 3 », « 0 +2 ») */
.ctl-cote input.ctl-tol { width: 100%; min-width: 0; margin: 0; align-self: center; font: inherit; font-size: 12.5px; padding: 2px 5px; border: 1px solid var(--bord); border-radius: 4px; background: #fff; }
.ctl-cote input.ctl-tol:focus { outline: 2px solid #fdba74; border-color: var(--accent); }
.ctl-cote input.ctl-tol::placeholder { color: #64748b; }
.ctl-pied { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; border-top: 1px solid #eef1f4; padding-top: 4px; }
.barre-format button { margin-left: auto; }
/* tailles des tôles autour et des viroles en hauteur */
.tailles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 2px 8px; font-size: 12.5px; }
.tailles label { display: flex; align-items: center; gap: 4px; }
.tailles input { width: 78px; }
.note.inegales { color: #9a3412; }
/* fenêtre des formats de tôle avant l'envoi à l'imbrication */
.choix-formats { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.choix-formats > label { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tableau-formats { border-collapse: collapse; margin-left: 24px; font-size: 13px; }
.tableau-formats th, .tableau-formats td { text-align: left; padding: 4px 8px; border-bottom: 1px solid #eef2f6; }
.tableau-formats.inactif { opacity: .55; }

/* onglets de l'en-tête : Développés | Stock (gestion des chutes, ../cad/js/stock/vue.js) */
.dev-onglets { display: flex; gap: 2px; margin-left: 6px; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.dev-onglets button { font: inherit; font-size: 13px; padding: 5px 12px; border: 0; border-radius: 6px; background: none; color: #cbd5e1; cursor: pointer; }
.dev-onglets button:hover { color: #fff; }
.dev-onglets button.actif { background: #fff; color: #1d2530; font-weight: 600; }
main.dev[hidden] { display: none; }
main.dev-stock { display: block; overflow: auto; padding: 18px; background: #f1f5f9; }
main.dev-stock[hidden] { display: none; }
main.dev-stock > #stock, main.dev-stock > #machines, main.dev-stock > #gammes, main.dev-stock > #controles { background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 16px 18px; max-width: 1320px; margin: 0 auto; }
/* envoi à l'imbrication sans être connecté au forum : prévenu dans la fenêtre des formats */
.note-chutes { margin: 8px 0; font-size: 13px; color: #475569; }
.note-chutes[hidden] { display: none; }
.tableau-formats select { max-width: 420px; }
.note-connexion { margin: 8px 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }
