/* Somente a nota expandida de leads WhatsApp; nenhuma regra global de tema. */
.wld-modal .wld-note .kb-modal-etiquetas-pop{display:block!important;padding:0;background:transparent;border:0;margin:0}
.wld-modal *{box-sizing:border-box}.wld-modal .wld-note.note.n-em-modal{position:static!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#12213b!important;transform:none!important;overflow:visible!important}
.wld-modal .wld-note> :not(.wld-shell){display:none!important}.wld-modal .wld-note .wld-shell{display:block!important;background:#f3faf7;color:#12213b}
.wld-shell h1,.wld-shell h2,.wld-shell p{margin:0}.wld-shell svg{width:22px;height:22px;flex-shrink:0}.wld-shell button,.wld-shell input,.wld-shell select,.wld-shell textarea{font:inherit}.wld-shell button,.wld-shell select{cursor:pointer}.wld-shell button:focus-visible,.wld-shell a:focus-visible,.wld-shell select:focus-visible,.wld-shell input:focus-visible,.wld-shell textarea:focus-visible{outline:2px solid #00a971;outline-offset:3px}.wld-shell [hidden]{display:none!important}
.wld-main{padding:10px;min-width:0}.wld-shell .wld-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;padding:9px 16px;border-radius:9px;border:1px solid #d3e1e9;background:#fff;color:#224b53;white-space:nowrap;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer}.wld-shell .wld-button:hover{background:#e9f7f0;border-color:#a5d9c3}.wld-shell .wld-button.soft{color:#006f49;background:#edf9f4;border-color:#dcf0e8}.wld-shell .wld-button.link{background:transparent;border-color:transparent;padding:2px 5px;color:#11795d;min-height:24px;font-weight:400}.wld-shell .wld-button.icon-only{width:42px;min-width:36px;padding:8px}.wld-shell .icon-only>span{display:none}
.wld-grid{display:grid;grid-template-columns:minmax(0,1fr) 356px;gap:12px;align-items:stretch}.wld-left{min-width:0}.wld-identity,.wld-work,.wld-right{background:#fff;border:1px solid #e4eee9;border-radius:14px;box-shadow:0 5px 18px #0a755306}.wld-identity{padding:20px 22px;min-height:213px}.wld-identity-row{display:flex;gap:23px;align-items:flex-start}.wld-avatar{width:46px;height:46px;position:relative;display:inline-grid;place-items:center;flex-shrink:0;background:linear-gradient(140deg,#169d85,#04bb5a);border-radius:50%;color:#fff;font-weight:750;font-size:17px;box-shadow:0 2px 6px #11764e13}.wld-avatar.large{width:86px;height:86px;font-size:27px}.wld-avatar>img{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover}.wld-avatar>i{position:absolute;bottom:-3px;right:-2px;width:30px;height:30px;border:3px solid white;border-radius:50%;background:#00c065;display:grid;place-items:center;z-index:1}.wld-avatar>i svg{width:23px;height:23px}.wld-contact{min-width:0;flex:1;padding-top:3px}.wld-contact h1{font-size:23px;font-weight:750;letter-spacing:-.6px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.wld-badge{font-size:13px;font-weight:600;background:#d9f8e8;color:#067b47;border-radius:20px;padding:7px 13px;letter-spacing:0}.wld-contact p{display:flex;align-items:center;gap:8px;margin:10px 0 5px;color:#36516e;font-size:14px;flex-wrap:wrap}.wld-contact p>.wld-button{height:22px;min-height:22px;width:22px;padding:0;border:0}.wld-contact p>.wld-button svg{width:17px;height:17px}.wld-contact p>i{height:17px;border-left:1px solid #d6e1e8;margin:0 7px}.wld-wa-label{display:inline-flex;gap:7px;align-items:center;font-size:13px}.wld-wa-label svg{color:#00ad60;width:19px;height:19px}.wld-contact>small{font-size:14px;color:#657b99;line-height:1.5}.wld-contact-actions{display:flex;gap:11px;padding-top:6px}.wld-contact-actions .wld-button{font-size:13px;padding:10px 15px}.wld-contact-actions .wld-button.icon-only{padding:10px;width:42px}
.wld-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:24px}.wld-facts>div{display:flex;gap:15px;align-items:center;min-height:56px;border:1px solid #e0e9ee;border-radius:10px;background:#fafcfd;padding:9px 10px}.wld-fact-icon{width:36px;height:36px;border-radius:50%;background:#dff6ec;display:grid;place-items:center;color:#007651;flex-shrink:0}.wld-facts>div:last-child .wld-fact-icon{background:#e4edfa;color:#405c87}.wld-facts small{display:block;color:#7183a1;font-size:12px;white-space:nowrap;margin-bottom:4px}.wld-facts b{font-size:13px;font-weight:500;color:#294763}
.wld-work{margin-top:12px;padding:0 16px 17px}.wld-tabs{display:flex;justify-content:space-between;border-bottom:1px solid #e7eeec;margin:0 -16px 12px;padding:8px 16px 0;height:52px;gap:5px}.wld-shell .wld-tabs .wld-button{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:9px 9px 0 0;color:#4e6591;font-size:13px;font-weight:500;padding:9px 12px}.wld-shell .wld-tabs .selected{background:linear-gradient(#f0faf6,#fbfefd);border-bottom-color:#079b66;color:#005e40;font-weight:650}.wld-work-content{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(0,1fr);gap:16px;align-items:start}.wld-conversation{border:1px solid #dbe5ed;border-radius:12px;overflow:hidden;background:#f8faf9;min-width:0}.wld-chat-head{height:66px;display:flex;align-items:center;gap:16px;padding:10px 16px;background:#f7f9fa;border-bottom:1px solid #dce4e5}.wld-chat-head>span:nth-child(2){flex:1;min-width:0}.wld-chat-head b{font-size:15px}.wld-chat-head small{display:flex;align-items:center;gap:6px;color:#628276;margin-top:5px;font-size:12px}.wld-chat-head small i{width:8px;height:8px;border-radius:50%;background:#13bf78}.wld-shell .wld-chat-head .wld-button{background:none;border:0;color:#37536b;min-width:24px;width:24px;padding:0}
.wld-messages{height:449px;padding:22px 18px;display:flex;flex-direction:column;align-items:flex-start;gap:18px;overflow:auto;background-color:#f0eee5;background-image:radial-gradient(circle at 12px 14px,transparent 6px,#c9cfbf2b 7px,transparent 8px),radial-gradient(ellipse at 40px 43px,transparent 9px,#c9cfbf2b 10px,transparent 11px);background-size:58px 59px}.wld-day{align-self:center;font-size:12px;color:#697e8e;background:#ffffffe3;padding:6px 17px;border-radius:20px;box-shadow:0 2px 7px #1c3b2720;margin:0 0 12px}.wld-bubble{position:relative;max-width:89%;padding:10px 12px 8px;border-radius:0 12px 12px 12px;background:white;box-shadow:0 2px 8px #283b2010;color:#142e32;flex-shrink:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.wld-bubble.outgoing{align-self:flex-end;background:#e0ffdc;border:1px solid #cceec5;border-radius:12px 12px 0 12px}.wld-bubble>span{white-space:pre-wrap}.wld-bubble time{font-size:11px;color:#66829a;float:right;margin:7px 0 0 14px;white-space:nowrap}.wld-bubble time i{font-style:normal;color:#6c9290;letter-spacing:-4px;padding-right:3px;margin-left:4px}.wld-bubble time i.read{color:#16a6e7}.wld-empty{margin:auto!important;text-align:center;color:#697c77;font-size:13px;line-height:1.6}.wld-composer{display:flex;align-items:center;gap:8px;padding:9px 10px;background:#f5f7f8;min-height:65px}.wld-composer textarea{flex:1;resize:none;min-width:0;max-height:100px;padding:11px 0;color:#213f4c;background:white;border:0;outline:none;font-size:14px;line-height:1.5;border-radius:20px}.wld-shell .wld-composer .wld-button{border:0;background:white;padding:7px;min-width:25px;width:27px;color:#657e92}.wld-send{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:linear-gradient(#00a176,#007947);color:#fff;box-shadow:0 0 0 5px #fff;flex-shrink:0}.wld-send:disabled{opacity:.5;cursor:wait}.wld-chat-error{font-size:11px;color:#657d73;line-height:1.5;padding:0 12px 8px!important}.wld-chat-error:empty{display:none}
.wld-details{display:grid;gap:11px;min-width:0}.wld-details>section{padding:15px 18px;border:1px solid #e1eaf0;border-radius:12px;background:white;min-width:0}.wld-details h2,.wld-right h2{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:650;margin:0 0 11px}.wld-details h2 svg{width:18px;height:18px}.wld-details h2 .wld-button{margin-left:auto;font-size:12px;gap:5px}.wld-details h2 .wld-button svg{width:16px;height:16px}.wld-details select{width:100%;height:36px;border:1px solid #d1dfea;border-radius:8px;color:#213d60;font-weight:600;background:#fff;padding:0 12px}.wld-details dl{display:grid;grid-template-columns:auto minmax(0,1.3fr);gap:9px 13px;margin:0;font-size:12px}.wld-details dt{color:#6a7f9d}.wld-details dd{margin:0;overflow-wrap:anywhere;color:#2d4362}.wld-notes-input{width:100%;min-height:160px;padding:12px;border:1px solid #d5e3e7;border-radius:9px;color:#214336;background:#fbfefc;resize:vertical;font-size:13px}
.wld-right{padding:23px 17px 20px;display:flex;flex-direction:column;min-width:0}.wld-side-tabs{display:flex;border:1px solid #e7efeb;border-radius:10px;background:#f9fbfc;margin-bottom:22px}.wld-shell .wld-side-tabs .wld-button{flex:1;border:0;border-bottom:2px solid transparent;border-radius:10px 10px 0 0;background:transparent;color:#4b617c;font-size:13px;padding:11px 8px;gap:8px;min-width:0}.wld-shell .wld-side-tabs .selected{background:#e7f7f0;border-bottom-color:#2bac83;color:#005e43}.wld-right h2>span{margin-left:auto;font-size:20px;font-weight:400;color:#54788b}.wld-modal .wld-note .n-coment-wrap{display:flex!important;flex-direction:column;border:0;padding:0;margin:0;background:none;color:#27405e}.wld-modal .wld-note .n-coment-head{display:none}.wld-modal .wld-note .n-coment-novo{order:-1;display:flex!important;position:relative;margin:0 0 20px;padding:0;border:1px solid #cfdeeb;border-radius:10px;background:#fff;min-height:90px}.wld-modal .wld-note .n-coment-inp{background:transparent!important;border:0!important;padding:14px!important;color:#24415d!important;font:13px/1.5 Inter,Arial,sans-serif!important;min-height:87px;resize:vertical;width:100%;outline:none}.wld-modal .wld-note .n-coment-enviar{position:absolute;right:6px;bottom:6px;border-radius:8px;background:#07855d;color:#fff;width:36px;height:36px;font-size:20px;border:0}.wld-modal .wld-note .n-coment-lista{max-height:none;display:flex;flex-direction:column;gap:0;overflow:visible}.wld-modal .wld-note .n-coment-item{border:0;border-top:1px solid #e0e8ed;border-radius:0;margin:0;padding:18px 4px;background:transparent}.wld-modal .wld-note .n-coment-cab{display:flex;flex-wrap:wrap;gap:8px;color:#1a3657;font-size:13px}.wld-modal .wld-note .n-coment-hora{color:#788dab;font-size:12px}.wld-modal .wld-note .n-coment-txt{color:#506987;line-height:1.65;font-size:13px;margin-top:11px}.wld-modal .wld-note .n-coment-vazio{font-size:12px;color:#6a8176;text-align:center;padding:15px}.wld-modal .wld-note .n-coment-del{margin-left:auto;border:0;background:none;color:#6a7f8f}.wld-modal .kb-atividade-item,.wld-created{display:flex;gap:16px;border-bottom:1px solid #e1e9ed;padding:20px 0;color:#456180;font-size:13px}.wld-modal .kb-atividade-avatar{background:#e3edfc;color:#355c8b;width:39px;height:39px;border-radius:50%;display:grid;place-items:center;font-weight:650}.wld-modal .kb-atividade-texto{line-height:1.6}.wld-modal .kb-atividade-texto time{color:#7b91ab;font-size:12px}.wld-created small{display:block;color:#7890aa;margin-top:8px}.wld-created p{margin-top:10px}.wld-created>svg{width:37px;height:37px;background:#e7effa;padding:7px;border-radius:50%}.wld-tip{display:flex;align-items:flex-start;gap:12px;border:1px solid #d9efe5;border-radius:11px;padding:18px 14px;background:linear-gradient(110deg,#f0fbf5,#e8f7f0);color:#04644c;margin-top:auto}.wld-tip>svg{margin-top:2px}.wld-tip b{font-size:13px}.wld-tip p{font-size:12px;line-height:1.7;color:#688077;margin-top:9px}.wld-shell .wld-tip .wld-button{border:0;background:none;min-width:16px;width:16px;min-height:20px;padding:0;color:#668475}.wld-tip .wld-button svg{width:16px;height:16px}.wld-status{font-size:12px;color:#1b7957;min-height:18px;padding-top:10px!important}
.wld-modal .wld-note .n-checklist-wrap{display:block!important;color:#29425d;border:0;background:none;padding:0;margin:0}.wld-modal .wld-note .n-checklist-head{display:none!important}.wld-modal .wld-note .n-cl-item{background:none;border:0;display:flex;gap:10px;align-items:center;padding:5px 0;margin:0}.wld-modal .wld-note .n-cl-text{color:#29425d!important;font-size:12px;background:none;border:0}.wld-modal .wld-note .n-cl-check{width:18px;height:18px;accent-color:#009468}.wld-modal .wld-note .n-checklist-add{color:#087a53;background:#f0fbf5;border:1px dashed #a8dac4;font-size:12px}.wld-modal .wld-note .n-prog{margin:4px 0 8px}.wld-modal .kb-etq-barra{gap:6px;padding:0;display:flex;flex-wrap:wrap}.wld-modal .kb-etq-rot{display:none}.wld-modal .kb-etq-btn{border-radius:9px;font-size:12px;padding:6px 9px;min-height:29px}.wld-modal .kb-etq-vazio{font-size:12px;color:#647c71}.wld-modal .kb-etq-editar{color:#147955;border:1px solid #d7e8df;background:#f5fcf8}.wld-modal .n-dates{display:flex!important;background:#f9fcfa!important;border:0!important;padding:8px!important;color:#244833!important;flex-wrap:wrap}.wld-modal .n-dinput{background:#fff!important;color:#244833!important;border:1px solid #dae8df!important}
/* A moldura é a mesma .kb-modal-detalhe das demais notas: não é uma página. */
.kb-modal.wld-modal{background:#f3faf7;color:#12213b;font:12px Inter,Arial,sans-serif}
.kb-modal-detalhe.wld-modal .kb-modal-cabecalho{flex-shrink:0;background:linear-gradient(110deg,#075e54,#128c7e 58%,#25d366)!important;border-bottom-color:#128c7e!important}
.wld-modal .kb-modal-lista-select{background:#f5fcf8;border-color:#cfe3da;color:#174b37;color-scheme:light}
.kb-modal-detalhe.wld-modal .kb-modal-cabecalho button{color:#fff!important;background:#ffffff18!important;border-color:#ffffff70!important}
.wld-details .wld-origin{display:flex;align-items:center;gap:5px}
.wld-origin svg{color:#25d366;width:15px;height:15px}
.wld-modal .wld-note.note.n-em-modal{overflow:auto!important;flex:1;min-height:0!important}
.wld-grid{grid-template-columns:minmax(0,2.55fr) minmax(265px,1fr);gap:10px}
.wld-identity{padding:16px 12px;min-height:170px}
.wld-identity-row{gap:15px;align-items:center}
.wld-avatar.large{width:67px;height:67px;font-size:23px}
.wld-avatar>i{width:24px;height:24px;border-width:2px}
.wld-avatar>i svg{width:18px;height:18px}
.wld-contact h1{font-size:19px;gap:7px;letter-spacing:-.4px}
.wld-badge{padding:5px 9px;font-size:10px}
.wld-contact p{font-size:11px;gap:4px;margin:8px 0 4px}
.wld-contact>small,.wld-wa-label{font-size:11px}
.wld-contact-actions{gap:7px;padding:0;align-self:flex-start}
.wld-contact-actions .wld-button{padding:7px 10px;font-size:10px;gap:6px;min-height:34px}
.wld-contact-actions .wld-button svg{width:18px;height:18px}
.wld-contact-actions .wld-button.icon-only{width:31px;min-width:31px;padding:6px}
.wld-facts{gap:10px;margin-top:18px}
.wld-facts>div{min-height:45px;padding:7px;gap:7px;border-radius:8px}
.wld-fact-icon{width:28px;height:28px}.wld-fact-icon svg{width:19px;height:19px}
.wld-facts small{font-size:10px;margin-bottom:3px}.wld-facts b{font-size:10px}
.wld-work{padding:0 8px 14px;margin-top:10px}
.wld-tabs{height:43px;padding:6px 8px 0;margin:0 -8px 9px;gap:0}
.wld-shell .wld-tabs .wld-button{padding:7px 8px;gap:7px;font-size:10px;min-height:34px}
.wld-tabs svg{width:17px;height:17px}
.wld-work-content{grid-template-columns:minmax(0,1.57fr) minmax(0,1fr);gap:12px}
.wld-chat-head{height:52px;padding:8px 12px;gap:12px;position:relative}
.wld-chat-head .wld-avatar{width:36px;height:36px;font-size:13px}
.wld-chat-head b{font-size:12px}.wld-chat-head small{font-size:10px;margin-top:3px}
.wld-chat-head input{position:absolute;left:10px;right:65px;min-width:0;width:calc(100% - 80px);background:#fff;border:1px solid #cfdfd6;border-radius:6px;padding:9px;z-index:1;color:#203e31}
.wld-messages{height:350px;padding:17px 14px;gap:17px}
.wld-bubble{font-size:12px;padding:9px 11px;max-width:85%}
.wld-bubble time{font-size:9px;margin:5px 0 0 10px}
.wld-day{font-size:10px;padding:5px 14px;margin-bottom:7px}
.wld-composer{min-height:53px;padding:8px;gap:6px}.wld-composer textarea{font-size:12px;padding:8px 0}
.wld-send{width:32px;height:32px}.wld-send svg{width:20px;height:20px}
.wld-details{gap:10px}.wld-details>section{padding:12px;border-radius:10px}
.wld-details h2,.wld-right h2{font-size:12px;gap:6px;margin-bottom:10px}
.wld-details h2 .wld-button{font-size:10px;padding:0;gap:3px}
.wld-details dl{font-size:10px;gap:8px 9px}
.wld-details select{height:32px;font-size:11px;padding:0 9px}
.wld-right{padding:16px 12px}.wld-side-tabs{margin-bottom:17px}
.wld-shell .wld-side-tabs .wld-button{font-size:11px;padding:9px 7px;gap:8px;min-height:35px}
.wld-side-tabs svg{width:18px;height:18px}
.wld-modal .wld-note .n-coment-inp{font-size:11px!important}
.wld-modal .wld-note .n-coment-cab,.wld-modal .wld-note .n-coment-txt{font-size:11px}
.wld-modal .wld-note .n-cl-text{font-size:10px}
.wld-modal .kb-etq-btn{font-size:10px;padding:5px 7px}
.wld-tip{padding:14px 12px;margin-top:24px}.wld-tip p{font-size:11px}
.wld-status:empty{display:none}
.wld-modal [data-wld-pane="labels"]:not(.wld-labels-selecting) .kb-etq-btn:not(.kb-etq-on){display:none}
.wld-modal .wld-note .n-prog{display:none}
@media(max-width:850px){
 .wld-grid{grid-template-columns:1fr}.wld-right{min-height:250px}
 .wld-contact-actions{margin-left:auto}.wld-tip{margin-top:20px}
}
@media(max-width:600px){
 .wld-main{padding:8px}.wld-identity-row{flex-wrap:wrap}
 .wld-contact-actions{width:100%;margin:0}.wld-facts{grid-template-columns:1fr 1fr}
 .wld-tabs{overflow:auto;justify-content:flex-start}.wld-tabs .wld-button{white-space:nowrap}
 .wld-work-content{grid-template-columns:1fr}.wld-messages{height:330px}
 .wld-details dl{font-size:12px}
}

/* Excluir o lead. Fica ao lado de "Ligar" e "Abrir no WhatsApp", que são
   inofensivos — por isso ele é discreto no estado normal e só fica vermelho
   quando armado, ou seja, quando o próximo toque apaga de verdade.

   `icon-only` esconde o rótulo, e é isso que dá a fileira de ícones do topo.
   No estado armado o botão PRECISA falar: sem esta exceção, o segundo toque
   viria sem nada na tela dizendo o que ele faz. */
.wld-shell .wld-button.danger{color:#a3231b;border-color:#e8cdca}
.wld-shell .wld-button.danger:hover{background:#fdeceb;border-color:#e0a9a4}
.wld-shell .wld-button.icon-only.armado{width:auto;padding:8px 14px;gap:8px;background:#a3231b;border-color:#a3231b;color:#fff}
.wld-shell .wld-button.icon-only.armado:hover{background:#8d1c15;border-color:#8d1c15}
.wld-shell .wld-button.icon-only.armado>span{display:inline;font-weight:650}
