/* YB Sales — MYMG red (Glen 2026-11-18). Builds on /app.css. */
:root { --accent: #B22527; --accent-ink: #FFFFFF; --accent-soft: #FBEDED; --bg: #F6F2F1; }
body { background: var(--bg); }
.topbar { background: var(--accent); }
#lang { margin-left: auto; }

/* Login (same screens as YB Deliveries) */
.brand { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.brand img { width: 56px; height: 56px; flex: none; }
.brand b { display: block; font-size: 26px; line-height: 1.1; color: var(--accent); }
.brand span { display: block; color: var(--muted); font-size: 16px; }
.person-title { display: block; font-size: 15px; font-weight: 400; color: var(--muted); }
.keypad button { font-size: 26px; }
.bday { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 8px; margin-top: 8px; }
.bday label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; min-width: 0; }
.bday select { padding: 0 8px; min-width: 0; }

/* Inputs: big, for older eyes */
.input, textarea.input, select.input { width: 100%; min-height: 54px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); font-size: 19px; color: var(--ink); }
textarea.input { padding: 12px 14px; min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--accent); outline: none; }
.input.bad { border-color: var(--bad); background: var(--bad-soft); }
.field { margin-top: 16px; }
.field > label, .flabel { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--accent); }
.opt { color: var(--muted); font-weight: 400; font-size: 15px; }
.hint { font-size: 15px; color: var(--muted); margin: -2px 0 6px; }

/* Home: four big buttons */
.hello { font-size: 22px; margin: 6px 0 14px; }
.home { display: grid; grid-template-columns: 1fr; gap: 12px; }
.home a { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 14px 18px; border-radius: 16px; text-decoration: none;
  background: var(--card); border: 2px solid var(--line); color: var(--ink); }
.home a:active { background: var(--accent-soft); }
.home .ico { width: 56px; height: 56px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 30px; background: var(--accent-soft); }
.home b { display: block; font-size: 23px; line-height: 1.15; }
.home span { display: block; font-size: 15px; color: var(--muted); }
.home a.main { background: var(--accent); border-color: var(--accent); color: #fff; }
.home a.main span { color: rgba(255,255,255,.85); }
.home a.main .ico { background: rgba(255,255,255,.18); }

/* Capture rows (GPS + photos): icon + title on top, full-width buttons underneath */
.cap { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 12px;
  border: 2px dashed var(--line); border-radius: 14px; background: var(--card); }
.cap.done { border-style: solid; border-color: var(--accent); }
.cap .thumb { width: 64px; height: 64px; border-radius: 10px; background: #EEE center/cover no-repeat; display: grid; place-items: center; font-size: 26px; }
.cap .t { min-width: 0; }
.cap .t b { display: block; font-size: 18px; line-height: 1.25; }
.cap .t span { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.cap-btns { grid-column: 1 / -1; display: flex; gap: 8px; }
.cap-btns .btn { flex: 1; width: auto; min-height: 52px; font-size: 17px; padding: 0 12px; }
.cap-btns .btn.ghost { flex: 0 0 auto; }
.btn.big { min-height: 60px; font-size: 21px; width: 100%; }

/* Duplicate warning */
.dups { margin-top: 10px; }
.dups li { margin: 4px 0; font-size: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; font-weight: 600; margin-top: 10px; }
.check input { width: 26px; height: 26px; flex: none; accent-color: var(--accent); }

/* Prospects */
.card.p-card { display: flex; gap: 12px; align-items: center; }
.p-card .t { flex: 1; min-width: 0; }
.p-card b { display: block; font-size: 19px; overflow-wrap: anywhere; }
.p-card span { font-size: 15px; color: var(--muted); }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); }
.dots i.on { background: var(--accent); }
.p-photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; background: #EEE; }
.p-name { font-size: 26px; font-weight: 700; line-height: 1.15; margin: 10px 0 4px; overflow-wrap: anywhere; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.row2 .btn { min-height: 56px; font-size: 18px; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.list-plain { list-style: none; padding: 0; margin: 6px 0 0; }
.list-plain li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 16px; }

/* KYC QR */
.qr { text-align: center; }
.qr img { width: min(86vw, 340px); height: auto; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qr .ref { font-family: "IBM Plex Mono", monospace; font-size: 16px; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.reasons button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font-size: 15px; font-weight: 600; }
.search-row { position: relative; }

/* My Customers */
.tabs3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 12px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.tabs3 a { min-height: 46px; display: grid; place-items: center; border-radius: 10px; font-size: 17px; font-weight: 700; color: var(--muted); text-decoration: none; }
.tabs3 a.on { background: var(--accent); color: #fff; }
.dlv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 4px 0 10px; font-size: 18px; }
.dlv-split { margin: 16px 0 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* Team Today + route map */
.chip.ok { background: #E3EFE8; color: #1F6F4A; }
.team-card b { font-size: 20px; }
.team-num { margin-top: 6px; font-size: 16px; color: var(--muted); }
.team-num span { font-size: 22px; font-weight: 700; color: var(--ink); }
.bar { height: 10px; border-radius: 99px; background: #EEE; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #1F7A4A; border-radius: 99px; }
.routemap { height: 62vh; min-height: 320px; border-radius: 14px; border: 1px solid var(--line); }
.dlv-head .btn.ghost { margin-left: auto; }
.cap-btns label.btn, .cap-btns .btn { display: flex; align-items: center; justify-content: center; text-align: center; }
.cap .t b span { display: inline; margin: 0; font-size: inherit; }
.cap .t b span.opt { font-size: 15px; }
textarea.input, select.input, .input { font-family: inherit; }

/* Today header: date + count on the left, small Map/List toggle on the right */
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.mhead b { display: block; font-size: 19px; }
.mhead .muted { font-size: 16px; margin-top: 2px; }
.maptog { flex: none; align-self: stretch; min-width: 96px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.maptog:active { background: var(--accent-soft); }
