/* JKE driver portal — one theme for hub, availability, install, how-it-works */

:root {
  --jke-bg: #f0f2f5;
  --jke-surface: #ffffff;
  --jke-surface-2: #f8fafc;
  --jke-border: #e2e8f0;
  --jke-text: #0f172a;
  --jke-muted: #64748b;
  --jke-accent: #1967d2;
  --jke-accent-hover: #1e40af;
  --jke-warn-bg: #fffbeb;
  --jke-warn-border: #fcd34d;
  --jke-warn-text: #92400e;
}

/* Language visibility — show matching .lang-XX; EN fills main content when IT/FR/… has no copy */
.lang-de, .lang-en, .lang-it, .lang-fr, .lang-pl, .lang-nl, .lang-es, .lang-pt, .lang-ro {
  display: none !important;
}
html[lang="de"] .lang-de,
html[lang="en"] .lang-en,
html[lang="it"] .lang-it,
html[lang="fr"] .lang-fr,
html[lang="pl"] .lang-pl,
html[lang="nl"] .lang-nl,
html[lang="es"] .lang-es,
html[lang="pt"] .lang-pt,
html[lang="ro"] .lang-ro {
  display: revert !important;
}
/* EN fallback in main when a page only has DE/EN — never sidebar */
html[lang="it"] .driver-portal__main .lang-en,
html[lang="fr"] .driver-portal__main .lang-en,
html[lang="pl"] .driver-portal__main .lang-en,
html[lang="nl"] .driver-portal__main .lang-en,
html[lang="es"] .driver-portal__main .lang-en,
html[lang="pt"] .driver-portal__main .lang-en,
html[lang="ro"] .driver-portal__main .lang-en {
  display: revert !important;
}
/* If the same field already has the real translation, hide EN (stops "Name Nome" doubles) */
html[lang="it"] .driver-portal__main :has(> .lang-it) > .lang-en,
html[lang="fr"] .driver-portal__main :has(> .lang-fr) > .lang-en,
html[lang="pl"] .driver-portal__main :has(> .lang-pl) > .lang-en,
html[lang="nl"] .driver-portal__main :has(> .lang-nl) > .lang-en,
html[lang="es"] .driver-portal__main :has(> .lang-es) > .lang-en,
html[lang="pt"] .driver-portal__main :has(> .lang-pt) > .lang-en,
html[lang="ro"] .driver-portal__main :has(> .lang-ro) > .lang-en {
  display: none !important;
}
.driver-portal__sidebar .lang-en,
.driver-portal__sidebar .lang-de,
.driver-portal__sidebar .lang-it,
.driver-portal__sidebar .lang-fr,
.driver-portal__sidebar .lang-pl,
.driver-portal__sidebar .lang-nl,
.driver-portal__sidebar .lang-es,
.driver-portal__sidebar .lang-pt,
.driver-portal__sidebar .lang-ro {
  display: none !important;
}
html[lang="de"] .driver-portal__sidebar .lang-de,
html[lang="en"] .driver-portal__sidebar .lang-en,
html[lang="it"] .driver-portal__sidebar .lang-it,
html[lang="fr"] .driver-portal__sidebar .lang-fr,
html[lang="pl"] .driver-portal__sidebar .lang-pl,
html[lang="nl"] .driver-portal__sidebar .lang-nl,
html[lang="es"] .driver-portal__sidebar .lang-es,
html[lang="pt"] .driver-portal__sidebar .lang-pt,
html[lang="ro"] .driver-portal__sidebar .lang-ro {
  display: revert !important;
}

.driver-portal {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--jke-bg);
  color: var(--jke-text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  box-sizing: border-box;
}

.driver-portal--app {
  padding-bottom: 0;
}

.driver-portal__shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.driver-portal__sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 45;
  width: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: calc(0.5rem + env(safe-area-inset-top, 0px)) 0.35rem 0.5rem;
  background: #fff;
  border-right: 1px solid var(--jke-border);
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.04);
}

.driver-portal__sideitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--jke-muted);
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  transition: background 0.15s, color 0.15s;
}

.driver-portal__sideitem:hover {
  background: var(--jke-surface-2);
  color: var(--jke-accent);
}

.driver-portal__sideitem--active {
  color: var(--jke-accent);
  background: #eff6ff;
}

/* Prominent Get-the-app CTA in sidebar / tabbar */
.driver-portal__sideitem--cta {
  background: var(--jke-accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(25, 103, 210, 0.32);
  font-weight: 800;
}
.driver-portal__sideitem--cta .portal-ico {
  color: #fff;
}
.driver-portal__sideitem--cta:hover {
  background: var(--jke-accent-hover);
  color: #fff;
}
.driver-portal__sideitem--cta.driver-portal__sideitem--active {
  background: var(--jke-accent-hover);
  color: #fff;
}
.driver-portal__sideitem--cta.driver-portal__sideitem--active .portal-ico {
  color: #fff;
}
.driver-portal__tab--cta {
  background: var(--jke-accent);
  color: #fff !important;
  border-radius: 12px 12px 0 0;
  font-weight: 800;
}
.driver-portal__tab--cta.driver-portal__tab--active {
  background: var(--jke-accent-hover);
  color: #fff !important;
}


.driver-portal__sideicon,
.portal-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: var(--jke-accent);
}

