@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#183345;background:#f5f8fa;font-size:14px}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#0d3040;color:#d8e5e8;display:flex;flex-direction:column;z-index:2;padding:27px 16px}.brand{display:flex;align-items:center;gap:12px;padding:2px 13px 36px}.brand-icon{width:38px;height:38px;background:#22b9a2;border-radius:11px;display:grid;place-items:center;color:#fff;font-family:Manrope;font-size:21px;font-weight:800}.brand strong{display:block;color:#fff;font:800 19px Manrope}.brand small{font-size:11px;letter-spacing:.04em;color:#8ba6ae}.sidebar nav{display:grid;gap:6px}.sidebar nav button,.sidebar-bottom button{border:0;background:none;color:#acc4ca;text-align:left;padding:12px 14px;border-radius:9px;width:100%;font-weight:600}.sidebar nav button:hover,.sidebar nav button.active{color:#fff;background:#1b4856}.sidebar nav i{width:23px;color:#48c8b3}.sidebar-bottom{margin-top:auto;border-top:1px solid #275060;padding:16px 8px 0}.user{color:#fff;font-weight:700;padding:0 6px 10px}main{margin-left:238px;padding:34px 38px 70px;max-width:1750px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{color:#16a38b;font-weight:800;letter-spacing:.14em;font-size:11px}.topbar h1{font:800 29px Manrope;margin:6px 0}.topbar p,.panel p{color:#718593;margin:0}.top-actions{display:flex;gap:9px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dce7e9;border-radius:9px;padding:10px 15px;white-space:nowrap;font-weight:700;background:#fff}.btn.primary{color:#fff;background:#159e8c;border-color:#159e8c}.btn.primary:hover{background:#0d8073}.btn.light:hover{background:#eff7f7}.btn.small{font-size:12px;padding:6px 9px}.link{border:0;background:none;color:#0c9c86;font-weight:700}.tab{display:none}.tab.active{display:block}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.metric,.panel{border:1px solid #e2eaee;border-radius:14px;background:#fff;box-shadow:0 3px 12px #20384006}.metric{padding:21px}.metric .title{font-weight:700;color:#738795;font-size:12px}.metric .value{font:800 29px Manrope;margin:7px 0 4px}.metric .hint{font-size:11px;color:#8a9da7}.metric .ico{float:right;background:#e7f7f2;color:#129f88;border-radius:10px;padding:11px}.metric.warn .ico{background:#fff0e7;color:#d7783a}.metric.red .ico{background:#ffedf0;color:#cf5264}.columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{padding:20px;margin-bottom:20px;min-width:0}.panel h2{font:800 16px Manrope;margin:0 0 5px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.count{font:600 12px 'DM Sans';color:#81939f}.filters{display:flex;gap:9px;margin:17px 0}.filters input,.filters select{min-height:38px;max-width:350px;width:100%;border:1px solid #dce6e9;border-radius:8px;padding:8px 11px;color:#294552;background:#fff}.filters select{width:auto;min-width:170px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:680px}th{text-align:left;color:#7a8d98;text-transform:uppercase;letter-spacing:.04em;font-size:10px;border-bottom:1px solid #e7eef1;padding:11px 9px}td{border-bottom:1px solid #edf1f3;padding:12px 9px;vertical-align:middle}td b{font-size:12px}td small{display:block;color:#84959e;margin-top:3px}tbody tr:hover{background:#f9fcfc}.badge{display:inline-block;border-radius:99px;padding:4px 8px;font-size:11px;font-weight:700;background:#eff3f5;color:#586d78}.badge.green{background:#e3f5ef;color:#13866d}.badge.red{background:#ffeded;color:#bc495a}.badge.orange{background:#fff1df;color:#ae6c1d}.muted{color:#8195a0}.buttons{display:flex;gap:6px}.icon-btn{border:1px solid #deeaeb;background:#fff;border-radius:7px;padding:7px 9px;color:#168c7c}.icon-btn:hover{background:#e8f6f2}.board{display:flex;gap:12px;overflow:auto;margin:18px 0 20px;padding:0 0 8px;min-height:160px}.lane{flex:1;min-width:215px;background:#eaf1f3;border-radius:11px;padding:11px;max-height:490px;overflow:auto}.lane.dragover{outline:2px dashed #109d8c;background:#d8f2ec}.lane-head{font-weight:800;display:flex;justify-content:space-between;margin:3px 3px 11px}.lane-head span{color:#80939b}.ticket{background:white;border:1px solid #dde8ea;border-radius:9px;padding:11px;margin-bottom:9px;cursor:grab;box-shadow:0 1px 2px #1e42590b}.ticket b{display:block;line-height:1.35;font-size:12px}.ticket .company{font-size:10px;color:#149b86;font-weight:800;text-transform:uppercase;margin-bottom:4px}.ticket .detail{font-size:10px;color:#758b95;margin-top:8px}.ticket .mini-actions{display:flex;gap:6px;margin-top:9px}.ticket .mini-actions button{background:#f0f7f6;border:0;border-radius:6px;padding:5px 8px;color:#117a6d;font-size:11px}.item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #edf1f3}.item:last-child{border-bottom:0}.item b{display:block;font-size:12px}.item small{display:block;color:#8397a0;margin-top:4px}.empty{color:#81939d;padding:20px;text-align:center}.empty-lane{font-size:11px;color:#81939d;text-align:center;padding:15px 0}.danger-text{color:#c35055}#notice{display:none;margin-bottom:14px;border-radius:8px;padding:10px 15px;background:#e3f6ed;color:#16705c}#notice.error{background:#ffe9e9;color:#b74245}dialog{border:1px solid #deeaed;border-radius:14px;padding:0;width:min(580px,calc(100% - 30px));max-height:90vh;overflow:auto;box-shadow:0 20px 70px #09232f45}dialog::backdrop{background:#09212dd0}.form{padding:23px}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-head h2{font:800 19px Manrope;margin:0}.close{background:none;border:0;font-size:27px;color:#77909b}.form label{display:block;font-weight:700;font-size:12px;margin:12px 0}.form input,.form select,.form textarea{display:block;width:100%;border:1px solid #dae5e9;border-radius:8px;padding:10px;margin-top:6px;color:#233e4c;background:#fff}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.helper{font-size:11px;color:#8396a0}@media(max-width:1000px){.metrics{grid-template-columns:repeat(2,1fr)}.columns{grid-template-columns:1fr}.board .lane{flex:none;width:230px}}@media(max-width:720px){.sidebar{position:static;width:auto;padding:12px}.brand{padding:3px 5px 8px}.sidebar nav{display:flex;overflow:auto}.sidebar nav button{width:auto;white-space:nowrap;padding:10px}.sidebar-bottom{display:none}main{margin:0;padding:20px 13px}.topbar{display:block}.topbar h1{font-size:24px}.top-actions{margin-top:15px}.metrics{gap:9px}.metric{padding:12px}.metric .value{font-size:23px}.filters{flex-wrap:wrap}.form-row{grid-template-columns:1fr;gap:0}}

