.match-workflow{display:none}.match-filters{display:none}.mobile-match-actions{display:none}
@media(max-width:767px){
 #page-imports{padding-bottom:24px}
 #page-imports .results-head{align-items:flex-start;gap:12px;margin-bottom:12px}
 #page-imports .results-head>div:last-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-start}
 #page-imports .results-head .primary{min-height:44px;padding:10px 14px;font-size:13px}
 .match-workflow{display:block;margin:0 0 10px;padding:10px 13px;border:1px solid #dce7e2;border-radius:10px;background:#f4f8f6;color:#456359;font-size:13px;font-weight:700;line-height:1.4}
 .match-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 14px}
 .match-filters button{min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#436057;font:700 13px/1 var(--font,inherit);white-space:nowrap}
 .match-filters button.active{border-color:#9bc3b1;background:#edf6f1;color:var(--green)}
 .match-table-panel{overflow:visible;border:0;background:transparent;box-shadow:none}
 /* Neutralise la largeur intrinsèque du tableau desktop : sur mobile, il
    devient un conteneur d'une seule colonne pour les cartes. */
 .match-table{display:grid!important;grid-template-columns:minmax(0,1fr);width:100%!important;min-width:0!important;max-width:100%!important;border:0;table-layout:fixed}
 .match-table thead{display:none}
 .match-table tbody{display:grid!important;grid-template-columns:minmax(0,1fr);width:100%!important;min-width:0!important;max-width:100%!important;gap:12px}
 .match-table tr{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;width:100%;min-width:0!important;max-width:100%!important;padding:15px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow);box-sizing:border-box}
 .match-table tr.match-needs-review{border-color:#e8c986;background:#fffdf7}
 .match-table tr.hidden-by-filter{display:none!important}
 .match-table td{display:block;min-width:0;padding:0!important;border:0!important;background:transparent!important;white-space:normal!important;overflow:visible!important;text-align:left!important}
 .match-table td:nth-child(1),.match-table td:nth-child(2),.match-table td:nth-child(5),.match-table td:nth-child(6){grid-column:1/-1}
 .match-table td:nth-child(1):before,.match-table td:nth-child(2):before,.match-table td:nth-child(3):before,.match-table td:nth-child(4):before{display:block;margin-bottom:5px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.06em}
 .match-table td:nth-child(1):before{content:'LIGNE DÉTECTÉE'}
 .match-table td:nth-child(2):before{content:'CORRESPONDANCE PROPOSÉE'}
 .match-table td:nth-child(3):before{content:'QUANTITÉ'}
 .match-table td:nth-child(4):before{content:'PRIX UNITAIRE'}
 .invoice-label{width:100%;min-width:0;margin:0;padding:0;border:0;background:transparent;font-size:16px;line-height:1.3}
 .invoice-label:focus{padding:8px;margin:-8px;width:calc(100% + 16px)}
 .match-table td small{display:block;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4}
 .product-match{width:100%;min-width:0;min-height:44px;font-size:16px}
 .match-score{margin-top:6px!important;font-size:12px!important;line-height:1.4}
 .match-table td:nth-child(3),.match-table td:nth-child(4){padding:10px!important;border:1px solid #e2ebe6!important;border-radius:9px;background:#f8faf9!important;font-size:15px;font-weight:700}
 .match-table td:nth-child(4) b{font-size:15px}
 .confidence{display:inline-flex;flex-direction:row;align-items:center;gap:5px;padding:7px 10px;border-radius:999px;background:#f1f6f3;font-size:12px;font-weight:800}
 .confidence:before{content:'●';font-size:10px}.confidence small{display:inline;font-size:12px}
 .confidence.medium{background:#fff5df}.confidence.low{background:#fff0ec}
 .mobile-line-confirm{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:10px 12px;border:1px solid #b7d3c5;border-radius:9px;background:#f2f8f4;color:var(--green);font-size:14px;font-weight:800;cursor:pointer}
 .mobile-line-confirm.hidden{display:none!important}
 .mobile-line-confirm input{width:20px;height:20px;margin:0;accent-color:var(--green)}
 .mobile-line-confirm.is-confirmed{background:#e5f3eb;border-color:#82b89d}
 .line-confirm:not(.mobile-confirm-input){display:none}
 .match-table tr.excluded{opacity:.72}.match-table tr.excluded .mobile-line-confirm{display:none!important}
}
@media(max-width:390px){.match-table tr{padding:13px;gap:8px}}

@media(min-width:768px){.line-selection,.mobile-line-confirm{display:none}}

@media(max-width:767px){
 .mobile-line-confirm{position:relative;justify-content:flex-start!important;color:var(--green)!important}
 .mobile-line-confirm>span{display:none!important}
 .mobile-line-confirm:after{content:'Valider';display:block;color:var(--green);font:800 14px/1 'DM Sans',sans-serif}
 .mobile-line-confirm.is-confirmed:after{content:'Validée'}
}
@media(max-width:480px){
 .match-table tr{grid-template-columns:repeat(2,minmax(0,1fr))}
 .match-table td:nth-child(3),.match-table td:nth-child(4){grid-column:auto;width:auto}
 .match-table td:nth-child(3),.match-table td:nth-child(4){min-height:58px}
}

/* Cartes de rapprochement : même densité que les fiches de validation Admin. */
.mobile-match-metrics{display:none}@media(max-width:767px){.match-table tbody{gap:8px}.match-table tr{grid-template-columns:minmax(0,1fr);gap:7px;padding:11px 12px;border-radius:10px;box-shadow:none}.match-table td:nth-child(1),.match-table td:nth-child(2),.match-table td:nth-child(5),.match-table td:nth-child(6){grid-column:auto}.match-table td:nth-child(1):before,.match-table td:nth-child(2):before{margin-bottom:3px;font-size:8px}.match-table td:nth-child(3),.match-table td:nth-child(4){display:none!important}.invoice-label{font-size:14px;line-height:1.25}.match-table td small{font-size:10px;line-height:1.3}.product-match{min-height:36px;font-size:14px}.match-score{display:none!important}.mobile-match-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:7px}.mobile-match-metrics span{display:block;min-width:0;padding:7px 8px;border-radius:8px;background:#f6f9f7}.mobile-match-metrics em,.mobile-match-metrics b{display:block;overflow:hidden;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.mobile-match-metrics em{color:var(--muted);font-size:7px;font-weight:700}.mobile-match-metrics b{margin-top:2px;color:var(--ink);font-size:10px;line-height:1.15}.mobile-line-confirm{min-height:38px;padding:8px 10px;font-size:13px}.mobile-line-confirm input{width:18px;height:18px}.mobile-line-confirm:after{font-size:13px!important}}@media(max-width:390px){.match-table tr{padding:10px}.mobile-match-metrics{gap:5px}.mobile-match-metrics span{padding:6px}.mobile-match-metrics em{font-size:6.5px}.mobile-match-metrics b{font-size:9px}}
