/* ============================================================
   Pipezoom - css/calitem.css, a Calendar item drawn off the board.

   The item row of the FTA lists (includes/ftaview.php) with the outcome
   chips and the Remove question js/calitem.js opens under it; the map pin
   GP.calMap.icon() draws on Routes and on the Leads map, under the colors
   css/route.css and css/leadmap.css give it; the next item on a lead row
   and Take Action's Place press.
   Defines the cal- classes, .lds-next and .ldn-place.
   Notes: docs/notes/app.pipezoom.com/css/calitem.css.md
   ============================================================ */

/* The list host and its lines */
.cal{margin-top:6px;}
.cal-busy{opacity:.6;transition:opacity .1s ease;}
.cal .btn{min-height:44px;}
.cal-list{display:flex;flex-direction:column;gap:8px;}
.cal-empty{
  padding:14px 16px;border-radius:var(--radius);
  background:var(--surface-raised);color:var(--ink-soft);font-size:.92rem;line-height:1.55;
}

/* An endpoint refusal, printed in place in the endpoint's words. */
.cal-err{
  flex-basis:100%;padding:9px 12px;border-radius:var(--radius-sm);
  background:var(--danger-wash);color:var(--ink);font-size:.88rem;
}
.cal-ierr{flex-basis:auto;}

/* 1 item, 4 lines */
.cal-item{
  display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px 14px;
  border-radius:var(--radius);background:var(--surface-raised);color:var(--ink);
}
.cal-item[hidden]{display:none;}
.cal-l1{display:flex;align-items:center;gap:8px;min-width:0;}
.cal-name{display:block;min-width:0;min-height:44px;line-height:44px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
a.cal-name:hover{text-decoration:underline;}
.cal-l2{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:.88rem;color:var(--ink-soft);}
.cal-time,.cal-when{font-weight:700;color:var(--ink);}
.cal-note{flex-basis:100%;white-space:pre-line;overflow-wrap:anywhere;}
.cal-l3{display:flex;flex-wrap:wrap;gap:0 16px;font-size:.9rem;min-width:0;}
.cal-tel,.cal-map{display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:0;color:var(--accent);}
.cal-map{overflow-wrap:anywhere;}
.cal-l4{display:flex;flex-wrap:wrap;gap:8px;}
.cal .cal-b{min-height:44px;}

/* The outcome chips and the 2nd press of Remove, opened in place. */
.cal-oc{display:flex;flex-direction:column;gap:8px;padding-top:2px;}
.cal-oc-chips{display:flex;flex-wrap:wrap;gap:8px;}
.cal-ocb{
  min-height:44px;padding:0 14px;
  border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  background:var(--surface-high);color:var(--ink);font-size:.88rem;font-weight:600;cursor:pointer;
}
.cal-ocb:hover{background:var(--surface-hover);}
.cal-oc-l{display:flex;flex-direction:column;gap:5px;font-size:.82rem;color:var(--ink-soft);}
.cal-oc-n{min-height:60px;resize:vertical;}
.cal-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.cal-confirm-t{font-weight:700;}

/* The map pin: a marker glyph with its point on the spot; a numbered pin is styled by its page. */
.cal-pin{display:flex;align-items:flex-end;justify-content:center;font-size:30px;line-height:1;color:var(--hue-blue-btn);}

/* The lead pages: the Next cell and the Take Action Place press */
.lds-tbl td.lds-c-next{overflow:visible;}
.lds-next{
  display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;
  max-width:100%;min-height:30px;padding:2px 7px;
  border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  background:var(--surface-high);color:var(--ink);font-size:.78rem;line-height:1.2;text-align:left;cursor:pointer;
}
.lds-next:hover{background:var(--surface-hover);}
.lds-next-d{font-weight:700;white-space:nowrap;}
.lds-next-k{color:var(--ink-soft);white-space:nowrap;}
.ldn-place{flex-shrink:0;align-self:flex-start;}
