/* A Taxi dispatch — shared styles. Plain CSS, no build step. */
:root {
  --ink: #1c2430;
  --muted: #5b6572;
  --line: #d8dde3;
  --brand: #0f5f8f;
  --brand-dark: #0a4568;
  --green: #1e8a49;
  --yellow: #b8860b;
  --yellow-bg: #fdf3d7;
  --red: #c0392b;
  --gray: #6b7280;
  --bg: #f4f6f8;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
header.site {
  background: var(--brand-dark);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
header.site .name { font-size: 20px; font-weight: 700; }
header.site .phone { font-size: 15px; }
header.site a { color: #cfe8f5; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; margin: 8px 0 12px; }
h2 { font-size: 17px; margin: 18px 0 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
input, select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 15px;
  background: #fff;
}
textarea { min-height: 54px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1 1 200px; }
button, .btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--brand-dark); }
button.secondary { background: #e8edf1; color: var(--ink); }
button.secondary:hover { background: #d8dfe5; }
button.danger { background: var(--red); }
button.small { padding: 6px 10px; font-size: 13px; }
button:disabled { opacity: .55; cursor: default; }
.msg { margin: 10px 0; font-size: 14px; }
.msg.error { color: var(--red); }
.msg.ok { color: var(--green); }
.muted { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }

/* Autocomplete */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 8px 8px;
  z-index: 30; max-height: 220px; overflow: auto;
}
.ac-list div { padding: 9px 10px; cursor: pointer; font-size: 14px; }
.ac-list div:hover { background: #eef4f8; }

/* Ride cards + status colors */
.ride {
  border: 1px solid var(--line);
  border-left: 8px solid var(--gray);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.ride.status-green { border-left-color: var(--green); }
.ride.status-yellow { border-left-color: #e0a800; background: var(--yellow-bg); }
.ride.status-red { border-left-color: var(--red); }
.ride.status-gray { border-left-color: var(--gray); opacity: .85; }
.ride.status-dashed-gray { border-left: 8px dashed var(--gray); opacity: .75; }
.ride .top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ride .job { font-weight: 700; }
.ride .badge {
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #e8edf1; color: var(--ink);
}
.ride .badge.priority { background: #dbe7f3; color: var(--ink); }
.ride .badge.pastdue { background: var(--red); color: #fff; }
.ride .badge.ringing { background: #e0a800; color: #fff; }
.ride .addr { font-size: 14px; margin: 3px 0; }
.ride .meta { font-size: 13px; color: var(--muted); }
.ride .actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ride .actions select { width: auto; }
.meter { font-size: 26px; font-weight: 800; }
table.report { width: 100%; border-collapse: collapse; font-size: 14px; }
table.report th, table.report td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }

/* View switchers and tabs */
.switcher, .tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.switcher button, .tabs button { background: #e8edf1; color: var(--ink); }
.switcher button.active, .tabs button.active { background: var(--brand); color: #fff; }
.board-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }

/* Auto-dispatch (2026-11-13) */
.auto-bar { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 6px 0 12px; }
.auto-bar input[type="checkbox"] { width: auto; }
.auto-line { margin-top: 6px; }
.ride .badge.auto { background: var(--brand); color: #fff; }
.offer-card { outline: 3px solid #e0a800; outline-offset: -3px; }

/* Driver Arrived step + clear-form payment taps (2026-11-13) */
button.arrive-btn {
  display: block; width: 100%; margin-top: 10px;
  padding: 16px; font-size: 19px; background: var(--green);
}
button.arrive-btn:hover { background: var(--green); opacity: .88; }
.pay-opts { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
button.pay-opt { background: #e8edf1; color: var(--ink); }
button.pay-opt:hover { background: #d8dfe5; }
button.pay-opt.selected { background: var(--brand); color: #fff; }
.earnings { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.earnings b { font-size: 17px; }
footer.site { text-align: center; color: var(--muted); font-size: 13px; padding: 18px; }
