/*
 * Uren-run on /urenregistratie (js/uren-wow.js).
 *
 * Builds on css/how-it-works-wow.6b2716.css: the window, rail, pointer, inputs,
 * buttons, paper and captions come from there, with its scoped --hw-*
 * colours per theme. This file only adds what the hours story needs: the
 * running timer, the week grid on the desk, the urencriterium meter, the
 * list of hours to tick, and the overview in step 4. Everything is prefixed
 * uw-. Example data only.
 */

.uw {
  --uw-num: var(--hw-num);
}

/* ---------- Left: the timer (step 1) ---------- */
.uw-timer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--hw-line-strong);
  border-radius: 14px;
  background: var(--hw-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.uw-timer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.uw-proj {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  min-width: 0;
}

.uw-proj b {
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uw-proj small {
  grid-column: 2;
  color: var(--hw-ink-faint);
  font-size: 12px;
}

.uw-dot {
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c, var(--hw-accent));
}

.uw-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--hw-green-soft);
  color: var(--hw-green);
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.uw-live-off,
.uw-timer.is-stopped .uw-live-on {
  display: none;
}

.uw-timer.is-stopped .uw-live-off {
  display: inline;
}

.uw-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: uw-pulse 1.4s ease-in-out infinite;
}

@keyframes uw-pulse {
  50% {
    opacity: 0.3;
  }
}

.uw-desc {
  display: flex;
  height: 38px;
}

.uw-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.uw-clock {
  font-family: var(--uw-num);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--hw-ink);
  transition: color 0.3s ease;
}

.uw-stop {
  flex: none;
  align-self: center;
  white-space: nowrap;
  padding: 0 12px;
  background: #dc2626;
}

[data-theme="dark"] .uw-stop {
  background: #b91c1c;
}

.uw-booked {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--hw-green-soft);
  color: var(--hw-green);
  font-size: 13px;
  font-weight: 600;
}

.uw-timer.is-stopped .uw-live {
  background: var(--hw-surface-2);
  color: var(--hw-ink-faint);
}

.uw-timer.is-stopped .uw-live i {
  animation: none;
}

.uw-timer.is-stopped .uw-clock {
  color: var(--hw-ink-faint);
}

.uw-timer.is-stopped .uw-stop {
  display: none;
}

.uw-timer.is-stopped .uw-booked {
  display: flex;
  animation: hw-pop 0.45s var(--hw-spring);
}

.uw-timer.is-stopped .uw-timer-row {
  display: none;
}

/* "Eerder vandaag": the day so far */
.uw-day {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hw-line);
  border-radius: 12px;
  overflow: hidden;
}

.uw-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
}

.uw-entry + .uw-entry {
  border-top: 1px solid var(--hw-line);
}

