:root {
  --pink: #e91e63;
  --pink-dark: #c2185b;
  --pink-soft: #ffd7e6;
  --card: rgba(255,255,255,0.96);
  --text: #222;
  --muted: #666;
  --border: rgba(233, 30, 99, 0.18);
  --shadow: 0 18px 40px rgba(0,0,0,0.12);
  --pending: #f1c40f;
  --quoted: #f39c12;
  --invoiced: #d84315;
  --confirmed: #2e7d32;
  --cancelled: #757575;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff7fa;
}
body.da-welcome {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7a5c3 0%, #f5bad1 100%);
}
.da-main {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.da-welcome-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.da-card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.da-login-card {
  width: min(100%, 430px);
  padding: 28px 24px;
  text-align: center;
}
.da-logo {
  width: min(220px, 60vw);
  height: auto;
  display: block;
  margin: 0 auto 18px;
}
.da-title { font-size: 28px; margin: 0 0 8px; }
.da-subtitle { color: var(--muted); margin: 0 0 22px; line-height: 1.45; }
.da-form { display: grid; gap: 14px; text-align: left; }
.da-form label { font-weight: bold; font-size: 14px; color: #444; }
.da-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  font-size: 16px;
}
.da-form input:focus { outline: 2px solid rgba(233,30,99,0.18); border-color: var(--pink); }
.da-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
}
.da-btn--primary { background: var(--pink); color: #fff; }
.da-btn--primary:hover { background: var(--pink-dark); }
.da-btn--soft { background: #fff0f5; color: var(--pink-dark); border: 1px solid var(--border); }
.da-links { margin-top: 16px; display: grid; gap: 8px; }
.da-links a { color: var(--pink-dark); text-decoration: none; font-weight: 600; }
.da-links a:hover { text-decoration: underline; }
.da-flash {
  margin: 0 auto 18px;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 14px;
}
.da-flash--success { background: #edf9ef; color: #176b2d; border: 1px solid #cde8d4; }
.da-flash--error { background: #fff1f0; color: #8c1d18; border: 1px solid #f2c8c3; }
.da-flash--info { background: #f5f7ff; color: #334; border: 1px solid #d7ddff; }
.da-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #f0d2df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}
.da-topbar__brand { display: flex; align-items: center; gap: 12px; }
.da-topbar__brand img { width: 58px; height: auto; }
.da-topbar__sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.da-topbar__nav { display: flex; gap: 12px; flex-wrap: wrap; }
.da-topbar__nav a { color: var(--pink-dark); text-decoration: none; font-weight: 700; }
.da-section-title { margin: 0 0 16px; font-size: 24px; }
.da-section-copy { margin: -8px 0 22px; color: var(--muted); }
.da-grid { display: grid; gap: 14px; }
.da-job {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.da-job__top {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) minmax(180px, 1.7fr) minmax(120px, 1fr) 56px;
  gap: 10px;
  align-items: center;
}
.da-job__cell {
  min-width: 0;
  font-size: 13px;
}
.da-job__event {
  font-size: 14px;
  font-weight: 800;
  color: var(--pink-dark);
  line-height: 1.1;
}
.da-job__when {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.da-job__cell--status {
  display: flex;
  justify-content: center;
}
.da-job__cell--cal {
  display: flex;
  justify-content: center;
}
.da-cal-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff0f5;
  color: var(--pink-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.da-cal-btn:hover {
  background: #ffe6ef;
}
.da-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.da-pill.pending { background: var(--pending); color: #554500; }
.da-pill.quoted { background: var(--quoted); }
.da-pill.invoiced { background: var(--invoiced); }
.da-pill.confirmed { background: var(--confirmed); }
.da-pill.cancelled { background: var(--cancelled); }

.da-pill--ok { background: var(--confirmed); color: #fff; }
.da-pill--wait { background: #fff0c2; color: #6b5200; border: 1px solid rgba(180, 140, 0, 0.18); }
.da-pill--deposit { background: #ffe0b2; color: #8a4b00; border: 1px solid #ffbf73; }
.da-pill--danger { background: #c62828; color: #fff; }
.da-pill--done { background: #607d8b; color: #fff; }
.da-attendance-warning {
  margin: 2px 0 6px;
  padding: 11px 13px;
  border-radius: 14px;
  background: #fff3cd;
  color: #6b5200;
  border: 1px solid #ffe08a;
  font-weight: 800;
  line-height: 1.35;
}
.da-job__body { display: grid; gap: 9px; }
.da-job__line strong { color: #444; }
.da-job__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.da-btn--tiny { padding: 9px 12px; font-size: 13px; border-radius: 12px; }
.da-empty { padding: 24px; text-align: center; color: var(--muted); }
.da-detail { padding: 18px; display: grid; gap: 14px; }
.da-detail__group { display: grid; gap: 7px; }
.da-detail__group h3 { margin: 0 0 4px; font-size: 17px; }
.da-kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.da-kv div:first-child { color: var(--muted); font-weight: 700; }
.da-note { white-space: pre-wrap; }
@media (max-width: 640px) {
  .da-login-card { padding: 24px 18px; }
  .da-job__top { grid-template-columns: minmax(70px, 0.8fr) minmax(140px, 1.5fr) minmax(100px, 0.9fr) 44px; gap: 8px; }
  .da-job__event { font-size: 12px; }
  .da-job__when { font-size: 12px; }
  .da-pill { font-size: 11px; padding: 5px 8px; }
  .da-cal-btn { width: 36px; height: 36px; font-size: 18px; }
  .da-kv { grid-template-columns: 1fr; gap: 2px; }
}

/* Driver app jobs row compact layout */
.da-job__top--compact {
  display: grid !important;
  grid-template-columns: minmax(92px, 0.8fr) minmax(190px, 2fr) minmax(120px, 1fr) 54px !important;
  gap: 10px !important;
  align-items: center !important;
}
.da-job__compact-cell { min-width: 0; }
.da-job__compact-cell--when { text-align:center; justify-self:center; }
.da-job__compact-cell--status,
.da-job__compact-cell--cal { display:flex; align-items:center; justify-content:center; }
.da-job__event {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--pink-dark) !important;
  line-height: 1.05 !important;
}
.da-job__when-date {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}
.da-job__when-time {
  text-align: center;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  color: #555;
}
.da-pill {
  min-width: 96px;
  text-align: center;
}
@media (max-width: 760px) {
  .da-job__top--compact {
    grid-template-columns: minmax(74px, 0.7fr) minmax(150px, 1.8fr) minmax(96px, 0.9fr) 44px !important;
    gap: 8px !important;
  }
  .da-job__event { font-size: 15px !important; }
  .da-job__when-date { font-size: 14px; }
  .da-job__when-time { font-size: 12px; }
  .da-pill { min-width: 82px; font-size: 11px; padding: 5px 8px; }
  .da-cal-btn { width: 36px; height: 36px; font-size: 18px; }
}

/* Event page layout */
.da-job__top--event {
  grid-template-columns: minmax(92px, 0.9fr) minmax(180px, 1.8fr) minmax(110px, 1fr) 54px;
  gap: 10px;
  align-items: center;
}
.da-job__top--event .da-job__event {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--pink-dark) !important;
  line-height: 1.05 !important;
}
.da-job__top--event .da-job__when {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.da-cal-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}
.da-detail__group--table {
  gap: 0;
  border: 1px solid #f0d2df;
  border-radius: 18px;
  overflow: hidden;
}
.da-kv {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 0;
  align-items: stretch;
  border-top: 1px solid #f0d2df;
}
.da-kv:first-child {
  border-top: none;
}
.da-table__label,
.da-table__value {
  padding: 5px 8px;
  line-height: 1.3;
}
.da-table__label {
  color: #555;
  font-weight: 700;
  background: #fff6fa;
  border-right: 1px solid #f0d2df;
}
.da-table__value {
  background: #fff;
}
.da-table__value a {
  color: var(--pink-dark);
  font-weight: 700;
  text-decoration: none;
}
.da-table__value a:hover {
  text-decoration: underline;
}
.da-table__value--danger {
  color: #d32f2f;
  font-weight: 700;
}
.da-serve {
  display: grid;
  gap: 6px;
  font-size: 15px;
  line-height: 1.35;
}
.da-serve__title {
  font-size: inherit;
  font-weight: 700;
  color: #333;
}
.da-serve__intro {
  font-size: inherit;
  color: #666;
}
.da-serve__block {
  display: grid;
  gap: 2px;
}
.da-serve__label {
  font-weight: 700;
  color: #444;
}
.da-serve__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 2px;
}
.da-serve__list li {
  margin: 0;
}
@media (max-width: 760px) {
  .da-job__top--event {
    grid-template-columns: minmax(74px, 0.8fr) minmax(146px, 1.8fr) minmax(92px, 0.95fr) 42px;
    gap: 8px;
  }
  .da-job__top--event .da-job__event {
    font-size: 15px !important;
  }
  .da-job__top--event .da-job__when {
    font-size: 12px;
  }
  .da-kv {
    grid-template-columns: 112px 1fr;
  }
  .da-table__label,
  .da-table__value {
    padding: 4px 7px;
  }
}
@media (max-width: 480px) {
  .da-kv {
    grid-template-columns: 98px 1fr;
  }
  .da-table__label,
  .da-table__value {
    padding: 4px 6px;
    font-size: 14px;
  }
  .da-serve {
    font-size: 14px;
  }
}

.da-tracking {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #f0d2df;
  border-radius: 18px;
  background: #fffafc;
}
.da-tracking.is-live {
  border-color: rgba(46, 125, 50, 0.24);
  box-shadow: inset 0 0 0 1px rgba(46, 125, 50, 0.08);
}
.da-tracking__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.da-tracking__head h3 {
  margin: 0;
  font-size: 18px;
}
.da-tracking__head p {
  margin: 4px 0 0;
  color: #666;
  font-size: 14px;
}
.da-tracking__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-align: center;
}
.da-tracking__badge--live { background: #1976d2; }
.da-tracking__badge--arrived { background: #2e7d32; }
.da-tracking__badge--stale { background: #f39c12; }
.da-tracking__badge--stopped,
.da-tracking__badge--idle,
.da-tracking__badge--unavailable { background: #757575; }
.da-tracking__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 14px;
}
.da-tracking__meta div {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f1dde6;
}
.da-tracking__message {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f8ff;
  border: 1px solid #dfe4ff;
  color: #334;
  font-size: 14px;
}
.da-tracking__message--error {
  background: #fff1f0;
  border-color: #f2c8c3;
  color: #8c1d18;
}
.da-tracking__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.da-tracking__helper {
  color: #666;
  font-size: 13px;
}
@media (max-width: 760px) {
  .da-tracking {
    padding: 12px;
  }
  .da-tracking__head {
    flex-direction: column;
    align-items: stretch;
  }
  .da-tracking__badge {
    align-self: flex-start;
  }
  .da-tracking__meta {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   Driver app logo/header/layout lock - v4
   Driver app only. Prevents oversized logo and restores app layout.
   ------------------------------------------------------------------ */
html, body {
  min-height: 100%;
}

body.da-welcome,
body.da-dashboard,
body.da-event,
body.da-reset {
  background: #fff7fa;
}

.da-header,
body > header.da-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 72px !important;
  padding: 10px 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(233, 30, 99, 0.18) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.da-brand,
body > header.da-header > .da-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #9c1d54 !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  line-height: 1.1 !important;
  min-width: 0 !important;
}

.da-brand img,
body > header.da-header img,
body > header.da-header .da-brand img,
.da-header img {
  width: 54px !important;
  max-width: 54px !important;
  min-width: 54px !important;
  height: auto !important;
  max-height: 54px !important;
  object-fit: contain !important;
  display: block !important;
  flex: 0 0 54px !important;
  margin: 0 !important;
}

.da-brand span,
body > header.da-header .da-brand span {
  display: inline-block !important;
  white-space: nowrap !important;
}

.da-nav,
body > header.da-header .da-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}

.da-nav a,
.da-driver-name,
body > header.da-header .da-nav a,
body > header.da-header .da-driver-name {
  color: #9c1d54 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.da-driver-name,
body > header.da-header .da-driver-name {
  color: #555 !important;
}

.da-main,
main.da-main {
  width: min(100%, 1080px) !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 24px 16px 40px !important;
}

body.da-welcome .da-main,
body.da-reset .da-main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.da-welcome-wrap,
body.da-welcome .da-welcome-wrap,
body.da-reset .da-welcome-wrap {
  min-height: calc(100dvh - 72px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px 14px !important;
}

.da-login-card,
body.da-welcome .da-login-card,
body.da-reset .da-login-card {
  width: min(100%, 430px) !important;
  max-width: 430px !important;
  margin: 0 auto !important;
  padding: 26px 22px !important;
  text-align: center !important;
}

.da-logo,
.da-login-card > img.da-logo,
body.da-welcome .da-logo,
body.da-reset .da-logo {
  width: 150px !important;
  max-width: 48vw !important;
  height: auto !important;
  max-height: 150px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 16px !important;
}

.da-section-title {
  margin-top: 0 !important;
}

.da-empty {
  max-width: 680px !important;
  margin: 0 auto !important;
}

@media (max-width: 760px) {
  .da-header,
  body > header.da-header {
    min-height: 58px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  .da-brand,
  body > header.da-header > .da-brand {
    gap: 7px !important;
    font-size: 14px !important;
  }

  .da-brand img,
  body > header.da-header img,
  body > header.da-header .da-brand img,
  .da-header img {
    width: 36px !important;
    max-width: 36px !important;
    min-width: 36px !important;
    max-height: 36px !important;
    flex-basis: 36px !important;
  }

  .da-nav,
  body > header.da-header .da-nav {
    gap: 8px !important;
  }

  .da-nav a,
  .da-driver-name,
  body > header.da-header .da-nav a,
  body > header.da-header .da-driver-name {
    font-size: 12px !important;
  }

  .da-main,
  main.da-main {
    padding: 16px 10px 28px !important;
  }

  .da-welcome-wrap,
  body.da-welcome .da-welcome-wrap,
  body.da-reset .da-welcome-wrap {
    align-items: flex-start !important;
    min-height: calc(100dvh - 58px) !important;
    padding: 16px 10px 22px !important;
  }

  .da-login-card,
  body.da-welcome .da-login-card,
  body.da-reset .da-login-card {
    max-width: 420px !important;
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  .da-logo,
  .da-login-card > img.da-logo,
  body.da-welcome .da-logo,
  body.da-reset .da-logo {
    width: 110px !important;
    max-width: 38vw !important;
    max-height: 110px !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 480px) {
  .da-header,
  body > header.da-header {
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .da-brand,
  body > header.da-header > .da-brand {
    width: 100% !important;
    justify-content: center !important;
  }

  .da-brand span,
  body > header.da-header .da-brand span {
    white-space: normal !important;
  }

  .da-nav,
  body > header.da-header .da-nav {
    width: 100% !important;
    justify-content: center !important;
  }
}


/* ------------------------------------------------------------------
   Driver app event card/mobile centering fix - v5
   Restores status badge visibility and keeps the event summary centered.
   ------------------------------------------------------------------ */
.da-job,
.da-detail,
.da-detail__group,
.da-detail__group--table,
.da-kv {
  width: 100%;
  max-width: 100%;
}

.da-job__top--event,
.da-job__top--compact {
  width: 100%;
}

.da-job__top--event .da-job__compact-cell,
.da-job__top--compact .da-job__compact-cell,
.da-job__top--event .da-job__cell,
.da-job__top--compact .da-job__cell {
  min-width: 0;
}

.da-job__top--event .da-job__compact-cell--status,
.da-job__top--compact .da-job__compact-cell--status,
.da-job__top--event .da-job__cell--status,
.da-job__top--compact .da-job__cell--status {
  justify-self: center;
  align-self: center;
}

.da-job__top--event .da-job__compact-cell--cal,
.da-job__top--compact .da-job__compact-cell--cal,
.da-job__top--event .da-job__cell--cal,
.da-job__top--compact .da-job__cell--cal {
  justify-self: center;
  align-self: center;
}

.da-job__top--event .da-pill,
.da-job__top--compact .da-pill {
  display: inline-flex;
  min-width: 88px;
  max-width: 100%;
  white-space: nowrap;
}

.da-job__top--event .da-cal-btn,
.da-job__top--compact .da-cal-btn {
  margin: 0 auto;
}

@media (max-width: 760px) {
  .da-main,
  main.da-main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .da-job,
  .da-detail {
    padding: 14px;
  }

  .da-job__top--event,
  .da-job__top--compact {
    grid-template-columns: 92px minmax(0, 1fr) 92px 42px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .da-job__top--event .da-job__event,
  .da-job__top--compact .da-job__event {
    font-size: 15px !important;
  }

  .da-job__top--event .da-job__when,
  .da-job__top--compact .da-job__when {
    font-size: 12px !important;
  }

  .da-job__top--event .da-pill,
  .da-job__top--compact .da-pill {
    min-width: 82px;
    font-size: 11px;
    padding: 5px 8px;
  }

  .da-job__top--event .da-cal-btn,
  .da-job__top--compact .da-cal-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .da-detail__group--table {
    overflow: hidden;
  }

  .da-kv {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .da-main,
  main.da-main {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .da-job,
  .da-detail {
    padding: 12px;
    border-radius: 20px;
  }

  .da-job__top--event,
  .da-job__top--compact {
    grid-template-columns: 86px minmax(0, 1fr) 84px 40px !important;
    gap: 6px !important;
  }

  .da-job__top--event .da-job__event,
  .da-job__top--compact .da-job__event {
    font-size: 14px !important;
  }

  .da-job__top--event .da-job__when,
  .da-job__top--compact .da-job__when,
  .da-job__when-date,
  .da-job__when-time {
    font-size: 12px !important;
  }

  .da-job__top--event .da-pill,
  .da-job__top--compact .da-pill {
    min-width: 74px;
    font-size: 10px;
    padding: 5px 6px;
  }

  .da-kv {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .da-table__label,
  .da-table__value {
    padding: 5px 6px;
    font-size: 13px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .da-serve {
    font-size: 13px;
  }
}


/* Driver dashboard front-card summary for allocated jobs */
.da-front-card {
  display: grid;
  gap: 9px;
  font-size: 14px;
  line-height: 1.42;
  color: #333;
}
.da-front-card__row {
  display: block;
}
.da-front-card__group {
  display: grid;
  gap: 4px;
}
.da-front-card__label {
  font-weight: 900;
  color: #2b2b2b;
}
.da-front-card__list {
  margin: 0;
  padding-left: 20px;
}
.da-front-card__list li {
  margin: 1px 0;
}
.da-front-card__empty {
  color: #777;
  font-weight: 700;
}
@media (max-width: 640px) {
  .da-front-card { font-size: 13px; gap: 7px; }
}

/* Stage 2D: make dashboard front-card labels visibly bold even on cached/older browsers. */
.da-front-card__label,
.da-front-card strong.da-front-card__label {
  font-weight: 900 !important;
  color: #222 !important;
}

/* Driver app dashboard header true centre date/time - Stage 2F */
.da-job__top--compact {
  position: relative !important;
}
.da-job__top--compact .da-job__compact-cell--event,
.da-job__top--compact .da-job__compact-cell--status,
.da-job__top--compact .da-job__compact-cell--cal {
  position: relative;
  z-index: 2;
}
.da-job__top--compact .da-job__compact-cell--when {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: max-content;
  max-width: min(260px, calc(100% - 245px));
  text-align: center !important;
  justify-self: center !important;
  z-index: 1;
}
.da-job__top--compact .da-job__when-date,
.da-job__top--compact .da-job__when-time {
  text-align: center !important;
}

@media (max-width: 430px) {
  .da-job__top--compact .da-job__compact-cell--when {
    max-width: calc(100% - 205px);
  }
  .da-job__top--compact .da-job__when-date {
    font-size: 11px !important;
  }
  .da-job__top--compact .da-job__when-time {
    font-size: 10px !important;
  }
}

/* Stage 3: driver event detail serving cleanup + tracking robustness UI */
.da-serve__label,
.da-serve__intro {
  font-weight: 900;
  color: #444;
}
.da-serve__block { margin: 8px 0; }
.da-serve__list { margin: 4px 0 0 18px; padding: 0; }
.da-serve__list li { margin: 2px 0; }
.da-tracking__arrival {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #7c2d12;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 800;
}
.da-tracking__arrival[hidden] { display: none !important; }
.da-tracking__arrival span { font-weight: 700; color: #7c2d12; }
.da-tracking.is-live { border-color: #86efac; box-shadow: 0 0 0 3px rgba(34,197,94,0.08); }
.da-tracking__message--error { background: #fee2e2 !important; border-color: #fecaca !important; color: #991b1b !important; }
.da-job__top--compact .da-job__compact-cell--when,
.da-job__top--event .da-job__cell--when { text-align: center !important; justify-self: center !important; }
.da-job__top--event .da-job__when { text-align: center !important; }
@media (max-width: 640px) {
  .da-tracking__actions,
  .da-tracking__arrival { align-items: stretch; }
  .da-tracking__actions .da-btn,
  .da-tracking__arrival .da-btn { width: 100%; }
}

/* Stage 3B: driver dashboard date/time middle-column centering only.
   Keeps the dashboard date/time block centred inside column 2 instead of
   absolutely centring it across the full row. Driver-app CSS only. */
.da-job__top--compact .da-job__compact-cell--when {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: stretch !important;
  align-self: center !important;
  text-align: center !important;
}
.da-job__top--compact .da-job__when-date,
.da-job__top--compact .da-job__when-time {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
}

/* Stage 3C: confirmed driver contact shortcuts on dashboard and detail pages. */
.da-front-card__confirmed-contact {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(233, 30, 99, 0.12);
}
.da-front-card__link,
.da-driver-action-link {
  color: var(--pink-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.da-front-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.da-front-card__actions .da-btn {
  min-height: 38px;
}
@media (max-width: 430px) {
  .da-front-card__actions .da-btn {
    flex: 1 1 150px;
  }
}
