/* Mobile-first, control-app style: one card per job, big clear buttons. */
* { box-sizing: border-box; }
/* Zoom-lock fix (Nov 23, 2026): stop double-tap zoom and sideways drift on phones.
   Repeated taps on the dial pad were read by the phone browser as double-tap
   zoom, so the page zoomed in/out and moved around while typing a number. */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
html, body { overflow-x: hidden; }
button, input, textarea, select, label { touch-action: manipulation; }
body {
  margin: 0;
  overscroll-behavior-y: none;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f2f4f7;
  color: #14213d;
}
.topbar {
  background: #14213d;
  color: #fff;
  padding: 14px 16px;
  position: sticky;
  top: 0;
}
.topbar .brand { font-size: 20px; font-weight: 700; }
.testmode {
  margin-top: 6px;
  background: #fca311;
  color: #14213d;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}
main { padding: 16px; max-width: 560px; margin: 0 auto; }
h1 { font-size: 22px; margin: 8px 0; }
input[type="text"] {
  width: 100%;
  font-size: 18px;
  padding: 14px;
  border: 2px solid #c9d2dd;
  border-radius: 10px;
  margin: 10px 0;
  text-transform: uppercase;
}
textarea {
  width: 100%;
  font-size: 17px;
  padding: 12px;
  border: 2px solid #c9d2dd;
  border-radius: 10px;
}
.bigbtn {
  display: block;
  width: 100%;
  font-size: 20px;
  font-weight: 800;
  padding: 18px 12px;
  border: none;
  border-radius: 12px;
  margin: 8px 0;
  cursor: pointer;
  letter-spacing: .5px;
}
.bigbtn.primary { background: #14213d; color: #fff; }
.bigbtn.call { background: #1a9e54; color: #fff; }
.bigbtn.text { background: #1668c4; color: #fff; }
.smallbtn {
  background: #fff;
  border: 2px solid #14213d;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 2px 8px rgba(20, 33, 61, .10);
}
.card-head { display: flex; justify-content: space-between; align-items: center; }
.brandtag {
  background: #eef3fa;
  color: #14213d;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
}
.jobid { color: #66788c; font-size: 13px; font-weight: 600; }
.card h2 { margin: 10px 0 4px; font-size: 21px; }
.address, .note { margin: 2px 0; font-size: 16px; }
.note { color: #40536a; }
.fromline { margin: 8px 0 2px; font-size: 14px; color: #66788c; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .bigbtn { margin: 6px 0; }
.composer { margin-top: 10px; }
.langnote { font-size: 14px; color: #40536a; margin: 4px 0; }
.status { font-size: 15px; font-weight: 600; min-height: 20px; }
.error { color: #b3261e; font-weight: 600; }
.hint { color: #66788c; }
.records { margin-top: 8px; border-top: 1px solid #e3e9f0; }
.record { font-size: 14px; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.record .kind { font-weight: 700; }
.record .both { color: #40536a; display: block; }
/* Dial pad (Driver Connect design update, Nov 22, 2026) */
#dialBox { margin-top: 28px; }
.dialdisplay {
  background: #fff;
  border: 2px solid #c9d2dd;
  border-radius: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 14px;
  text-align: center;
  min-height: 34px;
  word-break: break-all;
}
.dialpad {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 12px 0 6px;
}
.dialbtn {
  font-size: 26px;
  font-weight: 800;
  padding: 18px 0;
  border: none;
  border-radius: 12px;
  background: #14213d;
  color: #fff;
  cursor: pointer;
}
.dialbtn:active { background: #40536a; }
.dialtools { display: flex; gap: 10px; margin: 6px 0 10px; }
.dialtools .smallbtn { flex: 1; font-size: 16px; padding: 12px; }
.langswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px; }
.langbtn {
  font-size: 20px;
  font-weight: 800;
  padding: 16px 12px;
  border: 2px solid #14213d;
  border-radius: 12px;
  background: #fff;
  color: #14213d;
  cursor: pointer;
}
.langbtn.active { background: #fca311; color: #14213d; }

/* MMS (Nov 23, 2026): photo attach + previews */
.photoline { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.photopick { cursor: pointer; }
.photoname { font-size: 0.85em; opacity: 0.8; word-break: break-all; }
.photopreview, .recordphoto { display: block; max-width: 100%; max-height: 240px; margin-top: 10px; border-radius: 8px; }
.sendphoto { margin-top: 10px; }