.uw-entry-t {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.uw-entry-t b {
  font-weight: 600;
}

.uw-entry-t small {
  color: var(--hw-ink-faint);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uw-entry-h {
  font-family: var(--uw-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.uw-entry--soft .uw-entry-t b,
.uw-entry--soft .uw-entry-h {
  color: var(--hw-ink-soft);
  font-weight: 500;
}

/* ---------- Left: filling in afterwards (step 2) ---------- */
.uw-stage .hw-pane[data-pane="2"] .hw-search.is-picked .hw-typed {
  color: var(--hw-ink);
  font-weight: 600;
}

.hw-field > .hw-val.uw-static {
  color: var(--hw-ink);
}

.uw-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.uw-switch {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--hw-line-strong);
}

.uw-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.uw-switch.is-on {
  background: var(--hw-accent);
}

.uw-switch.is-on i {
  left: 16px;
}

.uw-rate {
  margin-left: auto;
  color: var(--hw-ink-faint);
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Left: hours to invoice (step 3) ---------- */
.uw-pick {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hw-line);
  border-radius: 12px;
  overflow: hidden;
}

.uw-pick-row {
  display: grid;
  grid-template-columns: auto 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  transition: background 0.25s ease;
}

.uw-pick-row + .uw-pick-row {
  border-top: 1px solid var(--hw-line);
}

.uw-pick-row.is-on {
  background: var(--hw-accent-soft);
}

.uw-check {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--hw-line-strong);
  border-radius: 5px;
  background: var(--hw-surface);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.uw-pick-row.is-on .uw-check {
  border-color: var(--hw-accent);
  background: var(--hw-accent);
  animation: hw-pop 0.35s var(--hw-spring);
}

.uw-pick-row.is-on .uw-check::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

[data-theme="dark"] .uw-pick-row.is-on .uw-check::after {
  border-color: #0f172a;
}

.uw-pick-d {
  color: var(--hw-ink-faint);
  font-size: 12px;
  font-family: var(--uw-num);
  font-variant-numeric: tabular-nums;
}

.uw-pick-t {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uw-pick-h {
  font-family: var(--uw-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.uw-pick-row--trip .uw-pick-t {
  color: var(--hw-ink-soft);
}

.uw-pick-sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 2px;
  color: var(--hw-ink-soft);
  font-weight: 600;
}

.uw-pick-sum > b {
  font-family: var(--uw-num);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--hw-ink);
}

.uw-make {
  align-self: stretch;
  margin-top: auto;
}

/* ---------- Right: the week ---------- */
.uw-stage.hw-stage {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
}

.uw-desk {
  padding: 18px;
}

.uw-week {
  width: 100%;
  max-width: 500px;
  padding: 16px 14px 14px;
  border: 1px solid var(--hw-line);
  border-radius: 16px;
  background: var(--hw-surface);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 16px 36px rgba(15, 23, 42, 0.1);
  transition:
    opacity 0.45s ease,
    transform 0.6s var(--hw-ease);
}

[data-theme="dark"] .uw-week {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 20px 44px rgba(0, 0, 0, 0.45);
}

.uw-week-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.uw-week-head b {
  font-size: 16px;
  font-weight: 700;
}

.uw-week-head small {
  color: var(--hw-ink-faint);
  font-size: 13px;
}

.uw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(5, minmax(26px, 32px)) minmax(32px, 40px);
  align-items: center;
  gap: 6px 4px;
}

.uw-gh {
  color: var(--hw-ink-faint);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.uw-gh-tot {
  text-align: right;
}

.uw-gname {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
}

.uw-gname > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.uw-gname b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uw-gname small {
  color: var(--hw-ink-faint);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uw-gname--soft b {
  color: var(--hw-ink-soft);
  font-weight: 500;
}

.uw-c {
  display: grid;
  place-items: center;
  height: 32px;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: var(--hw-surface);
  font-family: var(--uw-num);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--hw-ink);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.uw-c--empty,
.uw-c--zero {
  color: var(--hw-ink-faint);
  font-weight: 400;
  border-style: dashed;
}

.uw-c.is-on {
  border-color: var(--hw-accent);
  background: var(--hw-accent-soft);
  color: var(--hw-accent);
  animation: hw-pop 0.5s var(--hw-spring);
}

.uw-rt {
  font-family: var(--uw-num);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.uw-gf {
  padding-top: 8px;
  border-top: 1px solid var(--hw-line);
  font-family: var(--uw-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--hw-ink-soft);
}

.uw-gf.uw-gname {
  font-family: inherit;
  color: var(--hw-ink-faint);
}

.uw-gf.uw-rt {
  text-align: right;
  font-size: 14px;
  color: var(--hw-ink);
}

.uw-tots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.uw-tot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hw-surface-2);
}

.uw-tot small,
.uw-crit-top small {
  color: var(--hw-ink-faint);
  font-size: 12px;
  font-weight: 600;
}

.uw-tot b {
  font-family: var(--uw-num);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 700;
}

.uw-crit {
  margin-top: 12px;
}

.uw-crit-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--hw-ink-soft);
  font-size: 13px;
}

.uw-crit-top b {
  font-family: var(--uw-num);
  font-variant-numeric: tabular-nums;
  color: var(--hw-ink);
}

.uw-meter {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--hw-surface-2);
  box-shadow: inset 0 0 0 1px var(--hw-line);
  overflow: hidden;
}

.uw-meter i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1565c0, #2563eb 60%, #0d9488);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}

/* ---------- Right: the invoice (step 3, after "Factuur maken") ---------- */
.uw-desk > .uw-week,
.uw-desk > .uw-paper-wrap {
  grid-area: 1 / 1;
}

.uw-paper-wrap {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 0.45s ease,
    transform 0.6s var(--hw-ease),
    visibility 0s linear 0.45s;
}

.uw-desk.is-invoice .uw-paper-wrap {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.45s ease 0.1s,
    transform 0.6s var(--hw-ease) 0.1s,
    visibility 0s;
}

.uw-desk.is-invoice .uw-week {
  opacity: 0;
  transform: translateY(-14px) scale(0.97);
}

.uw-paper-wrap .hw-paper {
  aspect-ratio: 1 / 1.43;
}

/* Six lines with dates fit when the paper type steps down a little. */
.uw-p-table .hw-p-tr {
  padding: 0.5cqw 0;
  font-size: 2.55cqw;
}

/* ---------- Step 4: the overview ---------- */
.uw-dash .hw-kpis {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
}

.uw-dash .hw-kpi small {
  white-space: nowrap;
}

.uw-dash .hw-kpi b {
  white-space: nowrap;
}

/* The last eight weeks as bars, this week in the accent colour. */
.uw-weeks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.uw-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 92px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--hw-line);
}

