/* Import en masse de QA depuis Excel (qa_import.js) — fenêtre bâtie sur .zones-ov */
.qi-box { max-width: 1180px; }
.qi-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--fg); }
.qi-etapes { margin-left: auto; display: flex; gap: 10px; font-weight: 500; font-size: .74rem; }
.qi-etapes span { opacity: .45; }
.qi-etapes span.fait { opacity: .75; }
.qi-etapes span.on { opacity: 1; border-bottom: 2px solid var(--red); }
.qi-ligne { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.qi-ligne label { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--fg2); }
.qi-fichier { cursor: pointer; border: 1px dashed var(--red2); border-radius: 7px; padding: 7px 14px; background: var(--bg2); }
.qi-fichier:hover { border-style: solid; }
.qi-aide { margin: 0 0 10px; color: var(--fg3); }
.qi-note { font-size: .72rem; color: var(--fg3); font-style: italic; }
.qi-scroll { max-height: 52vh; overflow: auto; border: 1px solid var(--border); border-radius: 6px; }
.qi-scroll-haut { max-height: 58vh; }
.qi-tbl { width: 100%; border-collapse: collapse; font-size: .76rem; }
.qi-tbl th { position: sticky; top: 0; z-index: 1; background: var(--bg3); text-align: left; padding: 5px 7px; font-weight: 600; white-space: nowrap; }
.qi-tbl td { padding: 4px 7px; border-top: 1px solid var(--border); vertical-align: top; }
.qi-tbl tr.inconnue td:first-child { color: #B45309; font-weight: 600; }
.qi-tbl tr.ok td:first-child { color: var(--fg); }
.qi-tbl tr.att td { background: #FFF7E6; }
.qi-tbl tr.err td { background: #FDECEA; color: var(--fg3); }
.qi-tbl select.ctrl { max-width: 280px; font-size: .74rem; }
.qi-ex { color: var(--fg3); max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qi-apercu td small { color: var(--fg3); }
.qi-alertes { font-size: .7rem; color: var(--fg3); min-width: 180px; }
.qi-rouge { color: var(--red2); }
.qi-ambre { color: #B45309; }
.qi-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .qi-contacts { grid-template-columns: 1fr; } }
.qi-contact { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--bg2); }
.qi-contact h4 { margin: 0 0 8px; font-size: .86rem; color: var(--fg); }
.qi-compte { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.qi-compte .qi-cherche { width: 100%; }
.qi-chip { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 3px 6px 3px 10px; font-size: .74rem; }
.qi-chip button { border: 0; background: none; cursor: pointer; color: var(--fg3); }
.qi-chip button:hover { color: var(--red); }
.qi-res { position: absolute; top: 100%; left: 0; right: 0; z-index: 3; background: #fff; border: 1px solid var(--border); border-radius: 6px;
          box-shadow: 0 6px 18px rgba(0,0,0,.14); max-height: 240px; overflow-y: auto; }
.qi-res:empty { display: none; }
.qi-res button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 10px; font: inherit; font-size: .74rem; cursor: pointer; }
.qi-res button:hover { background: var(--bg3); }
.qi-res .qi-note { display: block; padding: 6px 10px; }
.qi-form { width: 100%; border-collapse: collapse; }
.qi-form td { padding: 2px 0; font-size: .76rem; }
.qi-form td:first-child { width: 38%; color: var(--fg2); padding-right: 8px; }
.qi-form input { width: 100%; box-sizing: border-box; font-size: .76rem; }
.qi-form input::placeholder { font-size: .7rem; font-style: italic; }
.qi-modes { padding: 8px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; }
.qi-modes label { font-weight: 600; cursor: pointer; }
.qi-chg { font-size: .72rem; min-width: 320px; }
.qi-chg s { color: var(--fg4); }
