/* The app frame and the moving figures of the home page versions. Day inks by
 * default; .dx-device--night draws the app dark (theme.js sets it with Dark,
 * and under Auto when the device is dark). The figures (figs.js) sit in a
 * .dx-fig with a caption under them. */
.dx-device, .dx-fig { --dx-brand: #4b45e0; --dx-brand2: #7c4dff; --dx-ink: #12142b; --dx-ink2: #3a3d5c; --dx-soft: #5d6180; --dx-faint: #676b86; --dx-line: #e4e5ef; --dx-mint: #12b886; --dx-ease: cubic-bezier(0.16, 1, 0.3, 1); --dx-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.dx-device { position: relative; width: 100%; height: min(100%, 700px); border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 20, 43, 0.08), 0 40px 80px -30px rgba(40, 30, 120, 0.45), 0 10px 30px -10px rgba(18, 20, 43, 0.18); overflow: hidden; display: flex; flex-direction: column; }
.dx-chrome { flex: none; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #f3f3f8; border-bottom: 1px solid var(--dx-line); }
.dx-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #e0e0ea; }
.dx-chrome i:nth-child(1) { background: #ff6159; } .dx-chrome i:nth-child(2) { background: #ffbd2e; } .dx-chrome i:nth-child(3) { background: #28c941; }
.dx-url { margin: 0 auto; padding: 4px 16px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--dx-line); font: 500 12px/1.2 var(--dx-sans); color: var(--dx-soft); }
.dx-app { flex: 1; display: flex; min-height: 0; font-family: var(--dx-sans); }
.dx-side { flex: none; width: 200px; padding: 14px 12px; border-right: 1px solid var(--dx-line); background: #fbfbfe; overflow: hidden; }
.dx-side-brand { display: flex; align-items: center; margin-bottom: 14px; }
.dx-mk { width: 74px; height: 22px; background: var(--dx-ink); -webkit-mask: url("/static/logo-wordmark.svg") no-repeat left center / contain; mask: url("/static/logo-wordmark.svg") no-repeat left center / contain; }
.dx-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 10px; background: #eeeef6; margin-bottom: 14px; }
.dx-tabs span { padding: 6px 2px; border-radius: 8px; font-size: 10.5px; font-weight: 600; text-align: center; color: var(--dx-soft); transition: background 0.3s ease, color 0.3s ease; }
.dx-tabs span.on { background: #fff; color: var(--dx-ink); box-shadow: 0 1px 3px rgba(18, 20, 43, 0.15); }
.dx-side-h { margin: 12px 0 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dx-faint); }
.dx-layers { padding: 0; margin: 0; list-style: none; display: grid; gap: 2px; }
.dx-layers li { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 8px; border-radius: 8px; font-size: 12px; color: var(--dx-ink2); }
.dx-layers li b { order: 2; position: relative; width: 26px; height: 15px; border-radius: 99px; background: #dcdce8; transition: background 0.3s ease; }
.dx-layers li b::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.3s var(--dx-ease); }
.dx-layers li.on { background: rgba(75, 69, 224, 0.07); color: var(--dx-ink); }
.dx-layers li.on b { background: var(--dx-brand); }
.dx-layers li.on b::after { transform: translateX(11px); }
.dx-chips, .dx-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.dx-chips span, .dx-tools span { padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--dx-ink2); background: #fff; box-shadow: inset 0 0 0 1px var(--dx-line); transition: background 0.3s ease, color 0.3s ease; }
.dx-chips span.on { background: #7c4dff; color: #fff; box-shadow: none; }
.dx-tools span.on { background: #f2b800; color: #2a2000; box-shadow: none; }
.dx-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dx-top { flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-bottom: 1px solid var(--dx-line); }
.dx-search { flex: 1; min-width: 0; max-width: 260px; padding: 7px 12px; border-radius: 9px; background: #f3f3f8; font-size: 12px; color: var(--dx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-tb { margin-left: auto; padding: 6px 11px; white-space: nowrap; border-radius: 9px; font-size: 11.5px; font-weight: 600; color: var(--dx-ink2); box-shadow: inset 0 0 0 1px var(--dx-line); transition: background 0.3s ease, color 0.3s ease; }
.dx-tb + .dx-tb { margin-left: 0; }
.dx-tb.on { background: var(--dx-ink); color: #fff; box-shadow: none; }
.dx-av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #12b886, #4b45e0); }
.dx-map { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.dx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dx-card { position: absolute; right: 14px; top: 14px; width: min(270px, 46%); padding: 14px 15px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 0 0 1px rgba(18, 20, 43, 0.06), 0 18px 40px -16px rgba(18, 20, 43, 0.35); opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.35s ease, transform 0.45s var(--dx-ease); pointer-events: none; }
.dx-card.on { opacity: 1; transform: none; }
.dx-card-k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dx-brand); }
.dx-card h4 { margin: 4px 0 4px; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.dx-card-s { margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: var(--dx-soft); }
.dx-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; margin-top: 7px; font-size: 11.5px; color: var(--dx-ink2); }
.dx-row i { display: block; height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--c) calc(var(--w) * 100%), #ececf4 0); }
.dx-flag, .dx-warn { margin-top: 10px; padding: 6px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 600; background: #fff0f0; color: #c0182c; }
.dx-btn-s { display: inline-block; margin-top: 11px; padding: 7px 12px; border: 0; border-radius: 8px; background: var(--dx-brand); color: #fff; font: 600 11.5px/1 var(--dx-sans); }
.dx-btns { display: flex; align-items: center; gap: 6px; }
.dx-chip-s { margin-top: 11px; padding: 5px 8px; border-radius: 6px; background: #eeeef6; font-size: 10.5px; font-weight: 700; color: var(--dx-ink2); }
.dx-pdf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; padding: 10px; border-radius: 8px; background: #f6f6fb; box-shadow: inset 0 0 0 1px var(--dx-line); }
.dx-pdf i { height: 36px; border-radius: 4px; background: linear-gradient(0deg, #4b45e0 calc(var(--h, 0.6) * 100%), #e4e4f0 0); }
.dx-pdf i:nth-child(1) { --h: 0.7; } .dx-pdf i:nth-child(2) { --h: 0.4; } .dx-pdf i:nth-child(3) { --h: 0.9; }
.dx-pdf b { height: 5px; border-radius: 3px; background: #dcdce8; grid-column: span 3; }
.dx-list { padding: 0; margin: 8px 0 0; list-style: none; display: grid; gap: 4px; }
.dx-list li { display: grid; gap: 1px; padding: 7px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--dx-line); }
.dx-list li:first-child { box-shadow: inset 0 0 0 1.5px var(--dx-brand); }
.dx-list b { font-size: 12px; }
.dx-list span { font-size: 10.5px; color: var(--dx-soft); }
.dx-checks { padding: 0; margin: 8px 0 0; list-style: none; display: grid; gap: 5px; }
.dx-checks li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 7px; font-size: 11.5px; opacity: 0; animation: dx-in 0.4s var(--dx-ease) forwards; animation-delay: calc(0.7s + var(--i) * 0.6s); }
.dx-checks span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1a1a2e; color: #fff; font-size: 10px; font-weight: 700; }
.dx-checks em { padding: 3px 7px; border-radius: 6px; background: #e6f8f1; color: #0b7a57; font-style: normal; font-weight: 700; font-size: 10.5px; }
@keyframes dx-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.dx-sched { padding: 0; margin: 8px 0 0; list-style: none; }
.dx-sched li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--dx-line); font-size: 11.5px; animation: dx-in 0.4s var(--dx-ease); }
.dx-sched li span { margin-left: auto; color: var(--dx-faint); font-size: 10.5px; }
.dx-sched i.dyl { width: 16px; height: 7px; border-top: 2px solid #f2b800; border-bottom: 2px solid #f2b800; }
.dx-tick { padding: 0; margin: 8px 0 0; list-style: none; display: grid; gap: 4px; }
.dx-tick li { position: relative; padding-left: 18px; font-size: 11.5px; color: var(--dx-ink2); }
.dx-tick li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 8px; height: 4px; border-left: 2px solid var(--dx-mint); border-bottom: 2px solid var(--dx-mint); rotate: -45deg; }
.dx-toast { position: absolute; left: 50%; bottom: 16px; translate: -50% 12px; padding: 9px 14px; border-radius: 10px; background: var(--dx-ink); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity 0.3s ease, translate 0.45s var(--dx-ease); white-space: nowrap; pointer-events: none; }
.dx-toast.on { opacity: 1; translate: -50% 0; }
.dx-tip { position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 16px); padding: 6px 10px; border-radius: 8px; background: var(--dx-ink); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.dx-tip.on { opacity: 1; }
.dx-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; margin: -3px 0 0 -4px; pointer-events: none; }
.dx-cursor::before { content: ""; position: absolute; inset: 0; background: #12142b; clip-path: polygon(0 0, 0 78%, 22% 60%, 38% 95%, 52% 89%, 37% 55%, 66% 55%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.dx-cursor::after { content: ""; position: absolute; left: -12px; top: -12px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--dx-brand); opacity: 0; transform: scale(0.3); }
.dx-cursor.click::after { animation: dx-click 0.5s ease-out; }
@keyframes dx-click { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.4); } }

/* the app at night */
.dx-device--night { --dx-brand: #2997ff; --dx-brand2: #5afaff; --dx-ink: #e9f0fb; --dx-ink2: #c4d2e6; --dx-soft: #93a6c2; --dx-faint: #8193b0; --dx-line: rgba(140, 170, 220, 0.18); background: #0a0f1a; box-shadow: 0 0 0 1px rgba(140, 170, 220, 0.16), 0 50px 100px -40px rgba(41, 151, 255, 0.35), 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.dx-device--night .dx-chrome { background: #0d1422; }
.dx-device--night .dx-chrome i { opacity: 0.85; }
.dx-device--night .dx-url { background: #121a2b; box-shadow: inset 0 0 0 1px var(--dx-line); }
.dx-device--night .dx-side { background: #0b111e; }
.dx-device--night .dx-mk { background: #e9f0fb; }
.dx-device--night .dx-tabs { background: #121a2b; }
.dx-device--night .dx-tabs span.on { background: #1d2a44; color: #fff; box-shadow: none; }
.dx-device--night .dx-layers li b { background: #24314d; }
.dx-device--night .dx-layers li.on { background: rgba(41, 151, 255, 0.12); }
.dx-device--night .dx-chips span, .dx-device--night .dx-tools span { background: #111a2c; }
.dx-device--night .dx-search { background: #121a2b; }
.dx-device--night .dx-tb.on { background: #2997ff; color: #04121a; }
.dx-device--night .dx-card { background: rgba(12, 18, 32, 0.96); box-shadow: 0 0 0 1px rgba(140, 170, 220, 0.2), 0 18px 40px -16px rgba(0, 0, 0, 0.7); }
.dx-device--night .dx-row i { background: linear-gradient(90deg, var(--c) calc(var(--w) * 100%), #1b2640 0); }
.dx-device--night .dx-flag, .dx-device--night .dx-warn { background: rgba(255, 69, 58, 0.14); color: #ff8a80; }
.dx-device--night .dx-btn-s { color: #04121a; }
.dx-device--night .dx-chip-s { background: #1b2640; }
.dx-device--night .dx-pdf { background: #101828; }
.dx-device--night .dx-pdf b { background: #24314d; }
.dx-device--night .dx-pdf i { background: linear-gradient(0deg, #2997ff calc(var(--h, 0.6) * 100%), #1b2640 0); }
.dx-device--night .dx-list li:first-child { box-shadow: inset 0 0 0 1.5px var(--dx-brand); }
.dx-device--night .dx-checks span { background: #e9f0fb; color: #0a0f1a; }
.dx-device--night .dx-checks em { background: rgba(48, 209, 88, 0.16); color: #5be08a; }
.dx-device--night .dx-toast, .dx-device--night .dx-tip { background: #e9f0fb; color: #0a0f1a; }
.dx-device--night .dx-cursor::before { background: #ffffff; }

/* the figures */
.dx-fig { margin: 18px 0 0; }
.dx-fig canvas { display: block; width: 100%; aspect-ratio: 16 / 9; }
.dx-fig canvas[data-fig="britain"] { aspect-ratio: 1 / 1.2; max-height: 300px; }
.dx-fig canvas[data-fig="report"] { aspect-ratio: 16 / 10; }
.dx-fig-cap { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--dx-line); font: 400 12.5px/1.45 var(--dx-sans); color: var(--dx-soft); }
@media (prefers-reduced-motion: reduce) { .dx-checks li { opacity: 1; animation: none; } }
.motion-off .dx-checks li { opacity: 1; animation: none; }

@media (max-width: 899px) {
  .dx-device { border-radius: 12px; }
  .dx-chrome { height: 26px; } .dx-chrome i { width: 8px; height: 8px; } .dx-url { font-size: 10px; padding: 2px 10px; }
  .dx-side { position: absolute; left: 0; right: 0; top: 0; z-index: 2; width: auto; padding: 6px 8px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; border-right: 0; border-bottom: 1px solid var(--dx-line); }
  .dx-device--night .dx-side { background: rgba(11, 17, 30, 0.97); }
  .dx-device:not(.dx-device--night) .dx-side { background: rgba(251, 251, 254, 0.97); }
  .dx-app { position: relative; }
  .dx-side-brand, .dx-side-h, .dx-chips span:not([data-ui]), .dx-tools span:not([data-ui]) { display: none; }
  .dx-tabs { margin: 0; width: 100%; }
  .dx-layers { display: flex; flex-wrap: wrap; gap: 3px; }
  .dx-layers li { padding: 3px 4px 3px 6px; font-size: 10px; gap: 4px; }
  .dx-layers li b { width: 20px; height: 12px; } .dx-layers li b::after { width: 8px; height: 8px; } .dx-layers li.on b::after { transform: translateX(8px); }
  .dx-chips span, .dx-tools span { font-size: 10px; padding: 3px 7px; }
  .dx-top { display: none; }
  .dx-main { padding-top: 112px; }
  .dx-card { width: min(220px, 60%); padding: 10px 11px; right: 8px; top: 8px; }
}

/* the haulier portal, in the same frame (the order and haulier jobs) */
.dx-tb--plus { margin-left: 0; padding: 5px 10px; font-size: 15px; line-height: 1; }
.dx-portal { display: none; flex: none; align-items: center; gap: 14px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--dx-line); }
.dx-portal-brand .dx-mk { width: 64px; height: 20px; }
.dx-portal-steps { display: flex; gap: 6px; margin-left: auto; }
.dx-portal-steps i { padding: 5px 10px; border-radius: 99px; font: 600 11px/1.2 var(--dx-sans); font-style: normal; color: var(--dx-soft); box-shadow: inset 0 0 0 1px var(--dx-line); transition: background 0.3s ease, color 0.3s ease; }
.dx-portal-steps i.on { background: var(--dx-brand); color: #fff; box-shadow: none; }
.dx-device.is-portal .dx-side, .dx-device.is-portal .dx-top { display: none; }
.dx-device.is-portal .dx-portal { display: flex; }
.dx-form { padding: 0; margin: 8px 0 0; list-style: none; display: grid; gap: 4px; }
.dx-form li { display: grid; gap: 1px; padding: 7px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--dx-line); }
.dx-form b { font-size: 12px; }
.dx-form span { font-size: 10.5px; color: var(--dx-soft); }
.dx-device--night .dx-portal-steps i.on { color: #04121a; }
@media (max-width: 899px) {
  .dx-device.is-portal .dx-main { padding-top: 0; }
  .dx-portal { height: 36px; padding: 0 10px; }
  .dx-portal-steps i { padding: 3px 7px; font-size: 10px; }
}