.uw-bar {
  position: relative;
  height: calc(var(--h) * 100%);
  border-radius: 6px 6px 2px 2px;
  background: var(--hw-line-strong);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--hw-ease);
  transition-delay: calc(var(--i) * 45ms);
}

.uw-bar--now {
  background: linear-gradient(180deg, #2563eb, #1565c0);
}

.uw-bars.is-on .uw-bar {
  transform: none;
}

.uw-bar-x {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  color: var(--hw-ink-faint);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.uw-bar-x b {
  color: var(--hw-ink);
}

.uw-crit--big {
  margin-top: 0;
  padding: 16px 18px;
  border: 1px solid var(--hw-line);
  border-radius: 12px;
}

.uw-crit--big .uw-crit-top {
  font-size: 14px;
}

.uw-crit--big .uw-crit-top b {
  font-size: 22px;
}

.uw-crit--big .uw-meter {
  height: 12px;
}

.uw-crit-note {
  margin: 10px 0 0;
  color: var(--hw-ink-soft);
  font-size: 13px;
}

.uw-crit-note b {
  font-family: var(--uw-num);
  font-variant-numeric: tabular-nums;
  color: var(--hw-ink);
}

.uw-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--hw-line);
  border-radius: 12px;
  opacity: 0;
  transform: translateX(10px);
  transition:
    opacity 0.4s ease,
    transform 0.5s var(--hw-ease);
}

.uw-open.is-on {
  opacity: 1;
  transform: none;
}

