/* ======================================================================================
   TRUKVIA Supplier App (App 3): what it adds to mockup.css and driver.css
   ====================================================================================== */

/* sums: gross, deductions, net */
.sums { margin-top: 12px; padding: 6px 16px 10px; border-radius: 18px; background: #fff; box-shadow: 0 1px 1px rgba(13, 30, 60, 0.03), 0 10px 26px -16px rgba(13, 30, 60, 0.22); }
.sums .sumline small { display: block; margin-top: 3px; font: 450 11.5px/1.3 var(--sans); color: var(--faint); }
.sums .sumline.total b.g { color: var(--green-600); }
.sumline .pos { color: var(--green-600); }
.sumline[data-go] { cursor: pointer; }

/* information the office does not share with suppliers */
.lockline { display: flex; align-items: center; gap: 8px; font: 550 13px/1.3 var(--sans); color: var(--faint); }
.lockline .ic { width: 15px; height: 15px; flex: none; }

/* a freight calculation, written out */
.calc { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--navy-950); color: #dbe6ff; font: 600 14px/1.6 var(--sans); }
.calc b { color: #fff; font-weight: 800; }
.calc small { display: block; margin-top: 6px; font: 500 12px/1.4 var(--sans); color: rgba(219, 230, 255, 0.7); }

/* month bars */
.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; height: 150px; margin-top: 12px; padding: 14px 16px 12px; border-radius: 18px; background: #fff; box-shadow: 0 1px 1px rgba(13, 30, 60, 0.03), 0 10px 26px -16px rgba(13, 30, 60, 0.22); }
.bars > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bars i { display: block; width: 44px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--violet-600) 0 11%, var(--orange-500) 11% 100%); }
.bars b { font: 750 12.5px/1 var(--display); color: var(--ink); }
.bars small { font: 600 11px/1 var(--sans); color: var(--muted); }
.bars-key { display: flex; gap: 14px; margin-top: 8px; font: 550 12px/1 var(--sans); color: var(--muted); }
.bars-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 3px; background: var(--orange-500); }
.bars-key span + span::before { background: var(--violet-600); }

/* a message thread with the office */
.msg { max-width: 86%; margin-top: 10px; padding: 11px 13px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 0 0 0.5px var(--line); font: 450 13.5px/1.45 var(--sans); color: var(--ink-2); }
.msg.me { margin-left: auto; border-radius: 16px 16px 4px 16px; background: var(--blue-600); box-shadow: none; color: #fff; }
.msg small { display: block; margin-top: 5px; font: 600 11px/1 var(--sans); opacity: 0.7; }

/* ======================================================================================
   Round 2: every module its own colour, every screen a clear anchor
   ====================================================================================== */
/* module colours on the page: the number badge and tags take the module colour */
#m01 { --acc: #0a2150; --acc-t: #eef2fa; --acc-f: #123a7a; }
#m02 { --acc: #1652b8; --acc-t: #eef4ff; --acc-f: #1652b8; }
#m03 { --acc: #0b8bc9; --acc-t: #e5f6fd; --acc-f: #0b6f9f; }
#m04 { --acc: #e26d00; --acc-t: #fff4e8; --acc-f: #c45d00; }
#m05 { --acc: #6a4cf0; --acc-t: #f0ecff; --acc-f: #5a3ee0; }
#m06 { --acc: #0b8a55; --acc-t: #e7f7ef; --acc-f: #0b7a4b; }
#m07 { --acc: #071a3a; --acc-t: #eef1f6; --acc-f: #2b3a4c; }
#m08 { --acc: #7c3aed; --acc-t: #f3edff; --acc-f: #6d28d9; }
#m09 { --acc: #d1343a; --acc-t: #fdeced; --acc-f: #b8262c; }
#m10 { --acc: #c47a00; --acc-t: #fff5df; --acc-f: #9a5b00; }
.cv-row .cv-num { background: var(--acc, var(--navy-900)); }
.cv-row .cv-tags span { background: var(--acc-t, var(--orange-50)); color: var(--acc-f, var(--orange-600)); }
.cv-row-head h2::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--acc, var(--navy-900)); }

