/* 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;
}

html[lang="de"] .lang-en {
  display: none !important;
}

html[lang="en"] .lang-de {
  display: none !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;
}

.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: 1rem;
}

.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%, 26rem);
  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-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-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;
  animation: da-slide-in 0.45s ease both;
}

.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.75rem;
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

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

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

.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: 1100px;
}

.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: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.12rem 0.5rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  background: #f8fafc;
  border: 1px solid var(--jke-border);
  border-radius: 10px;
}

.mw-phase-label {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jke-muted);
}

.mw-phase-place {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.88rem;
  font-weight: 600;
}

.mw-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
}

.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 {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.78rem;
  color: var(--jke-muted);
}

.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;
  }
}