.driver-portal__svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.driver-portal__sidebar .portal-ico svg,
.driver-portal__tile .portal-ico svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  flex-shrink: 0;
}

.driver-portal__sideitem--active .portal-ico {
  color: var(--jke-accent-hover);
}

.driver-portal__tile .portal-ico {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.35rem;
  color: var(--jke-accent);
}

.driver-portal__grid--3 {
  grid-template-columns: 1fr;
}

.driver-portal__grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .driver-portal__grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .driver-portal__grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.driver-portal__journey {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--jke-muted);
  line-height: 1.6;
}

.driver-portal__journey li {
  margin: 0.45rem 0;
}

.install-cols {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (min-width: 600px) {
  .install-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.install-col-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.install-icon-svg {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--jke-accent);
  border: 1px solid var(--jke-border);
  border-radius: 4px;
  padding: 0 0.2rem;
}

.driver-portal__sideicon {
  font-size: 1.25rem;
  line-height: 1;
}

.driver-portal__sidelabel {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-portal__sidefoot {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--jke-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.driver-portal__sideextra {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--jke-muted);
  text-decoration: none;
  text-align: center;
  padding: 0.2rem;
}

.driver-portal__sideextra:hover {
  color: var(--jke-accent);
}

.driver-portal__content {
  flex: 1;
  min-width: 0;
  margin-left: 4.5rem;
  display: flex;
  flex-direction: column;
}

.driver-portal__loading {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 242, 245, 0.82);
  backdrop-filter: blur(4px);
}

.driver-portal__loading[hidden] {
  display: none !important;
}

.driver-portal__loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--jke-border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--jke-text);
}

.driver-portal__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e2e8f0;
  border-top-color: var(--jke-accent);
  border-radius: 50%;
  animation: driver-portal-spin 0.7s linear infinite;
}

@keyframes driver-portal-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 720px) {
  .driver-portal__sidebar {
    width: 10.5rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .driver-portal__content {
    margin-left: 10.5rem;
  }

  .driver-portal__sideitem {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    text-align: left;
  }

  .driver-portal__sideextra {
    text-align: left;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
}

.driver-portal__main {
  flex: 1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1rem 1.25rem;
}

.driver-portal__topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: calc(0.5rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) 0.5rem max(1rem, env(safe-area-inset-left, 0px));
  background: #fff;
  border-bottom: 1px solid var(--jke-border);
}

.driver-portal__topbar-brand img {
  display: block;
  max-height: 52px;
  width: auto;
  max-width: min(200px, 55vw);
}

.driver-portal__topbar .driver-portal__lang {
  margin-bottom: 0;
}

/* legacy bottom tabbar — removed in favour of sidebar */
.driver-portal__tabbar {
  display: none;
}

.driver-portal__welcome {
  margin-bottom: 1rem;
}

.driver-portal__welcome-label {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jke-muted);
}

.driver-portal__welcome h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.driver-portal__welcome p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--jke-muted);
  line-height: 1.45;
}

.driver-portal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.driver-portal__tile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 0.85rem;
  background: #fff;
  border: 1px solid var(--jke-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--jke-text);
  min-height: 6.5rem;
}

.driver-portal__tile strong {
  font-size: 0.92rem;
}

.driver-portal__tile small {
  font-size: 0.75rem;
  color: var(--jke-muted);
  line-height: 1.3;
}

.driver-portal__tile-icon {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

.driver-portal__tile--primary {
  border-color: var(--jke-accent);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.driver-portal__tile--urgent {
  border-color: #dc2626;
  background: linear-gradient(180deg, #fef2f2 0%, #fff5f5 100%);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.driver-portal__tile--urgent strong {
  color: #991b1b;
}

.driver-portal__tile--success {
  border-color: #16a34a;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.driver-portal__tile--wide {
  min-height: auto;
  margin-top: 0.75rem;
}

.driver-portal__panel--steps {
  margin-bottom: 1rem;
}

.driver-portal__steplist {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--jke-muted);
  line-height: 1.55;
}

.driver-portal__hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--jke-muted);
  line-height: 1.45;
}

