/* Cedaka CRM · shared interface. Business rules remain in the existing pages. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700;750;800&display=swap');
:root{--crm-bg:#0d1016;--crm-nav:#10141d;--crm-surface:#151b26;--crm-card:#1b2230;--crm-line:#293244;--crm-text:#f2f5fb;--crm-muted:#a0aec3;--crm-blue:#356ae6;--crm-yellow:#ffc101;--crm-nav-width:208px;--crm-radius:12px;color-scheme:dark}
body.crm-ui{font-family:Inter,'Segoe UI',sans-serif;background:var(--crm-bg);color:var(--crm-text);padding-left:var(--crm-nav-width);min-width:0;margin:0;transition:padding-left .18s ease}
body.crm-pipeline{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.crm-ui *{scrollbar-width:thin;scrollbar-color:#44474d transparent;box-sizing:border-box}
.crm-ui :is(button,a,input,select,textarea):focus-visible{outline:2px solid #88afff!important;outline-offset:3px}
.crm-ui button{font-family:inherit;cursor:pointer}
.crm-icon-btn>span,.crm-col-collapse>span{display:none}
.crm-ui button:disabled{opacity:.5;cursor:wait}
.crm-ui svg{width:18px;height:18px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.crm-original-header{display:none!important}
.crm-sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:var(--crm-nav-width);background:var(--crm-nav);border-right:1px solid var(--crm-line);display:flex;flex-direction:column;padding:25px 14px 16px;transition:width .18s ease}
.crm-brand{padding:0 14px 26px;display:flex;flex-direction:column;gap:9px;text-decoration:none;color:var(--crm-muted)}
.crm-brand img{width:143px;height:41px;object-fit:contain;object-position:left center}
.crm-brand small{font-size:10px;letter-spacing:1.6px;font-weight:600;margin-left:2px}
.crm-nav-group{font-size:10px;letter-spacing:1.3px;color:#969ba5;font-weight:650;padding:18px 12px 9px;white-space:nowrap;overflow:hidden}
.crm-sidebar nav{display:flex;flex-direction:column;gap:5px;overflow:auto;flex:1;min-height:0}
.crm-sidebar .crm-nav-link{display:flex;align-items:center;gap:11px;min-height:42px;flex-shrink:0;text-decoration:none!important;padding:10px 12px!important;color:#b1b5bd!important;background:transparent!important;border-radius:9px!important;font-size:12px!important;font-weight:500!important;white-space:nowrap;position:relative}
.crm-sidebar .crm-nav-link:hover{background:#222529!important;color:#f4f4f5!important}
.crm-sidebar .crm-nav-link[aria-current=page]{background:#302a18!important;color:#ffe198!important;font-weight:650!important;box-shadow:inset 0 0 0 1px #574b27}
.crm-sidebar .crm-nav-link[aria-current=page] svg{color:#ffd456}
.crm-sidebar-footer{border-top:1px solid var(--crm-line);padding:16px 8px 0;margin-top:16px;display:flex;align-items:center;gap:9px;min-height:53px}
.crm-user-avatar{width:30px;height:30px;border-radius:50%;background:#302b20;color:#ead49a;display:grid;place-items:center;font-size:11px;font-weight:700;flex-shrink:0}
.crm-sidebar-footer #usuario{font-size:11px;color:#e5e7eb;line-height:1.4;overflow-wrap:anywhere;flex:1}
.crm-sidebar-footer button{padding:5px!important;background:transparent!important;border:0!important;color:#969ba5!important;font-size:0!important}
.crm-sidebar-footer button svg{width:16px;height:16px}
.crm-review-note{font-size:10px;line-height:1.5;color:#aaa79b;padding:12px 10px 0;display:none}
.crm-readonly .crm-review-note{display:block}
.crm-topbar{height:57px;min-height:57px;border-bottom:1px solid #292c30;padding:0 28px;display:flex;align-items:center;gap:15px;background:var(--crm-bg);color:#9ca1aa}
.crm-icon-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid transparent;border-radius:7px;color:#b1b4bb}
.crm-icon-btn:hover{background:#292c31;border-color:#454a51;color:#fff}
.crm-breadcrumb{display:flex;align-items:center;gap:12px;font-size:11px}
.crm-breadcrumb b{font-weight:500;color:#dde0e5}
.crm-breadcrumb i{font-style:normal;color:#686d75}
.crm-topbar-right{margin-left:auto;display:flex;gap:14px;align-items:center;font-size:10px}
.crm-environment{color:#cfb86c;border:1px solid #64552a;background:#262215;border-radius:6px;padding:4px 7px;display:none}
.crm-readonly .crm-environment{display:inline-flex}
.crm-date{color:#979ca5}
.crm-page-heading{padding:27px 30px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}
.crm-page-heading h1{font-size:27px;font-weight:650;letter-spacing:-.85px;line-height:1.2;margin:0;color:#f4f4f5}
.crm-page-heading p{font-size:11.5px;line-height:1.6;color:#a5aab3;margin-top:7px}
.crm-page-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.crm-btn{font-size:11px!important;font-weight:550!important;line-height:1.2;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;background:#23262b!important;color:#e4e5e8!important;border:1px solid #3e4249!important;border-radius:8px!important;padding:8px 11px!important;text-decoration:none}
.crm-btn:hover{background:#2c3036!important;border-color:#686e78!important}
.crm-btn-primary{background:#2857b8!important;border-color:#517cd0!important;color:#fff!important}
.crm-btn svg{width:15px;height:15px}
.crm-btn[aria-pressed=true]{background:#35301f!important;color:#f7df9a!important;border-color:#736130!important}
.crm-quick-bar{margin:0 30px;display:flex;gap:23px;border-bottom:1px solid var(--crm-line);align-items:center;flex-shrink:0;min-height:42px}
.crm-quick{font-size:11.5px;font-weight:550;border:0;background:none;color:#a6aab3;padding:0 0 12px;display:flex;align-items:center;gap:8px;position:relative;min-height:42px}
.crm-quick[aria-pressed=true]{color:#f2f3f5}
.crm-quick[aria-pressed=true]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;background:#ffc63d;height:2px;border-radius:2px}
.crm-quick span{font-size:10px;line-height:1;padding:4px 6px;border-radius:5px;background:#2b2e33;color:#c3c6cc;min-width:22px}
.crm-quick[data-kind=reply] span{background:#38252a;color:#f3a3a4}
.crm-quick[data-kind=profile] span{background:#342d1b;color:#e0c37b}
.crm-filter-hint{margin-left:auto;color:#9ca1a9;font-size:10px;white-space:nowrap;padding-bottom:10px}
.crm-board-toolbar{display:flex;align-items:center;gap:10px;padding:16px 30px 13px;flex-shrink:0}
.crm-search{position:relative;flex:1;min-width:170px;max-width:390px;display:flex;align-items:center}
.crm-search svg{position:absolute;left:12px;color:#a5a9b2;width:16px}
.crm-ui #busca{height:36px;width:100%!important;padding:8px 33px!important;background:#1b1e22!important;border:1px solid #363a41!important;border-radius:8px!important;color:#ebedf0!important;font-size:11.5px!important}
.crm-ui #busca::placeholder{color:#9da2ad}
.crm-shortcut{position:absolute;right:10px;pointer-events:none;font-size:9px;color:#8c919b;border:1px solid #3b3f47;border-radius:4px;padding:1px 4px}
.crm-filter{display:flex;align-items:center;gap:7px;font-size:10px;color:#a0a5ae;white-space:nowrap}
.crm-filter select{height:36px;background:#1b1e22!important;color:#d0d3d9!important;border:1px solid #363a41!important;border-radius:8px!important;padding:7px 25px 7px 10px!important;font-size:11px!important;max-width:190px}
.crm-filter-reset{border:0;background:transparent;color:#b9bdc6;font-size:10px;margin-left:auto;padding:8px}
.crm-ui #resumo{display:none!important}
.crm-pipeline .board{padding:0 30px 20px;gap:13px;flex:1;min-height:0;overflow:auto;align-items:stretch}
.crm-pipeline .col{flex:1 0 255px;min-width:255px;max-width:310px;border-radius:11px;background:#15171a;border:1px solid #2c3035;max-height:none;min-height:0;overflow:hidden}
.crm-pipeline .col-head{position:static;min-height:48px;padding:13px 12px 11px;border:0;background:transparent;border-radius:0;gap:8px}
.crm-pipeline .col-head .t{display:flex;align-items:center;gap:8px;font-size:11.5px;font-weight:650;color:#e5e7eb}
.crm-pipeline .col-head .t:before{content:'';width:7px;height:7px;border-radius:50%;background:#a5acb8;box-shadow:0 0 0 3px #a5acb810}
.crm-pipeline .col[data-etapa=qualificando] .t:before{background:#88a8ed}
.crm-pipeline .col[data-etapa=reuniao_marcada] .t:before{background:#b69cde}
.crm-pipeline .col[data-etapa=negociacao] .t:before{background:#dfa56c}
.crm-pipeline .col[data-etapa=proposta_enviada] .t:before{background:#ebc25a}
.crm-pipeline .col[data-etapa=ganho] .t:before{background:#60c89d}
.crm-pipeline .col-head .n{background:#292d33;color:#b4bac5;border-radius:5px;padding:3px 6px;font-size:10px}
.crm-col-collapse{border:0;background:transparent;color:#8e949f;display:grid;place-items:center;padding:2px;margin-left:auto}
.crm-col-collapse svg{width:13px;height:13px}
.crm-pipeline .col.crm-column-collapsed{flex:0 0 46px;min-width:46px;max-width:46px}
.crm-pipeline .crm-column-collapsed .cards{display:none}
.crm-pipeline .crm-column-collapsed .col-head{flex-direction:column;padding:14px 10px;gap:14px;height:100%}
.crm-pipeline .crm-column-collapsed .t{writing-mode:vertical-rl}
.crm-pipeline .crm-column-collapsed .crm-col-collapse{order:-1;margin:0}
.crm-pipeline .cards{padding:0 8px 10px;gap:9px;min-height:0;overflow-y:auto}
.crm-pipeline .card{background:linear-gradient(135deg,#272a2e,#222529);border:1px solid #3b3f46!important;border-radius:9px;padding:13px 12px 10px;box-shadow:0 3px 8px #00000018;transition:border-color .15s,background .15s,box-shadow .15s;position:relative}
.crm-pipeline .card:hover{background:#2c3035;transform:none;border-color:#767c87!important;box-shadow:0 4px 12px #00000030}
.crm-pipeline .card.crm-selected{border-color:#d0ad55!important;background:#302c20;box-shadow:0 0 0 1px #d0ad5530}
.crm-pipeline .card:focus-visible{outline:2px solid #a0bfff;outline-offset:1px}
.crm-card-top{display:flex;align-items:flex-start;gap:9px;margin-bottom:9px}
.crm-lead-avatar{width:29px;height:29px;min-width:29px;border:1px solid #7d838532;border-radius:8px;background:#33383d;color:#d4d9de;display:grid;place-items:center;font-size:9px;font-weight:700;letter-spacing:.3px}
.crm-card-top .nome{font-size:12px;font-weight:650;line-height:1.5;color:#f2f3f5;overflow-wrap:anywhere;min-width:0}
.crm-card-open{border:0;background:transparent;text-align:left;padding:0;flex:1}
.crm-pipeline .card .badges{gap:5px;margin:6px 0 9px}
.crm-pipeline .card .tagbadge,.crm-pipeline .card .tag{font-size:9px!important;font-weight:550!important;padding:2px 6px!important;border-radius:5px!important;white-space:normal!important;line-height:1.5!important;background:#30343a!important;color:#c8cdd4!important;border:1px solid #656d7866!important}
.crm-pipeline .card .tagbadge[title*='retornar'],.crm-pipeline .card .tagbadge[title*='ainda não respondeu']{background:#39282c!important;color:#f1b0b4!important;border-color:#674247!important}
.crm-pipeline .card .tagbadge[title*='confirmada']{background:#1c3832!important;color:#a4dfc7!important;border-color:#345c50!important}
.crm-pipeline .card .tagbadge[title*='incompleto'],.crm-pipeline .card .tagbadge[title*='órfão']{background:#383121!important;color:#dfc995!important}
.crm-card-description{font-size:10.5px;line-height:1.5;color:#afb4bd;margin:6px 0 8px;overflow-wrap:anywhere}
.crm-card-description:empty{display:none}
.crm-pipeline .card .venda{font-size:11.5px;font-weight:650;color:#a2d9c4!important;margin:7px 0;line-height:1.5;font-variant-numeric:tabular-nums}
.crm-pipeline .card .info{display:none}
.crm-pipeline .card.crm-card-expanded .info{display:block;border-top:1px solid #40464e;padding-top:9px;margin-top:10px;line-height:1.7;color:#a8b0bc;font-size:10.5px;overflow-wrap:anywhere}
.crm-card-footer{border-top:1px solid #51565f77;margin-top:10px;padding-top:9px;display:flex;align-items:center;gap:7px;min-width:0;font-size:9px;color:#b5bbc5}
.crm-card-owner{flex:1;min-width:0;overflow-wrap:anywhere;display:flex;align-items:center;gap:5px}
.crm-card-owner svg{width:12px;height:12px;color:#939ba8}
.crm-card-time{color:#9ea6b2;white-space:nowrap}
.crm-card-reply{white-space:nowrap;font-weight:700}
.crm-card-reply[data-tone="ok"]{color:#3ddc84}
.crm-card-reply[data-tone="late"]{color:#ff9b9b}
.crm-card-more{border:0;background:transparent;color:#a0a7b2;font-size:11px;padding:0 3px;line-height:1}
.crm-card-more:hover{color:#fff}
.crm-pipeline .vazio{color:#a5a9b2!important;text-align:center;padding:24px 8px!important;font-size:11px!important;line-height:1.7}
.crm-pipeline.crm-density-compact .crm-card-description,.crm-pipeline.crm-density-compact .crm-card-footer{display:none}
.crm-pipeline.crm-density-compact .card{padding:10px}
.crm-pipeline.crm-density-compact .crm-card-top{margin:0}
.crm-pipeline.crm-density-compact .badges{margin-bottom:0}
.crm-ui .loading{font-size:12px;color:#b1b7c2;line-height:1.6}
.crm-status{font-size:11px;color:#c7c2b4;margin:0 30px 12px;padding:9px 12px;background:#2b281f;border-radius:8px;border:1px solid #514932;display:none}
.crm-status:not(:empty){display:block}
/* Existing dialog, expanded into a working area. Nested dialogs keep their IDs. */
.crm-pipeline #modalBg{z-index:50;padding:18px;background:#050607bd;backdrop-filter:blur(5px)}
.crm-pipeline #modalBg>.modal{width:min(1460px,calc(100vw - 36px))!important;height:calc(100dvh - 36px);max-height:none;border:1px solid #454a51;border-radius:15px;background:#191c20;box-shadow:0 22px 100px #0009;overflow:hidden}
.crm-chat-header{background:#222529!important;border-bottom:1px solid #383d44;min-height:78px;padding:16px 20px!important;gap:16px;flex-wrap:wrap;flex-shrink:0}
.crm-chat-identity{display:flex;align-items:center;gap:11px;flex:1;min-width:180px}
.crm-chat-identity .crm-lead-avatar{width:37px;height:37px;border-radius:11px;font-size:11px}
.crm-chat-identity #mTitulo{font-size:15px;line-height:1.45;font-weight:650;display:block;overflow-wrap:anywhere}
.crm-chat-subtitle{display:block;font-size:10px;color:#b0b6c0;margin-top:3px;font-weight:400}
.crm-chat-header .crm-chat-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px!important}
.crm-chat-header .crm-chat-actions :is(button,a){min-height:31px;font-size:10px!important;border-radius:7px!important;padding:7px 9px!important;background:#2d3137!important;color:#dee2e8!important;border:1px solid #484e58!important;white-space:nowrap}
.crm-chat-header .x{display:grid;place-items:center;min-width:31px;min-height:31px;border:1px solid #484e58;border-radius:7px;color:#c6ccd5!important}
.crm-chat-actions :is(button,a){display:inline-flex;align-items:center;gap:6px}
.crm-chat-actions svg{width:14px;height:14px}
.crm-chat-body{display:grid!important;grid-template-columns:218px minmax(0,1fr) 292px;flex:1;min-height:0;overflow:hidden}
.crm-chat-contacts{border-right:1px solid #353a42;display:flex;flex-direction:column;min-height:0;background:#1b1e22}
.crm-chat-list-title{padding:18px 15px 11px;font-size:10px;color:#a9b0bb;display:flex;justify-content:space-between;gap:7px;letter-spacing:.3px}
.crm-chat-contact-list{overflow:auto;padding:0 8px 12px;display:flex;flex-direction:column;gap:4px;min-height:0}
.crm-chat-contact{border:1px solid transparent;background:transparent;display:flex;align-items:center;gap:8px;padding:10px 8px;color:#d8dde4;text-align:left;border-radius:8px;min-width:0}
.crm-chat-contact:hover{background:#2a2e34}
.crm-chat-contact[aria-current=true]{background:#302c20;border-color:#655831}
.crm-chat-contact>span:last-child{min-width:0;flex:1;overflow-wrap:anywhere}
.crm-chat-contact strong{font-size:10px;line-height:1.5;display:block;font-weight:550}
.crm-chat-contact small{font-size:9px;line-height:1.5;display:block;color:#a4adb9;margin-top:3px}
.crm-chat-contact .crm-lead-avatar{width:25px;height:25px;min-width:25px;font-size:8px}
.crm-chat-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:#121518}
.crm-chat-context{width:auto!important;border:0!important;border-left:1px solid #353a42!important;padding:17px 18px!important;min-height:0;background:#1c2024;overflow-y:auto;order:3}
.crm-pipeline #mPerfil label{font-size:9px;font-weight:550;letter-spacing:.55px;color:#adb5c0;margin:15px 0 7px;line-height:1.5}
.crm-pipeline #mPerfil :is(input,select,textarea){min-height:35px;font-size:11px;padding:9px 10px;border-radius:7px;background:#14181c;border:1px solid #424a54;color:#e1e5eb;line-height:1.5}
.crm-pipeline #mPerfil textarea{min-height:68px;resize:vertical}
.crm-pipeline #mPerfil input[type=file]{height:auto;font-size:10px}
.crm-pipeline #mPerfil button{background:#2c58b6!important;border:1px solid #5780cf!important;color:#fff!important;font-size:11px;min-height:38px;border-radius:8px!important}
.crm-pipeline #mPreAgenda:not(:empty){padding:10px 16px;background:#1c2025;border-bottom:1px solid #393f49;flex-shrink:0;max-height:24vh;overflow:auto}
.crm-pipeline #mPreAgenda>div{margin:0!important;border-color:#395c52!important;background:#19352f!important;border-radius:8px!important}
.crm-pipeline #mPreAgenda button{font-size:10px!important}
.crm-pipeline #mChat{flex:1;min-height:0;padding:22px 24px;gap:12px;overflow:auto;background:radial-gradient(ellipse at 65% 5%,#24272733,transparent 65%)}
.crm-pipeline .msg{max-width:min(84%,550px);font-size:12px;line-height:1.65;padding:12px 15px;border:1px solid #444a52;border-radius:12px;overflow-wrap:anywhere;box-shadow:0 3px 8px #0000000f}
.crm-pipeline .msg.lead{background:#292e34;color:#e8ecf1;border-bottom-left-radius:4px}
.crm-pipeline .msg.assistant{background:#253d33;border-color:#416151;color:#e3f0e9;border-bottom-right-radius:4px}
.crm-pipeline .msg small{font-size:9px;color:#b1bcb7;opacity:1;margin-top:6px;text-align:right}
.crm-chat-day{align-self:center;color:#b4bac4;font-size:9px;font-weight:500;background:#24292f;border:1px solid #404750;border-radius:6px;padding:5px 10px;margin:3px 0 9px}
.crm-pipeline #mForm{padding:14px 18px!important;border-top:1px solid #3b414a!important;background:#1d2126!important;gap:8px!important}
.crm-pipeline #mMsg{min-width:0;min-height:43px;line-height:1.5;background:#13171b!important;border:1px solid #4e5967!important;border-radius:9px!important;font-size:12px!important}
.crm-pipeline #mMsg::placeholder{color:#a3adbb}
.crm-pipeline #mEnviar{min-height:42px;display:flex;align-items:center;gap:8px;background:#2f62cf!important;border:1px solid #6a90df!important;color:#fff!important;border-radius:9px!important;font-size:11px!important}
.crm-pipeline :is(#mImgBtn,#mMicBtn){background:#2b3139!important;border-color:#4c5766!important;color:#c4cedc!important;display:grid;place-items:center}
.crm-pipeline :is(#mRec,#mImgPrev){background:#232a32!important}
.crm-chat-help{font-size:9px!important;line-height:1.5;background:#1d2126!important;color:#a2adbc!important;padding:0 18px 12px!important}
.crm-context-hidden .crm-chat-body{grid-template-columns:218px minmax(0,1fr)}
.crm-context-hidden #mPerfil{display:none}
/* Shared pages retain their content and handlers, with consistent surfaces. */
.crm-ui:not(.crm-pipeline):not(.crm-login){height:auto;min-height:100dvh;display:block;overflow-x:hidden}
.crm-ui:not(.crm-pipeline)>.wrap{max-width:1240px;width:100%;margin:0 auto;padding:2px 30px 48px}
.crm-ui :is(.wrap .painel,.wrap .kpi,.wrap .hero){background:#1c2025;border:1px solid #3e454f;border-radius:12px;box-shadow:0 4px 16px #00000015}
.crm-ui .wrap .hero{background:linear-gradient(120deg,#332e20,#24252a 70%,#1d2126);padding:25px 28px}
.crm-ui .wrap h2.sec{font-size:12px;color:#c5cbd4;letter-spacing:.45px;margin:25px 0 12px}
.crm-ui .wrap .kpi{padding:18px 20px}
.crm-ui .wrap .kpi .n{font-weight:650;font-size:29px;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.crm-ui .wrap .kpi .l{font-size:11px;line-height:1.6}
.crm-ui .wrap table{font-size:11.5px}
.crm-ui .wrap th{color:#b3bccb;font-size:10px;font-weight:550;padding-top:12px;padding-bottom:12px;line-height:1.6}
.crm-ui .wrap td{border-color:#3b434e;padding-top:12px;padding-bottom:12px;line-height:1.5}
.crm-ui .wrap .painel{padding:20px 22px}
.crm-ui .wrap input,.crm-ui .wrap select{border-radius:7px;min-height:32px}
.crm-ui .wrap .saud{font-size:23px;font-weight:600}
.crm-ui .wrap .cards{gap:12px}
.crm-ui .wrap .taxa{line-height:1.8;font-size:11.5px}
.crm-ui .wrap :is(.hero,.painel){overflow-wrap:anywhere;min-width:0}
/* Neutral surfaces, Cedaka accents. Login keeps its approved blue atmosphere. */
body.crm-ui:not(.crm-login){--crm-bg:#0c0d0f;--crm-nav:#101113;--crm-surface:#141518;--crm-card:#202226;--crm-line:#32353c;--crm-text:#f5f6f7;--crm-muted:#a4aab2}
.crm-sidebar .crm-nav-link[aria-current=page]{box-shadow:inset 3px 0 0 #ffc63d,inset 0 0 0 1px #574b27}
.crm-pipeline .col{--stage:#a5acb8;--stage-tint:#202328}
.crm-pipeline .col[data-etapa=qualificando]{--stage:#83b1f1;--stage-tint:#1c2635}
.crm-pipeline .col[data-etapa=reuniao_marcada]{--stage:#c3a0eb;--stage-tint:#2c2336}
.crm-pipeline .col[data-etapa=negociacao]{--stage:#ecac7a;--stage-tint:#32271f}
.crm-pipeline .col[data-etapa=proposta_enviada]{--stage:#e8c66f;--stage-tint:#302b1e}
.crm-pipeline .col[data-etapa=ganho]{--stage:#7ed4ad;--stage-tint:#1d2f27}
.crm-pipeline .col .col-head{border-top:2px solid var(--stage);background:linear-gradient(90deg,var(--stage-tint),#191c20);padding-top:11px}
.crm-pipeline .col .col-head .t{color:var(--stage)}
.crm-pipeline .col .col-head .t:before{background:var(--stage);box-shadow:none}
.crm-pipeline .col .col-head .n{color:var(--stage);background:var(--stage-tint);border:1px solid #ffffff12}
.crm-pipeline .col .card .tagbadge[data-tone=qualified],.crm-pipeline .card .tag{background:#3a3020!important;color:#f2d38c!important;border-color:#665330!important}
.crm-pipeline .card .tagbadge[data-tone=opportunity]{background:#203544!important;color:#9fcee9!important;border-color:#3c647d!important}
.crm-pipeline .card .tagbadge[data-tone=customer]{background:#203d31!important;color:#a1dfb9!important;border-color:#3b6b52!important}
.crm-pipeline .card .tagbadge[data-tone=friend]{background:#372b45!important;color:#d8bbed!important;border-color:#635075!important}
.crm-pipeline .card .tagbadge[data-tone=negative]{background:#3f2b2e!important;color:#e7b5bb!important;border-color:#67434a!important}
.crm-pipeline .card .tagbadge[data-tone=attention]{background:#402b2e!important;color:#ffb5bc!important;border-color:#78474d!important}
.crm-pipeline .card .tagbadge[data-tone=waiting]{background:#3c3320!important;color:#f0d095!important;border-color:#746035!important}
.crm-pipeline .card .tagbadge[data-tone=confirmed]{background:#203d31!important;color:#a4e3c5!important;border-color:#42755c!important}
.crm-lead-avatar[data-hue=sage]{background:#2b3e34;color:#b1d9bf;border-color:#4f705a55}
.crm-lead-avatar[data-hue=lilac]{background:#3c3048;color:#d8c0ec;border-color:#76608c55}
.crm-lead-avatar[data-hue=sand]{background:#423724;color:#e4cca0;border-color:#8f784855}
.crm-lead-avatar[data-hue=clay]{background:#44322e;color:#e6bdb0;border-color:#8d645955}
.crm-lead-avatar[data-hue=slate]{background:#303a42;color:#bfd0de;border-color:#62778955}
.crm-chat-header{box-shadow:inset 0 2px 0 #6b5930}
.crm-chat-contact[aria-current=true]{box-shadow:inset 3px 0 0 #d8b454}
.crm-chat-contact[aria-current=true] strong{color:#f3dfa4}
.crm-chat-day{color:#c0c5cc}
.crm-quick[data-kind=reply][aria-pressed=true]:after{background:#f19da6}
.crm-quick[data-kind=profile][aria-pressed=true]:after{background:#e4c374}

/* Reuse: painel/minhas-tarefas.css (heading), comercial-visual.css (forms),
   recursos-visual.css (card feedback). Keep CRM density and modal dimensions. */
.crm-page-heading h1{font-family:Inter,system-ui,sans-serif;font-size:28px;line-height:1.35;letter-spacing:-.035em}
.crm-page-heading p{font-size:12px;color:var(--crm-muted)}
.crm-pipeline .card{background:linear-gradient(135deg,#26282e,#191b20 75%);box-shadow:inset 0 1px #ffffff04,0 3px 8px #0002}
.crm-card-top .nome{font-size:12.5px}
.crm-pipeline .card:not(.crm-selected):focus-within{border-color:var(--stage)!important;box-shadow:inset 0 1px #ffffff08,0 0 0 1px #ffffff05}
.crm-card-more{min-width:26px;min-height:24px;border-radius:5px;display:grid;place-items:center}
.crm-card-more:focus-visible{outline-offset:1px}
.crm-pipeline :is(.col-head .n,.venda,.crm-quick span){font-variant-numeric:tabular-nums}
.crm-pipeline #mPerfil label{font-family:Inter,system-ui,sans-serif;font-size:11px;font-weight:600;line-height:1.5;letter-spacing:0;text-transform:none;color:#bdc4ce}
.crm-pipeline #mPerfil :is(input,select,textarea){font-family:Inter,system-ui,sans-serif;font-size:13px;min-height:40px;border-radius:8px;line-height:1.5;padding:9px 11px}
.crm-field-hint{display:block;margin:6px 0 12px;font-size:11px;line-height:1.55;color:var(--crm-muted)}
.crm-pipeline #mPerfil button[onclick="salvarPerfil()"]{background:#ffc101!important;border-color:#ffc101!important;color:#11131a!important;min-height:40px;font-size:12px}
.crm-pipeline #mEnviar,.crm-ui .crm-btn-primary{background:#204ba5!important;border-color:#638bcc!important;color:#fff!important}
.crm-pipeline #mImgBtn,.crm-pipeline #mMicBtn{min-width:36px;min-height:40px;border-radius:8px!important}
.crm-pipeline #mPerfil input[type=file]::file-selector-button{font:600 12px Inter,system-ui,sans-serif;border:1px solid #515661;border-radius:6px;background:#202226;color:#f5f6f7;padding:8px 12px;margin-right:10px;cursor:pointer}
@media(hover:hover){
 .crm-pipeline .card:not(.crm-selected):hover{background:linear-gradient(135deg,#2b2e34,#202328 75%);border-color:var(--stage)!important;box-shadow:inset 0 1px #ffffff0a,0 7px 16px -12px #000a}
 .crm-pipeline #mPerfil button[onclick="salvarPerfil()"]:hover{background:#ffd02b!important;border-color:#ffd02b!important;box-shadow:0 4px 14px #ffc10120}
 .crm-pipeline #mEnviar:hover,.crm-ui .crm-btn-primary:hover{background:#2a5ec1!important}
 .crm-card-more:hover{background:#ffffff0c;color:#fff}
}
@media(max-width:620px){.crm-page-heading h1{font-size:24px}.crm-page-heading p{font-size:11px}.crm-pipeline #mPerfil :is(input,select,textarea){font-size:13px}}

.crm-login{padding:32px!important;min-height:100dvh!important;background:radial-gradient(ellipse at 15% 10%,#163357,#0c111b 65%)!important;display:flex!important;align-items:center;justify-content:center}
.crm-login #f{width:min(410px,100%)!important;background:#151f2e!important;border:1px solid #385072!important;padding:35px!important;border-radius:18px!important;box-shadow:0 25px 70px #0005}
.crm-login .crm-login-logo{display:block;width:168px;height:51px;object-fit:contain;margin-bottom:30px}
.crm-login h1{font-size:22px!important;line-height:1.5;font-weight:650!important;margin-bottom:8px}
.crm-login h1 b{color:#f3f6fc!important}
.crm-login p{font-size:12px!important;color:#9baecb!important;line-height:1.6}
.crm-login input{background:#0d1625!important;border:1px solid #3a4e6d!important;border-radius:8px!important;min-height:42px;font-size:13px!important}
.crm-login button{background:#2b5fc8!important;color:#fff!important;border:1px solid #658ede!important;min-height:43px;border-radius:8px!important}
.crm-nav-collapsed{--crm-nav-width:70px}
.crm-nav-collapsed .crm-sidebar{padding-left:10px;padding-right:10px}
.crm-nav-collapsed .crm-brand{padding:0 4px 26px;align-items:center}
.crm-nav-collapsed .crm-brand img{width:35px;height:41px;object-fit:contain}
.crm-nav-collapsed :is(.crm-brand small,.crm-nav-group,.crm-nav-link span,.crm-sidebar-footer #usuario,.crm-sidebar-footer button,.crm-review-note){display:none!important}
.crm-nav-collapsed .crm-sidebar .crm-nav-link{justify-content:center;padding:12px!important}
.crm-nav-collapsed .crm-sidebar-footer{justify-content:center;padding:14px 0 0}
@media(min-width:1700px){.crm-pipeline .col{flex-basis:265px;max-width:340px}.crm-chat-body{grid-template-columns:245px minmax(0,1fr) 310px}}
@media(max-width:1200px){.crm-page-heading,.crm-board-toolbar{padding-left:22px;padding-right:22px}.crm-quick-bar{margin-left:22px;margin-right:22px}.crm-pipeline .board{padding-left:22px;padding-right:22px}.crm-date,.crm-filter-hint{display:none}.crm-chat-body{grid-template-columns:minmax(0,1fr) 285px}.crm-chat-contacts{display:none}.crm-context-hidden .crm-chat-body{grid-template-columns:1fr}.crm-chat-header .crm-chat-actions{max-width:100%}.crm-filter{font-size:0}.crm-filter select{max-width:150px}}
@media(max-width:850px){body.crm-ui:not(.crm-login){padding-left:70px;--crm-nav-width:70px}.crm-sidebar{padding-left:10px;padding-right:10px}.crm-brand{padding:0 4px 26px;align-items:center}.crm-brand img{width:36px;object-fit:contain}.crm-brand small,.crm-nav-group,.crm-nav-link span,.crm-sidebar-footer #usuario,.crm-sidebar-footer button,.crm-review-note{display:none!important}.crm-sidebar .crm-nav-link{justify-content:center;padding:12px!important}.crm-sidebar-footer{justify-content:center;padding:14px 0 0}.crm-page-heading{padding-top:23px}.crm-page-heading h1{font-size:23px}.crm-page-heading p{max-width:300px}.crm-board-toolbar{flex-wrap:wrap}.crm-search{max-width:none;flex-basis:100%}.crm-filter select{max-width:190px}.crm-quick-bar{gap:18px}.crm-topbar{padding:0 18px}.crm-ui:not(.crm-pipeline)>.wrap{padding-left:20px;padding-right:20px}.crm-chat-header{padding:13px 15px!important}.crm-chat-header .crm-chat-actions :is(button,a){font-size:9px!important}.crm-pipeline #modalBg{padding:10px}.crm-pipeline #modalBg>.modal{width:calc(100vw - 20px)!important;height:calc(100dvh - 20px)}.crm-pipeline #mChat{padding:16px}.crm-page-actions .crm-btn span{display:none}}
@media(max-width:620px){body.crm-ui:not(.crm-login){padding-left:0;--crm-nav-width:0px}.crm-sidebar{display:none}.crm-nav-mobile-open .crm-sidebar{display:flex;width:208px;box-shadow:8px 0 70px #000c}.crm-nav-mobile-open .crm-nav-link span,.crm-nav-mobile-open .crm-nav-group,.crm-nav-mobile-open .crm-brand small{display:block!important}.crm-nav-mobile-open .crm-sidebar .crm-nav-link{justify-content:flex-start;padding:12px!important}.crm-nav-mobile-open .crm-brand img{width:143px}.crm-nav-mobile-open .crm-brand{align-items:flex-start;padding:0 14px 20px}.crm-nav-mobile-open .crm-sidebar{padding:65px 14px 16px}.crm-topbar{height:48px;min-height:48px;padding:0 14px;position:relative;z-index:35}.crm-breadcrumb{font-size:10px}.crm-topbar-right{font-size:9px}.crm-page-heading{padding:22px 17px 16px}.crm-page-heading h1{font-size:24px}.crm-page-heading p{font-size:10.5px;max-width:240px}.crm-page-actions{gap:5px}.crm-page-actions .crm-btn{padding:8px!important;min-width:32px}.crm-quick-bar{margin:0 17px;gap:18px}.crm-quick{font-size:10px}.crm-quick span{font-size:9px}.crm-board-toolbar{padding:13px 17px}.crm-pipeline .board{padding:0 17px 15px}.crm-pipeline .col{flex-basis:270px;max-width:270px}.crm-filter select{max-width:162px}.crm-filter-reset{padding:3px;font-size:9px}.crm-chat-body{grid-template-columns:1fr;position:relative}.crm-chat-context{display:none}.crm-context-mobile-open #mPerfil{display:block;position:absolute;inset:0;z-index:3;width:100%!important}.crm-context-hidden #mPerfil{display:none}.crm-chat-header{min-height:0;gap:12px}.crm-chat-actions{gap:5px!important}.crm-chat-identity #mTitulo{font-size:13px}.crm-chat-subtitle{font-size:9px}.crm-pipeline #mPreAgenda:not(:empty){max-height:22vh;padding:8px}.crm-pipeline #mChat{padding:16px 12px;gap:10px}.crm-pipeline .msg{font-size:11.5px;padding:10px 12px;max-width:89%}.crm-pipeline #mForm{padding:10px!important;gap:5px!important}.crm-pipeline :is(#mImgBtn,#mMicBtn){width:32px!important;height:37px!important}.crm-pipeline #mEnviar{padding:0 10px!important;min-width:39px}.crm-pipeline #mEnviar span{display:none}.crm-pipeline #mMsg{font-size:11px!important;padding:8px!important}.crm-chat-help{font-size:8px!important;padding:0 10px 9px!important}.crm-ui:not(.crm-pipeline)>.wrap{padding-left:17px;padding-right:17px}.crm-ui .wrap .painel{padding:15px}.crm-ui .wrap .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-ui .wrap .kpi{padding:15px}.crm-ui .wrap .kpi .n{font-size:25px}.crm-ui .wrap .hero{padding:20px}.crm-ui .wrap table{font-size:10px}.crm-login{padding:20px!important}}
@media(prefers-reduced-motion:reduce){.crm-ui,.crm-ui *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* 04/10: com os filtros novos do pipeline a barra passava da tela no computador (1440px: 1992px de largura). Agora quebra linha em qualquer tamanho. */
.crm-board-toolbar{flex-wrap:wrap}

.crm-sem-numero{margin:10px 0;padding:10px 12px;border:1px dashed var(--crm-line);border-radius:10px;background:var(--crm-surface);font-size:12.5px;color:var(--crm-text);display:flex;flex-direction:column;gap:8px;text-align:left}
.crm-sem-numero-tit{margin:0;color:var(--crm-muted);line-height:1.45}
.crm-sem-numero-item{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:7px 0;border-top:1px solid var(--crm-line)}
.crm-sem-numero-item small{color:var(--crm-muted)}
.crm-sem-numero-item span{color:var(--crm-muted);word-break:break-word}
.crm-sem-numero-item button{flex:none;background:var(--crm-blue);color:#fff;border:0;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:700}
.crm-sem-numero-item button:disabled{opacity:.6}