.uw-open-t {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.uw-open-t b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uw-open-t small {
  color: var(--hw-ink-faint);
  font-size: 12px;
}

.uw-open-a {
  font-family: var(--uw-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.uw-open--done {
  background: var(--hw-surface-2);
}

.uw-open--done .uw-open-t small {
  color: var(--hw-green);
  font-weight: 600;
}

.uw-open--done .uw-open-a {
  color: var(--hw-ink-faint);
  font-weight: 500;
}

/* ---------- Phone ---------- */
@media (max-width: 768px) {
  .uw-stage.hw-stage {
    height: 630px;
  }

  /* On a phone the app comes first: the sheet sits at the top of the
     window (the timer is the first thing a visitor sees under the fold
     line) and the week, then the invoice, sit below it. */
  .uw-desk.hw-desk {
    padding: 0 10px 12px;
    align-items: end;
  }

  .uw-week {
    padding: 12px 12px 12px;
    border-radius: 14px;
  }

  .uw-week-head {
    margin-bottom: 8px;
  }

  .uw-grid {
    grid-template-columns: minmax(0, 1fr) repeat(5, 30px) 36px;
    gap: 4px 3px;
  }

  .uw-gname small {
    display: none;
  }

  .uw-gname {
    font-size: 12px;
    gap: 6px;
  }

  .uw-c {
    height: 26px;
    border-radius: 6px;
    font-size: 12px;
  }

  .uw-rt,
  .uw-gf.uw-rt {
    font-size: 12px;
  }

  .uw-tots {
    display: none;
  }

  .uw-crit {
    margin-top: 10px;
  }

  .uw-crit-top {
    font-size: 12px;
  }

  .uw-stage .hw-app {
    top: 8px;
    bottom: auto;
    height: 322px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    transition:
      opacity 0.45s ease,
      height 0.5s var(--hw-ease);
  }

  [data-theme="dark"] .uw-stage .hw-app {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .uw-clock {
    font-size: 26px;
  }

  .uw-timer {
    padding: 12px;
    gap: 10px;
  }

  .uw-desc {
    height: 34px;
  }

  /* Step 1 on a phone: the timer and the first entry of that day, in a
     sheet just short enough that the whole week below it stays readable. */
  .uw-stage .hw-pane[data-pane="1"] .uw-entry + .uw-entry {
    display: none;
  }

  .uw-stage[data-step="1"] .hw-app {
    height: 300px;
  }

  /* how-it-works-wow.css hides most fields of its own pane 2 on a phone;
     this pane 2 needs all three. */
  .uw-stage .hw-pane[data-pane="2"] .hw-field {
    display: flex;
  }

  .uw-stage .hw-pane[data-pane="2"] .uw-rate,
  .uw-stage .hw-pane[data-pane="3"] .hw-chip {
    display: none;
  }

  .uw-pick-row {
    grid-template-columns: auto 50px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 5px 10px;
  }

  .uw-pick-sum > b {
    font-size: 17px;
  }

  /* The invoice sits at the bottom of the window, so its lines and total
     show under the sheet and the top of the paper runs under it. */
  .uw-paper-wrap.hw-paper-wrap {
    width: 92%;
    justify-self: center;
  }

  .uw-dash .hw-kpi b {
    font-size: 17px;
  }

  .uw-dash .hw-dash-side {
    display: none;
  }

  .uw-dash .hw-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .uw-bars {
    height: 80px;
    gap: 7px;
  }

  .uw-bar-x {
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uw-live i {
    animation: none;
  }
}

/* ---------- Still pictures further down the page ---------- */
/* Same card language as the run, without the window: the urencriterium per
   month and automatic invoicing for one client. */
.uw-figure {
  width: 100%;
  max-width: 520px;
}

.uw-still {
  max-width: none;
}

.uw-still-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--hw-line-strong);
  border-radius: 18px;
  background: var(--hw-surface);
  box-shadow: var(--hw-shadow);
  color: var(--hw-ink);
  font-size: 14px;
  line-height: 1.4;
}

.uw-still-tag {
  top: 14px;
  right: 14px;
  padding: 2px 8px;
  font-size: 10.5px;
}

.uw-still .uw-crit--big {
  padding: 0;
  border: 0;
  margin-top: 6px;
}

.uw-months {
  position: relative;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 130px;
  border-bottom: 1px solid var(--hw-line);
}

.uw-months i {
  font-style: normal;
  position: relative;
  height: calc(var(--h) * 100%);
  border-radius: 5px 5px 2px 2px;
  background: color-mix(in srgb, var(--hw-accent) 30%, var(--hw-surface-2));
}

.uw-months i.is-now {
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--hw-accent) 30%, var(--hw-surface-2)) 0 4px,
    var(--hw-surface-2) 4px 8px
  );
}

