.funnel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 14px;
  scrollbar-color: #168bd0 #dcecf8;
  scrollbar-width: auto;
}
.funnel::-webkit-scrollbar { height: 14px; }
.funnel::-webkit-scrollbar-track { background: #dcecf8; border-radius: 999px; }
.funnel::-webkit-scrollbar-thumb { background: #168bd0; border: 3px solid #dcecf8; border-radius: 999px; }
.funnel-navigation { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #b9d9ee; border-radius: 12px; background: #eef7fe; color: #244d70; }
.funnel-navigation > div { display: flex; gap: 8px; flex: 0 0 auto; }
.funnel-navigation .btn:disabled { cursor: default; opacity: .45; filter: none; }
.funnel-owner-filter { margin-bottom: 12px; }
.funnel-owner-filter .panel-body { display: grid; grid-template-columns: minmax(300px, 1fr) auto; gap: 18px; align-items: end; }
.funnel-owner-filter .field { margin: 0; }
.funnel-owner-summary { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 8px; min-width: 190px; color: #244d70; }
.funnel-owner-summary span { grid-column: 1 / -1; font-weight: 700; }
.funnel-owner-summary b { color: #082f5c; font-size: 28px; line-height: 1; }
.funnel-owner-summary small { color: #68809c; }
.input[type="date"] { cursor: pointer; caret-color: transparent; }
.funnel-col { min-width: 0; height: 620px; scroll-snap-align: start; }
.funnel-list { overflow-y: auto; overscroll-behavior: contain; }
.lead-card { min-height: 126px; }
.lead-unread { background: #dceeff !important; border-color: #409bd2 !important; box-shadow: inset 0 0 0 1px #409bd2; }
.lead-overdue { background: #ffe1df !important; border-color: #d94a40 !important; box-shadow: inset 0 0 0 1px #d94a40; }
.lead-card.lead-unread b,.lead-card.lead-unread small { color: #073f68; }
.lead-card.lead-overdue b,.lead-card.lead-overdue small { color: #7f1d17; }
tr.lead-unread:hover { background: #d3e9fb; }
tr.lead-overdue:hover { background: #ffd6d3; }
.new-dot { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #1798dc; color: #fff; font-size: 11px; vertical-align: middle; }
.badge.status-blue,.lead-card.status-blue { border-color: #72bde9; }
.badge.status-blue { background: #dff3ff; color: #075b8c; }
.badge.status-red,.lead-card.status-red { border-color: #ef8b83; }
.badge.status-red { background: #fff0ef; color: #a7271d; }
.badge.status-green,.lead-card.status-green { border-color: #8fcba8; }
.badge.status-green { background: #e8f7ee; color: #17653a; }
.task-open { border-left: 4px solid #1595d3; background: #f5fbff; }
.task-overdue { border-left: 4px solid #d73a2f; background: #fff5f4; }
.task-overdue small { color: #a7271d; font-weight: 700; }
.task-priority { box-shadow: 0 8px 22px rgba(8,55,100,.08); }
.overdue-stat { border-color: #ef8b83; }
.overdue-stat b { color: #b32920; }
.event-chip[data-event] { cursor: pointer; }
.event-chip[data-event]:hover { outline: 2px solid #1595d3; }
.event-format { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 999px; background: #fff; color: #0b4f78; font-size: 10px; }
.report-total { background: #eef7fe; }
@media (max-width: 1000px) { .funnel { grid-auto-columns: calc((100% - 16px) / 2); } .funnel-col { height: 580px; } }
@media (max-width: 700px) { .funnel-owner-filter .panel-body { grid-template-columns: 1fr; } .funnel-owner-summary { min-width: 0; } .funnel-navigation { align-items: stretch; flex-direction: column; } .funnel-navigation > div { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .funnel { grid-auto-columns: 88vw; } .funnel-col { height: 540px; } .funnel-navigation > div { grid-template-columns: 1fr; } }
