@font-face{font-family:Space;src:url('/fonts/SpaceGrotesk-Regular.otf')}*{box-sizing:border-box}body{margin:0;background:#f7f9fc;color:#141d36;font-family:Space,Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #369cff;outline-offset:3px}/* Exact desktop dimensions from portal-servicesupport/views/dashboard.html:
   w-64 p-6; logo w-40 mb-10; action text-base w-8 mr-2;
   submenu text-sm mt-2 space-y-2 pl-10; collapsed w-20. */
aside{position:fixed;inset:0 auto 0 0;width:256px;background:#02092b url('/images/sidebar.png') center/cover no-repeat;color:#fff;display:flex;flex-direction:column;padding:24px;z-index:5;transition:width .3s ease-in-out}
.brand{display:block;align-self:center;padding:0;margin-bottom:40px}
.brand img{display:block;width:160px;height:auto}
.sidebar-actions{display:flex;flex-direction:column;gap:16px}
.sidebar-actions button,.administration-toggle{display:flex;align-items:center;gap:8px;background:none;border:0;border-radius:0;color:#fff;padding:0;text-align:left;font-size:16px;line-height:24px;width:100%}
.sidebar-actions .sidebar-icon{width:32px;height:32px;flex-shrink:0}
.sidebar-actions button:hover,.administration-toggle:hover{color:#38bdf8}
.sidebar-administration{margin-top:auto;padding-top:40px;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#24507b transparent}
.administration-toggle{margin-bottom:0}
.administration-toggle>svg:first-child{width:32px;height:32px;flex-shrink:0;padding:4px}
.administration-toggle .chevron{width:16px;height:16px;margin-left:auto;flex-shrink:0}
.administration-toggle[aria-expanded="false"] .chevron{transform:rotate(180deg)}
nav{display:flex;flex-direction:column;gap:8px;padding-left:40px;margin-top:8px}
nav[hidden]{display:none}
nav button{display:block;background:none;border:0;color:#fff;text-align:left;padding:0;font-size:14px;line-height:20px;border-radius:0}
nav button:hover,nav button.active{color:#38bdf8}
.sidebar-version{display:block;color:#9ca3af;font-size:9px;line-height:24px;padding:0 8px;margin-top:0;white-space:nowrap}
.sidebar-toggle{position:absolute;right:-12px;top:50%;transform:translateY(-50%);width:28px;height:40px;display:grid;place-items:center;background:#0ea5e9;color:white;border:0;border-radius:0 8px 8px 0;padding:0;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}
.sidebar-toggle:hover{background:#0284c7}
.sidebar-toggle svg{width:9px;height:14px}
.app{margin-left:256px;transition:margin-left .3s ease-in-out}
body.sidebar-collapsed aside{width:80px;padding:24px}
body.sidebar-collapsed .app{margin-left:80px}
body.sidebar-collapsed .brand{width:40px;height:auto;overflow:visible;margin-bottom:40px;align-self:center}
body.sidebar-collapsed .brand img{width:40px;height:auto}
body.sidebar-collapsed .nav-text,body.sidebar-collapsed .sidebar-version,body.sidebar-collapsed .administration-toggle .chevron{display:none}
body.sidebar-collapsed .sidebar-actions button,body.sidebar-collapsed .administration-toggle{justify-content:center;gap:0}
body.sidebar-collapsed #administration-menu{display:none}
body.sidebar-collapsed .sidebar-toggle svg{transform:rotate(180deg)}
header{height:80px;background:white;border-bottom:1px solid #e6ebf1;padding:0 38px;display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:12px;color:#8893a5}.breadcrumb span{margin:0 14px;color:#cad1dc}.breadcrumb strong{color:#38465b;font-weight:400}.header-right{display:flex;align-items:center;gap:12px}.access{font-size:11px;color:#718098;margin-right:16px}.access i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#24b996;margin-right:6px}.avatar{border:1px solid #d3e9fc;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;background:#eaf5ff;color:#258de0;font-size:11px}.team{font-size:12px}.team small{display:block;font-size:10px;color:#8b97aa;margin-top:4px}main{padding:36px 38px 20px;max-width:1900px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:20px}.eyebrow{color:#2996ef;font-size:10px;letter-spacing:1.8px;margin-bottom:8px}h1{font-size:30px;letter-spacing:-1px;font-weight:500;margin:0 0 9px}p{color:#8590a4;line-height:1.6;margin:0}button.primary{background:#2498f3;border:1px solid #2498f3;color:#fff;padding:11px 17px;border-radius:7px;box-shadow:0 3px 6px #2597f515;font-size:12px;white-space:nowrap}button.primary:hover{background:#1587df}.secondary{background:white;border:1px solid #e0e6ee;border-radius:6px;padding:10px 14px;color:#52617a;font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:28px}.stat{background:white;border:1px solid #e6ebf2;border-radius:10px;padding:21px 23px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#7a879c;font-size:11px}.stat-icon{width:32px;height:32px;display:grid;place-items:center;background:#edf6ff;color:#2895ed;font-size:20px;border-radius:8px}.stat strong{display:block;font-size:27px;letter-spacing:-.8px;font-weight:500;margin:14px 0 8px}.stat small{color:#8e99aa;font-size:10px}.stat small em{font-style:normal;color:#259c7b}.panel{background:white;border:1px solid #e6ebf2;border-radius:10px;padding:23px;margin-bottom:24px}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:12px}.panel-heading h2{font-size:16px;font-weight:500;margin:0 0 6px}.panel-heading p{font-size:11px}.text-button{background:none;border:0;color:#2494e9;font-size:11px;padding:6px}.stage-chart{display:grid;grid-template-columns:repeat(7,1fr);gap:14px;align-items:end;min-height:170px}.chart-stage{min-width:0}.bar-track{height:100px;display:flex;align-items:end;margin-bottom:12px}.bar{width:100%;min-height:5px;background:#d8edff;border-radius:5px 5px 0 0;position:relative}.bar span{position:absolute;top:-24px;font-size:12px;color:#475a74;left:0}.chart-stage:nth-child(2) .bar{background:#b7ddfc}.chart-stage:nth-child(3) .bar{background:#8cc9fa}.chart-stage:nth-child(4) .bar{background:#68b9f9}.chart-stage:nth-child(5) .bar{background:#439ff2}.chart-stage:nth-child(6) .bar{background:#2c87df}.chart-stage:nth-child(7) .bar{background:#1767c0}.chart-stage label{font-size:10px;color:#6d7c92;display:block;white-space:nowrap}.chart-stage small{display:block;color:#a1aaba;font-size:9px;margin-top:5px}.dashboard-bottom{display:grid;grid-template-columns:1.35fr 1fr;gap:24px}.dashboard-bottom .panel{min-width:0}.empty{padding:40px 18px;text-align:center;color:#8d9bb0}.empty .empty-icon{font-size:28px;color:#b4cee6;margin-bottom:12px}.empty strong{display:block;font-size:13px;color:#596d87;font-weight:400;margin-bottom:7px}.empty p{font-size:11px;max-width:280px;margin:auto}.empty button{margin-top:16px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.search{position:relative;max-width:340px;width:100%}.search input{background:white;border:1px solid #e0e7ef;border-radius:7px;padding:11px 14px;width:100%;font-size:12px;color:#33445d}.filters{display:flex;gap:10px;align-items:center;color:#8c97a9;font-size:11px}.filters select{border:1px solid #e0e7ef;background:white;color:#53647c;border-radius:6px;padding:10px;font-size:11px}.table-wrap{overflow:auto;border:1px solid #e6ebf2;border-radius:10px;background:white}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{padding:15px 18px;color:#8491a4;font-size:10px;font-weight:400;background:#fbfcfe;border-bottom:1px solid #e9edf3}td{padding:17px 18px;border-bottom:1px solid #eef1f6;font-size:12px;color:#5d6c82}td:first-child{color:#263953}tbody tr:last-child td{border-bottom:0}.row-edit{color:#298cdb;border:0;background:#eff7ff;border-radius:5px;padding:6px 10px;font-size:10px}.badge{display:inline-block;padding:4px 8px;font-size:10px;border-radius:5px;background:#edf6ff;color:#318dd7}.badge.green{background:#eaf8f1;color:#239570}.badge.red{background:#fff0ef;color:#d2655b}.board{display:flex;gap:13px;overflow-x:auto;min-height:460px;padding-bottom:18px}.column{flex:1 0 225px;max-width:310px;background:#edf1f7;border-radius:9px;padding:13px;border-top:3px solid #82c5fc}.column:nth-child(2){border-color:#64b9fa}.column:nth-child(3){border-color:#489ff0}.column:nth-child(4){border-color:#368de1}.column:nth-child(5){border-color:#7379da}.column:nth-child(6){border-color:#b086d9}.column:nth-child(7){border-color:#36b49a}.column.drag-over{background:#dbeeff;outline:2px dashed #2699ef}.column-title{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px}.column-title b{font-size:10px;border-radius:4px;background:white;color:#7d8da4;padding:2px 6px}.column-total{font-size:11px;color:#8291a7;margin-bottom:20px}.deal{background:white;border:1px solid #e2e9f2;border-radius:7px;padding:15px;margin-bottom:11px;cursor:grab;box-shadow:0 2px 3px #18335304}.deal:hover{border-color:#95c9f2}.deal h3{font-size:12px;font-weight:500;margin:0 0 8px;overflow-wrap:anywhere}.deal p{font-size:10px;margin-bottom:14px}.deal strong{font-size:13px;font-weight:500}.deal-bottom{display:flex;justify-content:space-between;border-top:1px solid #f0f3f7;margin-top:14px;padding-top:10px;color:#8a98ac;font-size:9px}.deal button{background:none;border:0;padding:0;text-align:left;color:inherit;width:100%}.column-add{display:block;border:1px dashed #ccd8e6;border-radius:6px;background:transparent;padding:9px;color:#8a9bb2;width:100%;font-size:11px}.activity-item{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid #eef2f7}.activity-item:last-child{border-bottom:0}.activity-item .activity-body{flex:1;min-width:0}.activity-item h3{font-size:12px;font-weight:400;margin:0 0 5px}.activity-item small{font-size:10px;color:#9aa5b5}.check{width:20px;height:20px;border:1px solid #d9e2ec;border-radius:50%;background:white;color:#25a984;flex-shrink:0}.overdue{color:#d57c54!important}footer{color:#9ba7b8;font-size:10px;display:flex;justify-content:space-between;padding-top:15px}footer span{color:#abb5c3}dialog{width:620px;max-width:calc(100% - 30px);border:1px solid #e4eaf1;border-radius:13px;padding:28px;max-height:90vh;color:#1c2b44;box-shadow:0 30px 100px #071a3340}dialog::backdrop{background:#07152b70;backdrop-filter:blur(3px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.modal-heading h2{font-size:23px;font-weight:400;margin:0}.icon-button{background:none;border:0;font-size:28px;color:#9aa8ba}#form-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}label.field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#6b7b92}.field.wide{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;border:1px solid #dce4ef;border-radius:6px;padding:11px;background:#fff;color:#263852;font-size:12px;outline-color:#2899f2}.field textarea{resize:vertical;min-height:85px}.modal-actions{display:flex;gap:10px;border-top:1px solid #edf0f5;padding-top:22px;margin-top:24px}.modal-actions span{flex:1}.danger{color:#ca6d6d;border:0;background:none;font-size:11px}#form-error{color:#cf6464;font-size:12px;margin-top:10px}#error{background:#fff5e9;color:#a66c2d;padding:14px 18px;border:1px solid #f4dfc0;border-radius:7px;margin-bottom:23px;font-size:12px}#error button{margin-left:10px;color:inherit;background:none;border:0;text-decoration:underline}#toast{position:fixed;bottom:28px;right:28px;background:#102b42;color:#fff;border-radius:7px;padding:14px 22px;font-size:12px;display:none;z-index:10}.muted{color:#98a5b5}.summary-chips{display:flex;gap:10px;margin-bottom:24px}.summary-chips span{background:white;border:1px solid #e3eaf2;padding:10px 14px;border-radius:6px;font-size:11px;color:#7e8ea4}.summary-chips strong{color:#253c57;margin-left:8px}@media(min-width:1600px){.column{flex-basis:210px}}@media(max-width:1100px){main{padding:28px 24px}header{padding:0 24px}.stats{gap:12px}.stat{padding:18px 15px}.stat strong{font-size:23px}.dashboard-bottom{grid-template-columns:1fr}.chart-stage label{white-space:normal}}@media(max-width:760px){aside,body.sidebar-collapsed aside{position:relative;width:100%;padding:20px;background:#020b24 url('/images/sidebar.png') center bottom/cover}.brand,body.sidebar-collapsed .brand{width:auto;height:auto;align-self:flex-start;margin:0 0 24px;overflow:visible}.brand img,body.sidebar-collapsed .brand img{height:55px;width:168px}.sidebar-actions{gap:12px}.sidebar-actions button{font-size:16px}.sidebar-administration{margin-top:24px;padding-top:0;overflow:visible}.administration-toggle{font-size:18px}.sidebar-version{margin-top:18px}.sidebar-toggle{display:none}body.sidebar-collapsed .nav-text,body.sidebar-collapsed .sidebar-version,body.sidebar-collapsed .administration-toggle .chevron{display:initial}body.sidebar-collapsed .sidebar-actions button,body.sidebar-collapsed .administration-toggle{justify-content:flex-start}nav{padding-left:46px;flex-direction:column;overflow:visible;gap:0}nav button{font-size:15px;padding:7px 0;white-space:normal}body.sidebar-collapsed #administration-menu{display:flex}body.sidebar-collapsed #administration-menu[hidden]{display:none}.app,body.sidebar-collapsed .app{margin:0}header{height:60px;padding:0 20px}.team,.access{display:none}main{padding:25px 18px}.page-heading{align-items:flex-start;gap:12px}.page-heading .primary{font-size:10px;padding:10px}h1{font-size:25px}.page-heading p{font-size:11px}.eyebrow{font-size:9px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat strong{font-size:22px}.stat-top{font-size:10px}.stat-icon{width:26px;height:26px}.panel{padding:18px}.stage-chart{gap:7px}.chart-stage label{font-size:8px}.chart-stage small{font-size:8px}.toolbar{align-items:flex-start;flex-direction:column}.filters{width:100%;flex-wrap:wrap}.search{max-width:none}footer span{display:none}.summary-chips{flex-wrap:wrap}#form-fields{grid-template-columns:1fr}.field.wide{grid-column:auto}.modal-actions{gap:7px}dialog{padding:22px}.column{flex-basis:250px}}

/* Same text-base / w-8 h-8 / mr-2 sizing as Service Support. */
.logout-button{display:flex;align-items:center;gap:8px;width:100%;margin-top:16px;padding:0;color:#fff;text-decoration:none;font-size:16px;line-height:24px}
.logout-button img{width:32px;height:32px;flex-shrink:0}
.logout-button:hover{color:#60a5fa}
.sidebar-version{margin-top:0}
body.sidebar-collapsed .logout-button{justify-content:center;gap:0}
.exit-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#02092b url('/images/sidebar.png') center/cover no-repeat}
.exit-card{width:100%;max-width:420px;padding:40px;text-align:center;background:white;border-radius:12px}
.exit-card>img{width:160px;height:auto;margin-bottom:24px}
.exit-card h1{font-size:26px}
.exit-card p{margin:16px 0 24px;font-size:14px}
.exit-card a{display:inline-block;padding:12px 20px;border-radius:7px;background:#2498f3;color:white;text-decoration:none;font-size:14px}
@media(max-width:760px){body.sidebar-collapsed .logout-button{justify-content:flex-start;gap:8px}}

/* Header dimensions copied from Service Support: p-6, mb-8, gap-6,
   title 28px, eyebrow 11px, subtitle 14px, avatar 40px, brand mark 32px. */
.app>main{padding:24px}
.service-header{height:auto;min-height:0;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:0;margin:0 0 32px;background:transparent;border:0}
.service-header .heading-copy{min-width:0}
.service-header .eyebrow{font-size:11px;font-weight:700;line-height:16.5px;letter-spacing:.12em;color:#0ea5e9;margin:0 0 4px}
.service-header h1{font-size:28px;line-height:35px;font-weight:400;letter-spacing:-.025em;color:#0a0e2b;margin:0}
.service-header #page-description{font-size:14px;line-height:20px;color:#6b7280;margin:4px 0 0}
.header-profile{display:flex;align-items:center;gap:12px;flex-shrink:0}
.profile-avatar{width:40px;height:40px;border:1px solid #e5e7eb;border-radius:50%;object-fit:cover}
.profile-details{display:flex;flex-direction:column;line-height:1.25}
.profile-name{font-size:15px;font-weight:500;color:#293248}
.profile-description{font-size:11px;color:#9ca3af}
.profile-brand{width:32px;height:32px;border-radius:6px;margin-left:4px}
.page-tools{display:flex;justify-content:flex-end;margin-bottom:24px}
@media(max-width:760px){.service-header{flex-wrap:wrap;gap:20px}.header-profile{margin-left:auto}.app>main{padding:24px}.service-header h1{font-size:28px}}
.app{background:#fff;min-height:100vh}

/* Dashboard cards: Service Support h-36 / p-4 / rounded-xl / gap-6. */
.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;margin-bottom:32px}
.stat{height:144px;min-width:0;padding:16px;background:#d4eaff;border:0;border-radius:12px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:none}
.stat-highlight{outline:4px solid #3b82f6;outline-offset:0}
.stat-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.stat .stat-icon{display:block;width:48px;height:48px;object-fit:contain;background:none;border-radius:0;flex-shrink:0}
.stat strong{display:block;color:#000;font-size:30px;line-height:36px;font-weight:700;letter-spacing:-.04em;margin:0;text-align:right;min-width:0;overflow-wrap:anywhere}
.stat strong.stat-value-long{font-size:20px;line-height:26px}
.stat-label{color:#0a0e2b;font-size:18px;line-height:22.5px;font-weight:700;margin:0}
@media(min-width:1024px) and (max-width:1250px){.stat .stat-icon{width:28px}.stat strong{font-size:26px}.stat strong.stat-value-long{font-size:16px}.stat-label{font-size:16px}}
@media(min-width:640px) and (max-width:1023px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){.stats{grid-template-columns:1fr;gap:24px}}

.page-tools[hidden]{display:none}

/* A quiet overview, with blue accents connecting it to the summary cards. */
.pipedrive-panel{background:#fff;border:1px solid #e3ebf4;border-radius:12px;padding:24px;margin-bottom:32px;color:#0a0e2b;box-shadow:0 2px 6px #142a4803}
.pipedrive-panel .panel-heading{align-items:center;gap:24px;margin-bottom:20px}
.pipedrive-panel .panel-heading h2{font-size:18px;line-height:25px;font-weight:500;letter-spacing:-.3px;color:#172943;margin:0 0 5px}
.pipedrive-panel .panel-heading p{font-size:13px;line-height:20px;color:#68788f}
.pipedrive-panel .text-button{font-size:12px;line-height:20px;color:#1672c4;border-radius:6px;padding:6px 8px;white-space:nowrap;transition:background .15s ease}
.pipedrive-panel .text-button:hover{background:#edf6ff}
.pipedrive-stages{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}
.pipedrive-stage{min-width:0;background:linear-gradient(180deg,#f2f8ff 0%,#f8fbff 100%);border:1px solid #eaf1f9;border-radius:9px;padding:14px 12px}
.pipedrive-stage-heading{margin-bottom:18px}
.stage-step{display:block;font-size:10px;line-height:16px;color:#5685b4;margin-bottom:7px;letter-spacing:.04em}
.pipedrive-stage h3{font-size:13px;line-height:18px;min-height:36px;font-weight:500;color:#294460;margin:0;overflow-wrap:normal}
.stage-count{display:block;font-size:24px;line-height:30px;font-weight:500;color:#183a5b;letter-spacing:-.5px}
.stage-count span{display:block;font-size:10px;line-height:16px;font-weight:400;letter-spacing:0;color:#6c8097;margin-top:2px}
.stage-meter{height:4px;background:#e1edf9;border-radius:4px;margin:16px 0 12px;overflow:hidden}
.stage-meter>div{height:100%;background:#57a5ed;border-radius:4px}
.stage-amount{display:block;font-size:12px;line-height:18px;color:#49617d;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

@media(min-width:761px) and (max-width:1200px){.pipedrive-stages{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.pipedrive-panel{padding:20px}.pipedrive-panel .panel-heading{align-items:flex-start;flex-direction:column;gap:8px}.pipedrive-panel .panel-heading .text-button{padding-left:0}.pipedrive-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.pipedrive-stage h3{min-height:0}}
@media(prefers-reduced-motion:reduce){.pipedrive-panel .text-button{transition:none}}

.stat strong.stat-value-long{font-size:20px;line-height:26px;white-space:nowrap;letter-spacing:-.04em}
.stat-top:has(.stat-value-long){flex-wrap:nowrap}
.stat-top:has(.stat-value-long) .stat-value-long{margin-left:auto}
@media(min-width:1024px) and (max-width:1350px){.stat strong.stat-value-long{font-size:18px}}

.pipedrive-view-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;border:0;border-radius:12px;background:#d4eaff;color:#0a0e2b;padding:14px 20px;font-family:inherit;font-size:16px;font-weight:500;line-height:24px;cursor:pointer;transition:background .15s ease,box-shadow .15s ease}
.pipedrive-view-button span{color:#329fff;font-size:20px}
.pipedrive-view-button:hover{background:#c4e3ff;box-shadow:0 3px 10px #258de012}
.pipedrive-view-button:active{background:#b5dcff;box-shadow:none}
.pipedrive-view-button:focus-visible{outline:3px solid #3b82f6;outline-offset:3px}
@media(max-width:760px){.pipedrive-view-button{padding:12px 16px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.pipedrive-view-button{transition:none}}

/* 67% of the previous button dimensions. */
.pipedrive-view-button{gap:6.7px;border-radius:8.04px;padding:9.38px 13.4px;font-size:10.72px;line-height:16.08px}
.pipedrive-view-button span{font-size:13.4px}
@media(max-width:760px){.pipedrive-view-button{padding:8.04px 10.72px;font-size:9.38px}}

.annual-panel{padding:24px;border:1px solid #e3ebf4;border-radius:12px;box-shadow:0 2px 6px #142a4803;margin-bottom:32px}
.annual-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}
.annual-heading h2{font-size:18px;line-height:25px;font-weight:500;letter-spacing:-.3px;color:#172943;margin:0 0 5px}
.annual-heading p{font-size:13px;line-height:20px;color:#68788f}
.annual-summary{display:flex;gap:40px;flex-wrap:wrap;padding:0 0 24px}
.annual-summary>div{display:flex;gap:10px;align-items:flex-start;color:#63778f;font-size:12px;line-height:20px}
.annual-dot{display:inline-block;width:9px;height:9px;border-radius:3px;flex-shrink:0;margin-top:5px;background:#329cf0}
.annual-dot.negotiation{background:#b8d9f5}
.annual-summary strong{display:block;font-size:24px;line-height:32px;font-weight:500;color:#183a5b;margin-top:4px;letter-spacing:-.5px}
.annual-summary small{font-size:12px;letter-spacing:0;color:#6b8099;font-weight:400}
.annual-unit{font-size:10px;line-height:18px;color:#708198;margin-bottom:8px}
.annual-chart-scroll{overflow-x:auto}
.annual-chart{display:block;width:100%;min-width:620px;font-family:Space,Arial,sans-serif}
.annual-axis{font-size:12px;fill:#74869c}
.annual-bar-value{font-size:11px;fill:#365c80}
.annual-bar{outline:none}
.annual-bar:hover rect:nth-of-type(2),.annual-bar:focus rect:nth-of-type(2){stroke:#1674c2;stroke-width:2}
.annual-bar:focus rect:first-of-type{stroke:#1674c2;stroke-width:1;stroke-dasharray:3 3}
.annual-footnote{font-size:11px;line-height:18px;color:#74859a;margin-top:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.annual-panel{padding:20px}.annual-heading{flex-direction:column;gap:12px}.annual-summary{gap:20px}.annual-summary strong{font-size:22px}.annual-summary small{display:block}}

.annual-dot.lost{background:#df4545}

.annual-tooltip{position:fixed;z-index:30;width:320px;max-width:calc(100vw - 16px);max-height:calc(100vh - 32px);overflow:auto;padding:16px;background:#fff;border:1px solid #dfe9f4;border-radius:10px;box-shadow:0 8px 32px #122c4a24;color:#1a3552;scrollbar-width:thin}
.annual-tooltip[hidden]{display:none}
.annual-tooltip-heading{font-size:13px;font-weight:500;line-height:20px}
.annual-tooltip-heading>span{display:block;color:#6b8199;font-size:11px;font-weight:400;margin-top:2px}
.annual-tooltip ul{list-style:none;padding:0;margin:12px 0 0}
.annual-tooltip li{padding:12px 0;border-top:1px solid #edf2f7;overflow-wrap:anywhere}
.annual-tooltip li:last-child{padding-bottom:0}
.tooltip-client{display:block;color:#2677bc;font-size:12px;line-height:18px;margin-bottom:4px}
.tooltip-opportunity{display:block;color:#344c66;font-size:12px;line-height:18px}
.annual-tooltip li strong{display:block;color:#183a5b;font-size:14px;line-height:20px;font-weight:500;margin-top:6px}

/* Shared typography for summary, pipedrive and annual cards. */
:root{--card-font:Space,Arial,sans-serif;--card-title-size:18px;--card-title-line:22.5px;--card-number-size:30px;--card-number-line:36px;--card-font-weight:700;--card-detail-size:14px}
.stat,.pipedrive-panel,.annual-panel,.annual-chart{font-family:var(--card-font)}
.stat-label,.pipedrive-panel .panel-heading h2,.annual-heading h2,.pipedrive-stage h3{font-family:var(--card-font);font-size:var(--card-title-size);line-height:var(--card-title-line);font-weight:var(--card-font-weight);letter-spacing:normal;color:#0a0e2b}
.pipedrive-stage h3{min-height:45px}
.stat strong,.stage-count,.annual-summary strong{font-family:var(--card-font);font-size:var(--card-number-size);line-height:var(--card-number-line);font-weight:var(--card-font-weight);letter-spacing:-.04em;color:#000}
.pipedrive-panel .panel-heading p,.annual-heading p,.stage-count span,.stage-amount,.annual-summary small{font-family:var(--card-font);font-size:var(--card-detail-size);line-height:20px;font-weight:400;letter-spacing:normal}
.annual-summary>div{font-size:var(--card-title-size);line-height:var(--card-title-line);font-weight:var(--card-font-weight);color:#0a0e2b}
.annual-dot{margin-top:7px}
.annual-axis,.annual-bar-value{font-family:var(--card-font)}
@media(min-width:1024px) and (max-width:1250px){:root{--card-title-size:16px;--card-title-line:22.5px;--card-number-size:26px;--card-number-line:32px}}

/* All five summary values share the same type size, including currency. */
.stat strong,.stat strong.stat-value-long{font-size:var(--card-number-size);line-height:var(--card-number-line);font-weight:var(--card-font-weight);letter-spacing:-.04em;white-space:nowrap}

.stat strong,.stat strong.stat-value-long{font-size:30px;line-height:36px;font-weight:900;color:#000}
.stat-top{flex-wrap:nowrap;align-items:center}
.stat .stat-icon{width:32px;height:32px}
@media(min-width:1024px) and (max-width:1250px){.stat strong,.stat strong.stat-value-long{font-size:30px}.stat .stat-icon{width:24px;height:24px}}

/* Keep chart details compact and anchored beside the selected bar. */
.annual-tooltip{width:360px;max-width:calc(100vw - 32px);max-height:min(360px,calc(100dvh - 32px));padding:0;overscroll-behavior:contain;border-radius:12px;box-shadow:0 12px 36px #122c4a26}
.annual-tooltip-heading{position:sticky;top:0;z-index:1;background:#f6faff;padding:12px 16px;border-bottom:1px solid #e4edf6;font-size:14px;font-weight:700}
.annual-tooltip-heading>span{font-size:12px}
.annual-tooltip ul{margin:0;padding:0 16px}
.annual-tooltip li{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;row-gap:3px;padding:12px 0}
.annual-tooltip li:first-child{border-top:0}
.annual-tooltip li:last-child{padding-bottom:12px}
.tooltip-client{grid-column:1;font-size:12px;margin:0}
.tooltip-opportunity{grid-column:1;font-size:12px;line-height:17px}
.annual-tooltip li strong{grid-column:2;grid-row:1 / 3;align-self:center;white-space:nowrap;font-size:13px;margin:0}

/* Compact chart detail spacing and single-line heading. */
.annual-tooltip-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 14px;white-space:nowrap;font-size:13px}
.annual-tooltip-heading>span{display:inline;margin:0;font-size:11px}
.annual-tooltip ul{padding:0 14px}
.annual-tooltip li{padding:8px 0;row-gap:1px}
.annual-tooltip li:last-child{padding-bottom:8px}
.tooltip-client{line-height:16px}
.tooltip-opportunity{line-height:16px}

.tooltip-meta{grid-column:1;line-height:17px;margin-top:3px}
.tooltip-stage{display:inline-block;padding:1px 6px;border-radius:4px;background:#eaf3fc;color:#35658e;font-size:10px;line-height:15px}
.tooltip-code{grid-column:1 / -1;font-size:10px;line-height:15px;color:#6b8199;overflow-wrap:anywhere;margin-top:2px}

.tooltip-client{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tooltip-client .tooltip-stage{flex-shrink:0}

/* Soft stage colors; the outcome takes precedence over the stage. */
.tooltip-stage[data-stage="Prospecção"]{background:#eef2f6;color:#52647a}
.tooltip-stage[data-stage="Qualificação"]{background:#e4f4fa;color:#286779}
.tooltip-stage[data-stage="Apresentação"]{background:#eeebfa;color:#67529a}
.tooltip-stage[data-stage="Definição Solução"]{background:#f6eafa;color:#86538e}
.tooltip-stage[data-stage="Proposta"]{background:#fff3da;color:#8a631f}
.tooltip-stage[data-stage="Negociação"]{background:#e5efff;color:#3c639c}
.tooltip-stage[data-stage="Fechamento"]{background:#e6f5f0;color:#367969}
.tooltip-stage[data-status="Ganha"]{background:#e2f4e8;color:#287447}
.tooltip-stage[data-status="Perdida"]{background:#fde9e9;color:#a94444}


/* Match Service Support's viewport-height, independently scrolling main area. */
@media(min-width:761px){
  body{height:100vh;overflow:hidden}
  .app{height:100vh;min-width:0;min-height:0}
  .app>main{height:100vh;max-width:none;margin:0;overflow:auto;scrollbar-gutter:stable}
  .app>main::-webkit-scrollbar{width:8px;height:8px}
  .app>main::-webkit-scrollbar-track{background:#f1f1f1}
  .app>main::-webkit-scrollbar-thumb{background:#888;border-radius:4px}
  .app>main::-webkit-scrollbar-thumb:hover{background:#555}
}

/* Preserve the same right inset even when a currency value is long. */
.stat-top{position:relative;display:block;min-height:36px;padding-left:20px}
.stat-top .stat-icon{position:absolute;left:0;top:50%;transform:translateY(-50%);width:24px;height:24px}
.stat-top:has(.stat-value-long){padding-left:20px}
.stat-top:has(.stat-value-long) .stat-icon{width:16px;height:24px}
.stat-top strong,.stat-top .stat-value-long{margin-left:auto;text-align:right}

.stat .stat-top .stat-icon,.stat .stat-top:has(.stat-value-long) .stat-icon{width:48px;height:48px}

.stat .stat-top .stat-icon{left:-10px;width:48px;height:48px}

.sidebar-toggle{z-index:20;transition:background-color .15s}

.header-profile .profile-avatar{display:block;width:40px;height:40px;min-width:40px;flex-shrink:0;border:1px solid #e5e7eb;border-radius:50%;object-fit:cover;object-position:center}

/* People management follows the Service Support user dialogs. */
#people-manager{width:448px;max-width:calc(100vw - 32px);padding:0;border:0;border-radius:12px;box-shadow:0 10px 15px -3px #0000001a;max-height:90vh;color:#02092b}
#people-manager::backdrop,.people-form::backdrop{background:rgba(0,0,0,.4)}
.people-manager-heading{position:relative;padding:24px;border-bottom:1px solid #e5e7eb}
.people-manager-heading h2{font-size:24px;font-weight:700;line-height:32px;text-align:center;margin:0;padding:0 20px}
.people-manager-close{position:absolute;top:16px;right:20px;border:0;background:none;color:#9ca3af;font-size:30px;line-height:30px;padding:0}
.people-manager-close:hover{color:#4b5563}
#people-manager-body{padding:24px;display:flex;flex-direction:column;gap:16px;overflow:auto;max-height:calc(90vh - 100px)}
.people-choice{display:block;width:100%;text-align:left;padding:16px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;color:#02092b}
.people-choice:hover{background:#dbeafe}
.people-choice h3{font-size:18px;line-height:28px;font-weight:700;margin:0}
.people-choice p{font-size:14px;line-height:20px;color:#4b5563;margin:0}
#people-results{display:flex;flex-direction:column;gap:12px}
#people-search{width:100%;border:1px solid #d1d5db;border-radius:4px;padding:8px 16px;font-size:14px;background:#f9fafb}
.people-list-empty{font-size:14px;text-align:center;padding:16px}
#modal.people-form{width:672px;padding:24px;border-radius:12px}
.people-form .modal-heading{border-bottom:1px solid #e5e7eb;padding-bottom:16px;margin-bottom:24px}
.people-form .modal-heading .eyebrow{display:none}
.people-form #modal-title{font-size:24px;font-weight:700;color:#02092b;text-align:center;flex:1}
.people-form #form-fields{grid-template-columns:1fr;gap:16px}
.people-form .field{font-size:14px;font-weight:600;color:#374151;gap:4px}
.people-form .field input,.people-form .field select,.people-form .field textarea{font-size:14px;font-weight:400;background:#f9fafb;border-color:#d1d5db;border-radius:4px;padding:8px 16px}
#people-manager::backdrop,.people-form::backdrop{backdrop-filter:none}

/* Exact max-w-md / max-w-lg / max-w-2xl dimensions from Service Support. */
#people-manager{box-sizing:border-box;margin:auto;max-height:90vh}
#people-manager.people-list-mode{width:512px}
#people-manager.people-list-mode #people-manager-body{padding:0;gap:0;overflow:hidden;max-height:calc(90vh - 81px)}
.people-search-wrap{padding:16px;border-bottom:1px solid #e5e7eb;flex-shrink:0}
#people-search{padding:8px;border-radius:4px;background:#fff;font-size:16px;line-height:24px}
#people-results{display:block;padding:16px;overflow-y:auto;flex:1;min-height:0}
#people-results .people-choice{padding:12px;background:white;border:0;border-bottom:1px solid #e5e7eb;border-radius:0}
#people-results .people-choice:hover{background:#f9fafb}
#people-results .people-choice h3{font-size:16px;line-height:24px;font-weight:600;color:#1f2937}
#people-results .people-choice p{font-size:14px;line-height:20px}
.people-list-footer{padding:16px;border-top:1px solid #e5e7eb;flex-shrink:0}
#people-back{padding:8px 24px;background:#e5e7eb;color:#374151;border:0;border-radius:8px;font-size:16px;line-height:24px;font-weight:600}
#people-back:hover{background:#d1d5db}
#modal.people-form{padding:0;max-width:calc(100vw - 32px);max-height:90vh;overflow:hidden}
.people-form #record-form{display:flex;flex-direction:column;max-height:90vh}
.people-form .modal-heading{position:relative;display:flex;justify-content:center;padding:24px 48px 16px;margin:0;flex-shrink:0}
.people-form .modal-heading>div{display:flex;align-items:center;gap:16px}
.people-form .modal-heading>div::before{content:"";width:40px;height:40px;background:url('/images/novo.png') center/contain no-repeat}
.people-form #modal-title{line-height:32px;margin:0}
.people-form #close-modal{position:absolute;top:16px;right:20px;background:none;border:0;color:#9ca3af;font-size:30px;line-height:30px;padding:0}
.people-form #form-fields{padding:24px;overflow-y:auto;flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.people-form .field{line-height:20px}
.people-form .field input,.people-form .field select,.people-form .field textarea{font-size:16px;line-height:24px;padding:8px 16px}
.people-form .field:has([name="email"]),.people-form .field.wide{grid-column:1 / -1}
.people-form .modal-actions{padding:16px 24px;margin:0;border-top:1px solid #e5e7eb;flex-shrink:0}
.people-form #form-error:not(:empty){padding:0 24px 16px;margin:0}
@media(max-width:540px){.people-form #form-fields{grid-template-columns:1fr}.people-form .field{grid-column:1}.people-manager-heading h2{font-size:22px}}

.people-form .modal-actions{display:flex;align-items:center;padding:16px 24px;gap:12px}
.people-form .modal-actions>span{display:none}
.people-form #cancel-modal{order:0;background:#e5e7eb;color:#374151;border:0;border-radius:8px;padding:8px 24px;font-size:16px;line-height:24px;font-weight:600;box-shadow:none}
.people-form #cancel-modal:hover{background:#d1d5db}
.people-form #save-button{order:2;margin-left:auto;background:#2563eb;color:#fff;border:0;border-radius:8px;padding:8px 24px;font-size:16px;line-height:24px;font-weight:600;box-shadow:none}
.people-form #save-button:hover{background:#1d4ed8}
.people-form #delete-button{order:0;background:#dc2626;color:#fff;border:0;border-radius:8px;padding:8px 24px;font-size:16px;line-height:24px;font-weight:600;box-shadow:none}
.people-form #delete-button:hover{background:#b91c1c}
.people-form #delete-button:not([hidden])~#cancel-modal{margin-left:auto}
.people-form #delete-button:not([hidden])~#save-button{margin-left:0}
.people-form #cancel-modal{order:1}

/* Service Support: sem foco automático no ×, anel azul nos campos, fundo bg-black/40. */
.people-form #close-modal:focus,.people-form #close-modal:focus-visible{outline:none}
.people-form #close-modal:hover{color:#4b5563}
.people-form .field input:focus,.people-form .field select:focus,.people-form .field textarea:focus{outline:none;box-shadow:0 0 0 2px #60a5fa}
.people-form::backdrop{background:rgba(0,0,0,.4)}

/* Profissionais do Cliente (Service Support). */
.people-form .client-members{border-top:1px solid #e5e7eb;padding-top:16px}
.members-search{display:flex;align-items:center;gap:16px}
.members-search input{flex:1;min-width:0}
.members-new{background:none;border:0;color:#2563eb;font-size:16px;line-height:24px;white-space:nowrap;padding:0}
.members-new:hover{color:#1d4ed8;text-decoration:underline}
.members-list{border:1px solid #d1d5db;border-radius:6px;background:#f9fafb;padding:12px;max-height:240px;overflow-y:auto}
.people-form .members-item{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:16px;font-weight:400;color:#1f2937;padding:2px 0;cursor:pointer}
.members-item[hidden]{display:none}
.people-form .members-item input[type=checkbox]{width:16px;height:16px;padding:0;margin:0;flex:none}
.members-item small{font-size:14px;color:#6b7280}
.members-empty{font-size:14px;color:#9ca3af}
.people-form .client-members{padding-top:24px;gap:8px}
.people-form .client-members>span{font-size:14px;line-height:20px}
.people-form .members-search{gap:16px}
.people-form .members-search input{background:#fff;border-color:#e5e7eb;font-size:14px;line-height:20px;padding:8px 16px}
.people-form .members-new{font-size:14px;line-height:20px}
.people-form .members-list{border-color:#e5e7eb;border-radius:8px;padding:12px;margin-top:0}
.people-form .members-item{padding:0;line-height:24px}
.people-form .members-item input[type=checkbox]{border-radius:4px}

/* Logo da Empresa (Service Support). */
.people-form .field input[type=file]{padding:0;border:0;background:none;font-size:16px;color:#6b7280;box-shadow:none}
.people-form .field input[type=file]::file-selector-button{margin-right:16px;border:0;border-radius:9999px;background:#eff6ff;color:#1d4ed8;font:inherit;font-size:16px;font-weight:400;padding:8px 24px;cursor:pointer}
.people-form .field input[type=file]::file-selector-button:hover{background:#dbeafe}
#logo-preview{width:64px;height:64px;object-fit:contain;border:1px solid #e5e7eb;border-radius:4px;padding:4px;background:#fff;margin-top:8px}
#logo-preview[hidden]{display:none}

/* Clientes (Service Support): lista, status, áreas. */
.people-form.no-icon .modal-heading>div::before{display:none}
.show-inactive{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12px;font-weight:600;color:#4b5563}
.client-choice{display:flex;align-items:center;gap:12px;text-align:left}
.client-choice img,.client-logo-empty{width:32px;height:32px;flex:none}
.client-choice img{border:1px solid #e5e7eb;border-radius:4px;background:#fff;object-fit:contain}
.client-choice h3 small{font-size:12px;font-weight:400;color:#9ca3af}
.people-form #delete-button[data-tone]{padding:8px 16px;font-size:14px;line-height:20px}
.people-form #delete-button[data-tone=red]{background:#fee2e2;color:#b91c1c}
.people-form #delete-button[data-tone=red]:hover{background:#fecaca}
.people-form #delete-button[data-tone=green]{background:#dcfce7;color:#15803d}
.people-form #delete-button[data-tone=green]:hover{background:#bbf7d0}
.members-add-area{background:#2563eb;color:#fff;border:0;border-radius:8px;padding:8px 16px;font-size:14px;line-height:20px;font-weight:600;white-space:nowrap}
.members-add-area:hover{background:#1d4ed8}
.members-all strong{font-weight:700}
.area-warning{font-size:12px;color:#d97706}
.areas-add{display:flex;gap:8px}
.areas-add input{flex:1;min-width:0;border:1px solid #d1d5db;border-radius:4px;padding:8px;font-size:14px;line-height:20px}
.areas-add-button{background:#2563eb;color:#fff;border:0;border-radius:8px;padding:8px 16px;font-size:14px;line-height:20px;font-weight:600}
.areas-add-button:hover{background:#1d4ed8}
.area-row{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #e5e7eb;border-radius:6px;background:#f9fafb;margin-bottom:8px}
.area-row span{flex:1;font-size:14px;font-weight:500;color:#02092b}
.area-row select{max-width:180px;border:1px solid #d1d5db;border-radius:4px;padding:6px;font-size:14px;background:#fff}
.area-delete{background:none;border:0;color:#ef4444;font-size:18px;line-height:1;padding:0 4px}
.area-delete:hover{color:#b91c1c}
.people-form .client-members{display:flex;flex-direction:column;gap:8px}
.people-form .members-list{display:flex;flex-direction:column;gap:8px}
.people-form .members-list .members-empty{margin:0}

/* Atividades da Pessoa. */
.person-activity{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;border-radius:6px;padding:4px 0;text-align:left;font-size:16px;line-height:24px;color:#1f2937;cursor:pointer}
.person-activity:hover{background:#f3f4f6}
.person-activity-type{flex:1;min-width:0}
.person-activity small{font-size:14px;color:#6b7280;white-space:nowrap}

#field-value{text-align:right}

#people-results .people-choice h3.opp-title{color:#2563eb}
#people-results .people-choice .opp-id{font-size:14px;line-height:20px;color:#374151}

/* Documentos da oportunidade: cartões em grade 2x2. */
.documents-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.doc-row{display:flex;flex-direction:column;gap:4px;min-width:0;min-height:148px;padding:12px 16px;background:#fff;border:1px solid #e5e7eb;border-radius:8px}
.doc-label{font-size:16px;line-height:24px;font-weight:700;color:#02092b}
.doc-current{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.doc-name{font-size:14px;line-height:20px;color:#2563eb;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.doc-meta{font-size:12px;line-height:16px;color:#6b7280}
.doc-empty{font-size:14px;line-height:20px;color:#9ca3af}
.doc-actions{display:flex;align-items:center;gap:12px;margin-top:8px}
.doc-pick{display:inline-flex;align-items:center;cursor:pointer;background:#2563eb;color:#fff;border-radius:8px;padding:8px 16px;font-size:14px;font-weight:600;line-height:20px}
.doc-pick:hover{background:#1d4ed8}
.doc-remove{background:#fee2e2;color:#b91c1c;border:0;border-radius:8px;padding:8px 16px;font-size:14px;font-weight:600;line-height:20px;cursor:pointer}
.doc-remove:hover{background:#fecaca}
@media(max-width:540px){.documents-list{grid-template-columns:1fr}.doc-row{min-height:0}}

/* Funil de vendas: mesmo visual do dashboard (painel branco, cartões de etapa claros, tipografia Space). */
.funnel-panel{font-family:var(--card-font)}
.funnel-panel .toolbar{align-items:center;flex-direction:row;margin-bottom:20px}
.funnel-panel .search input{border:1px solid #d9e6f4;border-radius:8px;padding:10px 14px;font-size:14px;line-height:20px;font-family:var(--card-font);background:#f8fbff}
.funnel-panel .filters{width:auto;flex-wrap:nowrap;font-size:14px;color:#68788f;gap:12px}
.funnel-panel .filters select{border:1px solid #d9e6f4;background:#f8fbff;border-radius:8px;padding:10px 12px;font-size:14px;color:#294460;font-family:var(--card-font)}
.funnel-panel .summary-chips{gap:16px;margin-bottom:24px}
.funnel-panel .summary-chips span{display:flex;flex-direction:column;gap:2px;min-width:180px;background:#d4eaff;border:0;border-radius:12px;padding:16px;font-size:var(--card-title-size);line-height:var(--card-title-line);font-weight:var(--card-font-weight);color:#0a0e2b}
.funnel-panel .summary-chips strong{margin:0;font-size:var(--card-number-size);line-height:var(--card-number-line);font-weight:var(--card-font-weight);letter-spacing:-.04em;color:#000;order:-1}
.funnel-panel .board{gap:12px;min-height:420px;padding-bottom:8px}
.funnel-panel .column{flex:1 0 220px;max-width:none;background:linear-gradient(180deg,#f2f8ff 0%,#f8fbff 100%);border:1px solid #eaf1f9;border-top:1px solid #eaf1f9;border-radius:9px;padding:14px 12px}
.funnel-panel .column.drag-over{background:#e3f1ff;outline:2px dashed #3b82f6;outline-offset:-2px}
.funnel-panel .column-title{align-items:flex-start;gap:8px;font-size:var(--card-title-size);line-height:var(--card-title-line);font-weight:var(--card-font-weight);color:#0a0e2b;margin-bottom:6px}
.funnel-panel .column-title b{font-size:var(--card-detail-size);line-height:20px;font-weight:700;background:#d4eaff;color:#1672c4;border-radius:999px;padding:0 10px}
.funnel-panel .column-total{font-size:var(--card-detail-size);line-height:20px;color:#68788f;margin-bottom:16px}
.funnel-panel .deal{background:#fff;border:1px solid #e3ebf4;border-radius:9px;padding:12px;box-shadow:0 2px 6px #142a4803}
.funnel-panel .deal:hover{border-color:#3b82f6}
.funnel-panel .deal h3{font-size:14px;line-height:20px;font-weight:700;color:#0a0e2b;margin:0 0 6px}
.funnel-panel .deal p{font-size:13px;line-height:18px;color:#68788f;margin-bottom:8px}
.funnel-panel .deal strong{font-size:16px;line-height:22px;font-weight:700;color:#000}
.funnel-panel .deal-bottom{font-size:12px;line-height:16px;color:#68788f;border-top:1px solid #eaf1f9;margin-top:10px;padding-top:8px}
.funnel-panel .column-add{border:1px dashed #b9d4f0;border-radius:8px;color:#1672c4;font-size:13px;line-height:20px;font-family:var(--card-font);padding:8px}
.funnel-panel .column-add:hover{background:#edf6ff}
@media(max-width:760px){.funnel-panel{padding:20px}.funnel-panel .toolbar{flex-direction:column;align-items:stretch}.funnel-panel .search{max-width:none}}

.funnel-panel .deal-id{display:block;font-size:12px;line-height:16px;font-weight:700;color:#1672c4;margin-bottom:4px}
.deal-activities{display:flex;gap:8px;margin-top:10px}
.deal-act{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 8px;font-size:12px;line-height:16px;font-weight:700}
.deal-act b{font-weight:700}
.deal-act-pending{background:#dcfce7;color:#15803d}
.deal-act-late{background:#fee2e2;color:#b91c1c}
.deal-act-done{background:#bbf7d0;color:#166534}
.funnel-panel .deal-bottom{flex-direction:column;gap:2px}
.deal-act-pending{background:#fef9c3;color:#a16207}
.funnel-panel .column-closed:nth-last-child(2){background:linear-gradient(180deg,#f0fdf4 0%,#f7fef9 100%);border-color:#d5f2de}
.funnel-panel .column-closed:last-child{background:linear-gradient(180deg,#fef2f2 0%,#fff8f8 100%);border-color:#f8dcdc}
.funnel-panel .column-closed:nth-last-child(2) .column-title b{background:#bbf7d0;color:#166534}
.funnel-panel .column-closed:last-child .column-title b{background:#fee2e2;color:#b91c1c}
.funnel-panel .deal-client{display:flex;align-items:center;gap:8px}
.deal-logo{width:28px;height:28px;object-fit:contain;border-radius:6px;background:#fff;border:1px solid #eaf1f9;flex-shrink:0}
.deal-logo-empty{width:28px;text-align:center;flex-shrink:0}
#field-setup_value{text-align:right}
#field-contract_total{text-align:right;font-weight:700;background:#f3f4f6;color:#111827;cursor:default}
#close-reason-label[hidden]{display:none}
.deal-reason{display:inline-block;margin:0 0 8px;padding:2px 8px;border-radius:999px;font-size:12px;line-height:16px;font-weight:700}
.deal-reason-Ganha{background:#bbf7d0;color:#166534}
.deal-reason-Perdida{background:#fee2e2;color:#b91c1c}
.deal-next{margin-top:8px;font-size:12px;line-height:16px;color:#166534;font-weight:700}
.deal-alert{display:flex;align-items:center;margin-top:8px;padding:6px 8px;border-radius:8px;background:#fee2e2;color:#b91c1c;font-size:12px;line-height:16px;font-weight:700;cursor:pointer}
.deal-alert:hover{background:#fecaca}
.next-action-warning{padding:8px 12px;border-radius:8px;background:#fee2e2;color:#b91c1c;font-size:14px;line-height:20px;font-weight:600}
.deal-tag{display:flex;align-items:center;margin-top:8px;padding:6px 8px;border-radius:8px;font-size:12px;line-height:16px;font-weight:700}
.deal-next{background:#dcfce7;color:#166534}
.deal-age{background:#f1f5f9;color:#475569}
.deal-stale{background:#ffedd5;color:#c2410c}
.stage-history{margin-top:8px}
.deal-next{flex-direction:column;align-items:flex-start}
.health-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.health-card{min-width:0;display:flex;flex-direction:column;gap:4px;padding:14px 12px;border-radius:9px;border:1px solid #eaf1f9;background:linear-gradient(180deg,#f2f8ff 0%,#f8fbff 100%)}
.health-card strong{font-family:var(--card-font);font-size:var(--card-number-size);line-height:var(--card-number-line);font-weight:var(--card-font-weight);letter-spacing:-.04em;color:#000;overflow-wrap:anywhere}
.health-card span{font-size:14px;line-height:20px;font-weight:700;color:#0a0e2b}
.health-alert:not(.health-ok){background:#fee2e2;border-color:#fecaca}.health-alert:not(.health-ok) strong,.health-alert:not(.health-ok) span{color:#b91c1c}
.health-stale:not(.health-ok){background:#ffedd5;border-color:#fed7aa}.health-stale:not(.health-ok) strong,.health-stale:not(.health-ok) span{color:#c2410c}
.health-overdue:not(.health-ok){background:#fef9c3;border-color:#fde68a}.health-overdue:not(.health-ok) strong,.health-overdue:not(.health-ok) span{color:#a16207}
.health-ok{background:#dcfce7;border-color:#bbf7d0}.health-ok strong,.health-ok span{color:#166534}
.health-forecast{background:#d4eaff;border-color:#d4eaff}
.stage-forecast{display:block;margin-top:2px;font-size:12px;line-height:16px;color:#1672c4;font-weight:700}
.column-forecast{font-size:12px;line-height:16px;color:#1672c4;font-weight:700;margin:-12px 0 16px}
@media(max-width:900px){.health-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.health-cards{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1200px){.health-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.health-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Insights */
.insights-hero{display:flex;align-items:center;gap:24px;background:#d4eaff;border-color:#d4eaff}
.insights-hero.insights-good{background:#dcfce7;border-color:#bbf7d0}.insights-hero.insights-warning{background:#fef9c3;border-color:#fde68a}.insights-hero.insights-critical{background:#fee2e2;border-color:#fecaca}
.insights-score{display:flex;align-items:baseline;gap:4px;flex-shrink:0}
.insights-score strong{font-family:var(--card-font);font-size:64px;line-height:64px;font-weight:900;letter-spacing:-.04em;color:#000}
.insights-score span{font-size:18px;font-weight:700;color:#0a0e2b}
.insights-hero h2{font-size:var(--card-title-size);line-height:var(--card-title-line);font-weight:var(--card-font-weight);color:#0a0e2b;margin:0 0 4px}
.insights-hero p{font-size:14px;line-height:20px;color:#294460;margin:0 0 10px}
.insights-counts{display:flex;flex-wrap:wrap;gap:8px}
.insight-count{padding:2px 10px;border-radius:999px;font-size:12px;line-height:20px;font-weight:700;background:#fff}
.insight-count-critical{color:#b91c1c}.insight-count-warning{color:#a16207}.insight-count-good{color:#166534}
.insights-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.insight-card{display:flex;gap:12px;padding:14px 12px;border-radius:9px;border:1px solid #eaf1f9;background:linear-gradient(180deg,#f2f8ff 0%,#f8fbff 100%)}
.insight-card h3{font-size:16px;line-height:22px;font-weight:700;color:#0a0e2b;margin:0 0 4px}
.insight-card p{font-size:14px;line-height:20px;color:#294460;margin:0}
.insight-icon{flex-shrink:0;width:28px;height:28px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;background:#d4eaff;color:#1672c4}
.insight-critical{background:#fee2e2;border-color:#fecaca}.insight-critical .insight-icon{background:#fecaca;color:#b91c1c}
.insight-warning{background:#fef9c3;border-color:#fde68a}.insight-warning .insight-icon{background:#fde68a;color:#a16207}
.insight-good{background:#dcfce7;border-color:#bbf7d0}.insight-good .insight-icon{background:#bbf7d0;color:#166534}
.insight-action{margin-top:10px;background:#fff;border:1px solid #d9e6f4;border-radius:8px;padding:6px 12px;font-size:13px;line-height:20px;font-weight:700;color:#1672c4;cursor:pointer;font-family:var(--card-font)}
.insight-action:hover{background:#edf6ff}
.insights-note{font-size:13px;line-height:20px;color:#68788f;margin:0 0 24px}
@media(max-width:900px){.insights-list{grid-template-columns:1fr}.insights-hero{flex-direction:column;align-items:flex-start}}

/* Insights: metas, recorrência, prospecção */
.goals-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:24px;margin-bottom:20px}
.goal-row{margin-bottom:16px}.goal-head{display:flex;justify-content:space-between;gap:12px;font-size:14px;line-height:20px;color:#294460}.goal-head strong{color:#0a0e2b}
.goal-bar{height:10px;border-radius:999px;background:#e3ebf4;overflow:hidden;margin-top:6px}.goal-bar div{height:100%;background:#3b82f6;border-radius:999px}.goal-bar .goal-done{background:#22c55e}
.goals-form{display:flex;flex-direction:column;gap:10px;padding:14px 12px;border:1px solid #eaf1f9;border-radius:9px;background:linear-gradient(180deg,#f2f8ff 0%,#f8fbff 100%)}
.goals-form h3{font-size:16px;line-height:22px;margin:0;color:#0a0e2b}.goals-form label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#294460;font-weight:600}
.goals-form input{border:1px solid #d9e6f4;border-radius:8px;padding:8px 12px;font-size:14px;text-align:right;font-family:var(--card-font);background:#fff}
.goals-form .insight-action{align-self:flex-start;margin-top:4px}
.trend{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px;border-radius:9px;background:#f8fbff;border:1px solid #eaf1f9;margin-bottom:16px}
.trend-label{display:block;font-size:13px;color:#68788f}.trend strong{font-family:var(--card-font);font-size:30px;line-height:36px;color:#000}.trend small{font-size:14px;color:#68788f}
.trend-delta{margin-left:8px;font-size:13px;font-weight:700;color:#68788f}.trend-delta.up{color:#166534}.trend-delta.down{color:#b91c1c}
.sparkline{width:240px;height:48px}
.insights-table-wrap{overflow-x:auto;margin-top:8px}
.insights-table{width:100%;border-collapse:collapse;font-size:14px;line-height:20px;color:#294460}
.insights-table th{text-align:left;font-weight:700;color:#0a0e2b;padding:8px 10px;border-bottom:1px solid #e3ebf4;white-space:nowrap}
.insights-table td{padding:8px 10px;border-bottom:1px solid #f0f4f9;vertical-align:middle}
.insights-empty{font-size:14px;line-height:20px;color:#68788f;margin:8px 0 0}
.health-card small{font-size:13px;line-height:18px;color:#68788f}
.recurrence-cards{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}
.recurrence-status{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.recurrence-good{background:#dcfce7;color:#166534}.recurrence-warning{background:#ffedd5;color:#c2410c}.recurrence-critical{background:#fee2e2;color:#b91c1c}.recurrence-info{background:#d4eaff;color:#1672c4}
.prospect-title{font-size:16px;line-height:22px;margin:20px 0 0;color:#0a0e2b}
.rate-bar{display:inline-block;width:56px;height:8px;border-radius:999px;background:#e3ebf4;margin-right:8px;vertical-align:middle;overflow:hidden}.rate-bar i{display:block;height:100%;background:#3b82f6}
@media(max-width:900px){.goals-grid{grid-template-columns:1fr}.recurrence-cards{grid-template-columns:1fr}}

/* Configurações */
.settings-form{display:flex;flex-direction:column;gap:12px;max-width:760px}
.settings-form label{display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:20px;color:#294460;font-weight:600}
.settings-form input{border:1px solid #d9e6f4;border-radius:8px;padding:8px 12px;font-size:14px;font-family:var(--card-font);background:#fff;max-width:240px}
.settings-table-wrap input{width:120px;text-align:right}
.settings-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.settings-fields input{width:100%;max-width:none}
.settings-actions{display:flex;gap:12px;flex-wrap:wrap}
.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:24px;align-items:start}
.settings-grid .settings-panel{margin-bottom:0}
.settings-form{max-width:none}
.settings-form>.insight-action{align-self:flex-start}
@media(max-width:1100px){.settings-grid{grid-template-columns:1fr}}
.settings-col{display:flex;flex-direction:column;gap:24px;min-width:0}
.settings-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
.settings-form textarea{border:1px solid #d9e6f4;border-radius:8px;padding:8px 12px;font-size:14px;line-height:20px;font-family:var(--card-font);background:#fff;width:100%;resize:vertical}
.settings-form select{border:1px solid #d9e6f4;border-radius:8px;padding:8px 12px;font-size:14px;font-family:var(--card-font);background:#fff;max-width:240px}
.settings-form small{font-size:13px;line-height:18px;color:#68788f;font-weight:400}
.settings-form fieldset{border:1px solid #eaf1f9;border-radius:9px;padding:10px 12px;margin:0}
.settings-form legend{font-size:14px;font-weight:700;color:#0a0e2b;padding:0 6px}
.settings-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px 12px}
.settings-form label.settings-check{flex-direction:row;align-items:center;gap:8px;font-weight:400}
.settings-form label.settings-check input{width:auto;max-width:none}
@media(max-width:1100px){.settings-grid{grid-template-columns:1fr}}
.settings-checks{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:4px 16px}
.settings-form label.settings-check{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:32px;line-height:20px;white-space:nowrap}
.settings-form label.settings-check input[type=checkbox]{flex:none;width:18px;height:18px;margin:0;padding:0;border:0;border-radius:4px;max-width:none;accent-color:#2563eb}
.settings-checks{grid-template-columns:repeat(2,minmax(0,1fr))}
.settings-form label.settings-check{white-space:normal;border:0;border-radius:0;background:none;padding:0;width:auto;height:auto}
@media(max-width:480px){.settings-checks{grid-template-columns:1fr}}

/* Auditoria e churn */
.field[hidden]{display:none}
.audit-filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.audit-filters input,.audit-filters select{border:1px solid #d9e6f4;border-radius:8px;padding:8px 12px;font-size:14px;font-family:var(--card-font);background:#f8fbff;color:#294460}
.audit-filters input{flex:1 1 260px;min-width:0}
.audit-table td{vertical-align:top}.audit-when{white-space:nowrap}
.audit-table small{color:#68788f}
.audit-changes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:18px}
.audit-changes s{color:#68788f}
.audit-action{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700}
.audit-create{background:#dcfce7;color:#166534}.audit-update{background:#d4eaff;color:#1672c4}.audit-delete{background:#fee2e2;color:#b91c1c}
.recurrence-actions{display:flex;gap:8px;flex-wrap:wrap}.recurrence-actions .insight-action{margin-top:0}

.profile-logout{margin-left:12px;padding:6px 12px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.profile-logout:hover{background:#f2f4f7}