.uw-months i b {
  z-index: 2;
  padding: 0 2px;
  border-radius: 3px;
  background: var(--hw-surface);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  color: var(--hw-ink-faint);
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.uw-months-goal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--g) * 100%);
  z-index: 1;
  border-top: 1.5px dashed var(--hw-green);
  pointer-events: none;
}

.uw-months-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: -4px;
}

.uw-months-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hw-green);
  font-size: 12px;
  font-weight: 600;
}

.uw-months-legend span i {
  width: 16px;
  border-top: 1.5px dashed var(--hw-green);
}

.uw-months-x {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
  margin-top: -10px;
  color: var(--hw-ink-faint);
  font-size: 11px;
  text-align: center;
}

.uw-still .uw-tots {
  margin-top: 0;
}

/* Automatic invoicing */
.uw-auto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.uw-auto-head b {
  font-size: 16px;
  font-weight: 700;
}

.uw-plus {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--hw-accent-soft);
  color: var(--hw-accent);
  font-size: 12px;
  font-weight: 700;
}

.uw-auto-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hw-line);
  border-radius: 12px;
}

.uw-auto-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}

.uw-auto-rows > div + div {
  border-top: 1px solid var(--hw-line);
}

.uw-auto-rows small {
  color: var(--hw-ink-faint);
  font-size: 13px;
}

.uw-auto-rows span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.uw-auto-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: var(--hw-surface-2);
}

.uw-auto-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.uw-auto-line b {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.uw-auto-line--tot {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--hw-line-strong);
  font-weight: 700;
}

.uw-auto-line--tot b {
  font-weight: 700;
  color: var(--hw-accent);
}

@media (max-width: 768px) {
  .uw-still-card {
    padding: 16px;
    gap: 14px;
  }

  .uw-months {
    gap: 4px;
    height: 110px;
  }

  .uw-months i b {
    display: none;
  }

  .uw-months i.is-now b {
    display: block;
  }

  .uw-months-x {
    gap: 4px;
    font-size: 10px;
  }
}

/* ---------- Trade picker above the rail ---------- */
.uw-prof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
}

.uw-prof-lbl {
  margin-right: 4px;
  color: var(--landing-text);
  font-size: 15px;
  font-weight: 600;
}

.uw-prof-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  background: var(--landing-bg-card);
  color: var(--landing-text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.uw-prof-btn:hover {
  border-color: var(--landing-border-accent);
  color: var(--landing-text);
}

.uw-prof-btn.is-on {
  border-color: var(--landing-accent);
  background: var(--landing-accent);
  color: #fff;
}

[data-theme="dark"] .uw-prof-btn.is-on {
  color: #0f172a;
}

.uw-prof-btn:focus-visible {
  outline: 2px solid var(--hw-accent);
  outline-offset: 2px;
}

/* ---------- Invoice footer line ---------- */
.uw-p-foot {
  font-size: 2.2cqw;
  color: var(--hw-faint-p);
}

/* ---------- FAQ as an accordion (same details.faq-item as the other ad
   pages); the question stays an h3 so the FAQ/schema check reads it. ---- */
.uw-faqs {
  max-width: 820px;
  margin: 0 auto;
}

.uw-faq .faq-question h3 {
  display: inline;
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

@media (max-width: 768px) {
  .uw-prof-lbl {
    width: 100%;
    font-size: 13px;
  }

  .uw-prof-btn {
    flex: 1 1 0;
    padding: 0 8px;
  }
}

@media (max-width: 380px) {
  .uw-src {
    display: none;
  }
}

@media (max-width: 640px) {
  /* The window's top bar only held the pause button on the phone (its dots
     and address are hidden there): 46px before any of the app. Here the
     button floats in the top right corner of the app card. Not on
     /factuurprogramma: there the top of the window is the invoice paper,
     and the button covered its text. */
  .gb-hero-appfirst .uw .hw-window {
    position: relative;
  }

  .gb-hero-appfirst .uw .hw-chrome {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 30;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .gb-hero-appfirst .uw .hw-toggle {
    height: 28px;
  }
}
