/* =========================================================
   Black Sistem – user panel › «سفارش‌های من» و «جزئیات سفارش»
   /orders/  ·  /orders/<code>/
   Uses the tokens from main.css and the panel look of dashboard.css.
   RTL, light + dark, responsive, printable invoice.
   ========================================================= */

/* ---------- page shell ---------- */
.ord-page { display: flex; flex-direction: column; gap: clamp(.9rem, 1.8vw, 1.3rem); }
.ord-num { direction: ltr; unicode-bidi: isolate; font-family: var(--latin); font-feature-settings: "tnum"; }

/* ---------- hero ---------- */
.ord-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: .8rem;
  padding: clamp(1rem, 2.2vw, 1.5rem) clamp(1rem, 2.4vw, 1.7rem);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background:
    radial-gradient(120% 160% at 100% 0%, var(--accent-soft) 0, transparent 62%),
    var(--surface-2);
}
:root[data-theme="dark"] .ord-hero {
  background:
    radial-gradient(120% 170% at 0% 0%, rgba(124, 58, 237, .38) 0, transparent 62%),
    linear-gradient(120deg, #100d2c, #0a0820 70%);
}
/* the subwoofer shot fills the hero's full height and fades smoothly into the panel (inline-end = left in RTL) */
.ord-hero__art {
  position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0;
  width: clamp(200px, 36%, 420px); height: 100%; max-height: none;
  object-fit: cover; object-position: center; pointer-events: none;
  opacity: .9; filter: saturate(1.1);
  -webkit-mask-image: linear-gradient(to left, #000 0, #000 35%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0, #000 35%, transparent 100%);
}
:root[data-theme="dark"] .ord-hero__art { filter: saturate(1.15); }

.ord-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .55rem; font-size: .78rem; color: var(--muted); }
.ord-crumbs li { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.ord-crumbs a { padding: .1rem .15rem; transition: color .18s; }
.ord-crumbs a:hover { color: var(--accent); }
.ord-crumbs [aria-current] { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.ord-crumbs__sep { opacity: .55; }
.ord-crumbs__sep .i { width: 13px; height: 13px; }

.ord-hero__title { display: flex; align-items: center; gap: .9rem; max-width: min(100%, 62ch); }
.ord-hero__icon {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px;
  border: 1px solid var(--accent); background: var(--surface); color: var(--accent);
  box-shadow: 0 8px 20px -12px var(--accent);
}
:root[data-theme="dark"] .ord-hero__icon { color: #c8b2ff; border-color: rgba(139, 92, 246, .8); box-shadow: 0 0 24px -8px rgba(139, 92, 246, .8); }
.ord-hero__icon .i { width: 26px; height: 26px; }
.ord-hero__title h1 { font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 800; line-height: 1.45; color: var(--text-strong); }
.ord-hero__title p { margin-top: .1rem; font-size: .84rem; line-height: 1.9; color: var(--muted); }

/* ---------- status tabs ---------- */
.ord-tabs {
  display: flex; align-items: center; gap: .4rem; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ord-tabs::-webkit-scrollbar { display: none; }
.ord-tab {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  height: 42px; padding-inline: .95rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap;
  transition: color .18s, border-color .18s, background-color .18s;
}
.ord-tab .i { width: 17px; height: 17px; }
.ord-tab:hover { color: var(--accent); border-color: var(--accent); }
.ord-tab.is-active { background: var(--btn-bg); border-color: transparent; color: #fff; box-shadow: var(--btn-shadow); }
.ord-tab.is-active .i { color: #fff; }

/* ---------- loading skeletons ---------- */
.ord-state { display: grid; gap: .7rem; }
.ord-skel {
  position: relative; overflow: hidden; height: 104px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
}
:root[data-theme="dark"] .ord-skel { background: linear-gradient(180deg, #120f2e, #0a0820); }
.ord-skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 32%, var(--accent-soft) 50%, transparent 68%);
  background-size: 300% 100%; animation: ord-shimmer 1.5s linear infinite;
}
@keyframes ord-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ---------- list ---------- */
.ord-list { display: grid; gap: .7rem; }
.ord {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center; gap: clamp(.7rem, 1.6vw, 1.2rem);
  padding: .8rem clamp(.8rem, 1.6vw, 1.1rem);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.ord:hover { border-color: var(--accent-2); box-shadow: 0 12px 30px -22px rgba(10, 45, 130, .55); }
:root[data-theme="dark"] .ord { background: linear-gradient(180deg, #0f0c2b, #0a0820); }
:root[data-theme="dark"] .ord:hover { border-color: rgba(139, 92, 246, .75); box-shadow: 0 0 0 1px rgba(139, 92, 246, .2), 0 14px 34px -24px rgba(0, 0, 0, .9); }

/* thumbnails stack */
.ord__thumbs { display: flex; align-items: center; gap: 0; flex: none; }
.ord__thumb {
  position: relative; display: block; width: 54px; height: 54px; flex: none;
  border-radius: 12px; overflow: hidden; background: var(--media-bg); border: 1px solid var(--line);
}
.ord__thumb + .ord__thumb { margin-inline-start: -18px; box-shadow: -6px 0 14px -6px rgba(10, 25, 70, .45); }
.ord__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ord__more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(8, 8, 30, .62); color: #fff; font-size: .74rem; font-weight: 700;
}

.ord__info { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ord__code { display: flex; align-items: center; gap: .35rem; }
.ord__code b { font-size: .94rem; font-weight: 700; color: var(--text-strong); }
.ord__copy {
  display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted);
  transition: color .18s, background-color .18s, border-color .18s;
}
.ord__copy .i { width: 15px; height: 15px; }
.ord__copy:hover { color: var(--accent); background: var(--accent-soft); }
.ord__copy.is-done { color: #22c55e; border-color: rgba(34, 197, 94, .5); }
.ord__price { display: flex; align-items: baseline; gap: .3rem; }
.ord__price b { font-size: .9rem; font-weight: 700; color: var(--text-strong); }
.ord__price span { font-size: .72rem; color: var(--muted); }
.ord__count { font-size: .76rem; color: var(--muted); }

/* state column */
.ord__state { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex: none; }
.ord__date { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.ord__date .ord-num { color: var(--text); }

/* status badge */
.ord-badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem;
  border: 1px solid currentColor; border-radius: 99px; font-size: .76rem; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.ord-badge .i { width: 14px; height: 14px; }
.ord-badge--pending { color: #b7791f; }
.ord-badge--processing { color: #2e8bff; }
.ord-badge--shipped { color: #17b26a; }
.ord-badge--completed { color: #6d3df0; }
.ord-badge--canceled { color: #f0384f; }
:root[data-theme="dark"] .ord-badge--pending { color: #f0b429; }
:root[data-theme="dark"] .ord-badge--processing { color: #5aa8ff; }
:root[data-theme="dark"] .ord-badge--shipped { color: #35d894; }
:root[data-theme="dark"] .ord-badge--completed { color: #b79bff; }
:root[data-theme="dark"] .ord-badge--canceled { color: #ff5d73; }

/* "view details" button + mobile chevron */
.ord__go {
  display: inline-flex; align-items: center; gap: .35rem; flex: none; height: 40px;
  padding-inline: .95rem; border-radius: 12px; border: 1px solid var(--accent);
  background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 600; white-space: nowrap;
  transition: background-color .18s, color .18s;
}
:root[data-theme="dark"] .ord__go { color: #d8ccff; border-color: rgba(139, 92, 246, .8); }
.ord__go:hover { background: var(--accent); color: #fff; }
.ord__chev { display: none; color: var(--muted); }

/* ---------- empty / error ---------- */
.ord-empty {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: clamp(2rem, 5vw, 3rem) 1rem; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--accent-soft);
}
:root[data-theme="dark"] .ord-empty { background: rgba(14, 11, 40, .5); }
.ord-empty__art { width: clamp(74px, 12vw, 104px); height: clamp(74px, 12vw, 104px); color: var(--accent); opacity: .9; }
:root[data-theme="dark"] .ord-empty__art { color: #b79bff; }
.ord-empty h2 { font-size: 1.05rem; font-weight: 800; color: var(--text-strong); }
.ord-empty p { max-width: 42ch; font-size: .86rem; line-height: 1.95; color: var(--muted); }
.ord-empty .btn-outline { margin-top: .5rem; }
.ord-empty--err { border-style: solid; border-color: rgba(255, 77, 109, .45); background: rgba(255, 77, 109, .07); }
.ord-empty--err .ord-empty__art { color: #ff4d6d; width: 46px; height: 46px; }
.ord-empty--err .btn-outline { color: #ff4d6d; border-color: #ff4d6d; background: transparent; }
.ord-empty--err .btn-outline:hover { background: #ff4d6d; color: #fff; }
.ord-empty--err .btn-outline .i { width: 16px; height: 16px; }

/* ---------- footer: total, pager, page size ---------- */
.ord-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem;
  padding-top: .9rem; border-top: 1px solid var(--line);
}
.ord-foot__total { margin-inline-end: auto; font-size: .84rem; color: var(--muted); }
.ord-foot__total b { color: var(--text-strong); }
.ord-pager { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.ord-pg {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding-inline: .45rem;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
  color: var(--text); font-size: .84rem; font-weight: 600;
  transition: color .18s, border-color .18s, background-color .18s;
}
.ord-pg .i { width: 15px; height: 15px; }
.ord-pg:hover:not(:disabled):not(.is-active) { color: var(--accent); border-color: var(--accent); }
.ord-pg.is-active { background: var(--btn-bg); border-color: transparent; color: #fff; box-shadow: var(--btn-shadow); }
.ord-pg:disabled { opacity: .4; cursor: default; }
.ord-pg--dots { border: 0; background: none; color: var(--muted); cursor: default; }
.ord-per { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); }
.ord-per__sel { position: relative; display: inline-flex; align-items: center; }
.ord-per__sel select {
  height: 38px; padding-inline: .7rem 1.9rem; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--text); font: inherit; font-size: .84rem; font-weight: 600;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
.ord-per__sel .i { position: absolute; inset-inline-end: .55rem; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }

/* =========================================================
   Order detail
   ========================================================= */
.ord-detail { gap: clamp(.85rem, 1.6vw, 1.15rem); }
.ord-detail .ord-hero__art { width: clamp(110px, 18vw, 200px); }

.ord-dhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; }
.ord-dhead__main { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.ord-dcode {
  display: inline-flex; align-items: center; gap: .4rem; height: 44px; padding-inline: .8rem .35rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text-strong);
}
.ord-dcode .i { color: var(--accent); }
.ord-dcode b { font-size: .95rem; font-weight: 700; }
.ord-dactions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ord-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 42px;
  padding-inline: .95rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); font-size: .82rem; font-weight: 600; white-space: nowrap;
  transition: color .18s, border-color .18s, background-color .18s;
}
.ord-btn .i { width: 17px; height: 17px; }
.ord-btn:hover { color: var(--accent); border-color: var(--accent); }
.ord-btn--danger { color: #f0384f; border-color: rgba(240, 56, 79, .55); }
.ord-btn--danger:hover { color: #fff; background: #f0384f; border-color: #f0384f; }

.ord-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.ord-meta > div {
  display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2);
}
.ord-meta .i { width: 20px; height: 20px; color: var(--accent); flex: none; }
:root[data-theme="dark"] .ord-meta .i { color: #b79bff; }
.ord-meta span { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.ord-meta small { font-size: .72rem; color: var(--muted); }
.ord-meta b { font-size: .86rem; font-weight: 700; color: var(--text-strong); overflow-wrap: anywhere; }

/* progress steps */
.ord-steps { display: grid; grid-auto-flow: column; gap: 0; margin-top: .3rem; }
.ord-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .3rem .2rem; text-align: center; }
.ord-step:not(:first-child)::before {
  content: ""; position: absolute; z-index: 0; top: calc(.3rem + 21px); inset-inline-end: 50%;
  width: 100%; height: 2px; background: var(--line);
}
.ord-step__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 2px solid var(--line); background: var(--panel); color: var(--muted);
}
.ord-step__dot .i { width: 20px; height: 20px; }
.ord-step b { font-size: .78rem; font-weight: 600; color: var(--muted); }
.ord-step small { font-size: .7rem; color: var(--muted); opacity: .9; }
.ord-step.is-done .ord-step__dot { border-color: var(--accent); background: var(--accent); color: #fff; }
.ord-step.is-done::before { background: var(--accent); }
.ord-step.is-done b { color: var(--text-strong); }
.ord-step.is-current .ord-step__dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ord-step.is-current b { color: var(--accent); }
.ord-step.is-bad .ord-step__dot { border-color: #f0384f; background: #f0384f; color: #fff; }
.ord-step.is-bad b { color: #f0384f; }

/* notes */
.ord-note {
  display: flex; align-items: flex-start; gap: .5rem; padding: .7rem .9rem;
  border: 1px solid rgba(183, 121, 31, .45); border-radius: 12px; background: rgba(183, 121, 31, .1);
  font-size: .8rem; line-height: 1.9; color: var(--text);
}
.ord-note .i { width: 18px; height: 18px; flex: none; margin-top: .25rem; color: #b7791f; }
:root[data-theme="dark"] .ord-note .i { color: #f0b429; }
.ord-note--bad { border-color: rgba(240, 56, 79, .45); background: rgba(240, 56, 79, .09); }
.ord-note--bad .i { color: #f0384f; }

/* two-column body */
.ord-dgrid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(.7rem, 1.6vw, 1.1rem); align-items: start; }
.ord-dcol { display: flex; flex-direction: column; gap: clamp(.7rem, 1.6vw, 1.1rem); min-width: 0; }
.ord-box { padding: clamp(.9rem, 1.8vw, 1.2rem); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
:root[data-theme="dark"] .ord-box { background: rgba(14, 11, 40, .5); }
.ord-box > h2 {
  display: flex; align-items: center; gap: .45rem; margin-bottom: .8rem;
  font-size: .95rem; font-weight: 700; color: var(--text-strong);
}
.ord-box > h2 .i { width: 19px; height: 19px; color: var(--accent); }
:root[data-theme="dark"] .ord-box > h2 .i { color: #b79bff; }
.ord-box > h2 small { margin-inline-start: auto; font-size: .74rem; font-weight: 500; color: var(--muted); }

/* item rows */
.ordi-list { display: grid; gap: .55rem; }
.ordi {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: .75rem; padding: .6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2);
}
.ordi__img {
  display: grid; place-items: center; width: 62px; height: 62px; flex: none; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); background: var(--media-bg);
}
.ordi__img img { width: 100%; height: 100%; object-fit: cover; }
.ordi__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ordi__name { font-size: .86rem; font-weight: 600; line-height: 1.7; color: var(--text-strong); }
.ordi__name:hover { color: var(--accent); }
.ordi__unit { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; font-size: .78rem; color: var(--muted); }
.ordi__unit b { font-size: .82rem; font-weight: 700; color: var(--text); }
.ordi__unit del { opacity: .75; }
.ordi__qty {
  display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding-inline: .35rem;
  border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: .74rem; font-weight: 700;
}
:root[data-theme="dark"] .ordi__qty { color: #d8ccff; }
.ordi__total { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; font-size: .88rem; font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.ordi__total small { font-size: .7rem; font-weight: 500; color: var(--muted); }

/* definition rows (summary / payment) */
.ord-dl { display: grid; gap: .45rem; }
.ord-dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; font-size: .84rem; }
.ord-dl dt { color: var(--muted); }
.ord-dl dd { margin: 0; font-weight: 600; color: var(--text); text-align: end; }
.ord-dl .is-off dd { color: #17b26a; }
:root[data-theme="dark"] .ord-dl .is-off dd { color: #35d894; }
.ord-dl .is-total { margin-top: .2rem; padding-top: .5rem; border-top: 1px dashed var(--line); }
.ord-dl .is-total dt { font-weight: 700; color: var(--text-strong); }
.ord-dl .is-total dd { font-size: .98rem; font-weight: 800; color: var(--text-strong); }

/* delivery address */
.ord-addr { display: grid; gap: .5rem; font-size: .82rem; line-height: 1.95; color: var(--text); }
.ord-addr p { display: flex; align-items: flex-start; gap: .45rem; margin: 0; }
.ord-addr .i { width: 17px; height: 17px; flex: none; margin-top: .35rem; color: var(--accent); }
:root[data-theme="dark"] .ord-addr .i { color: #b79bff; }
.ord-addr small { color: var(--muted); }

/* tracking */
.ord-track {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .55rem .8rem; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2);
}
.ord-track b { font-size: .88rem; color: var(--text-strong); direction: ltr; unicode-bidi: isolate; }

/* cancel dialog */
.ord-dialog {
  width: min(420px, calc(100vw - 2rem)); padding: 1.2rem 1.3rem 1.1rem; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface); color: var(--text); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6);
}
.ord-dialog::backdrop { background: rgba(5, 8, 30, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ord-dialog h2 { font-size: 1.02rem; font-weight: 800; color: var(--text-strong); }
.ord-dialog p { margin-top: .35rem; font-size: .85rem; line-height: 1.95; color: var(--muted); }
.ord-dialog menu { display: flex; justify-content: flex-end; gap: .5rem; margin: 1rem 0 0; padding: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .ord-dgrid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .ord { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumbs info state" "go go go"; row-gap: .6rem; }
  .ord__thumbs { grid-area: thumbs; }
  .ord__info { grid-area: info; }
  .ord__state { grid-area: state; }
  .ord__go { grid-area: go; width: 100%; justify-content: center; }
  .ord-dhead { flex-direction: column; align-items: stretch; }
  .ord-dactions { width: 100%; }
  .ord-dactions .ord-btn { flex: 1 1 auto; }
}

@media (max-width: 640px) {
  .ord-hero__art { width: 60%; opacity: .35; }
  .ord-hero__icon { width: 44px; height: 44px; border-radius: 13px; }
  .ord-hero__icon .i { width: 22px; height: 22px; }
  .ord-hero__title { gap: .65rem; }
  .ord-hero__title p { font-size: .8rem; }
  .ord__go { display: none; }
  .ord { grid-template-areas: "thumbs info chev"; grid-template-columns: auto minmax(0, 1fr) auto; }
  .ord__chev { display: grid; grid-area: chev; place-items: center; }
  .ord__state { flex-direction: row; align-items: center; gap: .4rem; grid-column: 1 / -1; justify-content: space-between; width: 100%; }
  .ord { grid-template-areas: "thumbs info chev" "state state state"; }
  .ord__thumb { width: 46px; height: 46px; border-radius: 10px; }
  .ord-meta { grid-template-columns: minmax(0, 1fr); }
  .ordi { grid-template-columns: auto minmax(0, 1fr); }
  .ordi__total { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-end; gap: .35rem; }
  .ord-dcode { height: 40px; }
  .ord-btn { height: 40px; }
  .ord-foot { justify-content: center; }
  .ord-foot__total { width: 100%; margin: 0; text-align: center; }
  .ord-pager { order: 2; }
  .ord-per { order: 1; }
  .ord-step__dot { width: 36px; height: 36px; }
  .ord-step:not(:first-child)::before { top: calc(.3rem + 17px); }
  .ord-step b { font-size: .7rem; }
  .ord-step small { display: none; }
  .ord-tabs { margin-inline: -.2rem; }
  .ord-tab { height: 38px; padding-inline: .75rem; font-size: .78rem; }
}

@media (max-width: 400px) {
  .ord-tab span { display: none; }
  .ord-tab { padding-inline: .6rem; }
  .ord__thumb:nth-child(n + 3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ord-skel::after { animation: none; }
  .ord { transition: none; }
}

/* =========================================================
   Print – the invoice of the detail page
   ========================================================= */
@media print {
  .dash-header, .dash-side, .dash-backdrop, .nav-backdrop, .ord-hero, .ord-crumbs,
  .ord-dactions, .ord-tabs, .ord-foot, .toast-host, .ord-dialog, .skip-link { display: none !important; }
  body, .dash-body { background: #fff !important; color: #000 !important; }
  .dash { display: block; padding: 0; }
  .ord-page { border: 0; box-shadow: none; padding: 0; }
  .ord-box, .ordi, .ord-meta > div { border-color: #ccc !important; background: #fff !important; }
  .ord-dgrid { display: block; }
  .ord-dcol + .ord-dcol { margin-top: 1rem; }
  .ord-steps { grid-auto-flow: row; gap: .2rem; }
  .ord-step { flex-direction: row; justify-content: flex-start; gap: .5rem; }
  .ord-step:not(:first-child)::before { display: none; }
  .ord-step__dot { width: 28px; height: 28px; }
  .ord-badge, .ord-step__dot { color: #000 !important; }
  a[href]::after { content: none !important; }
}
