/* Leads module (WP-D): lists, lead record, worklist, routing, sequences, public forms. */
.ld-tbl td.ck, .ld-tbl th.ck { width: 28px; }
.ld-bulkbar select, .ld-bulkbar input { min-width: 140px; }
.ld-rate { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 3px; background: #e8f1fb; color: #1f5f9e; }
.ld-rate.hot { background: #fde7e1; color: #b8360f; } .ld-rate.warm { background: #fff2d6; color: #95600a; } .ld-rate.cold { background: #e8f1fb; color: #1f5f9e; }
.ld-summary { margin: 0; font-size: 13.5px; line-height: 1.6; color: #1e3550; }
.ld-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.ld-action { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border: 1px solid #dde5ed; border-left: 4px solid var(--brand-primary, #1a7fe0); border-radius: 3px; background: #f8fbfe; }
.ld-action > i { font-size: 16px; color: var(--brand-primary, #1a7fe0); margin-top: 1px; }
.ld-action b { display: block; font-size: 12.5px; } .ld-action span { font-size: 11.5px; color: var(--muted); }
.ld-action.bad { border-left-color: #d6334b; } .ld-action.bad > i { color: #d6334b; }
.ld-action.warn { border-left-color: #e08a00; } .ld-action.warn > i { color: #e08a00; }
.ld-action.ok { border-left-color: #12a079; } .ld-action.ok > i { color: #12a079; }
.ld-next { font-size: 12px; font-weight: 600; } .ld-next.bad { color: #b4233a; } .ld-next.warn { color: #95600a; } .ld-next.ok { color: #0b7a55; }
.ld-dims { display: grid; gap: 7px; }
.ld-dims .dim { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: 12.5px; }
.ld-dims .bar { height: 10px; background: #edf2f7; border-radius: 6px; overflow: hidden; }
.ld-dims .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2083ee, #0962d3); }
.ld-dims .bar i.firmographic { background: linear-gradient(90deg, #7553d6, #4a2bb0); } .ld-dims .bar i.demographic { background: linear-gradient(90deg, #29b6db, #0c8ec6); }
.ld-dims .bar i.technographic { background: linear-gradient(90deg, #97a6b8, #71849a); } .ld-dims .bar i.behavioural { background: linear-gradient(90deg, #13b985, #04955d); }
.ld-dims .bar i.engagement { background: linear-gradient(90deg, #f5a524, #e08a00); }
.ld-dims b { text-align: right; }
.ld-lines td { font-size: 12px; } .ld-lines .ok { color: #12a079; } .ld-lines tr.mut td { color: #8a9bb0; }
.ld-list { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.7; }
.ld-roles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: #8a9bb0; }
.ld-roles li.ok { color: #0b7a55; } .ld-roles li i { margin-right: 4px; }
.ld-role { display: inline-block; margin: 0 4px 3px 0; padding: 1px 6px; font-size: 11px; border-radius: 3px; background: #f0f3f6; color: #8a9bb0; }
.ld-role.ok { background: #dff5ec; color: #0b7a55; font-weight: 700; }
.ld-stages { display: flex; gap: 0; }
.ld-stages span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; padding: 6px 2px; background: #edf2f7; color: #6d7f93; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); }
.ld-stages span:first-child { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
.ld-stages span.done { background: #c9e9dc; color: #0b7a55; } .ld-stages span.on { background: #0a6fd2; color: #fff; }
.ld-feed { list-style: none; margin: 0; padding: 4px 12px; }
.ld-feed li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e6edf3; }
.ld-feed li:last-child { border-bottom: 0; }
.ld-feed .ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--infoBg); color: var(--infoFg); font-size: 13px; }
.ld-feed li.green .ic { background: var(--okBg); color: var(--okFg); } .ld-feed li.amber .ic { background: var(--warnBg); color: var(--warnFg); } .ld-feed li.red .ic { background: var(--badBg); color: var(--badFg); }
.ld-feed .bd { min-width: 0; flex: 1; font-size: 12.5px; } .ld-feed .bd b { display: block; }
.ld-feed .tx { color: #3c5068; margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.ld-feed .sub { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.ld-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.ld-slots label { cursor: pointer; } .ld-slots input { position: absolute; opacity: 0; }
.ld-slots span { display: block; text-align: center; font-size: 11px; padding: 6px 4px; border: 1px solid #c7d2dd; border-radius: 3px; color: #4b6079; background: #fff; }
.ld-slots span b { display: block; font-size: 13px; color: #123d72; }
.ld-slots input:checked + span { background: #0a6fd2; border-color: #0a6fd2; color: #fff; } .ld-slots input:checked + span b { color: #fff; }
.ld-slots input:focus-visible + span { outline: 2px solid #0a6fd2; outline-offset: 1px; }
.ld-enrol { padding: 8px 0; border-bottom: 1px solid #e6edf3; font-size: 12.5px; } .ld-enrol .sub { display: block; color: var(--muted); font-size: 11.5px; }
.ld-enrol .bo-actions { display: flex; gap: 6px; margin-top: 6px; }
.ld-brief { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ld-brief h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #2f5f88; }
.ld-brief ul { margin: 0; padding-left: 16px; font-size: 12.5px; line-height: 1.6; }
.ld-quals select, .ld-quals input { width: 100%; min-width: 120px; }
.ld-details > summary { list-style: none; display: inline-flex; } .ld-details > summary::-webkit-details-marker { display: none; }
.ld-details.right { position: relative; }
.ld-popform { position: absolute; right: 0; top: 34px; z-index: 20; width: min(560px, 86vw); background: #fff; border: 1px solid #c7d2dd; border-radius: 4px; padding: 12px; box-shadow: 0 10px 28px rgba(7, 29, 66, .18); text-align: left; }
.ld-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ld-addr { font-size: 16px; margin: 0 0 8px; } .ld-addr i { color: var(--brand-primary, #1a7fe0); }
.ld-code { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }
.ld-bad td { background: #fff6f6; } td.err { color: #b4233a; font-weight: 600; }
.ld-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* sequences */
.sq-steps { display: grid; gap: 10px; }
.sq-step { border: 1px solid #dde5ed; border-left: 4px solid var(--brand-primary, #1a7fe0); border-radius: 3px; padding: 10px; background: #fbfdff; display: grid; gap: 8px; }
.sq-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sq-n { width: 24px; height: 24px; border-radius: 50%; background: #0a6fd2; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.sq-num { width: 64px; } .sq-rm { margin-left: auto; }
.sq-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.sq-flow li { display: flex; gap: 10px; padding: 9px 0; position: relative; }
.sq-flow li + li::before { content: ''; position: absolute; left: 14px; top: -6px; height: 14px; border-left: 2px dashed #c7d2dd; }
.sq-flow .ic { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e8f1fb; color: var(--brand-primary, #1a7fe0); }
.sq-flow li.call .ic { background: #dff5ec; color: #0b7a55; } .sq-flow li.sms .ic { background: #efeafd; color: #5b3cc4; } .sq-flow li.task .ic { background: #fff2d6; color: #95600a; }
.sq-flow b { display: block; font-size: 12.5px; } .sq-flow .sub { display: block; font-size: 11.5px; color: var(--muted); }
/* public form */
body.ld-pub { background: linear-gradient(160deg, var(--brand-navy-2, #071d42), #0b3a78 60%, var(--brand-primary, #1a7fe0)); min-height: 100vh; }
body.ld-pub.embed { background: transparent; }
.ld-pubwrap { max-width: 640px; margin: 0 auto; padding: 28px 16px; }
.ld-pubhead { text-align: center; margin-bottom: 14px; } .ld-pubhead img { max-height: 44px; max-width: 220px; }
.ld-pubcard { background: #fff; border-radius: 8px; padding: 22px 22px 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
body.ld-pub.embed .ld-pubcard { box-shadow: none; border: 1px solid #dde5ed; }
.ld-pubcard h1 { font-size: 22px; margin: 0 0 6px; color: var(--brand-navy-2, #071d42); } .ld-pubcard .intro { color: #4b6079; margin: 0 0 14px; }
.ld-welcome { background: #e8f6f0; color: #0b7a55; padding: 8px 10px; border-radius: 4px; font-size: 13px; }
.ld-consent { border: 1px solid #dde5ed; border-radius: 4px; padding: 10px 12px; display: grid; gap: 6px; } .ld-consent legend { font-weight: 700; font-size: 12.5px; padding: 0 4px; }
.ld-consent p { margin: 0; font-size: 12px; color: #4b6079; }
.ld-captcha { display: flex; gap: 8px; align-items: center; } .ld-captcha img { border-radius: 4px; } .ld-captcha input { max-width: 120px; }
.ld-privacy { font-size: 11.5px; color: #6d7f93; margin: 10px 0 0; }
.ld-thanks { text-align: center; padding: 20px 6px; } .ld-thanks i { font-size: 44px; color: #12a079; } .ld-thanks h1 { margin-top: 8px; }
@media (max-width: 720px) {
    .ld-dims .dim { grid-template-columns: 90px 1fr 34px; }
    .ld-popform { position: fixed; left: 8px; right: 8px; top: 70px; width: auto; max-height: 80vh; overflow: auto; }
    .ld-bulkbar { width: 100%; }
}
.ld-formfoot{padding:12px 16px;border-top:1px solid var(--line, #e5e7eb);display:flex;justify-content:flex-end}
#ld-bulk { display: block; min-width: 0; max-width: 100%; }
