.lead-history{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#253b57}.history-overview{display:flex;justify-content:space-between;gap:22px;background:#f1f6fd;border:1px solid #dce6f3;border-radius:12px;padding:20px}.history-overview h3{font-size:23px;letter-spacing:-.5px;margin:7px 0;overflow-wrap:anywhere}.history-overview p{font-size:12px;margin:7px 0}.history-overview small{font-size:11px;color:#60718b}.history-overview dl{margin:0;min-width:180px}.history-overview dl>div{margin-bottom:9px}.history-overview dt{font-size:10px;color:#64758b}.history-overview dd{font-size:12px;margin:3px 0}.history-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.history-actions button{font-size:11px;padding:9px 12px}.history-note{background:#fffaf0;border:1px solid #efdfb9;border-radius:12px;padding:17px;margin:19px 0}.history-note label{font-size:12px;font-weight:750;display:block;margin-bottom:9px}.history-note textarea{display:block;width:100%;border:1px solid #d8c9a9;border-radius:8px;padding:12px;resize:vertical;font:inherit;font-size:13px;box-sizing:border-box;background:#fff}.history-note>div{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:10px}.history-note small{max-width:350px;font-size:10px;color:#746750;line-height:1.6}.history-note button{white-space:nowrap;font-size:11px}.history-note-status{font-size:12px;margin:9px 0 0;line-height:1.6}.history-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid #e0e7f1}.history-controls label{display:flex;flex:1;min-width:170px;flex-direction:column;gap:7px;font-size:11px;font-weight:650}.history-controls select,.history-controls input{width:100%;min-height:39px;border:1px solid #cbd7e7;border-radius:8px;padding:9px;font:inherit;background:white;color:#253b57;box-sizing:border-box}.history-controls button{min-height:39px;font-size:11px}.history-status,.history-warning,.history-footnote{font-size:11px;line-height:1.7;color:#64758b}.history-warning{color:#a15b12}.history-events{padding:0 0 0 12px}.history-event{position:relative;padding:0 0 25px 23px;border-left:2px solid #dde6f2;overflow-wrap:anywhere}.history-dot{position:absolute;left:-6px;top:4px;width:10px;height:10px;background:#3775d8;border:2px solid #fff;border-radius:50%}.history-event.message .history-dot{background:#17856b}.history-event.note .history-dot{background:#c68e2c}.history-event-header{display:flex;justify-content:space-between;gap:13px;align-items:baseline}.history-event-header strong{font-size:13px}.history-event-header time{font-size:10px;white-space:nowrap;color:#64758b}.history-event>small{display:block;font-size:10px;color:#6d7e93;margin-top:6px}.history-event>p{font-size:12px;line-height:1.7;white-space:pre-wrap;margin:9px 0;background:#f7f9fc;border:1px solid #e7edf5;border-radius:8px;padding:11px}.history-event.note>p{background:#fffbf1;border-color:#eee1bf}.history-event.message>p{background:#f0f9f5;border-color:#d6eae1}.history-event dl{display:grid;gap:6px;margin:8px 0 0;font-size:11px}.history-event dl>div{display:grid;grid-template-columns:125px 1fr;gap:10px}.history-event dt{color:#64758b}.history-event dd{margin:0;white-space:pre-wrap}.history-event dd>span{color:#7b8798}.history-event dd>b{color:#7b8798;margin:0 4px}.history-more{display:block;margin:12px auto}.lead-history button:disabled{opacity:.5;cursor:default}.lead-history button:focus-visible,.lead-history input:focus-visible,.lead-history select:focus-visible,.lead-history textarea:focus-visible{outline:3px solid #2563eb;outline-offset:3px}#modal-body:has(.lead-history){max-height:73vh;overflow:auto;padding:3px 9px 0 3px}.history-back{margin:0 0 12px}.lead-history [hidden]{display:none!important}@media(max-width:600px){.history-overview{flex-direction:column;padding:16px;gap:16px}.history-overview dl{display:flex;flex-wrap:wrap;gap:16px}.history-event-header{align-items:start;flex-direction:column;gap:5px}.history-note>div{align-items:start;flex-direction:column}.history-event dl>div{grid-template-columns:1fr;gap:3px}.history-controls label{min-width:100%}.history-actions button{flex:1}}
.history-current-notes{border:1px solid #dce6f3;border-radius:9px;padding:12px 15px;margin:12px 0;font-size:12px}.history-current-notes summary{cursor:pointer;font-weight:650}.history-current-notes p{white-space:pre-wrap;line-height:1.7;overflow-wrap:anywhere}
