/* Dynaparts 2026-10-15 : historique des commandes (history.tpl), détail de commande (order-detail.tpl, chargé en AJAX
   dans l'historique ou seul) et bloc des délais (deliverydelayclient). Même langage que dp-account.css :
   rouge #e9271a, anthracite #282b2f, titres DP Saira italique, cartes arrondies. Chargé par header.tpl. */

.dp-ord, .dp-od { color: #282b2f; }
.dp-ord *, .dp-od * { box-sizing: border-box; }
.dp-ord { max-width: 1100px; margin: 0 auto; }

/* En-tête */
.dp-ord-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 6px 0 22px; }
.dp-ord-head__text { flex: 1 1 360px; min-width: 0; }
.dp-ord-head__kicker,
.dp-od-head__kicker,
.dp-od-eta__kicker { margin: 0 0 6px; color: #e9271a; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dp-ord-head .page-heading {
  margin: 0; padding: 0; border: 0; color: #282b2f;
  font-family: 'DP Saira', Verdana, Geneva, sans-serif; font-size: 36px; font-style: italic; font-weight: 800; line-height: 1.05; text-transform: uppercase;
}
.dp-ord-head__lead { margin: 10px 0 0; color: #5d636a; font-size: 15px; }

/* Recherche */
.dp-ord-search { position: relative; display: flex; align-items: center; flex: 0 1 420px; min-width: 260px; margin: 0; }
.dp-ord-search > .fa-search { position: absolute; left: 15px; color: #8a9097; font-size: 15px; pointer-events: none; }
.dp-ord-search input[type="search"] {
  flex: 1 1 auto; width: 100%; min-width: 0; height: 46px; margin: 0; padding: 0 44px 0 40px;
  border: 1.5px solid #dfe2e6; border-right: 0; border-radius: 10px 0 0 10px; background: #ffffff; color: #282b2f; font-size: 14px;
  box-shadow: none; -webkit-appearance: none; appearance: none;
}
.dp-ord-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.dp-ord-search input[type="search"]:focus { border-color: #282b2f; outline: none; }
.dp-ord-search__clear { position: absolute; right: 108px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: #8a9097; }
.dp-ord-search__clear:hover { color: #e9271a; }
.dp-ord-search__btn {
  flex: 0 0 auto; height: 46px; padding: 0 18px; border: 0; border-radius: 0 10px 10px 0; background: #282b2f; color: #ffffff;
  font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; cursor: pointer;
}
.dp-ord-search__btn:hover, .dp-ord-search__btn:focus { background: #e9271a; }
.dp-ord-results { margin: -8px 0 18px; color: #5d636a; font-size: 14px; }
.dp-ord-results a { margin-left: 8px; color: #e9271a; font-weight: 700; }

/* Boutons */
.dp-ord-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin: 0; padding: 0 16px;
  border: 1.5px solid #dfe2e6; border-radius: 10px; background: #ffffff; color: #282b2f;
  font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.dp-ord-btn:hover, .dp-ord-btn:focus { border-color: #282b2f; color: #282b2f; text-decoration: none; }
.dp-ord-btn > .fa { font-size: 15px; }
.dp-ord-btn--primary { border-color: #e9271a; background: #e9271a; color: #ffffff; text-transform: uppercase; }
.dp-ord-btn--primary:hover, .dp-ord-btn--primary:focus { border-color: #c41f13; background: #c41f13; color: #ffffff; }
.dp-ord-btn--dark { border-color: #282b2f; background: #282b2f; color: #ffffff; }
.dp-ord-btn--dark:hover, .dp-ord-btn--dark:focus { border-color: #e9271a; background: #e9271a; color: #ffffff; }
.dp-ord-btn--link { border-color: transparent; background: transparent; padding: 0 8px; }
.dp-ord-btn--link:hover, .dp-ord-btn--link:focus { border-color: transparent; color: #e9271a; }
.dp-ord-btn--ghost { border-style: dashed; cursor: default; }

/* Statut */
.dp-ord-status {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: #f3f4f6; color: #282b2f; font-size: 12.5px; font-weight: 700; line-height: 1.25;
}
.dp-ord-status::before {
  content: ""; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--dp-st, #8a9097); box-shadow: 0 0 0 1px rgba(40, 43, 47, .18);
}

/* Liste */
.dp-ord-list { display: flex; flex-direction: column; gap: 16px; margin: 0 0 26px; padding: 0; list-style: none; }
.dp-ord-card {
  margin: 0; padding: 20px 22px; border: 1px solid #dfe2e6; border-radius: 16px; background: #ffffff;
  box-shadow: 0 10px 30px rgba(40, 43, 47, .05); transition: border-color .15s ease, box-shadow .15s ease;
}
.dp-ord-card:hover { border-color: #c9cdd2; box-shadow: 0 14px 34px rgba(40, 43, 47, .09); }
.dp-ord-card.is-open { border-color: #282b2f; }
.dp-ord-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dp-ord-card__id { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.dp-ord-card__ref { font-family: 'DP Saira', Verdana, Geneva, sans-serif; font-size: 22px; font-style: italic; font-weight: 800; letter-spacing: .02em; line-height: 1.1; text-transform: uppercase; }
.dp-ord-card__date { margin-top: 3px; color: #5d636a; font-size: 13px; }
.dp-ord-card__total { font-family: 'DP Saira', Verdana, Geneva, sans-serif; font-size: 22px; font-style: italic; font-weight: 800; white-space: nowrap; }
.dp-ord-card__body { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eef0f2; }

.dp-ord-items { display: flex; align-items: center; gap: 14px; flex: 1 1 320px; min-width: 0; }
.dp-ord-thumbs { display: flex; flex: 0 0 auto; }
.dp-ord-thumb {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-left: -10px; overflow: hidden;
  border: 2px solid #ffffff; border-radius: 12px; background: #f3f4f6; box-shadow: 0 0 0 1px #dfe2e6; color: #b5bac0; font-size: 20px;
}
.dp-ord-thumb:first-child { margin-left: 0; }
.dp-ord-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; background: #ffffff; }
.dp-ord-thumb--more { background: #282b2f; box-shadow: none; color: #ffffff; font-size: 14px; font-weight: 700; }
.dp-ord-items__text { display: flex; flex-direction: column; min-width: 0; }
.dp-ord-items__name { overflow: hidden; color: #282b2f; font-size: 14.5px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dp-ord-items__meta { margin-top: 3px; color: #5d636a; font-size: 13px; }

.dp-ord-card__info { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dp-ord-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
  background: #f3f4f6; color: #282b2f; font-size: 13.5px; line-height: 1.3; text-decoration: none;
}
.dp-ord-chip > .fa { color: #e9271a; font-size: 16px; }
.dp-ord-chip--eta { background: #fdecea; }
a.dp-ord-chip:hover, a.dp-ord-chip:focus { background: #282b2f; color: #ffffff; text-decoration: none; }
a.dp-ord-chip:hover > .fa, a.dp-ord-chip:focus > .fa { color: #ffffff; }

.dp-ord-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.dp-ord-toggle { order: 9; }
.dp-ord-toggle > .fa { font-size: 18px; transition: transform .2s ease; }
.dp-ord-toggle__close { display: none; }
.dp-ord-card.is-open .dp-ord-toggle { border-color: #282b2f; background: #282b2f; }
.dp-ord-card.is-open .dp-ord-toggle__open { display: none; }
.dp-ord-card.is-open .dp-ord-toggle__close { display: inline; }
.dp-ord-card.is-open .dp-ord-toggle > .fa { transform: rotate(180deg); }
.dp-ord-card__detail { margin: 18px -22px -20px; padding: 22px; border-top: 1px solid #dfe2e6; border-radius: 0 0 16px 16px; background: #f7f8f9; }
.dp-ord-card__detail[hidden] { display: none; }
.dp-ord-card__detail #block-order-detail { margin: 0; }
/* détail ouvert sous la carte : référence, boutons et frise sont déjà sur la carte */
.dp-ord-card__detail .dp-od-head,
.dp-ord-card__detail .dp-od > .dp-prog { display: none; }
.dp-ord-loading { margin: 0; padding: 30px 0; color: #8a9097; font-size: 26px; text-align: center; }

/* Suivi en 4 étapes */
.dp-prog { display: flex; margin: 0; padding: 0; list-style: none; counter-reset: dpprog; }
.dp-prog__step { position: relative; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; text-align: center; }
.dp-prog__step::before {
  content: ""; position: absolute; top: 9px; right: 50%; left: -50%; height: 3px; background: #dfe2e6;
}
.dp-prog__step:first-child::before { display: none; }
.dp-prog__step.is-done::before, .dp-prog__step.is-current::before { background: #282b2f; }
.dp-prog__dot {
  position: relative; z-index: 1; display: block; width: 21px; height: 21px; margin: 0 auto;
  border: 3px solid #dfe2e6; border-radius: 50%; background: #ffffff;
}
.dp-prog__step.is-done .dp-prog__dot { border-color: #282b2f; background: #282b2f; }
.dp-prog__step.is-done .dp-prog__dot::after {
  content: ""; position: absolute; top: 3px; left: 5px; width: 5px; height: 8px; border: solid #ffffff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.dp-prog__step.is-current .dp-prog__dot { border-color: #e9271a; background: #e9271a; box-shadow: 0 0 0 5px rgba(233, 39, 26, .16); }
.dp-prog__label { display: block; margin-top: 8px; padding: 0 4px; color: #8a9097; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.dp-prog__step.is-done .dp-prog__label { color: #5d636a; }
.dp-prog__step.is-current .dp-prog__label { color: #282b2f; font-weight: 800; }
.dp-prog[data-step="4"] .dp-prog__step.is-current .dp-prog__dot { border-color: #1f9d55; background: #1f9d55; box-shadow: 0 0 0 5px rgba(31, 157, 85, .16); }
.dp-prog--sm { flex: 0 1 430px; min-width: 280px; }
.dp-prog--sm .dp-prog__label { font-size: 11.5px; }

/* Pagination */
.dp-ord-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0 0 6px; }
.dp-ord-pages ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dp-ord-pages li { margin: 0; }
.dp-ord-pages a, .dp-ord-pages span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 12px;
  border: 1.5px solid #dfe2e6; border-radius: 10px; background: #ffffff; color: #282b2f; font-size: 14px; font-weight: 700; text-decoration: none;
}
.dp-ord-pages a:hover, .dp-ord-pages a:focus { border-color: #282b2f; color: #282b2f; text-decoration: none; }
.dp-ord-pages .is-current { border-color: #e9271a; background: #e9271a; color: #ffffff; }
.dp-ord-pages__gap span { border-color: transparent; background: transparent; }
.dp-ord-pages__info { margin: 0 0 28px; color: #8a9097; font-size: 13px; text-align: center; }

/* Vide */
.dp-ord-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 28px; padding: 44px 24px; border: 1.5px dashed #dfe2e6; border-radius: 16px; text-align: center; }
.dp-ord-empty > .fa { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #fdecea; color: #e9271a; font-size: 26px; }
.dp-ord-empty p { max-width: 460px; margin: 0; color: #5d636a; font-size: 14.5px; }
.dp-ord-empty strong { display: block; margin-bottom: 4px; color: #282b2f; font-size: 16px; }

/* Aide + retour */
.dp-ord-help { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding: 20px 24px; border-radius: 16px; background: #f3f4f6; }
.dp-ord-help > .fa { display: flex; flex: 0 0 46px; align-items: center; justify-content: center; height: 46px; border-radius: 50%; background: #ffffff; color: #e9271a; font-size: 19px; }
.dp-ord-help p { flex: 1 1 auto; min-width: 0; margin: 0; color: #5d636a; font-size: 14px; line-height: 1.5; }
.dp-ord-help strong { display: block; color: #282b2f; font-size: 15px; }
.dp-ord-help p a { color: #282b2f; font-weight: 700; }
.dp-ord-help__btn {
  display: inline-flex; align-items: center; min-height: 42px; margin-left: auto; padding: 0 20px; border-radius: 10px; background: #282b2f; color: #ffffff;
  font-size: 13px; font-weight: 700; text-transform: uppercase; white-space: nowrap; text-decoration: none;
}
.dp-ord-help__btn:hover, .dp-ord-help__btn:focus { background: #e9271a; color: #ffffff; text-decoration: none; }
.dp-ord-back { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 30px; color: #5d636a; font-size: 14px; font-weight: 700; text-decoration: none; }
.dp-ord-back:hover, .dp-ord-back:focus { color: #e9271a; text-decoration: none; }
.dp-ord-back > .fa { font-size: 18px; }

/* ===== Détail de commande ===== */
.dp-od { display: flex; flex-direction: column; gap: 16px; }
.dp-od-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.dp-od-head p { margin: 0; }
.dp-od-head__ref { font-family: 'DP Saira', Verdana, Geneva, sans-serif; font-size: 26px; font-style: italic; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.dp-od-head__date { margin-top: 3px !important; color: #5d636a; font-size: 13.5px; }
.dp-od-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dp-od-head__actions form { margin: 0; }
.dp-od > .dp-prog { padding: 18px 10px 16px; border: 1px solid #dfe2e6; border-radius: 14px; background: #ffffff; }

.dp-od-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dp-od-card { margin: 0; padding: 18px 20px; border: 1px solid #dfe2e6; border-radius: 14px; background: #ffffff; }
.dp-od-card__title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; border: 0; color: #282b2f;
  font-family: 'DP Saira', Verdana, Geneva, sans-serif; font-size: 17px; font-style: italic; font-weight: 800; line-height: 1.2; text-transform: uppercase;
}
.dp-od-card__title > .fa { display: flex; flex: 0 0 34px; align-items: center; justify-content: center; height: 34px; border-radius: 50%; background: #fdecea; color: #e9271a; font-size: 15px; font-style: normal; }
.dp-od-card__title small { margin-left: auto; white-space: nowrap; color: #8a9097; font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-style: normal; font-weight: 400; text-transform: none; }
.dp-od-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0; padding: 8px 0; border-bottom: 1px solid #eef0f2; font-size: 14px; }
.dp-od-line:last-of-type { border-bottom: 0; }
.dp-od-line > span { color: #5d636a; }
.dp-od-line > strong { text-align: right; overflow-wrap: anywhere; }
.dp-od-price { font-family: 'DP Saira', Verdana, Geneva, sans-serif; font-size: 18px; font-style: italic; }
.dp-od-note { margin: 10px 0 0; color: #5d636a; font-size: 13px; }
.dp-od-track { margin-top: 12px; }

.dp-od-address { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; list-style: none; }
.dp-od-address li { margin: 0; padding: 1px 0; border: 0; background: none; color: #282b2f; font-size: 14px; line-height: 1.5; }

/* Articles */
.dp-od-table { width: 100%; margin: 0; border-collapse: collapse; }
.dp-od-table th { padding: 0 10px 10px; border-bottom: 2px solid #282b2f; color: #5d636a; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.dp-od-table td { padding: 12px 10px; border-bottom: 1px solid #eef0f2; font-size: 14px; vertical-align: middle; }
.dp-od-table .dp-od-table__num { text-align: right; white-space: nowrap; }
.dp-od-table__cb { width: 34px; }
.dp-od-table__product label { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 400; cursor: inherit; }
.dp-od-thumb { display: flex; flex: 0 0 56px; align-items: center; justify-content: center; width: 56px; height: 56px; overflow: hidden; border: 1px solid #dfe2e6; border-radius: 10px; background: #ffffff; color: #b5bac0; font-size: 20px; }
.dp-od-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dp-od-table__name { display: flex; flex-direction: column; min-width: 0; }
.dp-od-table__name strong, .dp-od-table__name a { color: #282b2f; font-weight: 700; line-height: 1.35; }
.dp-od-table__product small, .dp-od-table__name small { display: block; margin-top: 2px; color: #8a9097; font-size: 12px; }
.dp-od-table__total { font-weight: 700; }
.dp-od-table__discount td { color: #1f9d55; }
#order-detail-content .order_qte_input { display: none; width: 57px; height: 32px; margin-left: auto; padding: 0; text-align: center; }
#order-detail-content .return_quantity_buttons { margin-top: 3px; }
#order-detail-content .return_quantity_buttons a { display: none; float: right; }
#order-detail-content .return_quantity_buttons a + a { margin-right: 3px; }
#order-detail-content label { font-weight: 400; }

.dp-od-totals { width: 100%; max-width: 360px; margin: 14px 0 0 auto; padding: 0; }
.dp-od-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.dp-od-totals dt { color: #5d636a; font-weight: 400; }
.dp-od-totals dd { margin: 0; font-weight: 700; white-space: nowrap; }
.dp-od-totals__discount dd { color: #1f9d55; }
.dp-od-totals__total { margin-top: 6px; padding-top: 10px !important; border-top: 2px solid #282b2f; }
.dp-od-totals__total dt { color: #282b2f; font-weight: 800; text-transform: uppercase; }
.dp-od-totals__total dd { font-family: 'DP Saira', Verdana, Geneva, sans-serif; font-size: 22px; font-style: italic; font-weight: 800; }

.dp-od-return { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef0f2; }
.dp-od-return summary { color: #282b2f; font-size: 14px; font-weight: 700; cursor: pointer; }
.dp-od-return p { margin: 10px 0 0; color: #5d636a; font-size: 13.5px; }

/* Historique des statuts (replié) */
.dp-od-history summary { margin: 0; cursor: pointer; list-style: none; }
.dp-od-history summary::-webkit-details-marker { display: none; }
.dp-od-history summary::after { content: "\f107"; margin-left: auto; color: #8a9097; font-family: FontAwesome; font-size: 20px; font-style: normal; transition: transform .2s ease; }
.dp-od-history[open] summary::after { transform: rotate(180deg); }
.dp-od-history:not([open]) .dp-od-card__title { margin-bottom: 0; }
.dp-od-timeline { margin: 4px 0 0; padding: 0 0 0 14px; border-left: 2px solid #dfe2e6; list-style: none; }
.dp-od-timeline li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 8px 0 8px 10px; }
.dp-od-timeline li::before { content: ""; position: absolute; top: 50%; left: -21px; width: 12px; height: 12px; margin-top: -6px; border: 2px solid #ffffff; border-radius: 50%; background: #b5bac0; box-shadow: 0 0 0 1px #dfe2e6; }
.dp-od-timeline li:first-child::before { background: #e9271a; }
.dp-od-timeline__date { min-width: 92px; color: #5d636a; font-size: 13px; }

/* Messages */
.dp-od-messages ul { margin: 0; padding: 0; list-style: none; }
.dp-od-messages li { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: #f3f4f6; }
.dp-od-messages__from { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 4px; font-size: 13px; }
.dp-od-messages__from span { color: #8a9097; }
.dp-od-messages__text { margin: 0; color: #282b2f; font-size: 14px; }

.dp-od-help { margin: 0; background: #ffffff; border: 1px solid #dfe2e6; }
.dp-ord-card__detail .dp-od-help { background: #ffffff; }
.dp-od-help__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.dp-od-help__btns .dp-ord-help__btn { margin-left: 0; }

/* Délais de livraison (module deliverydelayclient) */
.dp-od-hooks { display: flex; flex-direction: column; gap: 16px; }
.dp-od-hooks:empty { display: none; }
.dp-od-hooks > :not(.dp-od-card) { margin: 0; padding: 18px 20px; border: 1px solid #dfe2e6; border-radius: 14px; background: #ffffff; }
.dp-od-eta__kicker { margin-bottom: 4px; font-size: 11px; }
.dp-od-eta__notice { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid #f59e0b; border-radius: 8px; background: #fff7ed; color: #92400e; font-size: 13.5px; }
.dp-od-eta__notice.is-overdue { border-left-color: #e9271a; background: #fdecea; color: #9b1c12; }
.dp-od-eta__global { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: #282b2f; color: #ffffff; }
.dp-od-eta__global span { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dp-od-eta__global strong { font-family: 'DP Saira', Verdana, Geneva, sans-serif; font-size: 24px; font-style: italic; font-weight: 800; line-height: 1; }
.dp-od-eta__list { margin: 0; padding: 0; list-style: none; }
.dp-od-eta__head, .dp-od-eta__row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 120px; align-items: center; gap: 12px; margin: 0; }
.dp-od-eta__head { padding: 0 2px 8px; border-bottom: 2px solid #282b2f; color: #5d636a; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dp-od-eta__head span:last-child, .dp-od-eta__date { text-align: right; }
.dp-od-eta__row { padding: 11px 2px; border-bottom: 1px solid #eef0f2; font-size: 14px; }
.dp-od-eta__product { min-width: 0; }
.dp-od-eta__product strong { font-weight: 700; }
.dp-od-eta__product small { display: block; margin-top: 2px; color: #8a9097; font-size: 12px; }
.dp-od-eta__qty { color: #5d636a; white-space: nowrap; }
.dp-od-eta__badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.dp-od-eta__date strong { font-size: 15px; }
.dp-od-eta__none { color: #8a9097; }
.dp-od-eta__disclaimer { margin: 10px 0 0; color: #8a9097; font-size: 12.5px; font-style: italic; }
.dp-od-eta__help { display: inline-flex; gap: 6px; margin-top: 12px; color: #e9271a; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; }
.dp-od-eta__help:hover, .dp-od-eta__help:focus { color: #282b2f; text-decoration: none; }

/* Page du détail seule (lien direct, suivi invité) */
#order-detail #center_column .dp-od, #guest-tracking #center_column .dp-od { max-width: 1100px; margin: 0 auto 30px; }

@media (max-width: 991px) {
  .dp-ord-search { flex-basis: 100%; }
  .dp-prog--sm { flex-basis: 100%; }
}
@media (max-width: 767px) {
  .dp-ord-head { margin-bottom: 18px; }
  .dp-ord-head .page-heading { font-size: 28px; }
  .dp-ord-search { min-width: 0; }
  .dp-ord-search__clear { right: 96px; }
  .dp-ord-search__btn { padding: 0 14px; }
  .dp-ord-card { padding: 16px; border-radius: 14px; }
  .dp-ord-card__ref, .dp-ord-card__total { font-size: 19px; }
  .dp-ord-card__id { flex: 1 1 60%; }
  .dp-ord-card__top .dp-ord-status { order: 3; }
  .dp-ord-card__body { gap: 14px; margin-top: 12px; padding-top: 12px; }
  .dp-ord-items { flex-basis: 100%; }
  .dp-ord-thumb { width: 48px; height: 48px; }
  .dp-prog--sm .dp-prog__label { font-size: 10.5px; }
  .dp-ord-card__actions { justify-content: stretch; }
  .dp-ord-card__actions .dp-ord-btn { flex: 1 1 auto; }
  .dp-ord-card__actions .dp-ord-toggle { order: -1; flex-basis: 100%; }
  .dp-ord-card__detail { margin: 16px -16px -16px; padding: 14px 12px; border-radius: 0 0 14px 14px; }
  .dp-ord-help { flex-wrap: wrap; padding: 18px; }
  .dp-ord-help__btn, .dp-od-help__btns { width: 100%; margin-left: 0; justify-content: center; }
  .dp-od-help__btns > * { flex: 1 1 auto; }
  .dp-od-head__ref { font-size: 22px; }
  .dp-od-head__actions, .dp-od-head__actions form, .dp-od-head__actions .dp-ord-btn { flex: 1 1 auto; }
  .dp-od-head__actions .dp-ord-btn { width: 100%; }
  .dp-od > .dp-prog { padding: 14px 4px 12px; }
  .dp-prog__label { font-size: 11px; }
  .dp-od-grid { grid-template-columns: 1fr; }
  .dp-od-card { padding: 16px 14px; }

  /* articles en lignes empilées */
  .dp-od-table thead { display: none; }
  .dp-od-table, .dp-od-table tbody, .dp-od-table tr, .dp-od-table td { display: block; width: 100%; }
  .dp-od-table tr { position: relative; padding: 12px 0; border-bottom: 1px solid #eef0f2; }
  .dp-od-table td { padding: 2px 0; border: 0; }
  .dp-od-table td.order_cb { position: absolute; top: 12px; right: 0; width: auto; }
  .dp-od-table .dp-od-table__num { display: flex; justify-content: space-between; text-align: left; }
  .dp-od-table .dp-od-table__num:empty { display: none; }
  .dp-od-table .dp-od-table__num[data-label]::before { content: attr(data-label); color: #8a9097; font-size: 13px; }
  .dp-od-table .dp-od-table__product { margin-bottom: 6px; padding-right: 30px; }
  .dp-od-totals { max-width: none; }

  .dp-od-eta__head { display: none; }
  .dp-od-eta__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .dp-od-eta__product { grid-column: 1 / -1; }
  .dp-od-eta__global strong { font-size: 21px; }
}