.driver-portal__hint code {
  font-size: 0.78rem;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.driver-portal__panel--info {
  background: #eff6ff;
  border-color: #93c5fd;
}

.driver-portal__panel--rules {
  background: linear-gradient(135deg, #fffbeb 0%, #fef2f2 100%);
  border: 2px solid #f87171;
  margin-bottom: 1rem;
}

.driver-portal__panel--rules h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #991b1b;
}

.driver-portal__rules-lead {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #7f1d1d;
}

.driver-portal__rules-list {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

.driver-portal__rules-list li + li {
  margin-top: 0.35rem;
}

.driver-portal__rules-warn {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #991b1b;
  line-height: 1.4;
}

.driver-portal__welcome-sub--office {
  font-weight: 600;
  color: #334155;
}

.driver-portal__panel--split {
  margin-bottom: 1rem;
}

.driver-portal__panel--split h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.driver-portal__split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (max-width: 560px) {
  .driver-portal__split-grid {
    grid-template-columns: 1fr;
  }
}

.driver-portal__split-card {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.driver-portal__split-card ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.driver-portal__split-card li + li {
  margin-top: 0.2rem;
}

.driver-portal__split-card--office {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.driver-portal__split-card--shift {
  display: block;
  text-decoration: none;
  background: #0a0a0a;
  border: 2px solid #262626;
  color: #f8fafc;
}

.driver-portal__split-card--shift p {
  margin: 0.4rem 0 0;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.driver-portal__split-cta {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 800;
  color: #93c5fd;
}

.driver-portal__tile--shift {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.driver-portal__tile--shift small {
  color: #94a3b8 !important;
}

.mw-row-pay {
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

.mw-row-pay strong {
  color: #15803d;
}

.mw-row-pay-gross {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

.driver-portal__welcome-sub[hidden] {
  display: none !important;
}

.driver-portal__panel--compact {
  margin-bottom: 0.5rem;
}

.driver-portal__quicklist {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--jke-muted);
  line-height: 1.55;
}

.driver-portal__more {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.driver-portal__more a {
  color: var(--jke-accent);
  font-weight: 600;
  text-decoration: none;
}

.driver-portal__page-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.driver-portal__page-head p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--jke-muted);
  line-height: 1.45;
}

.driver-portal__doclink {
  font-weight: 700;
  color: var(--jke-accent);
  text-decoration: none;
}

.driver-portal__doclinks {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.driver-portal__doclinks .driver-portal__doclink {
  display: block;
  padding: 0.65rem 0.85rem;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
}

.driver-portal__doclinks .driver-portal__doclink:hover {
  background: #dbeafe;
}

.driver-portal__decl {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--jke-muted);
  margin: 0.75rem 0;
}

.driver-portal__sig-wrap {
  border: 1px dashed var(--jke-border);
  border-radius: 12px;
  padding: 0.5rem;
  background: #fff;
  margin-bottom: 0.75rem;
}

.driver-portal__sig-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  background: #fafafa;
  border-radius: 8px;
}

.driver-portal__sig-date {
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.driver-portal__panel--ok {
  border-color: #86efac;
  background: #f0fdf4;
}

/* legacy single-column pages without --app */
.driver-portal:not(.driver-portal--app) {
  padding: 1rem 1rem 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.driver-portal--app * {
  box-sizing: border-box;
}

/* Logo — white card (from jke-brand.css) */
.driver-portal .brand-logo-wrap {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.driver-portal .brand-logo {
  max-height: 72px;
}

.driver-portal__lang,
.da-lang {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.driver-portal__mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.driver-portal__mast .driver-portal__lang {
  margin-bottom: 0;
  flex-shrink: 0;
}

.driver-portal__dashboard-link {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--jke-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.driver-portal__dashboard-link:hover {
  color: var(--jke-accent);
}

.driver-portal__dashboard-link--here {
  color: var(--jke-accent);
}

.driver-portal__lang button,
.da-lang button {
  background: var(--jke-surface);
  color: var(--jke-muted);
  border: 1px solid var(--jke-border);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.driver-portal__lang button.active,
.da-lang button.active {
  background: #fff;
  color: var(--jke-accent);
  border-color: var(--jke-accent);
}

.driver-portal__sub,
.da-sub {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--jke-muted);
}

.driver-portal__hero {
  background: var(--jke-surface);
  border: 1px solid var(--jke-border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.driver-portal__hero h1,
.da-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--jke-text);
}

.driver-portal__hero p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--jke-muted);
}

.driver-portal__steps {
  margin-bottom: 1.25rem;
}

.driver-portal__steps h2 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jke-muted);
}

.driver-portal__step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--jke-border);
}

.driver-portal__step:last-child {
  border-bottom: none;
}

.driver-portal__num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--jke-surface);
  border: 1px solid var(--jke-border);
  color: var(--jke-text);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-portal__step strong {
  display: block;
  font-size: 0.9rem;
  color: var(--jke-text);
  margin-bottom: 0.15rem;
}

.driver-portal__step span {
  font-size: 0.82rem;
  color: var(--jke-muted);
  line-height: 1.4;
}

.driver-portal__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.driver-portal__link,
.da-back {
  display: block;
  padding: 0.95rem 1.1rem;
  background: var(--jke-surface);
  border: 1px solid var(--jke-border);
  border-radius: 12px;
  color: var(--jke-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.driver-portal__link:hover,
.da-back:hover {
  border-color: var(--jke-accent);
  color: var(--jke-accent-hover);
  background: var(--jke-surface-2);
}

.driver-portal__link small,
.da-hint {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--jke-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.driver-portal__link--primary,
.da-btn--primary {
  background: #fff;
  border-color: var(--jke-accent);
  color: var(--jke-accent);
  font-weight: 700;
}

.driver-portal__link--primary:hover {
  background: #eff6ff;
  color: var(--jke-accent-hover);
}

.driver-portal__link--muted {
  background: transparent;
  border-color: transparent;
  color: var(--jke-muted);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.driver-portal__panel,
.da-card {
  background: var(--jke-surface);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--jke-border);
  color: var(--jke-text);
}

.driver-portal__panel h2,
.da-card h2,
.da-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--jke-text);
}

.driver-portal__panel ul,
.da-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--jke-muted);
  line-height: 1.55;
}

.driver-portal__panel li {
  margin: 0.4rem 0;
}

.driver-portal__panel a,
.da-card a,
.install-steps a {
  color: var(--jke-accent);
  text-decoration: none;
  font-weight: 600;
}

.driver-portal__panel a:hover,
.da-card a:hover,
.install-steps a:hover {
  color: var(--jke-accent-hover);
  text-decoration: underline;
}

.driver-portal__panel--no {
  border-color: var(--jke-border);
}

.driver-portal__panel--no li {
  color: var(--jke-muted);
}

.driver-portal__back {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--jke-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  background: transparent;
  border: none;
}

/* Availability page header */
.da-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.da-header-main {
  flex: 1;
  min-width: 0;
}

.da-back {
  padding: 0.25rem;
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  width: auto;
  background: transparent;
  border: none;
}

.da-field {
  display: block;
  margin-bottom: 0.75rem;
}

.da-field span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jke-muted);
  margin-bottom: 0.35rem;
}

