/* board.css — My Leads pipeline board */
.board-shell{display:flex;flex-direction:column;gap:.85rem;padding-top:1rem;padding-bottom:1rem;min-height:0}
.btoolbar{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;padding-bottom:.15rem}
.btoolbar__title{margin-right:auto;flex:1 1 220px}
.btoolbar .btools__view{flex:0 0 auto}
.btoolbar__title h2{font-family:Montserrat,sans-serif;font-size:1.5rem;font-weight:700;line-height:1.2;color:var(--bs-gray-900);margin:0}
.btools{display:flex;align-items:center;gap:.5rem;flex-wrap:nowrap;overflow:visible;min-width:0}
.btools .dr__pop{left:auto;right:0}
.btools .qsearch{flex:1 1 220px;max-width:320px}
.btools>*{flex:0 0 auto}
.bbtn-inbox{white-space:nowrap;display:inline-flex;align-items:center;gap:.45rem;text-decoration:none;font-size:.95rem;font-weight:700;color:#fff;background:var(--highlight);border:1px solid var(--highlight);border-radius:7px;padding:.5rem .85rem;box-shadow:0 1px 2px rgba(24,28,50,.08)}
.bbtn-inbox:hover{filter:brightness(.94);color:#fff}
.bbtn-inbox__n{font-size:.75rem;font-weight:800;color:var(--highlight);background:#fff;border-radius:999px;padding:.02rem .38rem}
.btools__seg{gap:.35rem;padding:0}
.btools__seg .qsub__btn{height:34px;padding:0 .7rem;font-size:.85rem;border:1px solid var(--bs-gray-300);background:#fff;color:var(--bs-gray-700);border-radius:999px}
.btools__seg .qsub__btn:hover{border-color:var(--highlight)}
.btools__seg .qsub__btn.on{border-color:var(--highlight);background:var(--highlight);color:#fff}
.btools__seg .qsub__n{font-size:.75rem;font-weight:700;opacity:.75}
.btools__clear{margin-left:.15rem}
.btools .drpick,.btools .qsel--slim{font-size:.85rem}
.btoolbar__hint{margin:.2rem 0 0;font-size:.85rem;color:var(--kt-text-muted)}
.btoolbar__sub{padding:0}
.btoolbar__drop{margin-top:-.15rem}
.btoolbar .qsearch{flex:0 1 240px}
.qsel--slim{max-width:210px;font-size:.85rem}
.btoolbar__inbox{display:inline-flex;align-items:center;gap:.35rem;font-size:.85rem;font-weight:700;color:var(--highlight);text-decoration:none;border:1px solid var(--bs-gray-300);background:#fff;border-radius:6px;padding:.35rem .6rem}
.btoolbar__inbox:hover{border-color:var(--highlight)}

.board{display:flex;gap:.75rem;align-items:flex-start;overflow-x:auto;overflow-y:hidden;padding-bottom:.5rem;scrollbar-width:none}
.board::-webkit-scrollbar{height:0;width:0}
.bcol{flex:0 0 268px;display:flex;flex-direction:column;background:var(--bs-gray-100,#f5f8fa);border:1px solid var(--bs-gray-200);border-radius:.7rem;max-height:calc(100vh - 210px)}
.bcol.is-over{border-color:var(--highlight);background:color-mix(in oklch,var(--bs-primary) 8%,#fff)}
.bcol__head{display:flex;align-items:center;gap:.45rem;padding:.6rem .7rem;border-bottom:1px solid var(--bs-gray-200)}
.bcol__head h2{font-size:.85rem;font-weight:800;letter-spacing:.01em;color:var(--bs-gray-800);margin:0;text-transform:uppercase}
.bcol__n{margin-left:auto;font-size:.75rem;font-weight:700;color:var(--kt-text-muted);background:#fff;border:1px solid var(--bs-gray-300);border-radius:999px;padding:.02rem .4rem}
.bcol__dot{width:8px;height:8px;border-radius:50%;background:var(--bs-gray-400);flex:0 0 auto}
/* Pipeline hues: one family, even lightness and chroma, sweeping from the
   slate primary through violet to the pink highlight as a lead warms up —
   green closes it, gray retires it. */
.board-shell,.blist{--stage-new:oklch(.62 .035 255);--stage-contacted:oklch(.56 .095 247);--stage-quotesent:oklch(.55 .115 288);--stage-negotiating:oklch(.62 .185 353);--stage-won:oklch(.58 .115 157);--stage-lost:oklch(.58 .015 260)}
.bcol__dot--new{background:var(--stage-new)}
.bcol__dot--contacted{background:var(--stage-contacted)}
.bcol__dot--quotesent{background:var(--stage-quotesent)}
.bcol__dot--negotiating{background:var(--stage-negotiating)}
.bcol__dot--won{background:var(--stage-won)}
.bcol__dot--lost{background:var(--stage-lost)}
/* the column head carries its own hue as a hairline, so a dragged card lands
   somewhere identifiable without six tinted column backgrounds */
.bcol__head{box-shadow:inset 0 2px 0 var(--bs-gray-300)}
.bcol--new .bcol__head{box-shadow:inset 0 2px 0 var(--stage-new)}
.bcol--contacted .bcol__head{box-shadow:inset 0 2px 0 var(--stage-contacted)}
.bcol--quotesent .bcol__head{box-shadow:inset 0 2px 0 var(--stage-quotesent)}
.bcol--negotiating .bcol__head{box-shadow:inset 0 2px 0 var(--stage-negotiating)}
.bcol--won .bcol__head{box-shadow:inset 0 2px 0 var(--stage-won)}
.bcol--lost .bcol__head{box-shadow:inset 0 2px 0 var(--stage-lost)}
.bcol__body{min-height:96px;display:flex;flex-direction:column;gap:.5rem;padding:.55rem;overflow-y:auto;scrollbar-width:thin;scrollbar-color:transparent transparent}
.bcol__body:hover{scrollbar-color:rgba(24,28,50,.22) transparent}
.bcol__body::-webkit-scrollbar{width:6px}
.bcol__body::-webkit-scrollbar-track{background:transparent}
.bcol__body::-webkit-scrollbar-thumb{background:transparent;border-radius:3px}
.bcol__body:hover::-webkit-scrollbar-thumb{background:rgba(24,28,50,.22)}
.bcol__empty{margin:auto;font-size:.85rem;color:var(--kt-text-muted);margin:.2rem .15rem;text-align:center}
.bcol__drop{display:none;font-size:.75rem;font-weight:700;color:var(--highlight);border:1px dashed var(--highlight);border-radius:.475rem;padding:.7rem;text-align:center;background:#fff}
.bcol.is-over .bcol__drop{display:block}

.bcard{position:relative;display:flex;flex-direction:column;gap:.3rem;background:#fff;border:1px solid var(--bs-gray-200);border-radius:.475rem;padding:.55rem .6rem;text-decoration:none;box-shadow:var(--kt-card-box-shadow);cursor:grab}
.bcard,.bcard:hover,.bcard:focus{text-decoration:none}
.bcard:hover{border-color:var(--highlight)}
.bcard.is-dragging{opacity:.4}
.bcard.is-drop-above{box-shadow:0 -3px 0 -1px var(--highlight)}
.bcard.is-drop-below{box-shadow:0 3px 0 -1px var(--highlight)}
.bcard__top{display:flex;align-items:center;gap:.4rem;min-width:0}
.bcard__av{flex:0 0 auto;width:24px;height:24px;border-radius:50%;background:var(--bs-gray-200);color:var(--bs-gray-700);font-size:.75rem;font-weight:800;display:flex;align-items:center;justify-content:center}
.bcard.is-unread .bcard__av{background:color-mix(in oklch,var(--bs-primary) 12%,#fff);color:var(--bs-primary)}
.bcard__name{font-size:.95rem;font-weight:700;color:var(--bs-gray-900);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bcard__unread{margin-left:auto;font-size:.75rem;font-weight:800;color:#fff;background:var(--highlight);border-radius:999px;padding:.02rem .35rem}
.bcard__route{font-size:.85rem;color:var(--bs-gray-700);line-height:1.35}
.bcard__facts{display:flex;flex-wrap:wrap;gap:.15rem .6rem;font-size:.75rem;color:var(--kt-text-muted)}
.bcard__facts i{margin-right:.25rem}
.bcard__foot{display:flex;align-items:center;gap:.35rem;margin-top:.1rem;min-height:22px}
.bcard__age{margin-left:auto;font-size:.75rem;color:var(--kt-text-muted)}
.qrow__tag--new{background:var(--bs-gray-200);color:var(--bs-gray-700)}

.btools__view .qsub__btn{gap:.35rem}
.btools__view .qsub__btn i{font-size:.85rem}
.blist{display:flex;flex-direction:column;background:#fff;border:1px solid var(--bs-gray-200);border-radius:.7rem;overflow:auto}
.blist__head,.blist__row{min-width:1072px;display:grid;grid-template-columns:62px 90px minmax(110px,1fr) 124px minmax(130px,1fr) minmax(125px,1.1fr) minmax(125px,1.1fr) 96px 124px;gap:.5rem;align-items:center;padding:.8rem .95rem}
.blist__head{font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--bs-gray-700);background:var(--bs-gray-200);border-bottom:1px solid var(--bs-gray-200)}
.blist__row{position:relative;font-size:.95rem;color:var(--bs-gray-800);text-decoration:none;border-bottom:1px solid var(--bs-gray-200)}
/* the name owns the row's click target; contact cells sit above it so a phone
   or copy tap is never swallowed by the overlay */
.blist__namelink{color:inherit;text-decoration:none}
.blist__namelink::after{content:"";position:absolute;inset:0}
.blist__namelink:hover{text-decoration:underline}
.blist__phone,.blist__mail{position:relative;z-index:1;min-width:0;display:flex;align-items:center;gap:.35rem;font-size:.85rem}
.blist__phone a{color:var(--bs-gray-800);text-decoration:none;white-space:nowrap;font-variant-numeric:tabular-nums}
.blist__phone a:hover{color:var(--highlight);text-decoration:underline}
.blist__phone em{font-style:normal;color:var(--kt-text-muted);cursor:default}
.blist__mailtxt{color:var(--kt-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78rem}
.blist__copy{flex:0 0 auto;border:0;background:none;padding:.1rem .2rem;line-height:1;color:var(--kt-text-muted);border-radius:.35rem;cursor:pointer}
.blist__copy:hover{color:var(--highlight);background:var(--bs-gray-100)}
.blist__copy.is-done{color:var(--bs-success)}
.blist__mail--none{color:var(--bs-gray-400)}
.blist__row:last-child{border-bottom:0}
.blist__row:hover{background:var(--bs-gray-100)}
.blist__id{font-size:.85rem;font-weight:600;color:var(--kt-text-muted);font-variant-numeric:tabular-nums}
.blist__rec{color:var(--kt-text-muted);font-size:.85rem}
.blist__date{white-space:nowrap;color:var(--bs-gray-800)}
.blist__name{display:flex;align-items:center;gap:.4rem;font-weight:700;color:var(--bs-gray-900);min-width:0}
.blist__row.is-unread .blist__name{color:var(--bs-gray-900)}
.blist__unread{font-style:normal;font-size:.75rem;font-weight:800;color:#fff;background:var(--highlight);border-radius:999px;padding:.02rem .35rem}
.blist__place{display:flex;align-items:center;gap:.4rem;min-width:0}
.blist__place b{font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.blist__arrow{color:var(--bs-gray-400);margin:0 .1rem}
.bflag{border-radius:2px;box-shadow:0 0 0 1px rgba(24,28,50,.08);flex:0 0 auto}
.blist__cardfoot{display:contents}
.blist__stagewrap{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;min-width:0}
/* one bundled signal for a changed dossier — pill-shaped like the stage but in
   the update hue, and never a count, so it can't be mistaken for unread mail */
.updpill{display:inline-flex;align-items:center;gap:.25rem;white-space:nowrap;background:var(--upd-tint);border:1px solid var(--upd-line);color:var(--upd-ink);font-size:.72rem;font-weight:800;padding:.1rem .4rem;border-radius:999px;cursor:default}
.updpill i.bi{font-size:.7rem;color:var(--upd)}
.bcard .updpill{font-size:.7rem}
.blist__stage{justify-self:start;white-space:nowrap;display:inline-flex;align-items:center;gap:.35rem;font-size:.85rem;font-weight:700;padding:.2rem .5rem;border-radius:999px;background:var(--bs-gray-200);color:var(--bs-gray-700)}
.blist__stage--new{background:color-mix(in oklch,var(--stage-new) 12%,#fff);color:color-mix(in oklch,var(--stage-new) 72%,#141414)}
.blist__stage--contacted{background:color-mix(in oklch,var(--stage-contacted) 12%,#fff);color:color-mix(in oklch,var(--stage-contacted) 80%,#141414)}
.blist__stage--quotesent{background:color-mix(in oklch,var(--stage-quotesent) 12%,#fff);color:color-mix(in oklch,var(--stage-quotesent) 80%,#141414)}
.blist__stage--negotiating{background:color-mix(in oklch,var(--stage-negotiating) 12%,#fff);color:color-mix(in oklch,var(--stage-negotiating) 72%,#141414)}
.blist__stage--won{background:color-mix(in oklch,var(--stage-won) 12%,#fff);color:color-mix(in oklch,var(--stage-won) 78%,#141414)}
.blist__stage--lost{background:color-mix(in oklch,var(--stage-lost) 12%,#fff);color:color-mix(in oklch,var(--stage-lost) 72%,#141414)}
.blist__stage .bcol__dot{width:7px;height:7px;background:currentColor}
.blist__empty{padding:2rem;text-align:center;color:var(--kt-text-muted);background:#fff;border:1px solid var(--bs-gray-200);border-radius:.7rem}
/* below the table's natural width the rows recompose as cards; the field
   labels come from each cell's data-k, so they follow the page language */
@media (max-width:999.98px){
  .blist{background:none;border:0;border-radius:0;overflow:visible;gap:.6rem}
  .blist__head{display:none}
  .blist__row{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"name unread" "id rec" "phone phone" "mail mail" "from from" "to to" "foot foot";gap:.3rem .45rem;align-items:center;padding:.85rem .95rem;background:#fff;border:1px solid var(--bs-gray-200);border-bottom:1px solid var(--bs-gray-200);border-radius:.7rem}
  .blist__row:last-child{border-bottom:1px solid var(--bs-gray-200)}
  .blist__row.is-unread{border-color:color-mix(in oklch,var(--highlight) 22%,#fff)}
  .blist__name{grid-area:name;font-size:1rem}
  .blist__phone{grid-area:phone;margin-top:.2rem}
  .blist__mail{grid-area:mail}
  .blist__phone::before,.blist__mail::before{color:var(--kt-text-muted);font-size:.85rem}
  .blist__phone::before{content:attr(data-k) "\00a0"}
  .blist__mail::before{content:attr(data-k) "\00a0"}
  .blist__mailtxt{font-size:.75rem}
  .blist__unread{grid-area:unread;justify-self:end}
  .blist__id{grid-area:id}
  .blist__id::before{content:attr(data-k)}
  .blist__rec{grid-area:rec;justify-self:start}
  .blist__rec::before{content:"\00b7\00a0" attr(data-k) "\00a0"}
  .blist__place{min-height:1.5rem}
  .blist__place--from{grid-area:from}
  .blist__place--to{grid-area:to}
  .blist__place b{white-space:normal}
  .blist__cardfoot{grid-area:foot;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4rem .75rem;margin-top:.55rem;padding-top:.6rem;border-top:1px solid var(--bs-gray-200)}
  .blist__date{font-size:.95rem;white-space:nowrap}
  .blist__date::before{content:attr(data-k) "\00a0"}

  .blist__stagewrap{flex:0 0 auto;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.35rem}
  .blist__date{display:flex;align-items:center;flex:0 1 auto;min-width:0}
}
@media (max-width:420px){
  .blist__row{grid-template-areas:"name unread" "id id" "rec rec" "phone phone" "mail mail" "from from" "to to" "foot foot"}
  .blist__rec::before{content:attr(data-k) "\00a0"}
  /* the date and the two pills can't share a line at this width without the
     date breaking mid-value — give each its own row */
  .blist__date,.blist__stagewrap{flex:1 1 100%}
}
.btoast{position:fixed;left:50%;bottom:1.25rem;transform:translateX(-50%);display:flex;align-items:center;gap:.55rem;background:var(--bs-gray-900,#181c32);color:#fff;font-size:.85rem;border-radius:.475rem;padding:.55rem .8rem;box-shadow:0 8px 24px rgba(24,28,50,.25);z-index:60}
.btoast button{background:none;border:0;color:color-mix(in oklch,var(--bs-primary) 40%,#fff);font-weight:800;font-size:.85rem;padding:0 .1rem}

@media (max-width:859.98px){
  .bcol{flex:0 0 240px;max-height:none;height:auto}
  .board{overflow-x:auto}
  /* the toolbar must wrap here or the search shrinks to nothing and the whole
     document pans sideways — the filters flow onto following rows instead */
  .btools{flex-wrap:wrap}
  .btools .qsearch{flex:1 1 100%;min-width:12rem}
}

/* list view footer: page size + pager */
.blist__foot{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:.85rem .25rem 0;margin-top:.25rem;border-top:1px solid var(--bs-gray-200)}
.blist__per{display:flex;align-items:center;gap:.45rem;font-size:.85rem;color:var(--kt-text-muted)}
.blist__per .qsel{font-size:.85rem}
.blist__range{font-size:.85rem;color:var(--kt-text-muted)}
.blist__pager{margin-left:auto;display:flex;align-items:center;gap:.35rem}
.blist__pager button{width:32px;height:32px;border:1px solid var(--bs-gray-300);border-radius:.475rem;background:#fff;color:var(--bs-gray-700);display:grid;place-items:center;font-size:.85rem}
.blist__pager button:hover:not(:disabled){border-color:var(--bs-primary);color:var(--bs-primary)}
.blist__pager button:disabled{opacity:.45;cursor:default}
.blist__pageno{font-size:.85rem;color:var(--kt-text-muted);padding:0 .2rem}

/* unverified-mover banner — the portal's own colours (unverified-banner.blade.php);
   which variant shows is decided by assets/demo-state.css */
.vbanner{display:flex;align-items:center;gap:.75rem;padding:1rem;border-radius:8px;color:#2d3e50}
.vbanner--locked{background:#fff9e6;border:1px solid rgba(240,230,200,.9)}
.vbanner--progress{background:#e8f4fd;border:1px solid rgba(200,220,240,.9)}
.vbanner__ic{flex:0 0 auto;display:inline-flex}
.vbanner__txt{flex:1 1 auto;min-width:0;margin:0;font-size:1rem;line-height:1.5}
.vbanner__txt b{font-weight:700}
.vbanner__btn{flex:0 0 auto;display:inline-flex;align-items:center;padding:.45rem 1rem;border-radius:6px;background:#335991;color:#fff;font-size:.875rem;font-weight:600;white-space:nowrap}
.vbanner__btn:hover{background:#2a4a79;color:#fff;text-decoration:none}
@media (max-width:575.98px){.vbanner{flex-wrap:wrap}.vbanner__btn{margin-left:auto}}
/* the portal's demo-state switcher sits bottom-right; lift the board's own
   "Demo states" button and panel above it */
html[data-demo-state] .tweaks-toggle,html[data-demo-state] .tweaks{bottom:4.5rem}

/* leads-per-page sits with the filters — you set it before reading the list */
.btools__per{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;color:var(--kt-text-muted);white-space:nowrap}