/* Dashboard interativo — dados de relacionamento sem métricas inventadas. */
.dashboard-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 18px;background:linear-gradient(112deg,#103f4b,#126f69);color:#fff;border-radius:15px;padding:23px 26px;box-shadow:0 9px 24px #0b534223}
.dashboard-intro .eyebrow{color:#7ee0c8}.dashboard-intro h2{font:800 22px Manrope;margin:5px 0}.dashboard-intro p{color:#c4e1df;margin:0;font-size:12px}.dashboard-intro .btn{background:#ffffff15;border-color:#ffffff49;color:#fff}.dashboard-intro .btn:hover{background:#ffffff27}
.dash-first .panel{min-height:260px}.stage-chart{display:grid;gap:15px;padding:6px 0}
.stage-row{border:0;background:transparent;width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:3px 0;color:#244352;border-radius:5px}.stage-row:hover{background:#f3f9f8}.stage-row strong{font:800 13px Manrope;width:27px;text-align:right}.stage-label{width:90px;display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;flex:none}.stage-dot{width:9px;height:9px;border-radius:3px;display:inline-block;flex:none}.stage-track{height:11px;border-radius:12px;background:#eef3f5;flex:1;overflow:hidden}.stage-fill{height:100%;display:block;border-radius:12px;transition:width .35s ease}.shade-0{background:#2ebba5}.shade-1{background:#43a9c3}.shade-2{background:#7395db}.shade-3{background:#d3a663}.shade-4{background:#ab86cb}
.thermo-total{display:flex;align-items:baseline;gap:9px;margin:13px 0 18px}.thermo-total strong{font:800 34px Manrope}.thermo-total span{color:#708694;font-size:12px}.thermo-bar{width:100%;height:13px;background:#e4e9ed;border-radius:30px;display:flex;overflow:hidden;margin:7px 0 15px}.thermo-bar span{height:100%}.thermo-bar .recent,.legend-dot.recent{background:#22b396}.thermo-bar .attention,.legend-dot.attention{background:#e8ac5a}.thermo-bar .idle,.legend-dot.idle{background:#d86d69}.thermo-bar .unknown,.legend-dot.unknown{background:#b7c5cd}.thermo-legend{display:grid;grid-template-columns:1fr 1fr;gap:7px 13px}.legend-line{background:transparent;border:0;display:flex;align-items:center;gap:6px;text-align:left;padding:4px 0;color:#607987;font-size:11px}.legend-line:hover{color:#137d72}.legend-line b{margin-left:auto;color:#203b48}.legend-dot{width:8px;height:8px;border-radius:50%;flex:none}
.company-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:20px 0 16px}.company-controls input{padding:10px 12px;min-width:190px;flex:1;max-width:300px;border:1px solid #dce6e9;border-radius:9px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{background:#f4f7f8;border:1px solid #e5eced;border-radius:30px;padding:7px 10px;color:#627a87;font-size:11px;font-weight:700}.chip.active,.chip:hover{background:#dff4ee;border-color:#96d6c8;color:#08745f}.company-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.company-card{border:1px solid #e2ecee;border-radius:11px;background:#fff;padding:15px;text-align:left;min-width:0;min-height:127px;display:flex;flex-direction:column;align-items:stretch;gap:4px;transition:transform .2s,box-shadow .2s,border-color .2s}.company-card:hover{border-color:#76ccb9;transform:translateY(-2px);box-shadow:0 9px 18px #1c594217}.company-card-top{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:5px}.company-card .avatar{width:30px;height:30px;border-radius:8px;background:#e9f7f2;color:#168e78;display:grid;place-items:center;font-weight:800}.company-card.ociosas .avatar{background:#ffebec;color:#c35863}.company-card.atencao .avatar{background:#fff2dc;color:#af7928}.company-card.sem .avatar{background:#e9eff2;color:#577482}.company-card .badge{font-size:10px;max-width:75%;text-align:right}.company-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.company-card small{color:#8a9da7;font-size:10px}.company-card-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px;border-top:1px solid #edf1f2;margin-top:auto;padding-top:9px;font-size:10px;color:#66808d;font-weight:700}.center{text-align:center;padding-top:14px}.wide{grid-column:1/-1}
.rank-item{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eef2f4}.rank-item:last-child{border:0}.rank-marker{height:33px;width:33px;display:grid;place-items:center;border-radius:9px;flex:none}.rank-marker.hot{background:#fff0e4;color:#d97836}.rank-marker.cold{background:#eaf2fc;color:#5990c1}.hot-icon{color:#e17d35}.cold-icon{color:#638fbe}.rank-content{min-width:0;flex:1}.rank-content strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.rank-content small{color:#8395a0;display:block;font-size:10px;margin-top:3px}.rank-actions{display:flex;gap:3px;flex:none}.rank-actions button{background:#f3f8f8;border:0;border-radius:6px;color:#417e77;padding:7px;font-size:11px}.rank-actions button:hover{background:#d9f0e9}.method-note{border-radius:9px;background:#edf5f6;padding:12px 15px;color:#587683;font-size:11px;line-height:1.6;margin:0 0 20px}.method-note i{color:#178d81;margin-right:5px}
.filters.compact{margin:0 0 11px;gap:6px}.filters.compact select{font-size:11px;min-width:120px;padding:7px 8px}.activity-item{display:flex;gap:9px;padding:10px 0;border-bottom:1px solid #edf1f3}.activity-item:last-child{border-bottom:0}.activity-icon{height:30px;width:30px;border-radius:9px;background:#e6f6f2;color:#168e7c;display:grid;place-items:center;flex:none}.activity-item strong{font-size:12px}.activity-item small{display:block;font-size:10px;color:#879aa4;margin-top:3px}.activity-item p{font-size:11px;margin-top:6px;color:#5e7683;white-space:pre-wrap}.agenda-label{color:#7e929c;font-size:10px;font-weight:800;letter-spacing:.09em;margin:14px 0 6px}.agenda-item{background:transparent;border:0;border-bottom:1px solid #edf1f3;width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0}.agenda-item:hover{background:#f6fbfa}.agenda-item b{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}.agenda-item span:first-child{min-width:0}.agenda-item small{display:block;color:#8699a2;margin-top:3px}.agenda-empty{padding:8px 0;font-size:11px}.focus-stat{background:#e9f7f3;padding:12px;border-radius:9px;color:#187b6f;font-weight:800}.form #focusBody h3{font:800 13px Manrope;margin:20px 0 6px}.form #focusBody .activity-item{display:block}.form #focusBody .activity-item p{margin:3px 0}
@media(max-width:1180px){.company-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.dashboard-intro{padding:18px;align-items:flex-start}.dashboard-intro h2{font-size:18px}.dashboard-intro .btn{font-size:11px;padding:7px}.company-grid{grid-template-columns:1fr}.company-card{min-height:108px}.thermo-legend{grid-template-columns:1fr 1fr}.stage-label{width:81px}.method-note{font-size:10px}}

/* Pipeline de conexões: resultados laterais sem apagar a etapa alcançada. */
#tab-pipeline .board{scrollbar-color:#abc9c8 #eef4f4;scrollbar-width:thin;padding-bottom:14px}
#tab-pipeline .lane{min-width:220px;background:#edf4f5;max-height:510px}
#tab-pipeline .lane:nth-child(2){background:#eaf5f4}
#tab-pipeline .lane:nth-child(3){background:#eef3fa}
#tab-pipeline .lane:nth-child(4){background:#f3f2fb}
#tab-pipeline .lane:nth-child(5){background:#fbf3eb}
#tab-pipeline .lane:nth-child(6){background:#e9f6ed}
#tab-pipeline .lane-head{min-height:37px;gap:5px;align-items:flex-start;font-size:12px}
#tab-pipeline .lane-head span{white-space:nowrap}
#tab-pipeline .ticket{cursor:grab}
#tab-pipeline .ticket:active{cursor:grabbing}
#tab-pipeline .ticket .next-task{border-top:1px solid #eaf0f1;padding-top:8px;margin-top:8px;color:#55727b;font-size:10px;line-height:1.4;max-height:44px;overflow:hidden}
#tab-pipeline .ticket .next-task i{color:#0f987d}
.outcomes{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 4px}
.outcome-panel{background:#fafcfd}
.outcome-panel .panel-head{margin-bottom:8px}
.outcome-panel small{color:#7d929b;font-size:11px}
.outcome-drop{min-height:74px;display:flex;gap:10px;overflow-x:auto;border:1px dashed #c9d7db;border-radius:9px;padding:9px;align-items:flex-start;scrollbar-width:thin}
.outcome-drop.dragover{background:#e0f1ef;border-color:#22a893}
.outcome-drop .ticket{min-width:215px;width:215px;flex:none;margin:0}
.outcome-drop .empty-lane{width:100%;padding:18px}
.task-box{background:#f2f8f7;padding:12px 14px;border:1px solid #dceae7;border-radius:10px;margin:15px 0}
.task-box h3{font:800 13px Manrope;margin:0 0 9px;color:#147667}
.task-box label{margin:8px 0}
#acaoDialog{width:min(660px,calc(100% - 30px))}
.stage-label{width:135px;line-height:1.2}
@media(max-width:720px){.outcomes{grid-template-columns:1fr}.stage-label{width:113px}.outcome-panel{margin-bottom:0}#tab-pipeline .lane{width:220px;flex:none}}
.shade-5{background:#28a669}
.board-scroll{display:flex;justify-content:space-between;align-items:center;color:#6d8490;font-size:11px;font-weight:700;margin:5px 0 8px}.board-scroll i{color:#148b7a;margin-right:5px}.board-scroll button{background:#fff;border:1px solid #dce9e9;color:#147b70;border-radius:7px;padding:5px 12px;margin-left:5px}.board-scroll button:hover{background:#e7f6f1}

/* Contratos, financeiro, tarefas e fichas de conversa. */
button.metric{text-align:left;width:100%;color:inherit;transition:border-color .16s,transform .16s}
button.metric:hover,button.metric:focus-visible{border-color:#46baa8;transform:translateY(-2px)}
.metric .title,.metric .value,.metric .hint{display:block}
.metric .ico{float:right}
.inline-link{display:inline-block;text-align:left;background:none;border:0;padding:0;color:#127f74;font-weight:800;font-size:12px;line-height:1.45;vertical-align:middle}
.inline-link:hover,.inline-link:focus-visible{text-decoration:underline;color:#0a665d}
.inline-link small{display:block;font-weight:500;color:#81949b}
.import-panel{border-color:#bde4d8;background:#fbfefd}
.import-panel .filters{align-items:center;flex-wrap:wrap}
.import-panel input[type=file]{max-width:360px;padding:7px}
.import-panel details{margin:10px 0;padding:9px 12px;background:#eff8f5;border-radius:8px;color:#24434b}
.import-panel details summary{cursor:pointer;font-weight:700}
.import-panel li{margin:4px 0}
#tab-contratos .table-wrap,#tab-tarefas .table-wrap{max-height:72vh;overflow:auto}
#tab-contratos table{min-width:950px}
#tab-tarefas table{min-width:1030px}
.form label[hidden],.form .payment-recurring[hidden],.form .payment-percentage[hidden]{display:none!important}
.year-label{font-size:12px;font-weight:800;color:#627d87}
.year-label select{padding:8px;border:1px solid #dce7e9;border-radius:7px;background:#fff;margin-left:6px}
.finance-metrics{margin:15px 0 18px}
.finance-metrics .metric{min-width:0}
.finance-metrics .metric .value{font-size:22px;overflow-wrap:anywhere}
.finance-chart{display:grid;grid-template-columns:repeat(12,minmax(65px,1fr));gap:7px;overflow-x:auto;padding:14px 0 4px}
.finance-month{border:1px solid #e1eaed;background:#f8fbfb;border-radius:9px;padding:8px 5px;color:#355362;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;min-height:165px}
.finance-month:hover,.finance-month.selected{background:#e9f7f3;border-color:#29a993}
.finance-month .month-total{font-size:10px;font-weight:800;white-space:nowrap}
.finance-month .month-bars{height:114px;display:flex;align-items:flex-end;justify-content:center;gap:4px}
.finance-month .month-bars i{display:block;width:13px;min-height:0;border-radius:4px 4px 0 0;transition:height .25s}
.finance-month .forecast-bar{background:#13a18c}
.finance-month .received-bar{background:#6692ca}
.finance-month strong{font-size:11px}
#financeMonthRows .badge{white-space:nowrap}
.account-row{display:flex;justify-content:space-between;border-bottom:1px solid #e9eff1;padding:12px 0;gap:12px}
.account-row span{color:#7b909a}
.inline-form{padding:8px 0 0}
.inline-form button{margin-top:8px}
.wide-dialog{width:min(750px,calc(100% - 30px))}
.conversation-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f9f8;border:1px solid #e1eeee;border-radius:9px;padding:15px;line-height:1.6;max-height:42vh;overflow:auto;color:#294d59}
.conversation-item{display:block;text-align:left;width:100%;border:1px solid #e2eaec;border-radius:8px;background:#fff;margin:8px 0;padding:12px;color:#294854}
.conversation-item:hover{border-color:#57bda9;background:#f3fbf8}
.conversation-item strong,.conversation-item small,.conversation-item span{display:block}
.conversation-item small{color:#81969f;margin:3px 0 7px}
.conversation-item span{white-space:pre-wrap;font-size:12px;color:#54717c}
#demandaBody h3{margin-top:20px}
#demandaBody .focus-stat{margin:14px 0}
@media(max-width:1080px){.finance-metrics{grid-template-columns:repeat(2,1fr)}.finance-chart{grid-template-columns:repeat(12,70px)}}
@media(max-width:720px){.finance-metrics .metric .value{font-size:18px}.finance-chart{grid-template-columns:repeat(12,65px)}.sidebar nav{padding-bottom:5px}.year-label{white-space:nowrap}}

/* Navegação de retorno sem perder filtros e formulários já preenchidos. */
.tab-back{margin:0 0 13px;padding:7px 11px;color:#117d72;font-size:12px}
.tab-back:hover{background:#e8f6f2}
.tab-back[hidden]{display:none}

.form .check-option{display:flex;align-items:center;gap:4px;background:#f2f8f7;border:1px solid #d8ede8;border-radius:8px;padding:9px 12px}
.form .check-option input[type=checkbox]{display:inline-block;width:auto;margin:0 7px 0 0;accent-color:#149c89}

/* Resumo de caixa por competência: bruto em aberto não é diferença tributária. */
.finance-month-metrics{margin:18px 0 24px;grid-template-columns:repeat(3,minmax(0,1fr))}
.finance-month-metrics .metric{border-top:3px solid #159d8a}
.finance-month-metrics .metric:nth-child(2){border-top-color:#4a83bd}
.finance-month-metrics .metric:nth-child(3){border-top-color:#df9461}
#tab-financeiro h3{margin:24px 0 13px;color:#193844}
#financeOutstandingRows tr:hover{background:#fafdfc}
@media(max-width:900px){.finance-month-metrics{grid-template-columns:1fr}}

/* Tarefas: score baseado somente em registros, nunca em passos derivados. */
.task-score{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 17px;border:1px solid #cce9e1;border-radius:11px;background:#ecf8f4;color:#1a584f;margin:-4px 0 20px}
.task-score strong,.task-score small{display:block}.task-score strong{font:800 12px Manrope}.task-score small{font-size:11px;margin-top:3px;color:#577a73}
.score-indicator{display:flex;gap:12px;align-items:center;min-width:185px}.score-indicator b{font:800 17px Manrope;min-width:45px;text-align:right}.score-track{display:block;height:9px;min-width:100px;flex:1;border-radius:9px;background:#cee6dc;overflow:hidden}.score-track span{display:block;height:100%;background:#159e8c;border-radius:9px;transition:width .2s ease}
.danger-action{color:#bd5360!important}.danger-action:hover{background:#ffedf0!important}
.form-row[hidden]{display:none!important}
@media(max-width:720px){.task-score{align-items:flex-start;flex-direction:column}.score-indicator{width:100%}}

/* Vínculo explícito entre conversas, tópicos e cartões; colunas continuam manuais. */
.ticket-heading{display:block;width:100%;padding:0;text-align:left;border:0;background:transparent;color:#1e3b47;font-weight:800;font-size:12px;line-height:1.4}
.ticket-heading:hover,.ticket-heading:focus-visible{color:#087c6d;text-decoration:underline}
.ticket-update{display:block;width:100%;margin-top:9px;padding:8px;border:1px solid #d9eee9;border-radius:7px;background:#f0faf7;text-align:left;color:#244b54}
.ticket-update:hover{border-color:#7ac6b6;background:#e3f6f0}
.ticket-update strong,.ticket-update span{display:block;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.ticket-update span{color:#5c7882;margin-top:3px}
#unlinkedContacts{max-height:360px;overflow:auto;margin-top:12px}
#unlinkedContacts .item span{min-width:0;overflow-wrap:anywhere}

/* Arquivos contratuais e biblioteca privada de documentos AVPF. */
#tab-documentos table{min-width:760px}
#tab-contratos .document-actions,.document-actions{align-items:center;white-space:nowrap}
.document-list{max-height:33vh;overflow:auto;margin:16px 0}
.document-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #e9f0f0}
.document-row strong,.document-row small{display:block;overflow-wrap:anywhere}
.document-row strong{font-size:12px;color:#244752}
.document-row small{font-size:11px;color:#738a94;margin-top:3px}
.document-row>div:first-child{min-width:0}
.document-upload{background:#f4faf8;border:1px solid #d8ece6;border-radius:11px;padding:14px}
.document-upload label{display:block;font-size:12px;font-weight:700;margin:9px 0}
.document-upload input,.document-upload select,.document-upload textarea{display:block;width:100%;border:1px solid #dce8e8;border-radius:8px;padding:9px;background:#fff;margin-top:5px}
.document-upload button{margin-top:8px}
.document-upload input[type=file]{font-size:12px}
@media(max-width:720px){.document-row{align-items:flex-start;flex-direction:column}.document-actions{flex-wrap:wrap}}

/* Dashboard executivo: indicadores reais, quatro lentes de leitura. */
.executive-page{--ex-ink:#143b48;--ex-teal:#15ab99;--ex-blue:#597dbf;--ex-purple:#8262ba;--ex-amber:#d9913a}
.exec-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:23px;border-radius:19px;padding:30px 32px;background:radial-gradient(circle at 91% -25%,#36938a8a,transparent 37%),linear-gradient(115deg,#103542,#174d52 57%,#0b716b);color:#fff;box-shadow:0 15px 36px #123f4930;margin-bottom:16px}
.exec-hero:after{content:"";position:absolute;width:230px;height:230px;border:1px solid #ffffff20;border-radius:50%;right:-72px;bottom:-150px;pointer-events:none}
.exec-hero-title,.exec-period,.exec-hero-stats{position:relative;z-index:1}
.exec-overline{font:800 10px Manrope;letter-spacing:.17em;color:#8ce3d6}.exec-overline i{margin-right:8px}
.exec-hero h2{font:800 clamp(24px,2.2vw,35px)/1.14 Manrope;margin:12px 0}.exec-hero h2 em{font-style:normal;color:#a6e8d9}.exec-hero p{color:#c4dddf;font-size:12px;line-height:1.6;max-width:490px}
.exec-period{display:flex;gap:10px;align-items:flex-start}.exec-period label{font-size:11px;font-weight:800;color:#c0e9e5}.exec-period select{display:block;margin-top:5px;background:#ffffff22;color:#fff;border:1px solid #ffffff5c;border-radius:8px;padding:9px 10px;min-width:107px}.exec-period select option{color:#153943;background:#fff}
.exec-hero-stats{grid-column:1/-1;display:grid;grid-template-columns:1fr minmax(220px,40%);align-items:end;gap:24px;margin-top:3px;border-top:1px solid #ffffff30;padding-top:20px}
.exec-hero-primary>span,.exec-hero-primary small{display:block;color:#bee7e2;font-size:11px;font-weight:700}.exec-hero-primary>span{letter-spacing:.12em}.exec-hero-primary strong{display:block;font:800 clamp(30px,3.2vw,46px) Manrope;letter-spacing:-.04em;margin:7px 0;overflow-wrap:anywhere}
.exec-hero-summaries{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.exec-hero-summaries>div{background:#ffffff16;border:1px solid #ffffff2d;border-radius:10px;padding:13px}.exec-hero-summaries span,.exec-hero-summaries b{display:block}.exec-hero-summaries span{color:#c7e7e4;font-size:10px;line-height:1.3;min-height:27px}.exec-hero-summaries b{font:800 15px Manrope;white-space:nowrap;margin-top:5px}
.exec-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.exec-kpi{min-width:0;text-align:left;display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #e3ebef;border-top:4px solid var(--accent);border-radius:13px;padding:17px 17px 13px;color:var(--ex-ink);box-shadow:0 2px 12px #20384008}.exec-kpi.teal{--accent:var(--ex-teal)}.exec-kpi.purple{--accent:var(--ex-purple)}.exec-kpi.blue{--accent:var(--ex-blue)}.exec-kpi.amber{--accent:var(--ex-amber)}.exec-kpi:hover,.exec-kpi:focus-visible{border-color:var(--accent);transform:translateY(-2px)}.exec-kpi-head{display:flex;justify-content:space-between;gap:8px;align-items:center;font-weight:800;font-size:11px;color:#627986}.exec-kpi-head i{color:var(--accent);font-size:17px}.exec-kpi strong{font:800 clamp(19px,2vw,26px) Manrope;overflow-wrap:anywhere}.exec-kpi small{color:#81949c;font-size:10px;min-height:29px}.exec-kpi-arrow{font-size:10px;color:var(--accent);font-weight:800}
.exec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.exec-grid .panel{margin-bottom:0}.exec-panel{padding:23px;min-height:330px}.exec-panel .panel-head{align-items:flex-start}.exec-panel .panel-head p{font-size:11px;line-height:1.5}.exec-panel .link{flex:none;font-size:11px}.exec-kicker{display:inline-block;font:800 10px Manrope;letter-spacing:.13em;margin-bottom:9px}.exec-kicker.teal{color:#0b9885}.exec-kicker.purple{color:#8063b4}.exec-kicker.blue{color:#597dbf}.exec-kicker.amber{color:#c57c27}
.exec-legend{display:flex;gap:17px;flex-wrap:wrap;color:#647e8b;font-size:10px;font-weight:700;margin-bottom:10px}.exec-dot{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:5px}.exec-dot.forecast{background:#14a795}.exec-dot.received{background:#648ec9}
.exec-finance-chart,.exec-interaction-chart{display:grid;grid-template-columns:repeat(12,minmax(28px,1fr));align-items:end;gap:5px;min-height:160px}.exec-month,.exec-touch{display:flex;flex-direction:column;align-items:center;justify-content:end;gap:7px;height:158px;min-width:0;border:1px solid transparent;border-radius:8px;background:transparent;color:#79909b;font-size:10px;font-weight:800;padding:5px 2px}.exec-month:hover,.exec-touch:hover,.exec-month.selected,.exec-touch.selected{background:#edf8f5;border-color:#cbe9e1;color:#176f67}.exec-month-bars{height:114px;width:100%;display:flex;align-items:end;justify-content:center;gap:2px}.exec-month-bars i{display:block;width:min(12px,40%);border-radius:5px 5px 2px 2px}.exec-month-bars .forecast{background:#18ad9b}.exec-month-bars .received{background:#6b8fc8}
.exec-touch{height:120px;gap:4px}.exec-touch i{display:block;width:52%;max-width:24px;background:linear-gradient(#b494dd,#7056ae);border-radius:5px 5px 2px 2px;min-height:0}.exec-touch span{font-size:10px;color:#8465b8;min-height:14px}.exec-touch small{font-size:10px}
.exec-channels{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0 12px}.exec-channels span{background:#f2ecfa;border-radius:30px;color:#785da9;padding:6px 10px;font-size:10px;font-weight:700}.exec-channels b{margin-left:3px}
.exec-list{border-top:1px solid #edf1f3;margin-top:12px;padding-top:12px}.exec-list h3{font:800 11px Manrope;color:#496572;margin:0 0 6px}.exec-list-item{width:100%;padding:9px 0;text-align:left;border:0;border-bottom:1px solid #edf1f3;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#234657}.exec-list-item:last-child{border-bottom:0}.exec-list-item:hover,.exec-list-item:focus-visible{color:#128f80;background:#f8fcfb}.exec-list-item strong,.exec-list-item small{display:block}.exec-list-item strong{font-size:11px}.exec-list-item small{color:#82949e;font-size:10px;margin-top:3px}.exec-list-item i{font-size:10px;color:#8ba4aa}.exec-empty{color:#8295a1;font-size:11px;margin:10px 0}
.exec-task-score{display:flex;gap:17px;align-items:center;min-height:116px;background:#edf3fc;border:1px solid #e2ebf8;border-radius:12px;padding:15px;color:#254c7b}.exec-task-score strong{font:800 13px Manrope}.exec-task-score p,.exec-task-score small{display:block;color:#607a98;font-size:11px;line-height:1.4;margin:4px 0}.exec-ring{flex:none;width:76px;height:76px;border-radius:50%;background:conic-gradient(#5d87c6 var(--progress),#cfdef0 0);display:grid;place-items:center}.exec-ring span{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#edf3fc;font:800 18px Manrope}
.exec-goal-count{display:flex;gap:8px;flex-wrap:wrap}.exec-goal-count span{border-radius:8px;background:#fff4df;color:#98621e;padding:8px 10px;font-weight:800;font-size:10px}.exec-goal-count span:first-child{background:#e1f5ee;color:#178c71}
.executive-page .method-note{margin:17px 0 0}
@media(max-width:1120px){.exec-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.exec-hero-summaries{grid-template-columns:1fr}.exec-hero-summaries span{min-height:0}.exec-grid{grid-template-columns:1fr 1fr}}
@media(max-width:920px){.exec-grid{grid-template-columns:1fr}.exec-hero-stats{grid-template-columns:1fr}.exec-hero-summaries{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.exec-hero{grid-template-columns:1fr;padding:23px 18px}.exec-period{flex-wrap:wrap}.exec-hero-stats{gap:15px}.exec-hero-summaries{grid-template-columns:1fr}.exec-kpis{gap:9px}.exec-kpi{padding:13px}.exec-kpi strong{font-size:19px}.exec-panel{padding:15px}.exec-finance-chart,.exec-interaction-chart{overflow-x:auto;grid-template-columns:repeat(12,36px)}.exec-panel .panel-head{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.exec-kpi{transition:none}}