.da-field input,
.da-field textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--jke-border);
  background: #fff;
  color: var(--jke-text);
  font-size: 1rem;
}

.da-btn {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--jke-accent);
  border-radius: 10px;
  background: var(--jke-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0.35rem;
}

.da-btn--primary {
  background: var(--jke-accent);
  border-color: var(--jke-accent);
  color: #fff;
}

.da-btn--ghost {
  background: transparent;
  color: var(--jke-muted);
}

.da-btn:disabled {
  opacity: 0.5;
}

.da-err {
  color: #dc2626;
  font-size: 0.9rem;
}

.da-ok {
  color: var(--jke-muted);
  font-weight: 600;
  text-align: center;
  margin-top: 0.75rem;
}

.da-policy-box {
  background: var(--jke-surface-2);
  border: 1px solid var(--jke-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--jke-muted);
  white-space: pre-line;
}

.da-commitment-model {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1e3a8a;
}

.da-commitment-danger {
  background: #fef2f2;
  border: 2px solid #f87171;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #991b1b;
  white-space: pre-line;
}

.da-commitment-reminder {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #166534;
}

.da-check--serious {
  font-weight: 600;
  color: #7f1d1d;
}

.da-btn--commit {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.da-commit-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.da-commit-modal[hidden] {
  display: none !important;
}

.da-commit-modal-open {
  overflow: hidden;
}

.da-commit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.da-commit-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border: 2px solid #dc2626;
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.da-commit-modal__panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: #991b1b;
}

.da-commit-modal__summary {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
}

.da-commit-modal__danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #991b1b;
}

.da-enforcement-box,
.da-commit-enforcement {
  background: #450a0a;
  border: 2px solid #ef4444;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.85rem;
  color: #fecaca;
  font-size: 0.86rem;
  line-height: 1.5;
}

.da-enforcement-box__title,
.da-commit-enforcement__title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fca5a5;
}

.da-commit-enforcement__body {
  margin: 0;
  white-space: pre-line;
  font-size: 0.84rem;
  line-height: 1.5;
}

.da-check--enforce {
  font-size: 0.88rem;
  color: #7f1d1d;
  font-weight: 600;
  border: 2px solid #fca5a5;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #fff7ed;
}

.da-commit-modal__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.da-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--jke-muted);
  cursor: pointer;
}

.da-crew-start-box {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.05rem;
  background: #f8fafc;
  border: 2px solid #0ea5e9;
  border-radius: 12px;
}

.da-crew-fieldset {
  border: none;
  margin: 0.75rem 0;
  padding: 0;
}

.da-crew-fieldset legend {
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.da-crew-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.da-binding-hero {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  color: #fef3c7;
  line-height: 1.5;
}

.da-binding-hero__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fde68a;
}

.da-binding-hero p {
  margin: 0;
  font-size: 0.92rem;
}

