/* VERIDIUM Freight · module: carrier back office (xw) — own orders, subcontracting, hours, tachograph, workshop, fuel, tolls, pay, invoices */
.xw-hact { display: flex; gap: 8px; flex-wrap: wrap; }
.xw-k { margin-bottom: 12px; }
.xw-k--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xw-card { margin-bottom: 12px; }
.xw-card--att { box-shadow: inset 0 0 0 1px var(--vd-attention-solid); }
.xw-pad { padding: 0 16px 14px; }
.xw-pad0 { padding: 0 0 8px; }
.xw-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.xw-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.xw-two > .xw-card { margin-bottom: 12px; }
.xw-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.xw-g4 { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
.xw-g6 { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 12px; }
.xw-hint { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 12px; font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-2); }
.xw-hint.is-att { color: var(--vd-attention-text); }
.xw-hint i { flex: none; margin-top: 2px; }
.xw-link { padding: 0; border: 0; background: none; color: var(--vd-text-1); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.xw-neg { color: var(--vd-negative-text); }
.xw-pos { color: var(--vd-positive-text); }
.xw-bar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 10px; }
.xw-q { flex: 1 1 260px; max-width: 360px; }
.xw-tcard { margin-bottom: 8px; }
.xw-t td { vertical-align: middle; }
.xw-t tr.is-warn td { background: color-mix(in srgb, var(--vd-attention-tint) 55%, transparent); }
.xw-t--s td, .xw-t--s th { font-size: 12.5px; }
.xw-acts { white-space: nowrap; }
.xw-acts .vd-btn + .vd-btn, .xw-acts .vd-btn + .xw-up { margin-left: 4px; }
.xw-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.xw-tag { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 6px; background: var(--vd-neutral-tint); color: var(--vd-text-2); font: 700 10.5px/18px var(--font-sans); white-space: nowrap; }
.xw-tag--adr { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xw-tag--temp { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.xw-tag--ai { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xw-src { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 0 7px 0 5px; border-radius: 999px; font: 700 10.5px/18px var(--font-sans); white-space: nowrap; background: var(--vd-neutral-tint); color: var(--vd-text-2); }
.xw-src--vrd { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.xw-src--exch { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.xw-src--portal { background: color-mix(in srgb, var(--vd-processing-tint) 60%, var(--vd-positive-tint)); color: var(--vd-text-1); }
.xw-src--edi { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xw-src--mail { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xw-src--partner { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xw-flag { display: inline-flex; align-items: center; gap: 4px; margin: 2px 4px 2px 0; padding: 1px 7px; border-radius: 999px; font: 700 11px/16px var(--font-sans); background: var(--vd-neutral-tint); color: var(--vd-text-2); }
.xw-flag--neg { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xw-flag--att { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xw-flag--ok { background: var(--vd-positive-tint); color: var(--vd-positive-text); }

/* drawers */
.xw-dr .vd-drawer__body { display: flex; flex-direction: column; gap: 12px; }
.xw-oh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.xw-oh .xw-src { margin-top: 0; }
.xw-oh .xw-tags { margin-top: 0; }
.xw-stops { display: flex; flex-direction: column; gap: 2px; }
.xw-stop { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--vd-surface-2); }
.xw-stop.is-done { opacity: .7; }
.xw-stop__n { flex: none; color: var(--vd-text-2); font-size: 18px; line-height: 20px; }
.xw-stop__t { display: flex; flex-direction: column; min-width: 0; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-stop__t b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-plan { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--vd-positive-tint); font: 500 12.5px/18px var(--font-sans); }
.xw-plan.is-warn { background: var(--vd-attention-tint); }
.xw-plan.is-bad { background: var(--vd-negative-tint); }
.xw-trip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 500 12.5px/18px var(--font-sans); }
.xw-trip > span:nth-child(2) { flex: 1 1 200px; }
.xw-log { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-log li { display: flex; gap: 10px; }
.xw-log li > span { flex: none; min-width: 112px; color: var(--vd-text-2); font: 500 12px/18px var(--font-mono); }
.xw-log li.is-neg { color: var(--vd-negative-text); }
.xw-sg { display: flex; flex-direction: column; gap: 6px; }
.xw-sg__i { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xw-sg__i.is-ok { box-shadow: inset 3px 0 0 var(--vd-positive-solid), inset 0 0 0 1px var(--vd-border-subtle); }
.xw-sg__i.is-warn { box-shadow: inset 3px 0 0 var(--vd-attention-solid), inset 0 0 0 1px var(--vd-border-subtle); }
.xw-sg__i.is-bad { background: var(--vd-surface-2); box-shadow: inset 3px 0 0 var(--vd-negative-solid), inset 0 0 0 1px var(--vd-border-subtle); }
.xw-sg__n { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--vd-neutral-tint); font: 800 11.5px/1 var(--font-sans); }
.xw-sg__t { display: flex; flex-direction: column; flex: 1 1 220px; min-width: 0; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-sg__t b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-sg__w { color: var(--vd-attention-text); }
.xw-sg__i.is-bad .xw-sg__w { color: var(--vd-negative-text); }
.xw-sg__no { display: inline-flex; align-items: center; gap: 4px; font: 700 12px/16px var(--font-sans); color: var(--vd-negative-text); }
.xw-aif { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.xw-conf { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border-radius: 999px; background: var(--vd-positive-tint); color: var(--vd-positive-text); font: 700 11.5px/22px var(--font-sans); }
.xw-conf.is-low { background: var(--vd-surface); color: var(--vd-attention-text); box-shadow: inset 0 0 0 1.5px var(--vd-attention-solid); }
.xw-nfs { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xw-nfs__h { display: flex; align-items: center; justify-content: space-between; font: 700 13px/18px var(--font-sans); }
.xw-nfl { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--vd-border-subtle); }
.xw-nc { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--vd-processing-tint); }
.xw-vies { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font: 500 12.5px/18px var(--font-sans); }
.xw-vies.is-ok { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xw-vies.is-no { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xw-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border-radius: 16px; border: 1.5px dashed var(--vd-border-strong); background: var(--vd-surface-2); text-align: center; cursor: pointer; font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-2); }
.xw-drop i { font-size: 28px; color: var(--vd-text-1); }
.xw-drop b { font: 700 14px/20px var(--font-sans); color: var(--vd-text-1); }
.xw-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.xw-up { position: relative; overflow: hidden; }
.xw-samples { display: flex; flex-direction: column; gap: 6px; }
.xw-sample { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); text-align: left; cursor: pointer; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-sample:hover { box-shadow: inset 0 0 0 1px var(--vd-border-strong); }
.xw-sample > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.xw-sample b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-split2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.xw-src-doc { border-radius: 12px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); overflow: hidden; }
.xw-src-doc__h { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--vd-border-subtle); font: 700 12.5px/18px var(--font-sans); }
.xw-doc { display: flex; flex-direction: column; gap: 3px; padding: 12px; font: 500 12.5px/19px var(--font-sans); color: var(--vd-text-1); }
.xw-doc.is-mono { font: 500 11.5px/18px var(--font-mono); word-break: break-all; }
.xw-hl { padding: 0 2px; border-radius: 3px; color: inherit; }
.xw-hl--hi { background: color-mix(in srgb, var(--vd-positive-tint) 85%, transparent); box-shadow: inset 0 -2px 0 var(--vd-positive-solid); }
.xw-hl--lo { background: color-mix(in srgb, var(--vd-attention-tint) 90%, transparent); box-shadow: inset 0 -2px 0 var(--vd-attention-solid); }
.xw-ext { display: flex; flex-direction: column; gap: 4px; }
.xw-ext__h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-ext__h b { font: 800 13.5px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-ef { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); font: 500 12px/17px var(--font-sans); }
.xw-ef.is-low { box-shadow: inset 0 0 0 1.5px var(--vd-attention-solid); background: color-mix(in srgb, var(--vd-attention-tint) 50%, var(--vd-surface)); }
.xw-ef__k { color: var(--vd-text-2); font-weight: 700; }
.xw-ef__c { font: 700 11.5px/16px var(--font-mono); color: var(--vd-text-2); }
.xw-ef.is-low .xw-ef__c { color: var(--vd-attention-text); }
.xw-ef > .vd-btn, .xw-ef__ok { grid-column: 2 / 4; justify-self: start; }
.xw-ef__ok { display: inline-flex; gap: 4px; align-items: center; font: 700 11.5px/16px var(--font-sans); color: var(--vd-positive-text); }
.xw-split p { margin: 0 0 8px; font: 500 12.5px/18px var(--font-sans); color: var(--vd-text-2); }

/* partners, connections */
.xw-strip { margin: 0 0 12px; padding: 12px; border-radius: 16px; background: var(--vd-positive-tint); }
.xw-strip__h { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; color: var(--vd-positive-text); }
.xw-strip__h > span { display: flex; flex-direction: column; min-width: 0; font: 500 12px/16px var(--font-sans); }
.xw-strip__h b { font: 800 14px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; padding: 0 14px 14px; }
.xw-strip .xw-offers { padding: 0; }
.xw-po { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border); }
.xw-po--m { margin-bottom: 8px; padding: 12px; }
.xw-po__h { display: flex; align-items: center; gap: 6px; font: 500 12px/16px var(--font-sans); }
.xw-po__h .xw-src { margin: 0; }
.xw-po__t { font: 700 12px/16px var(--font-mono); color: var(--vd-attention-text); }
.xw-po__b { display: flex; flex-direction: column; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-po__b b { font: 800 14.5px/19px var(--font-sans); color: var(--vd-text-1); }
.xw-po__f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--vd-border-subtle); }
.xw-po__p { display: flex; flex-direction: column; flex: 1 1 140px; font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xw-po__p b { font: 800 17px/21px var(--font-sans); color: var(--vd-text-1); }
.xw-stars { display: inline-flex; gap: 0; }
.xw-star { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--vd-border-strong); cursor: pointer; font-size: 16px; }
.xw-star.is-on { color: var(--vd-attention-solid); }
.xw-star:hover { background: var(--vd-neutral-tint); }
.xw-inv { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xw-conns { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.xw-conn { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.xw-conn.is-on { box-shadow: inset 0 0 0 1px var(--vd-positive-solid); }
.xw-conn__h { display: flex; align-items: flex-start; gap: 10px; }
.xw-conn__h > span:nth-child(2) { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-conn__h b { font: 800 14px/19px var(--font-sans); color: var(--vd-text-1); }
.xw-conn__f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xw-conn__f .small { flex: 1 1 auto; }

/* subcontracting, profit, tolls in the trip drawer */
.xw-subst, .xw-own, .xw-toll { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xw-subst > i, .xw-own > i, .xw-toll > i { flex: none; font-size: 18px; }
.xw-subst > span, .xw-own > span, .xw-toll > span { display: flex; flex-direction: column; flex: 1 1 220px; min-width: 0; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-subst b, .xw-own b, .xw-toll b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-subst.is-accepted, .xw-subst.is-done { background: var(--vd-positive-tint); }
.xw-subst.is-offered, .xw-subst.is-consent { background: var(--vd-processing-tint); }
.xw-subst.is-declined, .xw-subst.is-expired, .xw-subst.is-refused { background: var(--vd-attention-tint); }
.xw-own { background: color-mix(in srgb, var(--vd-processing-tint) 60%, var(--vd-surface)); }
.xw-rate { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xw-subc { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: var(--vd-processing-tint); }
.xw-subc__h { display: flex; align-items: flex-start; gap: 8px; padding: 0 2px 2px; }
.xw-subc__h > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-processing-text); }
.xw-subc__h b { font: 800 14px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-pr { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 10px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xw-pr.is-on { box-shadow: inset 0 0 0 2px var(--vd-positive-solid); }
.xw-pr.is-no { background: var(--vd-surface-2); }
.xw-pr__t { display: flex; flex-direction: column; flex: 1 1 240px; min-width: 0; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-pr__t b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-pr.is-no .xw-pr__t > span:nth-child(2) { color: var(--vd-negative-text); }
.xw-pr__d { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 2px; font: 600 11px/15px var(--font-sans); }
.xw-pr__d span { display: inline-flex; align-items: center; gap: 3px; }
.xw-pr__d .is-ok { color: var(--vd-positive-text); }
.xw-pr__d .is-no { color: var(--vd-negative-text); }
.xw-subf { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface); }
.xw-subf .vd-segmented { margin-bottom: 6px; }
.xw-mg { font: 800 18px/24px var(--font-sans); }
.xw-pb { border-radius: 12px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xw-pb.is-neg { box-shadow: inset 0 0 0 1px var(--vd-negative-solid); }
.xw-pb > summary { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; padding: 10px 12px; cursor: pointer; list-style: none; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-pb > summary::-webkit-details-marker { display: none; }
.xw-pb > summary b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-pb__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 0 12px 12px; font: 500 12.5px/18px var(--font-sans); }
.xw-pb__r > span { display: flex; flex-direction: column; min-width: 0; }
.xw-pb__r em { font-style: normal; font-size: 11.5px; color: var(--vd-text-2); }
.xw-pb__r > b { font-variant-numeric: tabular-nums; text-align: right; }
.xw-rqc { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xw-rqc.is-neg { background: var(--vd-negative-tint); color: var(--vd-negative-text); }

/* hours rings, tachograph */
.xw-rings { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.xw-ring { display: inline-flex; align-items: center; gap: 8px; }
.xw-ring svg { width: 52px; height: 52px; flex: none; }
.xw-ring__bg { fill: none; stroke: var(--vd-neutral-tint); stroke-width: 6; }
.xw-ring__fg { fill: none; stroke: var(--vd-positive-solid); stroke-width: 6; stroke-linecap: round; }
.xw-ring.is-att .xw-ring__fg { stroke: var(--vd-attention-solid); }
.xw-ring.is-neg .xw-ring__fg { stroke: var(--vd-negative-solid); }
.xw-ring__t { display: flex; flex-direction: column; font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xw-ring__t b { font: 800 13px/17px var(--font-sans); color: var(--vd-text-1); font-variant-numeric: tabular-nums; }
.xw-rings--s { gap: 6px 10px; min-width: 250px; }
.xw-rings--s .xw-ring svg { width: 34px; height: 34px; }
.xw-rings--s .xw-ring__bg, .xw-rings--s .xw-ring__fg { stroke-width: 7; }
.xw-rings--s .xw-ring__t b { font-size: 12px; line-height: 15px; }
.xw-rings--s .xw-ring__t span { font-size: 10.5px; }
.xw-bar1 { display: block; width: 100%; min-width: 80px; height: 8px; margin: 4px 0; border-radius: 4px; background: var(--vd-neutral-tint); overflow: hidden; }
.xw-bar1 > i { display: block; height: 100%; border-radius: 4px; background: var(--vd-processing-solid); }
.xw-bar1.is-neg > i { background: var(--vd-negative-solid); }
.xw-bar1.is-att > i { background: var(--vd-attention-solid); }
.xw-barc { min-width: 110px; }
.xw-tc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xw-tc > span:nth-child(2) { display: flex; flex-direction: column; flex: 1 1 320px; min-width: 0; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-tc b { font: 800 14px/19px var(--font-sans); color: var(--vd-text-1); }

/* back office */
.xw-chart { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 10px; }
.xw-ch { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; align-items: center; gap: 10px; }
.xw-ch__l { display: flex; flex-direction: column; min-width: 0; font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xw-ch__l b { font: 700 13px/17px var(--font-sans); color: var(--vd-text-1); }
.xw-ch .xw-bar1 { height: 12px; }
.xw-ch__v { font: 800 13px/17px var(--font-sans); font-variant-numeric: tabular-nums; }
.xw-ch__v span { font-weight: 500; color: var(--vd-text-2); font-size: 11.5px; }
.xw-provs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.xw-prov { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 12px; background: var(--vd-surface); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); font: 500 12.5px/18px var(--font-sans); }
.xw-prov.is-on { box-shadow: inset 0 0 0 1px var(--vd-positive-solid); }
.xw-flags { display: flex; flex-direction: column; }
.xw-fl { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--vd-border-subtle); }
.xw-fl:first-child { border-top: 0; }
.xw-fl__t { display: flex; flex-direction: column; flex: 1 1 320px; min-width: 0; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-fl__t b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-fl__c { display: flex; flex-wrap: wrap; margin-top: 3px; }
.xw-imp1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 12px; background: var(--vd-surface-2); }
.xw-imp1 > i { font-size: 24px; }
.xw-imp1 > span { display: flex; flex-direction: column; flex: 1 1 260px; min-width: 0; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-imp1 b { font: 700 13.5px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-tinv { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 14px; }
.xw-tinv__c { border-radius: 12px; background: var(--vd-surface-2); overflow: hidden; }
.xw-tinv__h { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 10px 12px; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-tinv__h b { font: 800 13.5px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-tinv__h > span { flex: 1 1 200px; }
.xw-tinv__r { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--vd-border-subtle); font: 500 12.5px/18px var(--font-sans); }
.xw-tinv__r > span:nth-child(2) { flex: 1 1 220px; color: var(--vd-text-2); }
.xw-invdoc { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 12px; background: var(--vd-surface); color: var(--vd-text-1); box-shadow: var(--vd-shadow-e2), inset 0 0 0 1px var(--vd-border-subtle); }
.xw-invdoc__h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xw-invdoc__h > span { display: flex; flex-direction: column; font: 500 11.5px/16px var(--font-sans); color: var(--vd-text-1); }
.xw-invdoc__h b { font: 800 14px/19px var(--font-sans); color: var(--vd-grey-950); }
.xw-invdoc__no { text-align: right; }
.xw-invdoc__no b { font-size: 18px; line-height: 22px; }
.xw-invdoc__p { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.xw-invdoc__p > span { display: flex; flex-direction: column; font: 500 12px/17px var(--font-sans); color: var(--vd-text-1); }
.xw-l { font: 700 10px/14px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--vd-grey-300); }
.xw-invl { width: 100%; border-collapse: collapse; font: 500 12px/17px var(--font-sans); color: var(--vd-text-1); }
.xw-invl th { padding: 6px 4px; border-bottom: 1px solid var(--vd-grey-250); text-align: left; font: 700 10.5px/14px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--vd-grey-300); }
.xw-invl td { padding: 6px 4px; border-bottom: 1px solid var(--vd-border-subtle); vertical-align: top; }
.xw-invl .vd-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xw-invt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; margin-left: auto; min-width: min(100%, 320px); font: 500 12.5px/18px var(--font-sans); color: inherit; }
.xw-invt b { text-align: right; font-variant-numeric: tabular-nums; }
.xw-invt__t { font-size: 16px !important; }
.xw-invn { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--vd-canvas); font: 500 11.5px/16px var(--font-sans); color: var(--vd-text-1); }
.xw-att { display: flex; flex-wrap: wrap; gap: 6px 12px; font: 600 11.5px/16px var(--font-sans); color: var(--vd-text-1); }
.xw-att span { display: inline-flex; align-items: center; gap: 4px; }
.xw-trls { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-bottom: 8px; }
.xw-trl { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.xw-trl__h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.xw-trl__h > span:nth-child(2) { display: flex; flex-direction: column; flex: 1 1 160px; min-width: 0; font: 500 11.5px/16px var(--font-sans); color: var(--vd-text-2); }
.xw-trl__h b { font: 800 14.5px/19px var(--font-mono); color: var(--vd-text-1); }
.xw-trl .mk-select { flex: 1 1 140px; min-width: 0; }
.xw-det summary { cursor: pointer; font: 700 12px/18px var(--font-sans); color: var(--vd-text-2); }
.xw-det .xw-log { margin-top: 6px; }
.xw-wl { align-items: end; }
.xw-amt { display: inline-flex; align-items: center; min-height: 36px; font: 700 13px/18px var(--font-sans); font-variant-numeric: tabular-nums; }
.xw-photo { width: 100%; }
.demo-pill.xw-demo { margin-right: auto; }

/* phone: VERIDIUM Marketplace */
.xw-mcard { display: flex; flex-direction: column; gap: 6px; }
.xw-mrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 12px; background: var(--vd-surface-2); color: var(--vd-text-1); text-align: left; cursor: pointer; font: inherit; }
.xw-mrow > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xw-mrow b { font: 700 13px/17px var(--font-sans); color: var(--vd-text-1); }
.xw-mrow.is-hot { background: var(--vd-attention-tint); }
.xw-mrow.is-hot > i:first-child { color: var(--vd-attention-text); }
.xw-mo { display: flex; flex-direction: column; gap: 4px; font: 500 12px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-mo > b { font: 800 14px/19px var(--font-sans); color: var(--vd-text-1); }
.xw-mo__h { display: flex; align-items: center; gap: 6px; }
.xw-mo__h .xw-src { margin: 0; }
.xw-mo__s { display: flex; align-items: flex-start; gap: 4px; font: 600 12px/16px var(--font-sans); color: var(--vd-positive-text); }
.xw-mo__s.is-warn { color: var(--vd-attention-text); }
.xw-mo__s.is-bad { color: var(--vd-negative-text); }
.xw-mo .vd-btn { margin-top: 4px; }
.xw-msh .xw-subc { margin: 0; }
.xw-subc--m .xw-pr { padding: 10px; }

/* driver: VERIDIUM Driver */
.xw-dj { display: flex; flex-direction: column; gap: 6px; }
.xw-dj__i { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-top: 1px solid var(--vd-border-subtle); }
.xw-dj__i > span:last-child { display: flex; flex-direction: column; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xw-dj__i b { font: 700 13px/17px var(--font-sans); color: var(--vd-text-1); }
.xw-dj__n { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--vd-processing-tint); color: var(--vd-processing-text); font: 800 11.5px/1 var(--font-sans); }
.xw-dcard { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; border: 0; color: var(--vd-text-1); text-align: left; font: inherit; }
button.xw-dcard { cursor: pointer; }
.xw-dcard > i:first-child { flex: none; font-size: 20px; color: var(--vd-text-2); }
.xw-dcard > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xw-dcard b { font: 700 13.5px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-dcard.is-att { background: var(--vd-attention-tint); }
.xw-dcard.is-att > i:first-child { color: var(--vd-attention-text); }
.xw-dsheet { max-height: 86%; display: flex; flex-direction: column; }
.xw-dsheet__b { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding-bottom: 8px; }
.xw-dh .xw-rings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xw-24 { position: relative; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--vd-neutral-tint) 0 calc(25% - 1px), var(--vd-border-subtle) calc(25% - 1px) 25%); overflow: hidden; }
.xw-24 > i { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: var(--vd-processing-solid); }
.xw-24 > i.is-work { background: var(--vd-attention-solid); }
.xw-24 > b { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--vd-negative-solid); }
.xw-24s { display: flex; justify-content: space-between; font: 600 10px/14px var(--font-mono); color: var(--vd-text-2); }
.xw-24l { display: flex; gap: 12px; font: 600 11px/14px var(--font-sans); color: var(--vd-text-2); }
.xw-24l i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 3px; background: var(--vd-processing-solid); vertical-align: -1px; }
.xw-24l i.is-work { background: var(--vd-attention-solid); }
.xw-24l i.is-rest { background: var(--vd-neutral-tint); }
.xw-dnote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xw-dnote > i { font-size: 20px; }
.xw-dnote > span { display: flex; flex-direction: column; flex: 1 1 180px; font: 500 12px/16px var(--font-sans); color: var(--vd-text-2); }
.xw-dnote b { font: 700 13px/17px var(--font-sans); color: var(--vd-text-1); }
.xw-ok { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/18px var(--font-sans); color: var(--vd-positive-text); }
.xw-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border-radius: 14px; background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse-2); text-align: center; font: 500 12px/16px var(--font-sans); }
.xw-qr i { font-size: 44px; color: var(--vd-text-on-inverse); }

@media (max-width: 1180px) {
  .xw-two, .xw-split2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .mk-area:has(.xw-hact) { flex-wrap: wrap; }
  .mk-area:has(.xw-hact) .mk-area__act { margin-left: 0; width: 100%; }
  .xw-hact { width: 100%; }
  .xw-hact > .vd-btn { flex: 1 1 0; }
  .xw-g2, .xw-g4 { grid-template-columns: minmax(0, 1fr); }
  .xw-q { max-width: none; }
  .xw-offers, .xw-trls, .xw-conns { grid-template-columns: minmax(0, 1fr); }
  .xw-offers { padding: 0 12px 12px; }
  .xw-ch { grid-template-columns: 100px minmax(0, 1fr); }
  .xw-ch__v { grid-column: 2; }
  .xw-invdoc { padding: 12px; }
  .xw-invdoc__p { grid-template-columns: minmax(0, 1fr); }
  .xw-ef { grid-template-columns: 84px minmax(0, 1fr); }
  .xw-ef__c { grid-column: 2; }
  .xw-log li { flex-direction: column; gap: 0; }
  .xw-k--3 { grid-template-columns: minmax(0, 1fr); }
  .xw-rings--s { min-width: 0; }
  .xw-pad { padding: 0 12px 12px; }
  .xw-fl { padding: 10px 12px; }
  .xw-tinv { padding: 0 12px 12px; }
}
.xw-dsheet__b > * { flex: none; }
.xw-pkvs { display: flex; flex-direction: column; gap: 0; padding-top: 4px; padding-bottom: 4px; }
.xw-pkv { display: flex; flex-direction: column; gap: 1px; padding: 7px 0; border-top: 1px solid var(--vd-border-subtle); font: 500 11.5px/15px var(--font-sans); color: var(--vd-text-2); }
.xw-pkv:first-child { border-top: 0; }
.xw-pkv b { font: 700 13px/18px var(--font-sans); color: var(--vd-text-1); }
.xw-dr .vd-drawer__foot { flex-wrap: wrap; justify-content: flex-end; }
.xw-dr .vd-drawer__foot > .mk-why { flex: 1 1 160px; }
@media (max-width: 767px) {
  .xw-dr .vd-drawer__foot { justify-content: stretch; max-height: 46%; overflow-y: auto; }
  .xw-dr .vd-drawer__foot > .vd-btn { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .xw-dr .vd-drawer__foot > .vd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .xw-dr .vd-drawer__foot > .vd-badge, .xw-dr .vd-drawer__foot > .demo-pill { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 767px) {
  .xw-tcard--cards .vd-table-scroll { overflow: visible; }
  .xw-tcard--cards table, .xw-tcard--cards tbody { display: block; width: 100%; }
  .xw-tcard--cards thead { display: none; }
  .xw-tcard--cards tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; border-top: 1px solid var(--vd-border-subtle); }
  .xw-tcard--cards tr:first-child { border-top: 0; }
  .xw-tcard--cards td { display: block; padding: 0 !important; border: 0 !important; height: auto !important; min-width: 0; text-align: left !important; }
  .xw-tcard--cards td:nth-child(5) { grid-column: 2; grid-row: 1; text-align: right !important; }
  .xw-tcard--cards td:nth-child(7) { grid-column: 2; grid-row: 2 / 4; align-self: center; }
  .xw-tcard--cards td:nth-child(n+2):not(:nth-child(5)):not(:nth-child(7)) { grid-column: 1; }
}
.xw-t--nw td, .xw-t--nw th { white-space: nowrap; }
.xw-trl .vd-kv-list__value { font: 500 12.5px/17px var(--font-sans); }
.xw-trl .vd-kv-list__key { flex: none; }
.xw-segnw { flex-wrap: nowrap; white-space: nowrap; }
.xw-t--nw th, .xw-t--nw td { padding-left: 6px; padding-right: 6px; }

/* S9 · own order on a truck without a driver that day */
.xw-tag.xw-tag--nodrv { background: var(--vd-negative-tint); color: var(--vd-negative-text); }

/* v0.5 · PM-22 one invoice register, e-invoicing profile */
.ov-k.xw-k6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xw-kbtn { text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit; }
.xw-kbtn:hover { box-shadow: inset 0 0 0 1px var(--vd-border-strong), var(--vd-shadow-e1); }
.xw-kbtn:focus-visible { outline: 2px solid var(--vd-focus-edge); outline-offset: 2px; }
.xw-kbtn .kpi__v { font-size: 17px; line-height: 30px; }
.xw-rsrc { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.xw-rbar { padding: 0 16px; }
.xw-rbar .mk-select { max-width: 280px; }
.xw-rtag { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 0 7px 0 5px; border-radius: 999px; font: 700 10.5px/18px var(--font-sans); white-space: nowrap; background: var(--vd-neutral-tint); color: var(--vd-text-2); }
.xw-rtag--vf { background: var(--vd-surface-inverse); color: var(--vd-text-on-inverse); }
.xw-rtag--fee { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xw-rtag--own { background: var(--vd-processing-tint); color: var(--vd-processing-text); }
.xw-rtag--cn { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xw-rtag--pb { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xw-reg td { vertical-align: top; }
.xw-einv__g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; margin-bottom: 10px; }
.xw-einv__g .mk-select, .xw-einv__g .vd-input { width: 100%; }

/* v0.5 · PM-32 tariffs and quotes */
.xw-qf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 4px 0 8px; }
.xw-qf .mk-select, .xw-qf .vd-input { width: 100%; }
.xw-qp { display: flex; flex-direction: column; border-radius: 12px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); padding: 4px 12px; margin-bottom: 8px; }
.xw-qp__r { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--vd-border-subtle); font: 500 12.5px/17px var(--font-sans); color: var(--vd-text-2); }
.xw-qp__r:first-child { border-top: 0; }
.xw-qp__r b { flex: none; color: var(--vd-text-1); font-variant-numeric: tabular-nums; }
.xw-qp__r.is-man span { color: var(--vd-attention-text); }
.xw-qp__t { font-weight: 700; color: var(--vd-text-1); }
.xw-qp__t b { font-size: 14px; }

/* v0.5 · INV-26 trailer hygiene (last loads, cleaning log) */
.xw-hyg { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font: 700 11px/17px var(--font-sans); background: var(--vd-neutral-tint); color: var(--vd-text-2); max-width: 100%; }
.xw-hyg--positive { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xw-hyg--attention { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xw-hyg--negative { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xw-hygb { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--vd-surface-2); box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
.xw-hygb__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font: 700 12.5px/18px var(--font-sans); }
.xw-hygb__c { display: flex; flex-direction: column; gap: 4px; }
.xw-hygb__r { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; align-items: baseline; font: 500 12px/16px var(--font-sans); }
.xw-hygb__r .small { grid-column: 2; }
.xw-hcat { display: inline-flex; padding: 0 6px; border-radius: 6px; font: 700 10.5px/17px var(--font-sans); background: var(--vd-neutral-tint); color: var(--vd-text-2); white-space: nowrap; }
.xw-hcat--food, .xw-hcat--bev, .xw-hcat--clean { background: var(--vd-positive-tint); color: var(--vd-positive-text); }
.xw-hcat--chem, .xw-hcat--feed { background: var(--vd-attention-tint); color: var(--vd-attention-text); }
.xw-hcat--adr, .xw-hcat--waste { background: var(--vd-negative-tint); color: var(--vd-negative-text); }
.xw-dhyg .xw-hyg { margin: 2px 0 6px; }
.xw-dhyg.is-warn { box-shadow: inset 3px 0 0 var(--vd-negative-text); }
@media (max-width: 767px) {
  .ov-k.xw-k6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xw-einv__g, .xw-qf { grid-template-columns: minmax(0, 1fr); }
  .xw-rsrc { padding: 0 12px 10px; }
  .xw-rbar { padding: 0 12px; }
  .xw-rbar .mk-select { max-width: none; flex: 1 1 100%; }
}
.xw-reg td:nth-child(3), .xw-reg td:nth-child(4) { white-space: nowrap; }
/* v0.6 · CX2-05/06: open vehicle-master conflict chip (opens the Compliance truck record) */
.xw-conf { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border: 1px solid var(--vd-attention-solid); border-radius: 999px; background: var(--vd-attention-tint); color: var(--vd-attention-text); font: 500 11.5px/1.4 var(--font-sans); cursor: pointer; max-width: 100%; text-align: left; }
.xw-conf:hover { background: var(--vd-surface); }
.xw-conf .ph, .xw-conf i { font-size: 13px; }
.xw-conf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v0.6 · SELF-xw-1 kilometre review */
.xw-lnk { border: 0; background: none; padding: 0; color: var(--vd-processing-text); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.xw-kmr { display: flex; flex-direction: column; border: 1px solid var(--vd-border-subtle); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.xw-kmr__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d k" "a a"; gap: 4px 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--vd-border-subtle); }
.xw-kmr__r:first-child { border-top: 0; }
.xw-kmr__d { grid-area: d; display: flex; flex-direction: column; min-width: 0; }
.xw-kmr__d span { color: var(--vd-text-2); font-size: 12.5px; }
.xw-kmr__k { grid-area: k; font-variant-numeric: tabular-nums; }
.xw-kmr__a { grid-area: a; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xw-kmf { border: 1px solid var(--vd-processing-solid); background: var(--vd-processing-tint); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.xw-kvsep { height: 1px; background: var(--vd-border-subtle); margin: 6px 0; }
@media (min-width: 720px) { .xw-kmr__r { grid-template-columns: minmax(0, 1fr) 90px auto; grid-template-areas: "d k a"; } .xw-kmr__a { justify-content: flex-end; } }
/* v0.6 · UX5-06/07: low-value columns ('~' in the table heading) step aside under 768 px; status, amount and the action stay */
@media (max-width: 767px) { .xw-hs [data-hs] { display: none; } }
/* v0.6 · SELF-xw-2 margin per suggested truck */
.xw-sg__m { color: var(--vd-positive-text); font-variant-numeric: tabular-nums; }
.xw-sg__m.is-neg { color: var(--vd-negative-text); }
.xw-sg__m b { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--vd-positive-tint); font-size: 11px; }
.xw-resc { min-width: 96px; }
.xw-resc .xw-bar2, .xw-resc > span:last-child { display: block; margin-top: 4px; }
.xw-wr { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--vd-border-subtle); }

/* v0.7 · Workshop › Maintenance plan: one card per vehicle at phone width (no rowspan table) */
.xw-mpc { display: none; }
@media (max-width: 767px) {
  .xw-mpt { display: none; }
  .xw-mpc { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
  .xw-mpc__v { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--vd-border-subtle); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
  .xw-mpc__v.is-over { box-shadow: inset 0 0 0 1px var(--vd-negative-solid); }
  .xw-mpc__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .xw-mpc__h b { font: 800 14px/18px var(--font-sans); }
  .xw-mpc__n { margin-left: auto; font: 700 12px/16px var(--font-sans); color: var(--vd-attention-text); }
  .xw-mpc__i { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--vd-border-subtle); }
  .xw-mpc__l { display: flex; flex-direction: column; gap: 2px; font: 500 13px/18px var(--font-sans); }
  .xw-mpc__s { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .xw-mpc__a { display: flex; gap: 8px; flex-wrap: wrap; }
}
/* v0.7 · Ageing at phone width: one block per row */
.xw-agc { display: none; }
@media (max-width: 767px) {
  .xw-agt { display: none; }
  .xw-agc { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 4px; }
  .xw-agc__r { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--vd-border-subtle); }
  .xw-agc__h { display: flex; justify-content: space-between; gap: 8px; font: 700 13.5px/18px var(--font-sans); }
  .xw-agc__v { font-family: var(--font-mono); }
  .xw-agc__b { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 600 12px/16px var(--font-sans); color: var(--vd-text-2); }
}
/* v0.7 · trip history import (previous TMS) */
.xw-hist { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--vd-border-subtle); border-radius: 10px; background: var(--vd-surface-2); font: 500 13px/19px var(--font-sans); color: var(--vd-text-2); }
.xw-hist > i { flex: none; color: var(--vd-text-3); }
.xw-hist > span { flex: 1 1 260px; min-width: 0; }
.xw-hist b { color: var(--vd-text-1); }
@media (max-width: 600px) { .xw-hist .vd-btn { width: 100%; justify-content: center; } }
/* TM5-08 · Customers (customer accounts) */
.xw-ca-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.xw-ca-h__t { display: flex; flex-direction: column; min-width: 0; flex: 1 1 220px; }
.xw-ca-h__t b { font-size: 18px; line-height: 1.3; }
.xw-ca-h__t span { font-size: 13px; color: var(--vd-text-2); }
.xw-ca-ts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.xw-ca-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border: 1px solid var(--vd-border); border-radius: 12px; background: var(--vd-surface); text-align: left; font: inherit; color: inherit; }
button.xw-ca-t { cursor: pointer; }
button.xw-ca-t:hover { border-color: var(--vd-border-strong); }
.xw-ca-t__l { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--vd-text-2); }
.xw-ca-t__v { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.xw-ca-t__v.is-neg { color: var(--vd-negative-text); }
.xw-ca-t__v.is-att { color: var(--vd-attention-text); }
.xw-ca-t__s { font-size: 12px; color: var(--vd-text-2); overflow-wrap: anywhere; }
.xw-ca-rq { display: flex; flex-direction: column; }
.xw-ca-r { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--vd-border); }
.xw-ca-r:first-child { border-top: 0; }
.xw-ca-r > span { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.xw-ca-r > span > span { font-size: 13px; color: var(--vd-text-2); overflow-wrap: anywhere; }
.xw-ca-r .xw-ca-r__src { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.xw-ca-r.is-att > .ph, .xw-ca-r.is-att > i { color: var(--vd-attention-text); }
.xw-ca-r.is-neg > .ph, .xw-ca-r.is-neg > i { color: var(--vd-negative-text); }
.xw-ca-r.is-on { background: color-mix(in srgb, var(--vd-positive-tint) 55%, transparent); }
.xw-ca-r .vd-btn { flex: 0 0 auto; }
.xw-ca-own { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px dashed var(--vd-border); border-radius: 12px; margin: 0 0 14px; }
.xw-ca-own > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.xw-ca-own > span > span { font-size: 13px; color: var(--vd-text-2); }
.xw-ca-dc .ap-k { display: flex; align-items: center; gap: 6px; }
.xw-ca-dl { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.xw-ca-dl li { display: flex; flex-direction: column; gap: 2px; }
.xw-ca-dl li span { font-size: 13px; color: var(--vd-text-2); }
.xw-ca-m { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.xw-msh .xw-ca-ts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xw-msh .xw-ca-r { padding: 10px 12px; border: 1px solid var(--vd-border); border-radius: 12px; margin: 0 0 8px; flex-wrap: wrap; }
.xw-msh .xw-ca-r > span { flex: 1 1 calc(100% - 34px); }
.xw-msh .xw-ca-r .vd-btn { margin-left: 30px; }
@media (max-width: 1100px) { .xw-ca-ts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .xw-ca-r { flex-wrap: wrap; padding: 10px 12px; }
  .xw-ca-r > span { flex: 1 1 calc(100% - 34px); }
  .xw-ca-r .vd-btn { min-height: 36px; margin-left: 30px; }
  .xw-ca-own { flex-wrap: wrap; }
  .xw-ca-t { padding: 10px 12px; }
  .xw-ca-t__v { font-size: 15px; }
}
.xw-ca-sc { flex: 0 0 40px; text-align: right; font-size: 16px; font-variant-numeric: tabular-nums; }