/* the anchor card at the top of a screen */
.sh { position: relative; margin-top: 6px; padding: 16px; border-radius: 22px; overflow: hidden; color: #fff; background: linear-gradient(150deg, var(--sh1), var(--sh2)); box-shadow: 0 18px 36px -22px rgba(7, 26, 58, 0.85); }
.sh::after { content: ""; position: absolute; right: -46px; top: -56px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.09); pointer-events: none; }
.sh > * { position: relative; z-index: 1; }
.sh.navy { --sh1: #163f86; --sh2: #071a3a; }
.sh.blue { --sh1: #2f72e8; --sh2: #11449c; }
.sh.sky { --sh1: #22a8e6; --sh2: #0a6f9f; }
.sh.green { --sh1: #18b072; --sh2: #087046; }
.sh.orange { --sh1: #fb9426; --sh2: #d45f00; }
.sh.violet { --sh1: #8063f5; --sh2: #4b2fcc; }
.sh.purple { --sh1: #9156f2; --sh2: #5b21b6; }
.sh.amber { --sh1: #f5a524; --sh2: #b86e00; }
.sh.red { --sh1: #f0646a; --sh2: #b3242a; }
.sh-top { display: flex; align-items: center; gap: 9px; font: 700 11.5px/1.2 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.sh-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, 0.2); }
.sh-ic .ic { width: 16px; height: 16px; }
.sh-tag { margin-left: auto; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font: 700 11px/1 var(--sans); letter-spacing: 0; text-transform: none; color: #fff; white-space: nowrap; }
.sh-amt { display: block; margin-top: 12px; font: 800 34px/1 var(--display); letter-spacing: -0.03em; }
.sh-title { display: block; margin-top: 12px; font: 800 22px/1.15 var(--display); letter-spacing: -0.015em; }
.sh-sub { display: block; margin-top: 6px; font: 500 13px/1.4 var(--sans); color: rgba(255, 255, 255, 0.82); }
.sh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.sh-stats.two { grid-template-columns: 1fr 1fr; }
.sh-stats small { display: block; font: 600 11px/1.2 var(--sans); color: rgba(255, 255, 255, 0.75); }
.sh-stats b { display: block; margin-top: 4px; font: 800 15px/1.15 var(--display); }
.sh-who { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.sh-who .av { width: 48px; height: 48px; font-size: 16px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
.sh-who b { display: block; font: 800 20px/1.15 var(--display); }
.sh-who > div span { display: block; margin-top: 3px; font: 500 12.5px/1.3 var(--sans); color: rgba(255, 255, 255, 0.8); }
.sh .plate { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }
.sh .tank { position: absolute; right: 12px; bottom: 70px; width: 132px; height: 56px; opacity: 0.95; }
.sh-route { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 750 15px/1.2 var(--display); }
.sh-route .ic { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.8); }

/* how gross freight splits: net, diesel, FASTag, shortage */
.flow { display: flex; height: 12px; margin-top: 14px; border-radius: 6px; overflow: hidden; background: #e6ebf2; }
.flow i { display: block; height: 100%; }
.flow i + i { box-shadow: -1px 0 0 rgba(255, 255, 255, 0.6); }
.flow .n { background: var(--green-500); }
.flow .d { background: var(--orange-500); }
.flow .f { background: var(--violet-600); }
.flow .s { background: var(--red-500); }
.sh .flow { background: rgba(255, 255, 255, 0.2); }
.sh .flow .n { background: #fff; }
.sh .flow .d { background: #ffb259; }
.sh .flow .f { background: #c4b5ff; }
.sh .flow .s { background: #ff8a8f; }
.flow-key { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font: 600 11.5px/1.2 var(--sans); color: var(--muted); }
.sh .flow-key { color: rgba(255, 255, 255, 0.9); }
.flow-key span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; background: var(--k); }

/* lorry cards */
.lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.lcard { position: relative; padding: 10px 12px 12px; border-radius: 18px; background: #fff; box-shadow: 0 1px 1px rgba(13, 30, 60, 0.03), 0 10px 24px -16px rgba(13, 30, 60, 0.25); cursor: pointer; }
.lcard .lc-art { display: grid; place-items: center; height: 58px; margin: 0 -2px 8px; border-radius: 12px; background: linear-gradient(160deg, #eef3fb, #dde7f4); }
.lcard .lc-art.on { background: linear-gradient(160deg, #e2f3fd, #c9e8fa); }
.lcard .lc-art.bad { background: linear-gradient(160deg, #fff0f0, #fde0e1); }
.lcard .tank { width: 96px; height: 40px; }
.lcard b { display: block; margin-top: 8px; font: 700 12.5px/1.2 var(--sans); color: var(--ink); }
.lcard small { display: block; margin-top: 3px; font: 500 11px/1.3 var(--sans); color: var(--muted); }
.lcard .pill { position: absolute; top: 8px; right: 8px; }

/* status tiles */
.stiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.stiles > div { padding: 12px; border-radius: 16px; color: #fff; background: linear-gradient(150deg, var(--s1), var(--s2)); box-shadow: 0 12px 24px -18px rgba(7, 26, 58, 0.8); }
.stiles b { display: block; font: 800 26px/1 var(--display); }
.stiles small { display: block; margin-top: 6px; font: 650 11.5px/1.2 var(--sans); color: rgba(255, 255, 255, 0.92); }
.stiles .r { --s1: #f0646a; --s2: #b3242a; }
.stiles .b { --s1: #2f72e8; --s2: #11449c; }
.stiles .g { --s1: #18b072; --s2: #087046; }
.stiles .a { --s1: #f5a524; --s2: #b86e00; }

/* a fuel slip or toll receipt */
.receipt { position: relative; margin-top: 6px; padding: 18px 16px 20px; border-radius: 18px 18px 6px 6px; background: #fff; box-shadow: 0 1px 1px rgba(13, 30, 60, 0.03), 0 14px 30px -18px rgba(13, 30, 60, 0.3); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 10px; background: radial-gradient(circle at 6px -2px, transparent 6px, #fff 6.5px) 0 0 / 12px 10px repeat-x; }
.receipt-h { display: flex; align-items: center; gap: 12px; }
.receipt-logo { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--orange-50); color: var(--orange-600); }
.receipt-logo.f { background: var(--violet-50); color: var(--violet-600); }
.receipt-logo .ic { width: 22px; height: 22px; }
.receipt-h b { display: block; font: 750 15px/1.2 var(--display); }
.receipt-h small { display: block; margin-top: 3px; font: 500 12px/1.3 var(--sans); color: var(--muted); }
.receipt .r-amt { margin: 16px 0 6px; font: 800 36px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.receipt-l { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px dashed #dfe4ec; font: 500 13px/1.3 var(--sans); color: var(--muted); }
.receipt-l b { font: 650 13px/1.3 var(--sans); color: var(--ink); text-align: right; }

/* horizontal bars: diesel and FASTag by lorry */
.hb { padding: 12px 14px; cursor: pointer; }
.hb + .hb { border-top: 0.5px solid var(--line); }
.hb-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 650 13.5px/1.2 var(--sans); color: var(--ink); }
.hb-top small { font: 500 11.5px/1.2 var(--sans); color: var(--muted); }
.hb-top b { font: 800 14px/1 var(--display); }
.hb-bar { display: flex; height: 8px; margin-top: 8px; border-radius: 4px; overflow: hidden; background: #eef1f6; }
.hb-bar i { display: block; height: 100%; }
.hb-bar .d { background: var(--orange-500); }
.hb-bar .f { background: var(--violet-600); }

/* small column charts inside an anchor card */
.mbars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 14px; }
.mbars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.mbars i { display: block; width: 100%; max-width: 30px; border-radius: 5px 5px 2px 2px; background: rgba(255, 255, 255, 0.4); }
.mbars div.on i { background: #fff; }
.mbars small { font: 650 10px/1 var(--sans); color: rgba(255, 255, 255, 0.8); }

/* a balance line inside an anchor card */
.spark { display: block; width: 100%; height: 64px; margin-top: 12px; overflow: visible; }
.spark polyline { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark .area { fill: rgba(255, 255, 255, 0.13); stroke: none; }
.spark-x { display: flex; justify-content: space-between; margin-top: 4px; font: 600 10.5px/1 var(--sans); color: rgba(255, 255, 255, 0.72); }

/* a step tracker inside an anchor card */
.hstep { display: flex; margin-top: 16px; }
.hstep > div { position: relative; flex: 1; text-align: center; font: 600 11px/1.25 var(--sans); color: rgba(255, 255, 255, 0.8); }
.hstep > div + div::before { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 2px; background: rgba(255, 255, 255, 0.3); }
.hstep > div.done + div::before { background: #fff; }
.hstep i { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.24); font: 800 11px/1 var(--display); font-style: normal; color: #fff; }
.hstep i .ic { width: 13px; height: 13px; stroke-width: 3; }
.hstep .done i { background: #fff; color: var(--green-600); }
.hstep .now i { background: #fff; color: var(--amber-700); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3); }
.hstep .now { color: #fff; font-weight: 750; }

/* how far over the shortage limit */
.gauge { position: relative; height: 14px; margin-top: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--green-500) 0 61%, var(--red-500) 61% 100%); }
.gauge::before { content: ""; position: absolute; left: 61%; top: -5px; bottom: -5px; width: 2px; background: var(--ink); }
.gauge-l { display: flex; justify-content: space-between; margin-top: 8px; font: 600 11.5px/1.2 var(--sans); color: var(--muted); }
.gauge-l b { color: var(--ink); }