.da-banned-box {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  background: #450a0a;
  border: 2px solid #ef4444;
  border-radius: 12px;
  color: #fecaca;
  box-shadow: 0 6px 20px rgba(127, 29, 29, 0.35);
}

.da-banned-box--compact {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.da-banned-box__title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fca5a5;
}

.da-banned-box p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.da-ready-box {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: 12px;
  color: #14532d;
}

.da-ready-box__title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.da-ready-box p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.da-full-day-hero {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  border-radius: 14px;
  color: #eff6ff;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
}

.da-full-day-hero__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.da-full-day-hero p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.da-full-day-hero strong {
  color: #fef08a;
}

.da-all-day-toggle {
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  border: 1px solid #93c5fd;
  border-radius: 12px;
}

.da-all-day-toggle--primary {
  border: 2px solid #2563eb;
  background: linear-gradient(135deg, #dbeafe 0%, #dcfce7 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.da-all-day-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.da-pick-days-details {
  margin-bottom: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
}

.da-pick-days-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: #475569;
  list-style-position: outside;
}

.da-pick-days-details[open] summary {
  margin-bottom: 0.65rem;
}

.da-all-day-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  margin: 0;
}

.da-all-day-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.da-all-day-switch {
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.55rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s ease;
}

.da-all-day-switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.da-all-day-input:checked + .da-all-day-switch {
  background: #2563eb;
}

.da-all-day-input:checked + .da-all-day-switch::after {
  transform: translateX(1.2rem);
}

.da-all-day-input:focus-visible + .da-all-day-switch {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.da-all-day-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  color: var(--jke-muted);
}

.da-all-day-text strong {
  color: #1e40af;
  font-size: 0.95rem;
}

.da-all-day-text small {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
}

.da-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.da-btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  min-height: auto;
}

.da-cal-wrap {
  margin-bottom: 0.5rem;
}

.da-month h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--jke-muted);
}

.da-month {
  margin-bottom: 1.25rem;
}

.da-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.da-day {
  border: 1px solid var(--jke-border);
  background: #fff;
  color: var(--jke-muted);
  border-radius: 10px;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 3rem;
}

.da-day--on {
  background: #dbeafe;
  border-color: var(--jke-accent);
  color: var(--jke-accent-hover);
}

.da-day--job {
  box-shadow: inset 0 0 0 2px #f59e0b;
}

.da-day--locked {
  box-shadow: inset 0 0 0 2px #dc2626;
  cursor: not-allowed;
  opacity: 0.92;
}

.da-day--soon {
  opacity: 0.38;
  cursor: not-allowed;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.da-day--soon .da-num {
  text-decoration: line-through;
  text-decoration-color: #9ca3af;
}

.da-reject-banner {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #9a3412;
}

.da-day--locked.da-day--on {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}

.da-lock-badge {
  margin-top: 0.1rem;
  font-size: 0.6rem;
  line-height: 1;
}

.da-locked-hint {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 600;
}

.da-job-badge {
  margin-top: 0.15rem;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
}

.da-cal-wrap--big .da-grid {
  gap: 0.5rem;
}

.da-cal-wrap--big .da-day {
  min-height: 3.75rem;
  padding: 0.5rem 0.25rem;
  border-radius: 12px;
}

.da-cal-wrap--big .da-num {
  font-size: 1.15rem;
}

.da-calendar--saved {
  padding-bottom: 0.5rem;
}

.da-save-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: da-spin 0.7s linear infinite;
  vertical-align: middle;
}

#da-save-btn .da-save-label {
  vertical-align: middle;
}

@keyframes da-spin {
  to { transform: rotate(360deg); }
}

@keyframes da-slide-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.da-memory-bar {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #065f46;
}

.da-saved-updated {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.da-saved-panel,
.da-jobs-panel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--jke-border);
}

.da-saved-title,
.da-jobs-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.da-saved-list,
.da-jobs-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.da-saved-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  font-weight: 600;
  color: #065f46;
  /* no slide-in — was flashing in the middle of the page */
}

.da-saved-item--always {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

.da-saved-check--always {
  background: #dbeafe;
  color: #1d4ed8;
}

.da-saved-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.da-job-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
}

.da-job-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.da-job-title {
  font-weight: 700;
  color: var(--jke-text);
}

.da-job-route {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d4ed8;
}

.da-job-slot {
  font-size: 0.85rem;
  color: var(--jke-muted);
}

.da-job-link {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--jke-accent);
  text-decoration: none;
}

.da-job-link:hover {
  text-decoration: underline;
}

.da-dow {
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 700;
}

.da-num {
  font-size: 1rem;
  font-weight: 800;
}

.da-count {
  text-align: center;
  font-weight: 600;
  color: var(--jke-muted);
  margin: 0.5rem 0 1rem;
}

