/* BDX — Fichiers d'impression par ligne de commande (admin + studio client) */
.bdx-of-front{margin-top:32px;padding-top:22px;border-top:1px solid #e5e7eb}
.bdx-of-front h2{font-size:18px;margin:0 0 6px}
.bdx-of-front-help{color:#6b7280;font-size:13px;margin:0 0 16px;line-height:1.5}
.bdx-of-line{border:1px solid #e2e4e7;border-radius:6px;padding:12px 14px;margin:0 0 12px;background:#fff}
.bdx-of-line:last-child{margin-bottom:0}
.bdx-of-head{font-weight:600;font-size:13px;color:#1d2327}
.bdx-of-qty{color:#787c82;font-weight:400}
.bdx-of-cfg{font-size:11px;color:#787c82;margin:3px 0 8px;line-height:1.5}
.bdx-of-files{margin:0 0 10px;padding:0;list-style:none}
.bdx-of-file{padding:6px 8px;border:1px solid #f0f0f1;border-radius:5px;margin-bottom:6px;background:#fafafa;font-size:13px}
.bdx-of-file-main{display:flex;align-items:center;gap:8px}
.bdx-of-file .dashicons-pdf{color:#d63638}
.bdx-of-dl{font-weight:600;text-decoration:none;flex:0 1 auto;word-break:break-all}
.bdx-of-meta{color:#787c82;font-size:11px;flex:1 1 auto}
.bdx-of-badge{color:#fff;font-size:10px;font-weight:600;padding:2px 7px;border-radius:10px;white-space:nowrap}
.bdx-of-btns{display:flex;gap:10px;flex:0 0 auto}
.bdx-of-report{margin:8px 0 2px;padding:8px 10px;background:#fff;border:1px dashed #dcdcde;border-radius:5px;font-size:12px}
.bdx-of-report.err{border-color:#f0b4b4;background:#fcf0f1;color:#b32d2e}
.bdx-of-thumb-link{display:block;margin-bottom:8px}
.bdx-of-thumb{max-width:130px;max-height:170px;border:1px solid #dcdcde;border-radius:4px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08);transition:transform .1s}
.bdx-of-thumb:hover{transform:scale(1.03)}
.bdx-of-cmyk{display:inline-block;font-weight:600;text-decoration:none;margin-bottom:6px;color:#2271b1}
.bdx-of-cmyk .dashicons{vertical-align:middle;margin-top:-2px}
.bdx-of-rep-t{font-weight:600;margin:4px 0 2px;color:#1d2327}
.bdx-of-rep{margin:0 0 4px 0;padding-left:18px}
.bdx-of-rep.warn li{color:#8a5a00}
.bdx-of-rep.fix li{color:#3c6e41}
.bdx-of-ok{color:#3c8c40;font-weight:600}
.bdx-of-btns .button-link{color:#2271b1;text-decoration:none;cursor:pointer;padding:0}
.bdx-of-btns .bdx-of-remove{color:#b32d2e}
.bdx-of-empty{color:#787c82;font-style:italic;font-size:12px;padding:4px 0}
.bdx-of-add{cursor:pointer}
.bdx-of-add .dashicons{vertical-align:middle;margin-top:-2px}
.bdx-of-status{margin-left:8px;font-size:12px;color:#3c8c40}
.bdx-of-status.err{color:#b32d2e}
/* BAT */
.bdx-of-summary{padding:8px 12px;margin:0 0 12px;background:#f6f7f7;border:1px solid #e2e4e7;border-radius:6px;font-size:13px}
.bdx-of-sum{font-weight:600}
.bdx-of-sum.all{color:#3c8c40}
.bdx-of-batline{display:inline-block;color:#fff;font-size:10px;font-weight:600;padding:2px 8px;border-radius:10px;margin-left:6px;vertical-align:middle}
.bdx-of-bat{margin-top:12px;padding:12px 14px;background:#fafafa;border:1px solid #e2e4e7;border-radius:10px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.bdx-of-bat-badge{color:#fff;font-size:12px;font-weight:700;padding:4px 12px;border-radius:20px}
.bdx-of-bat-meta{font-size:12px;color:#787c82}
.bdx-of-bat-btns{display:flex;gap:10px;margin-left:auto}
.bdx-of-bat-hint{font-size:12px;color:#b26a00;margin-left:auto;font-style:italic}
.bdx-of-bat-comment{flex-basis:100%;font-size:12.5px;color:#b32d2e;background:#fcf0f1;border:1px solid #f3c6c6;border-radius:6px;padding:8px 10px}
/* Gros boutons BAT visibles */
.bdx-of-bat-btns .bdx-of-bat-ok,.bdx-of-bat-btns .bdx-of-bat-ok.button{background:#16a34a!important;border:1px solid #16a34a!important;color:#fff!important;font-weight:700!important;font-size:13.5px!important;line-height:1.2!important;padding:10px 20px!important;height:auto!important;border-radius:8px!important;box-shadow:none!important;text-shadow:none!important;cursor:pointer}
.bdx-of-bat-btns .bdx-of-bat-ok:hover{background:#15803d!important}
.bdx-of-bat-btns .bdx-of-bat-no,.bdx-of-bat-btns .bdx-of-bat-no.button{background:#fff!important;border:1.5px solid #dc2626!important;color:#dc2626!important;font-weight:700!important;font-size:13.5px!important;line-height:1.2!important;padding:9px 18px!important;height:auto!important;border-radius:8px!important;box-shadow:none!important;text-shadow:none!important;cursor:pointer}
.bdx-of-bat-btns .bdx-of-bat-no:hover{background:#fef2f2!important}
/* Multi-visuel : quantité par visuel + répartition */
.bdx-of-qtybox{font-size:11px;color:#50575e;white-space:nowrap}
.bdx-of-qty-input{width:78px;padding:2px 6px;font-size:13px;margin-left:2px}
.bdx-of-split{margin:0 0 10px;padding:7px 11px;border-radius:6px;font-size:12.5px}
.bdx-of-split.ok{background:#edf7ed;border:1px solid #cbe6cb;color:#2f6b33}
.bdx-of-split.bad{background:#fff4e5;border:1px solid #f3d9a8;color:#8a5a00}
.bdx-of-split-warn{color:#b26a00;font-weight:600}
/* Transmission Print (dry-run) */
.bdx-tx{margin-top:10px;padding-top:10px;border-top:1px dashed #e2e4e7}
.bdx-tx-done{color:#3c8c40;font-weight:600;font-size:12.5px}
.bdx-tx-gate{color:#787c82;font-size:12px;font-style:italic}
.bdx-tx-status{margin-left:8px;font-size:12px}
.bdx-tx-status.ok{color:#2f7d33}
.bdx-tx-status.err{color:#b32d2e}
.bdx-tx-notes{color:#8a5a00;font-size:12px;margin:8px 0;line-height:1.5}
.bdx-tx-payload pre{background:#1d2327;color:#c3f0c8;font-size:11px;padding:10px;border-radius:6px;overflow:auto;max-height:300px;white-space:pre-wrap;word-break:break-word;margin:8px 0 0}
/* Encart état paiement / compte / transmission */
.bdx-tx-gate-info{display:flex;flex-wrap:wrap;gap:6px 12px;margin:0 0 8px;font-size:12px}
.bdx-tx-pay,.bdx-tx-acct{font-weight:600;line-height:1.4}
.bdx-tx-pay.ok{color:#2f7d33}
.bdx-tx-pay.no{color:#c07600}
.bdx-tx-acct.account{color:#1d6fb8}
.bdx-tx-acct.pro,.bdx-tx-acct.part{color:#50575e;font-weight:500}
.bdx-tx-acct.guest{color:#787c82;font-weight:500;font-style:italic}
.bdx-tx-line{margin:0 0 6px;font-size:12.5px}
.bdx-tx-error{color:#b32d2e;font-weight:600;font-size:12.5px}
/* Colonne liste des commandes */
.bdx-txcol{font-size:12px;font-weight:600;white-space:nowrap}
.bdx-txcol.ok{color:#2f7d33}
.bdx-txcol.err{color:#b32d2e}
.bdx-txcol.todo{color:#c07600}
.bdx-txcol.wait,.bdx-txcol.none{color:#787c82;font-weight:500}

/* « Commander à nouveau » (page commande du compte) */
.bdx-reorder{margin:24px 0;padding:18px 20px;border:1px solid #e2e4e7;border-radius:10px;background:#fafbfc}
.bdx-reorder h2{margin:0 0 4px;font-size:18px}
.bdx-reorder-help{margin:0 0 14px;color:#50575e;font-size:13px;line-height:1.5}
.bdx-reorder-actions{display:flex;flex-wrap:wrap;gap:10px}
.bdx-reorder-btn{cursor:pointer}
.bdx-reorder-btn[disabled]{opacity:.55;cursor:progress}
.bdx-reorder-msg{margin-top:12px;font-size:13px;line-height:1.5;min-height:1em}
.bdx-reorder-msg.ok{color:#2f7d33}
.bdx-reorder-msg.err{color:#b32d2e}

/* ── Frise de suivi production/livraison par ligne (admin + client) ── */
.bdx-of-steps{display:flex;align-items:flex-start;margin:14px 0 6px}
.bdx-of-step{flex:1;display:flex;flex-direction:column;align-items:center;min-width:0}
.bdx-of-step-rail{display:flex;align-items:center;width:100%}
.bdx-of-step-line{height:2px;flex:1;background:#d8dade}
.bdx-of-step-line.done{background:#3c8c40}
.bdx-of-step.first .bdx-of-step-line.left{background:transparent}
.bdx-of-step.last .bdx-of-step-line.right{background:transparent}
.bdx-of-step-dot{width:30px;height:30px;border-radius:50%;flex:0 0 auto;display:flex;align-items:center;justify-content:center;background:transparent;border:2px solid #d1d5db;box-sizing:border-box}
.bdx-of-step-dot .dashicons{font-size:17px;width:17px;height:17px;line-height:17px;color:#9ca3af}
.bdx-of-step.done .bdx-of-step-dot{background:#3c8c40;border-color:#3c8c40}
.bdx-of-step.done .bdx-of-step-dot .dashicons{color:#fff}
.bdx-of-step.current .bdx-of-step-dot{background:#FCAF3B;border-color:#FCAF3B;box-shadow:0 0 0 3px #fdebc8}
.bdx-of-step.current .bdx-of-step-dot .dashicons{color:#6b4a00}
.bdx-of-step.problem .bdx-of-step-dot{background:#b32d2e;border-color:#b32d2e}
.bdx-of-step.problem .bdx-of-step-dot .dashicons{color:#fff}
.bdx-of-step-label{font-size:12px;line-height:1.25;text-align:center;margin-top:7px;color:#9ca3af;padding:0 4px}
.bdx-of-step.done .bdx-of-step-label,.bdx-of-step.current .bdx-of-step-label,.bdx-of-step.problem .bdx-of-step-label{color:#1f2937}
.bdx-of-step.current .bdx-of-step-label{font-weight:600}
.bdx-of-step-date{font-size:11px;color:#6b7280;margin-top:2px;text-align:center}
.bdx-of-step.todo .bdx-of-step-date{color:#9ca3af}
.bdx-of-track{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin:8px 0 2px;border-top:1px solid #eef0f2;padding-top:10px}
.bdx-of-track a{display:inline-flex;align-items:center;gap:5px;color:#1d6ad6;text-decoration:none;font-size:13px;font-weight:600}
.bdx-of-track a .dashicons{font-size:17px;width:17px;height:17px;line-height:17px}
.bdx-of-track-num{font-size:12px;color:#6b7280}
@media(max-width:600px){
  .bdx-of-step-label{font-size:11px}
  .bdx-of-step-dot{width:26px;height:26px}
  .bdx-of-step-dot .dashicons{font-size:15px;width:15px;height:15px;line-height:15px}
}

/* ── Badge d'étape dans la liste « Mes commandes » (colonne Suivi) ── */
.woocommerce-orders-table__cell-bdx-suivi,.woocommerce-orders-table__header-bdx-suivi{white-space:nowrap}
.bdx-of-listbadge{display:inline-block;line-height:1.35;vertical-align:middle}

/* ── Contrôles admin de transition d'étape (sous la frise) ── */
.bdx-of-stage-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 2px;padding-top:8px;border-top:1px dashed #e2e4e7}
.bdx-of-stage-ctl-lbl{font-size:12px;color:#646970;font-weight:600}
.bdx-of-stage-btns{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.bdx-of-stage-undo{color:#b32d2e !important;font-size:12px}
.bdx-of-stage-status{font-size:12px;color:#2f7d33;margin-left:4px}
.bdx-of-stage-status.err{color:#b32d2e}
.bdx-of-ship-form{flex-basis:100%;margin-top:8px;padding:10px 12px;background:#f6f7f8;border:1px solid #e2e4e7;border-radius:8px}
.bdx-of-ship-form:not([hidden]){display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.bdx-of-ship-form label{display:flex;flex-direction:column;font-size:11px;color:#646970;gap:3px}
.bdx-of-ship-form input{min-width:170px}
