/* 📱 Police (ui/police-dept.js) inside the phone: white cards, police blue. */
.pd { --b: #1d4492; font-family: var(--ui); }
.pd button { font-family: var(--ui); cursor: pointer; }
.pd-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; background: #e9edf1; border-radius: 999px; padding: 3px; margin-bottom: 10px; }
.pd-tabs button { border: 0; border-radius: 999px; padding: 8px 4px; background: none; font: 800 12.5px var(--ui); color: var(--muted); } .pd-tabs button.on { background: #fff; color: var(--b); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pd-case { display: flex; gap: 11px; align-items: flex-start; width: 100%; border: 0; text-align: left; background: #fff; border-radius: 16px; padding: 11px 13px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.pd-case > b, .pd-row > b, .pd-fh > b { font-size: 22px; line-height: 1.2; font-weight: 400; }
.pd-case > div, .pd-row > div, .pd-fh > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-case strong, .pd-row strong, .pd-fh strong { font: 800 13.5px var(--ui); color: #16202e; }
.pd-case span, .pd-row span, .pd-fh span { font: 500 12px var(--ui); color: var(--muted); overflow-wrap: anywhere; }
.pd-pill { align-self: flex-start; font: 800 11px var(--ui); font-style: normal; border-radius: 999px; padding: 3px 9px; margin-top: 4px; }
.pd-pill.open { background: #fff4d6; color: #8a6200; } .pd-pill.work { background: #e1ebff; color: var(--b); } .pd-pill.done { background: #e9edf1; color: #4b5563; }
.pd-row { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 13px; padding: 9px 12px; margin-bottom: 6px; color: #16202e; }
.pd-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.pd-stats div { background: var(--b); color: #fff; border-radius: 14px; padding: 9px 4px; text-align: center; display: flex; flex-direction: column; } .pd-stats b { font: 900 20px var(--ui); } .pd-stats span { font: 600 10.5px var(--ui); opacity: .85; }
.pd-warn { background: #fff4d6; color: #6e4e00; font: 700 12.5px var(--ui); border-radius: 12px; padding: 9px 12px; margin-bottom: 10px; }
.pd-empty { text-align: center; padding: 14px 8px; }
.pd-back { border: 0; background: none; color: var(--b); font: 800 13.5px var(--ui); padding: 2px 0 8px; }
.pd-file { background: #fff; border-radius: 18px; padding: 13px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 6px; }
.pd-fh { display: flex; gap: 10px; align-items: center; }
.pd-kv { display: flex; justify-content: space-between; gap: 10px; font: 500 12.5px var(--ui); color: var(--muted); border-top: 1px solid #eef1f4; padding-top: 6px; } .pd-kv b { color: #16202e; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.pd-state { background: #f4f6f9; border-radius: 11px; padding: 9px 11px; font: 500 13px var(--ui); color: #16202e; font-style: italic; overflow-wrap: anywhere; }
.pd-note { background: #fff; border-radius: 12px; padding: 8px 11px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; border-left: 3px solid #cbd5e1; } .pd-note.officer { border-left-color: var(--b); } .pd-note.suspect { border-left-color: #dc2626; } .pd-note.reporter { border-left-color: #16a34a; }
.pd-note strong { font: 800 12px var(--ui); color: #16202e; } .pd-note span { font: 500 13px var(--ui); color: #16202e; overflow-wrap: anywhere; } .pd-note em { font: 500 11px var(--ui); color: var(--muted); font-style: normal; }
.pd textarea { width: 100%; box-sizing: border-box; border: 1px solid #d5dbe3; border-radius: 12px; padding: 9px 11px; font: 500 14px var(--ui); margin-bottom: 6px; resize: none; }
.pd .primary { width: 100%; margin-bottom: 8px; }
.pd-close { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; } .pd-close button { border: 1px solid #d5dbe3; border-radius: 12px; background: #fff; padding: 10px; font: 800 13px var(--ui); color: #16202e; text-align: left; }
.pd-link { display: block; margin: 6px auto 0; border: 0; background: none; color: #b91c1c; font: 700 12.5px var(--ui); padding: 6px; }
/* the wanted list at the station, outside the phone */
#polWanted .pd-row { background: #f4f6f9; } #polWanted .pd-row > div { display: flex; flex-direction: column; } #polWanted strong { color: #16202e; font-weight: 800; } #polWanted span { font-size: 12px; }
/* the patrol car's lights and siren: above the horn, while you drive it */
#sirenBtn { display: none; right: 120px; bottom: 196px; width: 56px; height: 56px; }
body.driving.patrol #sirenBtn { display: flex; }
#sirenBtn.on { background: #c0392b; border-color: #fff; animation: sirenPulse 0.7s infinite alternate; }
@keyframes sirenPulse { from { background: #c0392b; } to { background: #1d4492; } }
.touch #sirenBtn { bottom: calc(var(--sab) + 248px); }
/* the phone open on a shift: the shift's bar would cover the app's tabs (it comes back when the phone closes) */
body:has(#phoneBack.open) #shiftHud, body:has(#phoneBack.open) #dash { display: none; }