.da-alert-warn {
  background: var(--jke-warn-bg);
  border: 1px solid var(--jke-warn-border);
  color: var(--jke-warn-text);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.da-hint a {
  color: var(--jke-accent);
  text-decoration: none;
  font-weight: 600;
}

.da-hint a:hover {
  color: var(--jke-accent-hover);
  text-decoration: underline;
}

.da-email-hint {
  color: var(--jke-muted);
  font-weight: 600;
}

.da-email-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0 1rem;
}

.da-email-box strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  margin-bottom: 0.35rem;
}

.da-email-box .da-email-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-all;
}

.da-email-box--warn {
  background: #fef2f2;
  border-color: #fecaca;
}

.da-email-box--warn strong {
  color: #b91c1c;
}

.da-signed-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.da-signed-bar strong {
  color: #166534;
}

.da-signed-email {
  color: #047857;
  font-weight: 600;
  word-break: break-all;
}

/* Sign out must not stretch — .da-btn defaults to width:100% for forms */
.da-signed-bar .da-btn {
  width: auto;
  margin: 0 0 0 auto;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  min-height: 36px;
}

.da-contract-nudge {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.da-contract-nudge a {
  color: var(--jke-accent);
  font-weight: 700;
  text-decoration: none;
}

.install-steps {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--jke-muted);
  line-height: 1.55;
}

.install-steps li {
  margin: 0.5rem 0;
}

.install-icon {
  display: inline-block;
  background: var(--jke-surface-2);
  border: 1px solid var(--jke-border);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.install-apk-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--jke-muted);
}

/* —— Driver pay board —— */
.dp-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dp-summary-item {
  background: #f8fafc;
  border: 1px solid var(--jke-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.dp-summary-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--jke-muted);
  margin-bottom: 0.25rem;
}

.dp-summary-item strong {
  font-size: 1.25rem;
  color: var(--jke-text);
}

.dp-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.dp-tab {
  border: 1px solid var(--jke-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--jke-muted);
}

.dp-tab--active {
  background: var(--jke-accent);
  border-color: var(--jke-accent);
  color: #fff;
}

.dp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dp-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--jke-border);
}

.dp-row-ref {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--jke-muted);
  display: block;
}

.dp-row-title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0.15rem 0;
}

.dp-row-meta {
  font-size: 0.78rem;
  color: var(--jke-muted);
}

.dp-row-right {
  text-align: right;
  flex-shrink: 0;
}

.dp-row-amt {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.dp-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.dp-badge--scheduled {
  background: #dbeafe;
  color: #1d4ed8;
}

.dp-badge--held {
  background: #fef3c7;
  color: #b45309;
}

.dp-badge--transferred {
  background: #d1fae5;
  color: #047857;
}

.dp-fuel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--jke-border);
}

.dp-fuel-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--jke-muted);
}

.dp-fuel-item {
  padding: 0.35rem 0;
}

/* My work — card layout by day */
.mw-main {
  max-width: 1280px;
}

.mw-head {
  margin-bottom: 1rem;
}

.mw-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mw-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mw-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--jke-border);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.mw-search,
.mw-select {
  font: inherit;
  border: 1px solid var(--jke-border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  background: var(--jke-surface-2);
  color: var(--jke-text);
}

.mw-search {
  flex: 1 1 180px;
  min-width: 0;
}

.mw-select {
  flex: 0 0 auto;
}

.mw-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mw-day {
  background: #fff;
  border: 1px solid var(--jke-border);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.mw-day-title {
  margin: 0;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--jke-muted);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--jke-border);
}

.mw-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 1rem;
  border-bottom: 1px solid var(--jke-border);
  background: #fff;
}

.mw-row:last-child {
  border-bottom: none;
}

.mw-row:nth-child(even) {
  background: #fafbfc;
}

.mw-row-main {
  padding-right: 0.25rem;
}

.mw-row-title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}

.mw-row-ref {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--jke-accent);
  background: #eff6ff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #dbeafe;
}

.mw-row-slot {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--jke-muted);
}

.mw-row-stops {
  display: grid;
  gap: 0.5rem;
}

.mw-phase {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--jke-border);
  border-radius: 10px;
}

.mw-phase-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mw-phase-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jke-muted);
}

.mw-phase-place {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.mw-phase-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.mw-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  line-height: 1.2;
}

.mw-badge--done {
  background: #d1fae5;
  color: #047857;
}

.mw-badge--open {
  background: #f3f4f6;
  color: #6b7280;
}

.mw-badge--paid {
  background: #dbeafe;
  color: #1d4ed8;
}

.mw-badge--hold {
  background: #fef3c7;
  color: #b45309;
}

.mw-badge--sched {
  background: #e0e7ff;
  color: #4338ca;
}

.mw-phase-time {
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #475569;
}

.mw-foot {
  margin-top: 0;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--jke-border);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  font-size: 0.85rem;
}

.mw-empty {
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid var(--jke-border);
  border-radius: 14px;
  text-align: center;
}

