/* M69 « Agent de négociation » N1 — session [MAILS], 04/10 (maquette validée par Omar) : liste (pastille, barre), fenêtre « Négociation », Configuration › Négociation */
:root { --ng-fond: #f5f6f8; --ng-bord: #e3e6ec; --ng-ligne: #eef0f3; --ng-t2: #5b6475; --ng-t3: #7a8394; --ng-carte: #fff; --ng-nous: #e8f0fc; --ng-mark: #fff3b0; --ng-seg: #e9ecf1; --ng-seg-on: #fff;
  --ng-bleu-bg: #e3edfb; --ng-bleu-tx: #1f4f8f; --ng-violet-bg: #efe7fb; --ng-violet-tx: #5a3fa0; --ng-vert-bg: #e3f4e8; --ng-vert-tx: #1a6e37; --ng-orange-bg: #fff1dd; --ng-orange-tx: #8a4b00;
  --ng-rouge-bg: #fdeceb; --ng-rouge-tx: #a52a1f; --ng-gris-bg: #eef1f5; --ng-gris-tx: #5b6475; --ng-rien-bg: #f3f4f7; --ng-rien-tx: #7a8394; --ng-warn-bg: #fff7e6; --ng-warn-tx: #6e3a00;
  --ng-onglet: #0a58c2; --ng-champ: #cfd5de; --ng-plancher: #d93025; }
:root[data-theme="dark"], .cit-theme-sombre { --ng-onglet: #9cc2ff; --ng-champ: #4a505c; --ng-plancher: #ff8a80;
  --ng-fond: #1b1e23; --ng-bord: #343842; --ng-ligne: #2c3038; --ng-t2: #a7aebb; --ng-t3: #8d95a3; --ng-carte: #1f2228; --ng-nous: #1d2a3f; --ng-mark: #5a4b12; --ng-seg: #2b2f37; --ng-seg-on: #3a3f49;
  --ng-bleu-bg: #1d3357; --ng-bleu-tx: #9cc2ff; --ng-violet-bg: #2e2650; --ng-violet-tx: #c6a6ff; --ng-vert-bg: #1d3a26; --ng-vert-tx: #8fd6a3; --ng-orange-bg: #3e2c12; --ng-orange-tx: #ffc27a;
  --ng-rouge-bg: #45201d; --ng-rouge-tx: #ff9b92; --ng-gris-bg: #2c3038; --ng-gris-tx: #c3c9d4; --ng-rien-bg: #25282e; --ng-rien-tx: #a7aebb; --ng-warn-bg: #3e2c12; --ng-warn-tx: #ffc27a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --ng-onglet: #9cc2ff; --ng-champ: #4a505c; --ng-plancher: #ff8a80; --ng-fond: #1b1e23; --ng-bord: #343842; --ng-ligne: #2c3038; --ng-t2: #a7aebb; --ng-t3: #8d95a3; --ng-carte: #1f2228; --ng-nous: #1d2a3f; --ng-mark: #5a4b12; --ng-seg: #2b2f37; --ng-seg-on: #3a3f49;
  --ng-bleu-bg: #1d3357; --ng-bleu-tx: #9cc2ff; --ng-violet-bg: #2e2650; --ng-violet-tx: #c6a6ff; --ng-vert-bg: #1d3a26; --ng-vert-tx: #8fd6a3; --ng-orange-bg: #3e2c12; --ng-orange-tx: #ffc27a;
  --ng-rouge-bg: #45201d; --ng-rouge-tx: #ff9b92; --ng-gris-bg: #2c3038; --ng-gris-tx: #c3c9d4; --ng-rien-bg: #25282e; --ng-rien-tx: #a7aebb; --ng-warn-bg: #3e2c12; --ng-warn-tx: #ffc27a; } }
.ng-pa { height: 19px; padding: 0 7px; border-radius: 10px; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ng-pa--bleu { background: var(--ng-bleu-bg); color: var(--ng-bleu-tx); } .ng-pa--violet { background: var(--ng-violet-bg); color: var(--ng-violet-tx); } .ng-pa--vert { background: var(--ng-vert-bg); color: var(--ng-vert-tx); }
.ng-pa--orange { background: var(--ng-orange-bg); color: var(--ng-orange-tx); } .ng-pa--rouge { background: var(--ng-rouge-bg); color: var(--ng-rouge-tx); } .ng-pa--gris { background: var(--ng-gris-bg); color: var(--ng-gris-tx); } .ng-pa--rien { background: var(--ng-rien-bg); color: var(--ng-rien-tx); }
.ng-muted { color: var(--ng-t3); } .ng-small { font-size: 11.5px; } .ng-pousse { flex-grow: 1; }
.ng-cell { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.2; } .ng-cell small { font-size: 10.5px; }
.ng-barre { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; font-size: 12px; }
.ng-barre__t { font-weight: 700; color: var(--ng-t2); } .ng-barre__r { margin-left: 4px; }
.ng-cpt { display: inline-flex; align-items: center; gap: 4px; } .ng-cpt b { font-size: 12px; }
/* fenêtre */
.ng-ov { position: fixed; inset: 0; z-index: 9998; background: rgba(28, 28, 30, .42); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ng-fen { width: 1180px; max-width: 96vw; height: 720px; max-height: 94vh; background: var(--cit-surface, #fff); color: var(--cit-text, #1c2330); border-radius: 14px; box-shadow: 0 24px 64px rgba(0, 0, 0, .35); display: flex; flex-direction: column; overflow: hidden; font-size: 13px; }
.ng-tete { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px 0; border-bottom: 1px solid var(--ng-bord); }
.ng-tete__l { min-width: 0; flex-grow: 1; } .ng-titre { font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-tete__p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; }
.ng-tabs { display: flex; gap: 2px; margin-top: 10px; }
.ng-tabs button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px 7px 0 0; font: inherit; font-size: 13px; background: transparent; color: var(--ng-t2); cursor: pointer; }
.ng-tabs button.is-on { background: var(--ng-nous); color: var(--ng-onglet); font-weight: 600; box-shadow: inset 0 -2px 0 #0a66d6; cursor: default; }   /* recette [BUREAU] 19:08 (a) : #0a58c2 de la planche */
.ng-corps { flex-grow: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; padding: 12px 14px; background: var(--ng-fond); }
.ng-col { overflow: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.ng-col h3, .ng-sec h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ng-t2); }
.ng-ev { display: flex; } .ng-ev--nous { justify-content: flex-end; }
.ng-b { max-width: 86%; background: var(--ng-carte); border: 1px solid var(--ng-bord); border-radius: 12px 12px 12px 4px; padding: 9px 12px; }
.ng-ev--nous .ng-b { background: var(--ng-nous); border-radius: 12px 12px 4px 12px; }
.ng-b__t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; } .ng-b__t b { font-size: 12px; }
.ng-b__x { font-size: 12.5px; margin-top: 5px; line-height: 1.45; overflow-wrap: anywhere; } .ng-b__x mark { background: var(--ng-mark); color: inherit; padding: 0 2px; border-radius: 3px; }
.ng-b__l { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; } .ng-lu { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ng-t2); flex-wrap: wrap; } .ng-lu b { color: var(--cit-text, #1c2330); }
.ng-lu--warn { color: var(--ng-warn-tx); } .ng-b__v { margin-top: 4px; }
.ng-lk { border: 0; background: none; color: var(--cit-accent, #0a58c2); font: inherit; font-size: 12px; cursor: pointer; padding: 0; text-decoration: none; }
.ng-sec { background: var(--ng-carte); border: 1px solid var(--ng-bord); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ng-sec__t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ng-t { width: 100%; border-collapse: collapse; font-size: 12.5px; } .ng-t th { text-align: left; padding: 6px 8px; font-size: 11.5px; font-weight: 600; color: var(--ng-t2); border-bottom: 1px solid var(--ng-bord); }
.ng-fen table.ng-t th, .ng-cfg table.ng-t th { font-size: 11.5px !important; color: var(--ng-t2) !important; font-weight: 600 !important; }   /* recette (c) : le style global des tableaux (12 px #636366) passait devant */
.ng-otel { display: none; background: var(--ng-carte); border-radius: 12px; padding: 10px 14px; }   /* planche NE_Tel : offres compactes (téléphone) */
.ng-otel table { width: 100%; border-collapse: collapse; font-size: 13px; } .ng-otel td { padding: 6px 0; } .ng-otel td:first-child { color: var(--ng-t3); } .ng-otel td + td { text-align: right; }
.ng-otel .ng-otel__pl td { color: var(--ng-plancher); }
.ng-t td { padding: 6px 8px; border-bottom: 1px solid var(--ng-ligne); } .ng-t .ng-r { text-align: right; font-variant-numeric: tabular-nums; }
.ng-plancher { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ng-t2); } .ng-plancher b { color: var(--cit-text, #1c2330); }
.ng-plancher__l { flex: 0 0 40px; border-top: 2px dashed var(--ng-plancher); }   /* N3 : planche NE_ContreOffre */
.ng-rouge { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; background: var(--ng-rouge-bg); color: var(--ng-rouge-tx); font-size: 12.5px; }
.ng-cr { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border: 1px solid var(--ng-champ); border-radius: 7px; background: var(--cit-surface, #fff); font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.ng-cr.is-on { border-color: #0a66d6; background: var(--ng-nous); } .ng-cr input { margin: 0; }
.ng-form--l { gap: 14px; } .ng-prix { width: 110px; height: 30px; box-sizing: border-box; border: 1px solid var(--ng-champ); border-radius: 7px; padding: 0 9px; font: inherit; font-size: 13px; background: var(--cit-surface, #fff); color: var(--cit-text, #1c2330); }
.ng-texte { border: 1px solid var(--ng-champ); border-radius: 8px; padding: 9px 11px; font-size: 13px; line-height: 1.6; background: var(--cit-surface, #fff); overflow-wrap: anywhere; }   /* N4-b, planches */
.ng-v { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--ng-nous); color: var(--ng-onglet); font-size: 12px; font-weight: 600; border: 1px dashed #0a66d6; }
.ng-ok { display: inline-flex; align-items: center; gap: 5px; color: #1a7f37; font-size: 12px; }
.ng-bt { height: 28px; padding: 0 10px; border-radius: 8px; font: inherit; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: var(--cit-surface, #fff); color: var(--cit-text, #1c2330); border: 1px solid var(--ng-champ); cursor: pointer; }
.ng-bt--lien { background: transparent; color: var(--ng-t2); border: 0; padding: 0 7px; } .ng-bt--pri { height: 32px; background: #0a66d6; color: #fff; border: 0; font-weight: 600; }
.ng-bt:disabled { opacity: .5; cursor: not-allowed; }
.ng-tech { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ng-t2); }
.ng-tech select { height: 30px; border: 1px solid var(--ng-champ); border-radius: 7px; background: var(--cit-surface, #fff); color: var(--cit-text, #1c2330); font: inherit; font-size: 12.5px; } .ng-note { padding: 8px 10px; border-radius: 8px; background: var(--ng-fond); font-size: 12px; line-height: 1.45; } .ng-note--warn { background: var(--ng-warn-bg); color: var(--ng-warn-tx); }
.ng-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ng-lab { font-size: 12px; color: var(--ng-t2); width: 62px; }
.ng-boutons { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .ng-boutons button:disabled { opacity: .55; cursor: not-allowed; }
.ng-pied { height: 52px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-top: 1px solid var(--ng-bord); background: var(--cit-surface2, #f7f7f9); }
.ng-mail { position: fixed; inset: 0; z-index: 99998; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ng-mail__b { width: min(900px, 96vw); height: min(80vh, 760px); background: var(--cit-surface, #fff); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 70px rgba(15, 23, 42, .35); }
.ng-mail__t { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--ng-bord); font-weight: 700; } .ng-mail__o { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-mail iframe { flex: 1; border: 0; width: 100%; background: #fff; }
/* configuration */
.ng-cfg { display: flex; flex-direction: column; gap: 12px; max-width: 1000px; padding: 4px 0; }
.ng-cfg__t { display: flex; align-items: flex-start; gap: 12px; font-size: 12.5px; line-height: 1.5; } .ng-cfg__t .btn { flex-shrink: 0; }
.ng-cfg__box { background: var(--cit-surface, #fff); border: 1px solid var(--ng-bord); border-radius: 12px; overflow: hidden; }
.ng-t--cfg th { padding: 8px 12px; font-size: 12px; } .ng-t--cfg td { height: 44px; padding: 0 12px; white-space: nowrap; }
.ng-seg { display: inline-flex; padding: 2px; border-radius: 7px; background: var(--ng-seg); }
.ng-seg button { height: 24px; padding: 0 9px; border: 0; border-radius: 5px; font: inherit; font-size: 12px; background: transparent; color: var(--ng-t2); cursor: pointer; }
.ng-seg button.is-on { background: var(--ng-seg-on); font-weight: 600; color: var(--cit-text, #1c2330); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); } .ng-seg button:disabled { cursor: default; }
.ng-in { width: 64px; height: 28px; border: 1px solid var(--ng-champ); border-radius: 6px; padding: 0 6px; background: var(--cit-surface, #fff); color: inherit; font: inherit; font-size: 12.5px; }
/* M86 « Envoyer la proposition » (planches NX_* validées le 05/10) : bulle du bouton, repère « Réponse ouverte », messages DANS la page, téléphone */
.ng-envoi { position: relative; display: inline-flex; }
.ng-bulle { display: none; position: absolute; right: 0; bottom: 40px; white-space: nowrap; padding: 6px 10px; border-radius: 7px; background: #1c2330; color: #fff; font-size: 12px; z-index: 5; pointer-events: none; }
.ng-envoi:hover .ng-bulle, .ng-envoi:focus-within .ng-bulle { display: block; }
.ng-ouverte { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; background: var(--ng-bleu-bg); color: var(--ng-bleu-tx); font-size: 12.5px; }
.ng-ouverte svg, .ng-msg svg, .ng-tel-envoi svg { flex-shrink: 0; } .ng-ouverte a { margin-left: auto; color: inherit; font-weight: 600; white-space: nowrap; }
.ng-msg { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 12.5px; }
.ng-msg--orange { background: var(--ng-orange-bg); color: var(--ng-orange-tx); } .ng-msg--rouge { background: var(--ng-rouge-bg); color: var(--ng-rouge-tx); }
.ng-envoi-msg:empty { display: none; }
.ng-tel-envoi { display: none; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--ng-seg); color: var(--ng-t2); font-size: 14px; }@media (max-width: 760px) {
  .ng-ov { padding: 0; } .ng-fen { max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .ng-corps { display: block; overflow: auto; } .ng-col { display: block; overflow: visible; min-height: auto; margin-bottom: 10px; } .ng-col > * + * { margin-top: 10px; } .ng-b { max-width: 94%; } .ng-tabs button { padding: 0 9px; font-size: 12.5px; }
  .ng-t--cfg td, .ng-t--cfg th { padding: 4px 8px; white-space: normal; }
  .ng-otel { display: block; } .ng-sec--offres { display: none; }
  .ng-envoi, .ng-envoi-msg, .ng-ouverte { display: none !important; } .ng-tel-envoi { display: flex; }   /* M86 planche NX_Tel : pas de bouton d'envoi au téléphone */   /* recette (e) : tableau des offres coupé à 390 -> offres compactes de NE_Tel */
}
