/* Leads board (office/leads.js): three columns, Mild / Medium / Hot. Used in the portal (Admin > Leads) and the Office app. Phone first. */
.ld { --ld-navy: #0d2438; --ld-brass: #b3894f; --ld-line: #e4dccb; --ld-soft: #5c6b7a; --ld-red: #c0392b; font-size: 15px; color: var(--ld-navy); }
.ld-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; }
.ld-head h3 { margin: 0; font-size: 22px; }
.ld-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--ld-navy); color: #fff; font: 700 12px/1 var(--sans, sans-serif); vertical-align: middle; margin-left: 4px; }
.ld-tip { margin: 0 0 12px; font-size: 13.5px; color: var(--ld-soft); }
.ld-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--ld-navy); color: #fff; font: 600 13px/1.2 var(--sans, inherit); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.ld-btn.ld-ghost { background: transparent; color: var(--ld-navy); border: 1.5px solid var(--ld-navy); }
.ld-btn:disabled { opacity: .6; cursor: default; }
.ld-link { background: none; border: 0; min-height: 44px; padding: 0 6px; color: var(--ld-red); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ld-link.ld-convert { color: var(--ld-navy); font-weight: 700; margin-left: auto; }
.ld-msg { margin: 6px 0 0; font-size: 13px; color: var(--ld-red); } .ld-msg:empty { display: none; } .ld-msg.is-ok { color: #2f6b45; margin: 0 0 10px; }
.ld-empty { margin: 6px 4px; font-size: 13.5px; color: var(--ld-soft); }
/* the board: three columns side by side; on a phone they scroll sideways one at a time */
.ld-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 10px; align-items: start; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.ld-col { background: rgba(13,36,56,.05); border-radius: 12px; padding: 8px; min-height: 160px; scroll-snap-align: start; border-top: 4px solid var(--ld-soft); transition: background .15s, box-shadow .15s; display: flex; flex-direction: column; }
.ld-col.is-medium { border-top-color: var(--ld-brass); }
.ld-col.is-hot { border-top-color: var(--ld-red); }
.ld-col.is-over { background: rgba(179,137,79,.18); box-shadow: inset 0 0 0 2px var(--ld-brass); }
.ld-col h4 { margin: 2px 4px 8px; font: 700 14px/1.25 var(--sans, inherit); color: var(--ld-navy); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.ld-col h4 small { font-weight: 500; font-size: 12px; color: var(--ld-soft); }
.ld-col h4 i { font-style: normal; margin-left: auto; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--ld-navy); color: #fff; font-size: 11px; }
.ld-list { display: grid; gap: 6px; flex: 1; align-content: start; }
.ld-card { background: #fff; border-radius: 9px; padding: 10px 12px; border-left: 4px solid var(--ld-line); box-shadow: 0 1px 4px rgba(13,36,56,.08); display: grid; gap: 4px; }
.ld-card[role=button] { cursor: grab; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ld-card[role=button]:hover { border-left-color: var(--ld-brass); }
.ld-card[role=button]:focus-visible { outline: 2px solid var(--ld-brass); outline-offset: 2px; }
.ld-card > b { font-size: 15px; }
.ld-line { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ld-navy); font-weight: 600; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.ld-line svg { width: 18px; height: 18px; flex: none; color: var(--ld-brass); }
.ld-note { margin: 0; font-size: 13.5px; color: #2b3a48; white-space: pre-wrap; overflow-wrap: anywhere; }
.ld-meta { font-size: 12px; color: var(--ld-soft); }
.ld-card.is-lifted { opacity: .35; }
/* the card that follows the finger while dragging (was .ld-ghost, which also styled the Cancel buttons: fixed 11-04) */
.ld-drag-ghost { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; box-shadow: 0 14px 34px rgba(13,36,56,.3); transform-origin: 0 0; opacity: .96; rotate: 2deg; }
body.ld-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.ld-add-here { margin-top: 8px; min-height: 44px; border: 1.5px dashed rgba(13,36,56,.3); border-radius: 8px; background: transparent; color: var(--ld-navy); font: 600 13px/1.2 var(--sans, inherit); cursor: pointer; }
.ld-add-here:hover { border-color: var(--ld-brass); background: #fff; }
/* the form: a new lead at the top, or a card opened for editing */
.ld-card.is-editing { border-left-color: var(--ld-brass); cursor: default; }
.ld-new { margin: 0 0 12px; }
.ld-form, .ld-paste { display: grid; gap: 10px; }
.ld-form h5, .ld-paste h5 { margin: 0; font-size: 15px; }
.ld-form label, .ld-paste label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ld-navy); }
.ld-form input, .ld-form select, .ld-form textarea, .ld-paste textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1px solid var(--ld-line); border-radius: 6px; font: inherit; font-size: 16px; color: inherit; background: #fff; }
.ld-form textarea { min-height: 70px; resize: vertical; }
.ld-two { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ld-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ld-done { margin-top: 14px; font-size: 14px; }
.ld-done summary { cursor: pointer; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.ld-done ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
@media (min-width: 560px) { .ld-two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .ld-board { grid-auto-columns: minmax(0, 1fr); overflow-x: visible; } }

/* Ryan 11-04: where each lead came from, the paste-a-lead box, and the 90-day count by source */
.ld-head-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ld-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ld-src { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef2f6; color: var(--ld-navy); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.ld-src.is-new { background: #fbf1df; color: #7a5317; }
.ld-sources { margin: -4px 0 12px; font-size: 13.5px; color: var(--ld-navy); }
.ld-sources small { color: var(--ld-soft); font-size: 12px; }
.ld-paste { margin: 0 0 12px; }
.ld-paste textarea { min-height: 140px; resize: vertical; }
.ld-hint { margin: 0; font-size: 13px; color: var(--ld-soft); }
@media (max-width: 559px) { .ld-head-acts { width: 100%; } .ld-head-acts .ld-btn { flex: 1; } }