@media (max-width: 720px) {
  .mw-row {
    grid-template-columns: 1fr;
  }
}


/* Language dropdown — replaces wrapping DE/EN/IT… button row */
.driver-portal__lang {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.35rem;
}
.driver-portal__lang button { display: none !important; }
.jke-lang-dd {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.jke-lang-dd__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.jke-lang-select {
  appearance: auto;
  -webkit-appearance: menulist;
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 9.75rem;
  max-width: min(42vw, 12rem);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.driver-portal__topbar .jke-lang-select {
  max-width: 11rem;
}


/* Official / authoritative availability notice — one calm block, no flash wall */
.da-official {
  border: 1px solid #1e293b !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 1.15rem 1.2rem 1.25rem !important;
}
.da-official__head {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.da-official__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.da-official__head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.da-official__body {
  display: grid;
  gap: 1rem;
}
.da-official__rules {
  margin: 0;
  padding-left: 1.2rem;
  color: #0f172a;
  line-height: 1.55;
  font-size: 0.95rem;
}
.da-official__rules li {
  margin: 0 0 0.65rem;
}
.da-official__consequence {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
}
.da-official__consequence-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbbf24;
}
.da-official__consequence ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.da-official__ack {
  margin-top: 1.1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.da-btn--official {
  margin-top: 0.85rem;
  width: 100%;
  background: #0f172a !important;
  border-color: #0f172a !important;
}
.da-btn--official:disabled {
  opacity: 0.45;
}
.da-official-strip {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: #0f172a;
  color: #e2e8f0;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.da-official-strip p { margin: 0; }
.da-official-strip--action {
  background: #fffbeb;
  color: #78350f;
  border: 1px solid #f59e0b;
  border-left-width: 4px;
}
.da-official-strip--action p,
.da-official-strip--action ol {
  color: #78350f;
}
.da-official-strip--modal {
  margin: 0.75rem 0;
}


/* Simplified availability flow */
.da-simple-banner {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.85rem;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #78350f;
}
.da-simple-banner p { margin: 0; }
.da-avail-one-liner {
  margin: 0 0 1.1rem;
  padding: 0.7rem 0.85rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}
.da-step {
  /* was 2rem|1fr grid with step num removed → body crushed into 2rem left column */
  display: block;
  margin: 0 0 1.15rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.da-step__body {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.da-step--save { border-bottom: none; padding-bottom: 0; }
.da-step__num { display: none !important; }

.da-step__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}
.da-all-day-label--simple {
  margin-bottom: 0.75rem;
}
.da-more-panel {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.da-more-panel > summary {
  cursor: pointer;
  font-weight: 800;
  color: #0f172a;
  list-style: none;
}
.da-more-panel > summary::-webkit-details-marker { display: none; }
.da-more-panel[open] > summary { margin-bottom: 0.65rem; }
.da-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.da-avail-simple .da-all-day-toggle--primary,
.da-avail-simple .da-all-day-kicker { /* legacy unused */ }


/* deskwide:20260731deskwide */
@media (min-width: 900px) {
  .driver-portal__main { max-width: 920px; }
}
@media (min-width: 1100px) {
  .driver-portal__main { max-width: 960px; }
  .da-cal-wrap, .da-avail-simple { max-width: 100%; }
}


/* avail3: real calendar alignment + spinner + postcode cue */
.da-dow-head {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--jke-muted, #64748b);
  padding: 0.2rem 0 0.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.da-day--empty {
  visibility: hidden;
  pointer-events: none;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 0 !important;
}
.da-day .da-dow {
  font-size: 0.58rem;
  font-weight: 700;
  opacity: 0.75;
  line-height: 1.1;
}
.da-save-spinner[hidden] {
  display: none !important;
}
.da-step--need {
  outline: 2px solid #dc2626;
  outline-offset: 4px;
  border-radius: 12px;
  background: #fef2f2;
  padding: 0.5rem;
}
.da-field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #b91c1c;
  font-weight: 600;
}
.da-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}


/* portal3:fill */
@media (min-width: 900px) {
  .driver-portal__main {
    max-width: 1280px;
    width: 100%;
    margin: 0;
    padding-inline: 1.25rem 1.75rem;
  }
  .driver-portal__topbar-brand img {
    max-height: 80px;
    max-width: min(280px, 40vw);
  }
}

/* slim-contract-nav: never show both */
body.portal-contract-signed .js-hide-if-contract-signed { display: none !important; }
body.portal-contract-signed .js-show-if-contract-signed { display: flex !important; }
body:not(.portal-contract-signed) .js-show-if-contract-signed { display: none !important; }


.driver-portal__topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.driver-portal__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
  white-space: nowrap;
}
.driver-portal__rating::before {
  content: "★";
  color: #eab308;
  font-size: 1rem;
}




/* Home hub — phone-first, fast paint */
.home-hub {
  max-width: 920px;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.home-hub__hi {
  margin: 0 0 0.15rem;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}
.home-hub .driver-portal__welcome h1 {
  font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  margin: 0 0 0.35rem;
}
.home-hub__status {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.4;
}
.home-hub__banner {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.home-hub__banner strong { display: block; font-size: 0.98rem; margin-bottom: 0.2rem; }
.home-hub__banner span { font-size: 0.86rem; line-height: 1.35; display: block; }
.home-hub__banner em {
  display: inline-block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 800;
  color: #b45309;
  min-height: 44px;
  line-height: 44px;
}
.home-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.home-hub__card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.05rem 1rem;
  background: #fff;
  border: 1px solid var(--jke-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: inherit;
  min-height: 7.5rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.home-hub__card:active {
  transform: scale(0.985);
}
.home-hub__card--primary {
  border-color: #93c5fd;
  background: #eff6ff;
}
.home-hub__card-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.home-hub__card h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.home-hub__card p {
  margin: 0;
  flex: 1;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.35;
}
.home-hub__card-btn {
  align-self: stretch;
  margin-top: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: #1967d2;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-hub__card--primary .home-hub__card-btn { background: #1d4ed8; }
.home-hub__secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
}
.home-hub__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--jke-border);
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.home-hub__foot {
  margin: 0.25rem 0 0;
  font-weight: 700;
  font-size: 0.92rem;
}
.home-hub__foot a { display: inline-block; padding: 0.5rem 0; min-height: 44px; }

@media (min-width: 720px) {
  .home-hub__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .home-hub__secondary { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .home-hub__card {
    min-height: 9rem;
    padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }
  .home-hub__card:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 18px rgba(25, 103, 210, 0.12);
  }
  .home-hub__card:active { transform: none; }
  .home-hub__card-btn { align-self: flex-start; min-width: 9rem; }
  .home-hub__card--primary { background: linear-gradient(180deg, #eff6ff 0%, #fff 55%); }
}

/* Faster mobile shell */
@media (max-width: 719px) {
  .driver-portal__topbar-brand img {
    max-height: 40px;
    max-width: min(132px, 42vw);
  }
  .driver-portal__main.home-hub {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }
  .jke-lang-select {
    min-width: 7.5rem;
    max-width: 38vw;
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
  }
}

/* avail no step nums — single column (num removed from markup) */
.da-step {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0;
  width: 100%;
  min-width: 0;
}
.da-step__body {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.da-step__title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
}

.da-work-jump {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.da-work-jump a {
  color: #1d4ed8;
  text-decoration: none;
}
.da-work-jump a:hover { text-decoration: underline; }


/* === AVAIL PROPER VIEW 20260803 === */
/* Single-column steps (num removed from markup — never crush into 2rem) */
.da-step,
.da-step__body {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.da-step__num { display: none !important; }

/* Availability content uses full portal main width */
#da-calendar.da-card,
#da-calendar.da-avail-simple,
.da-avail-simple,
.da-card,
.da-cal-wrap,
.da-cal-wrap--big,
.da-month,
.da-grid,
.da-signed-bar,
.da-simple-banner,
.da-avail-one-liner,
.da-save-sticky,
.da-field,
.da-field input,
.da-field textarea,
.da-btn--save-big,
.da-all-day-label,
.da-all-day-label--simple,
.da-quick-actions,
.da-crew-fieldset,
.da-saved-panel,
.da-jobs-panel {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Calendar days: usable touch targets, not squashed */
.da-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 0.4rem !important;
  width: 100% !important;
}
.da-day {
  min-width: 0 !important;
  min-height: 3.25rem !important;
  width: 100% !important;
  padding: 0.4rem 0.15rem !important;
  box-sizing: border-box !important;
}
.da-day .da-num {
  font-size: 1rem !important;
  font-weight: 800 !important;
}
.da-cal-wrap--big .da-day {
  min-height: 3.85rem !important;
}
.da-cal-wrap--big .da-num {
  font-size: 1.15rem !important;
}

/* Labels / switches sit full width */
.da-all-day-label,
.da-all-day-label--simple {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  width: 100% !important;
}
.da-all-day-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.da-quick-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}
.da-crew-fieldset {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.65rem 1rem !important;
}
.da-crew-opt {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

/* Main column: proper readable width on phone + desktop */
.driver-portal__main {
  width: 100% !important;
  max-width: min(720px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
@media (min-width: 900px) {
  .driver-portal__main {
    max-width: min(960px, 100%) !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}
@media (min-width: 1100px) {
  .driver-portal__main {
    max-width: min(1100px, 100%) !important;
  }
}

/* Inputs never overflow sidebar gutter */
.driver-portal__content,
.driver-portal__main,
#da-calendar {
  overflow-x: clip;
}
#da-calendar input,
#da-calendar button,
#da-calendar select,
#da-calendar textarea {
  max-width: 100%;
}
/* end AVAIL PROPER VIEW */

