:root{--bg:#F5F7F9;--surface:#FFFFFF;--surface-alt:#EFF4F7;--surface-soft:#F8FAFB;--sidebar:#0B1014;--sidebar-alt:#141C22;--sidebar-hover:#1A252D;--text:#101820;--muted:#6F7C86;--muted2:#93A0A9;--border:#DDE4E9;--accent:#12A8C5;--accent-hover:#0D8DA6;--accent-soft:#E6F7FA;--success:#14804A;--warning:#B76A00;--danger:#C43D3D;--info:#2D6EA8;--radius:12px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg);font-size:13px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #12A8C55c;outline-offset:2px}
.layout{display:grid;grid-template-columns:264px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--sidebar);color:white;min-height:100vh;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{padding:27px 22px 24px}.brand>div{font-size:29px;line-height:1.05;font-weight:800;letter-spacing:-.035em}.brand small{display:block;margin-top:4px;font-size:10px;font-weight:750;color:var(--accent);letter-spacing:.055em}
.user-card{margin:0 14px 22px;border-radius:12px;background:var(--sidebar-alt);display:flex;gap:10px;align-items:center;padding:12px}.avatar{width:38px;height:38px;min-width:38px;border-radius:50%;display:grid;place-items:center;background:var(--accent);font-size:11px;font-weight:700}.user-card strong{font-size:12px;display:block}.user-card span{font-size:10px;color:#83939D;display:block;margin-top:3px}.nav-caption{color:#667680;padding:0 22px;margin-bottom:8px;font-size:10px;font-weight:700;letter-spacing:.12em}.sidebar nav{display:grid;gap:6px;padding:0 12px}.nav-item{color:#CDD6DB;text-align:left;border:0;border-radius:9px;background:transparent;padding:13px 15px;display:flex;align-items:center;gap:12px;font-weight:650}.nav-item:hover{background:var(--sidebar-hover)}.nav-item.active{background:#142F37;color:white;border-left:3px solid var(--accent);padding-left:12px}.nav-ico{color:#9CACB5;width:17px;display:inline-block;text-align:center;font-size:17px}.nav-item.active .nav-ico{color:var(--accent)}.nav-foot{margin-top:auto;padding:0 25px 23px;color:#8D9BA4;font-size:11px}.nav-foot small{display:block;margin-top:5px;color:#56646D;font-size:10px}.foot-rule{height:1px;background:#222D34;margin-bottom:15px}
.main{min-width:0;padding:27px 29px 26px}.masthead{display:flex;align-items:flex-start;justify-content:space-between;margin:0 5px 23px;gap:12px}.eyebrow{font-size:10px;letter-spacing:.025em;color:var(--accent);font-weight:750}.masthead h1{font-size:30px;letter-spacing:-.03em;margin:4px 0 2px}.masthead p{font-size:12px;color:var(--muted);margin:4px 0 0}.header-right{display:flex;gap:14px;align-items:center;color:var(--muted2);font-size:11px}.demo-tag{background:#e8f6f8;border:1px solid #c7ebf0;padding:7px 10px;border-radius:8px;color:#087c91;font-weight:700;font-size:10px;letter-spacing:.03em}.page{display:none;animation:fade .18s ease}.page.active{display:block}@keyframes fade{from{opacity:.7}to{opacity:1}}.metrics{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:14px}.metric{background:white;border:1px solid var(--border);border-radius:14px;min-height:137px;padding:14px 16px;text-align:left;display:flex;flex-direction:column;gap:8px}.metric:hover{border-color:#b6ced6;box-shadow:0 4px 15px #16344909}.metric-bar{height:4px;width:100%;border-radius:5px;margin-bottom:2px}.metric-top{display:flex;align-items:center;justify-content:space-between}.metric-number{font-size:32px;line-height:1;font-weight:750;letter-spacing:-.035em}.metric-dot{font-size:15px}.metric-name{font-size:12px;font-weight:700;color:var(--muted);margin-top:2px}.metric-action{font-size:10px;font-weight:700}.section-head{display:flex;align-items:center;justify-content:space-between;margin:29px 5px 12px}.section-head h2{font-size:19px;letter-spacing:-.02em;margin:0}.text-action{border:0;background:transparent;color:var(--accent-hover);font-weight:700}.action-list{display:grid;gap:9px}.action-item{background:white;border:1px solid var(--border);padding:14px 18px;border-radius:11px;cursor:pointer;display:flex;justify-content:space-between;gap:12px;align-items:center}.action-item strong{font-size:12px}.action-item small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.status-mark{font-size:10px;font-weight:750;white-space:nowrap}.status-mark.danger{color:var(--danger)}.status-mark.warning{color:var(--warning)}.status-mark.info{color:var(--info)}
.toolbar{display:flex;gap:8px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.toolbar input{height:42px;flex:1;min-width:270px}.btn{border-radius:9px;padding:10px 14px;border:1px solid transparent;font-weight:700;min-height:38px;white-space:nowrap}.btn-primary{background:var(--accent);color:white}.btn-primary:hover{background:var(--accent-hover)}.btn-outline{color:var(--text);background:white;border-color:var(--border)}.btn-outline:hover{background:var(--surface-alt)}input,select{border:1px solid #D4DDE3;background:white;color:var(--text);border-radius:9px;padding:10px 12px;min-height:38px;outline:none}.surface{background:white;border:1px solid var(--border);border-radius:12px}.filterbar{padding:10px;display:flex;gap:9px;flex-wrap:wrap;margin-bottom:13px}.filterbar select{flex:1;min-width:148px;max-width:210px}.table-surface{overflow:hidden}.table-caption{padding:17px 17px 13px;display:flex;align-items:center;justify-content:space-between}.table-caption strong{font-size:14px}.table-caption span{font-size:11px;color:var(--muted)}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:880px;text-align:left}th{background:var(--surface-alt);color:var(--muted);font-size:11px;font-weight:700;padding:15px 13px}td{padding:14px 13px;border-bottom:1px solid #edf1f4;font-size:12px}tr.lead-row:hover{background:#f1f9fb;cursor:pointer}.lead-name{font-weight:700}.lead-org{display:block;font-size:10px;color:var(--muted);margin-top:3px}.chip{font-size:10px;font-weight:700;border-radius:100px;padding:5px 9px;display:inline-block}.chip-warn{background:#fff3df;color:#8b5103}.chip-danger{background:#fdecec;color:#b42b2b}.chip-info{background:#eaf2fa;color:#2d6ea8}.chip-success{background:#e8f5ee;color:#14804a}.chip-neutral{background:#eff4f7;color:#61727f}
.kanban-tools{display:flex;justify-content:space-between;align-items:center;padding:9px 10px;margin-bottom:12px;gap:12px}.kanban-tools input{width:min(330px,60vw)}.kanban-scroll{overflow:auto;max-height:calc(100vh - 220px);padding:2px 2px 13px}.kanban{display:flex;gap:12px;align-items:stretch;min-height:470px}.stage{background:white;border:1px solid var(--border);border-radius:14px;flex:0 0 310px;padding:8px;min-height:480px;display:flex;flex-direction:column}.stage.dragover{box-shadow:0 0 0 3px #12a8c557;border-color:var(--accent)}.stage-head{background:var(--surface-alt);display:flex;align-items:center;justify-content:space-between;border-radius:9px;padding:10px;font-weight:750;font-size:12px}.stage-count{background:var(--accent-soft);color:var(--accent-hover);border-radius:50px;padding:5px 8px;font-size:10px}.stage-cards{overflow:auto;flex:1;display:flex;flex-direction:column;gap:8px;padding:10px 0}.kanban-card{background:var(--surface-soft);border:1px solid var(--border);border-radius:9px;padding:12px 11px;cursor:grab}.kanban-card:active{cursor:grabbing}.kanban-card strong{font-size:13px;display:block;margin-bottom:5px}.kanban-card small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.kanban-card .drag-handle{color:var(--muted2);margin-right:6px}.kanban-card .status-mark{display:block;margin:8px 0 0}.stage-footer{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);padding:9px 5px 3px;border-top:1px solid var(--border)}.hint{font-size:11px;color:var(--muted);margin:12px 7px}.settings-panel{max-width:700px;padding:24px}.settings-title{font-size:19px;font-weight:750;margin-bottom:10px}.settings-panel p{color:var(--muted);line-height:1.65;font-size:13px;margin-bottom:19px}.settings-line{display:flex;gap:12px;justify-content:space-between;border-bottom:1px solid var(--border);padding:14px 0}.settings-line span{color:var(--muted)}.field-label{font-weight:700;color:var(--muted);display:block;margin-bottom:5px}.setting-input{display:block;width:100%;max-width:350px;margin-bottom:17px}.page-foot{color:#8c98a1;font-size:10px;margin:26px 5px 5px}
.modal-overlay{position:fixed;inset:0;background:#0b101477;display:grid;place-items:center;z-index:50;padding:20px}.modal-overlay[hidden]{display:none}.modal{background:white;border-radius:14px;box-shadow:0 20px 65px #0003;max-width:610px;width:100%;padding:24px;max-height:92vh;overflow:auto}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modal-head h2{margin:0;font-size:20px}.icon-btn{font-size:24px;background:transparent;border:0;line-height:1}.modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-grid label{font-size:11px;font-weight:700;color:var(--muted);display:block;margin-bottom:5px}.modal-grid input,.modal-grid select{width:100%}.modal-grid .full{grid-column:1/-1}.modal-actions{margin-top:22px;display:flex;justify-content:flex-end;gap:8px}.modal-note{color:var(--muted);font-size:12px;line-height:1.6}.toast{position:fixed;right:25px;bottom:22px;background:var(--sidebar);color:#fff;box-shadow:0 10px 40px #0003;border-radius:10px;padding:13px 17px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:70}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,minmax(140px,1fr))}.filterbar select{max-width:none}}@media(max-width:740px){.layout{grid-template-columns:1fr}.sidebar{height:auto;min-height:0;position:relative}.brand{padding:15px}.user-card,.nav-caption,.nav-foot{display:none}.sidebar nav{display:flex;overflow:auto;padding:5px 10px 10px}.nav-item{white-space:nowrap;padding:9px}.main{padding:20px 14px}.masthead{flex-direction:column}.metrics{gap:8px}.metric{min-height:120px}.metric-number{font-size:27px}.header-right{flex-wrap:wrap}.modal-grid{grid-template-columns:1fr}}

/* Identidade Poiato: preserva o mesmo painel de leads e funil aprovado */
.brand.poiato-brand{display:flex;gap:9px;align-items:center}.poiato-brand>img{height:43px;width:42px;border-radius:8px;object-fit:cover}.poiato-brand>div{min-width:0}.poiato-brand small{letter-spacing:1.2px} .nav-item.active{border-left-color:#248dff}

/* CORRECAO LOGO - simbolo integral na barra escura do CRM */
.brand.poiato-brand{display:flex;align-items:center;gap:11px;overflow:visible}
.poiato-brand>img{display:block;object-fit:contain;object-position:center;height:54px;width:48px;flex:0 0 48px;background:transparent;border-radius:0}
.poiato-brand>div{min-width:0}
@media(max-width:740px){.poiato-brand>img{height:43px;width:38px;flex-basis:38px}}

/* Marca corporativa única Pedro Poiato; paleta das telas ajustada à marca. */
:root{--bg:#edf2fa;--surface-alt:#edf3fd;--surface-soft:#f7faff;--sidebar:#071429;--sidebar-alt:#122746;--sidebar-hover:#18365e;--accent:#1b78ea;--accent-hover:#145fbe;--accent-soft:#e2eeff;--border:#d6e1f0;--info:#186acb}
.sidebar{background:linear-gradient(180deg,#071429,#0b2040)}
.poiato-brand{padding:24px 15px 21px;gap:11px;align-items:center}
.poiato-brand>img{height:60px;width:50px;flex:0 0 50px;object-fit:contain;border-radius:0;background:none}
.brand.poiato-brand>div{font-size:16px;font-weight:800;letter-spacing:.03em;line-height:1.16;color:#fff}
.poiato-brand small{color:#59aaff;letter-spacing:1.25px;font-size:8px;margin-top:4px}
.poiato-brand .product-identifier{display:block;font-size:11px;font-weight:600;color:#d6e6ff;margin-top:12px;letter-spacing:0}
.nav-item.active{background:#183a72;border-left:3px solid #3a97ff}
.demo-tag{background:#e3efff;color:#195cab;border-color:#c7dcfa}
.stage.dragover{box-shadow:0 0 0 3px #1b78ea55}
@media(max-width:740px){.poiato-brand{padding:12px 15px}.poiato-brand>img{height:47px;width:40px;flex-basis:40px}.poiato-brand .product-identifier{margin-top:4px}}
