/* WorkToolset Lot 12 — Batch quality controls. Scoped to Batch Workflow Runner. */
.batch-workspace .bwf-quality{margin:18px 0;padding:18px;border:1px solid rgba(38,117,214,.23);background:linear-gradient(145deg,rgba(32,108,198,.075),rgba(21,169,169,.04));border-radius:18px;min-width:0}
.batch-workspace .bwf-quality-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.batch-workspace .bwf-quality-head>div{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.batch-workspace .bwf-quality-head strong{font-size:1.03rem;line-height:1.35}
.batch-workspace .bwf-quality-head small{color:var(--muted,#68768c);line-height:1.5}
.batch-workspace .bwf-pro-enable{display:flex;gap:10px;align-items:center;font-weight:650;margin:12px 0;padding:9px 11px;border-radius:10px;background:rgba(60,125,180,.06)}
.batch-workspace .bwf-quality input[type=checkbox]{width:18px;height:18px;accent-color:#147fc9;flex-shrink:0}
.batch-workspace .bwf-pro-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 16px}
.batch-workspace .bwf-pro-grid label{display:flex;min-width:0;flex-direction:column;gap:7px;font-size:.86rem;line-height:1.4;font-weight:600}
.batch-workspace .bwf-pro-grid input[type=checkbox]{margin-top:5px}
.batch-workspace .bwf-pro-grid input[type=number]{width:100%;min-width:0;max-width:100%;height:42px;padding:9px 10px;border:1px solid var(--border,#cbd5e1);border-radius:10px;background:var(--surface,#fff);color:inherit;font:inherit}
.batch-workspace .bwf-quality .action-row{display:flex;flex-wrap:wrap;gap:10px}
.batch-workspace .bwf-quality .mini-button{min-height:40px;white-space:normal;text-align:center}
.batch-workspace .bwf-demo{margin:11px 0 16px;display:flex;align-items:flex-start;flex-direction:column;gap:6px}
.batch-workspace .bwf-demo .mini-button{min-height:43px}
.batch-workspace .bwf-demo .field-help{max-width:100%;overflow-wrap:anywhere}
.batch-workspace .bwf-quality .field-help{line-height:1.5}
@media(max-width:720px){.batch-workspace .bwf-quality{padding:13px;margin:14px 0}.batch-workspace .bwf-pro-grid{grid-template-columns:minmax(0,1fr)}.batch-workspace .bwf-quality-head{align-items:stretch}.batch-workspace .bwf-quality .mini-button{max-width:100%}}
/* Évite les grandes zones vides créées par .result-panel dans le thème général. */
.batch-workspace #bwfWorkflowInfo,.batch-workspace #bwfPresets{min-height:0;height:auto;max-height:190px;overflow:auto;padding:0}
.batch-workspace #bwfWorkflowInfo .empty-state,.batch-workspace #bwfPresets .empty-state{min-height:0;padding:14px 12px}
.batch-workspace #bwfWorkflowInfo .batch-workflow-card{min-height:0}
.batch-workspace .batch-control-panel{min-width:0}
.batch-workspace .batch-control-panel .field,.batch-workspace .batch-control-panel .action-row{min-width:0}
.batch-workspace .batch-control-panel .mini-button{overflow-wrap:anywhere}
@media(max-width:420px){.batch-workspace #bwfReport .data-table{min-width:490px}.batch-workspace .bwf-quality .action-row .mini-button{flex:1 1 130px}}
.batch-workspace{min-width:0}
.batch-workspace>section{min-width:0}
.batch-workspace .bwf-quality-head,.batch-workspace .bwf-quality-head small,.batch-workspace .bwf-pro-enable,.batch-workspace .bwf-quality .field-help{overflow-wrap:anywhere;white-space:normal}
.batch-workspace .bwf-quality .bwf-pro-grid input{box-sizing:border-box}
.batch-workspace .batch-preview,.batch-workspace #bwfReport{max-width:100%;overflow-x:auto}
@media(max-width:600px){.batch-workspace .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-workspace .metric-grid .metric-card:last-child{grid-column:1/-1}.batch-workspace .batch-control-panel .action-row>.mini-button{flex:1 1 118px}.batch-workspace .bwf-quality .action-row>.mini-button,.batch-workspace .bwf-quality .action-row>label{flex:1 1 130px}.batch-workspace .drop-zone{padding:16px 8px}.batch-workspace .drop-zone input[type=file]{font-size:11px}}
