/* Administration › Import de données (maquette « Import-donnees-avant-apres-v1 » validée le 19/11/2026). */
.imp-info{margin:6px 0 8px}
.imp-cadre{padding:8px 12px;margin-bottom:8px}
.imp-ti{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:1px;font-size:13px;margin-bottom:6px}
.imp-ti small{font-weight:400;letter-spacing:0;color:var(--muted);font-size:12px}
.imp-tuiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.imp-tu{border:0;border-radius:10px;padding:6px 10px;color:#fff;text-align:left;cursor:pointer;min-height:48px;
  background:linear-gradient(135deg,#0891b2,#7c3aed)}
.imp-tu b{display:block;font-size:13.5px}.imp-tu span{font-size:12px;opacity:.92}
.imp-tu.sel{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 0 0 2px #fde68a inset}
.imp-deux{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8px}
.imp-lig{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:5px}
.imp-lig input[type=file]{max-width:240px}
.imp-ok{color:#4ade80;font-size:12.5px;margin-bottom:4px}
.imp-a-f{color:#fbbf24}
.imp-table{max-height:min(38vh,330px);overflow:auto}
.imp-table .select{min-height:28px;padding:2px 6px;font-size:12.5px}
.imp-valeurs{margin-top:6px;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;font-size:12.5px}
.imp-valeurs b{flex-basis:100%}
.imp-chiffres{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:6px}
.imp-ch{border-radius:9px;border:1px solid var(--line);padding:5px 8px;background:transparent;text-align:left;cursor:pointer;color:var(--muted)}
.imp-ch b{display:block;font:800 19px Consolas,"Liberation Mono",monospace}
.imp-ch span{font-size:12px;display:block;line-height:1.25}
.imp-ch.on{outline:2px solid #fbbf24}
.imp-ch.v b{color:#4ade80}.imp-ch.o b{color:#fbbf24}.imp-ch.c b{color:#22d3ee}.imp-ch.r b{color:#f87171}
.imp-barre{display:flex;height:12px;border-radius:6px;overflow:hidden;margin:0 0 6px;background:var(--line)}
.imp-barre i{display:block}.imp-barre i.v{background:#22c55e}.imp-barre i.o{background:#f59e0b}.imp-barre i.c{background:#06b6d4}.imp-barre i.r{background:#ef4444}
.imp-lignes{max-height:min(26vh,230px)}
.imp-bas{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}
.imp-trouvees{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.imp-annuler{border-color:#f59e0b;color:#fbbf24}
.vide-point{color:var(--muted);opacity:.6}
html[data-style="clair"] .imp-ok{color:#15803d}html[data-style="clair"] .imp-a-f,html[data-style="clair"] .imp-annuler{color:#b45309}
html[data-style="clair"] .imp-ch.v b{color:#15803d}html[data-style="clair"] .imp-ch.o b{color:#b45309}
html[data-style="clair"] .imp-ch.c b{color:#0e7490}html[data-style="clair"] .imp-ch.r b{color:#b91c1c}
@media (max-width:1100px){.imp-tuiles{grid-template-columns:repeat(3,minmax(0,1fr))}.imp-deux{grid-template-columns:1fr}}
@media (max-width:640px){.imp-tuiles{grid-template-columns:repeat(2,minmax(0,1fr))}.imp-chiffres{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Mise en page sans défilement (19/11/2026) : cadres en colonne, listes qui défilent à l'intérieur. */
@media (min-width:1101px){
  .imp-deux{min-height:0}
  .imp-deux>.imp-cadre{display:flex;flex-direction:column;min-height:0;overflow:hidden;margin-bottom:0}
  .imp-deux [data-carte]{display:flex;flex-direction:column;min-height:0;flex:1}
  .imp-deux [data-carte] .imp-table{flex:1;max-height:none;min-height:60px}
  .imp-deux [data-apercu] .imp-lignes{flex:1;max-height:none;min-height:60px}
  [data-lots] .imp-table{max-height:104px}
}
.imp-deux{margin-bottom:8px}
.imp-lig .select{width:230px;min-height:32px;padding:4px 8px}
.imp-choisir{display:inline-flex;align-items:center;gap:6px;cursor:pointer;min-height:32px;max-width:260px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.imp-lig .btn{min-height:32px}
.imp-table table{table-layout:fixed;width:100%}
.imp-table td{overflow-wrap:anywhere;padding-top:2px;padding-bottom:2px}
.imp-valeurs{max-height:96px;overflow:auto}
.imp-valeurs label{display:inline-flex;align-items:center;gap:6px}
.imp-valeurs .select{width:190px;min-height:28px;padding:2px 6px}
.imp-bas{flex-wrap:nowrap}.imp-bas .btn{white-space:nowrap}
[data-lots] th:nth-child(1){width:128px}[data-lots] th:nth-child(5),[data-lots] th:nth-child(6),[data-lots] th:nth-child(7){width:84px}
[data-lots] th:nth-child(8){width:94px}[data-lots] th:nth-child(9){width:150px}
.imp-lig{flex-wrap:nowrap}.imp-lig .select{width:200px}.imp-choisir{max-width:230px}
.imp-table td,.imp-table th{white-space:normal;text-overflow:clip}
.imp-c-ligne{width:52px}.imp-c-soc{width:38%}
.imp-petit{font-size:12px}
body[data-admin] #page .imp-table td,body[data-admin] #page .imp-table th{white-space:normal;max-width:none;text-overflow:clip}
.import-fiches-case{white-space:nowrap;flex:0 0 auto}
/* Réponse 54 A (19/11/2026) : listes ouvertes à la place du tableau, réglages des fiches dans le cadre 3. */
.imp-retour{display:flex;align-items:center;gap:10px;margin:2px 0 4px;font-size:12.5px}
.imp-retour a{white-space:nowrap}
.imp-feuille{width:auto;max-width:220px;min-height:28px;padding:2px 6px}
.imp-reglages{margin-top:6px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.imp-reglages label{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--muted);min-width:0}
.imp-reglages .select{width:100%;min-width:0;min-height:30px;padding:3px 6px}.imp-reglages .obligatoire{color:#ef4444}
.imp-lig .imp-gabarit{width:auto;max-width:260px;min-height:28px;padding:2px 6px}
.imp-reglages label>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:1101px){.imp-deux [data-apercu] .imp-lignes{min-height:24px}.imp-deux [data-apercu] .warning{margin:0 0 6px;padding:4px 9px}}
.imp-ti small.imp-deja{color:#fbbf24;margin-left:auto}html[data-style="clair"] .imp-ti small.imp-deja{color:#b45309}
.imp-ti{white-space:nowrap}.imp-ti small{white-space:nowrap}
