:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172b48;background:#f4f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}.layout{display:flex;min-height:100vh}.sidebar{width:235px;background:#102744;color:#d6e3f3;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:28px 17px;z-index:4}.logo{display:flex;align-items:center;gap:11px;padding:0 8px 31px;border-bottom:1px solid #ffffff1c}.brand-mark{width:38px;height:38px;border-radius:11px;background:#4887d6;color:#fff;display:grid;place-items:center;font-size:21px;font-weight:800}.logo b{color:white;font-size:17px;letter-spacing:.02em}.logo small{display:block;font-size:11px;margin-top:3px;color:#a8bad0}.side-label{font-size:10px;letter-spacing:.14em;color:#829ab5;margin:30px 11px 12px;font-weight:700}nav{display:grid;gap:5px}nav button{border:0;background:transparent;color:#bdcde0;text-align:left;padding:13px 12px;border-radius:8px;font-size:13px;display:flex;gap:12px;align-items:center}nav button span{font-size:20px;width:23px;text-align:center}nav button.active,nav button:hover{background:#254a77;color:#fff}nav button.active{box-shadow:inset 3px 0 #6aa8f1}.side-bottom{margin-top:auto;border-top:1px solid #ffffff1c;padding:20px 9px 0;font-size:11px;color:#a9bed4}.side-bottom a{display:block;color:#e4edf8;margin-top:18px;text-decoration:none}.status-dot{display:inline-block;width:7px;height:7px;background:#64c89a;border-radius:50%;margin-right:7px}.main{margin-left:235px;width:calc(100% - 235px)}.topbar{height:67px;background:#fff;border-bottom:1px solid #e3eaf3;display:flex;align-items:center;justify-content:space-between;padding:0 32px;font-size:12px;color:#6c7f96}.top-label{font-weight:800;letter-spacing:.08em;color:#254568}.slash{margin:0 12px;color:#ccd7e4}.source-link{color:#456481;text-decoration:none;font-weight:600}.content{padding:31px 34px;max-width:1700px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:25px}.heading h1{font-size:27px;line-height:1.2;margin:7px 0;color:#132943;letter-spacing:-.035em}.heading p{margin:0;color:#75869a;font-size:13px;line-height:1.55}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#5379a5;text-transform:uppercase}.tag{border:1px solid #d6e2ef;background:white;border-radius:8px;padding:9px 12px;color:#59728d;font-size:11px;white-space:nowrap}.grid{display:grid;gap:16px}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.card{background:#fff;border:1px solid #e0e8f2;border-radius:12px;box-shadow:0 3px 12px #1d395808;padding:19px}.kpi{min-height:115px}.kpi-head{display:flex;justify-content:space-between;color:#71849a;font-size:12px;font-weight:600}.kpi-icon{color:#3979bd;background:#eaf2fc;border-radius:8px;padding:7px}.kpi strong{display:block;font-size:29px;letter-spacing:-.04em;color:#153454;margin-top:13px}.kpi small{display:block;color:#8b9aab;font-size:11px;margin-top:5px}.two{grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);margin-bottom:17px}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:15px}.section-title h2{font-size:15px;margin:0;color:#183551}.section-title p,.muted{font-size:12px;line-height:1.5;color:#8191a3;margin:5px 0 0}.map-wrap{min-height:300px;background:#f8fbff;border-radius:8px;display:flex;align-items:center;justify-content:center}.map-wrap svg{width:100%;height:auto;max-height:370px}.map-wrap path{stroke:#fff;stroke-width:.26;cursor:pointer;transition:opacity .15s}.map-wrap path:hover{opacity:.65;stroke:#102744;stroke-width:.6}.legend{display:flex;flex-wrap:wrap;gap:10px;color:#7b8da0;font-size:10px;margin-top:12px}.legend span{display:flex;align-items:center;gap:4px}.swatch{width:10px;height:10px;border-radius:2px}.bars{display:grid;gap:13px}.barrow{display:grid;grid-template-columns:130px 1fr 55px;align-items:center;gap:10px;font-size:11px;color:#536b84}.barrow b{text-align:right;color:#274765}.track{height:8px;background:#edf3f8;border-radius:8px;overflow:hidden}.bar{height:100%;background:#2870ba;border-radius:8px}.mini-note{font-size:11px;color:#8191a3;line-height:1.6}.notice{background:#edf5fd;border:1px solid #dbeafb;color:#496883;padding:14px 16px;border-radius:9px;font-size:12px;line-height:1.6;margin:16px 0}.warning{background:#fff8e9;border:1px solid #f4e4bd;color:#826027}.filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:17px}select,input{border:1px solid #d7e1ed;border-radius:8px;padding:10px 12px;background:white;color:#29435f;min-width:180px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{color:#8191a3;font-size:10px;letter-spacing:.04em;text-transform:uppercase;background:#f7f9fc}td,th{padding:12px;border-bottom:1px solid #edf1f5;white-space:nowrap}td button{color:#2368ad;border:0;background:none;padding:0;font-weight:600}td:last-child,th:last-child{text-align:right}.steps{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.step{display:flex;gap:14px}.step-no{font-size:20px;font-weight:800;color:#3478bf;background:#eaf3fd;border-radius:10px;min-width:45px;height:45px;display:grid;place-items:center}.step h3{font-size:15px;margin:3px 0 7px}.step p{margin:0;font-size:12px;line-height:1.6;color:#71839a}.footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#98a7b8;font-size:10px;margin-top:35px;padding-top:18px;border-top:1px solid #e2e9f1}.footer a{color:#6784a5;text-decoration:none}.primary{border:0;border-radius:8px;background:#205b9b;color:white;padding:13px 17px;font-weight:700}.primary:hover{background:#184c85}.login-page{min-height:100vh;background:linear-gradient(140deg,#102744,#214973);display:grid;place-items:center;padding:20px}.login-card{width:min(430px,100%);background:white;border-radius:16px;padding:40px;box-shadow:0 24px 70px #06182f55}.login-card .brand-mark{margin-bottom:27px}.login-card h1{font-size:31px;margin:10px 0 5px;letter-spacing:-.04em}.login-card h1 span{font-weight:400;color:#3676ba}.login-card>p{font-size:13px;color:#8392a2;margin-bottom:28px}.login-card form{display:grid;gap:9px}.login-card label{font-size:12px;font-weight:700;color:#405b78;margin-top:8px}.login-card input{width:100%;padding:13px}.login-card button{margin-top:14px;display:flex;justify-content:space-between}.error{font-size:12px;color:#b73535;min-height:14px;margin:0}.login-note{border-top:1px solid #e8eef5;padding-top:20px;margin-top:17px;font-size:11px;color:#8b9aaa}.login-footer{color:#b5c8dc;font-size:10px;text-align:center;position:absolute;bottom:20px}.loading{padding:60px;color:#71849a}#menu-toggle{display:none}.pill{display:inline-block;background:#edf5fe;color:#3976b8;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:700}.big-percent{font-size:34px;font-weight:750;letter-spacing:-.04em;color:#1c5e9d}.point-chart{width:100%;height:310px}.point-chart circle{fill:#3c80c8;opacity:.6}.point-chart line{stroke:#d7e1ec;stroke-width:1}.point-chart text{font-size:10px;fill:#71849a}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}.three{grid-template-columns:1fr 1fr}}@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vw #10274480}.main{margin:0;width:100%}.topbar{padding:0 18px}.topbar>div{font-size:11px}.source-link{font-size:11px}#menu-toggle{display:block;background:none;border:0;font-size:22px;color:#23486e;margin-right:10px}.content{padding:24px 16px}.heading{align-items:flex-start;flex-direction:column}.heading h1{font-size:24px}.tag{white-space:normal}.kpis,.three,.steps{grid-template-columns:1fr 1fr;gap:10px}.card{padding:15px}.kpi strong{font-size:24px}.map-wrap{min-height:220px}.barrow{grid-template-columns:100px 1fr 46px}.footer{line-height:1.6}.login-card{padding:28px}}@media(max-width:420px){.steps,.three{grid-template-columns:1fr}.heading h1{font-size:22px}.kpi strong{font-size:22px}}
.export{border:0;background:none;margin-right:14px;cursor:pointer}@media(max-width:700px){.topbar>div:nth-of-type(2){display:flex;gap:8px}.export{margin-right:0;font-size:10px}.source-link{white-space:nowrap}}
.report-actions{margin-bottom:16px}.report h2{font-size:15px;margin:24px 0 9px;color:#183551}.report h2:first-child{margin-top:0}.report p{font-size:13px;line-height:1.7;color:#415a74}.report{max-width:1000px}@media print{.sidebar,.topbar,.filters,.report-actions{display:none!important}.main{margin:0;width:100%}.content{padding:0}.card{box-shadow:none;border:0}.report{max-width:none}.footer{margin-top:20px}.heading .tag{display:none}body{background:white}}
.filter-field{display:flex;flex-direction:column;gap:6px;color:#526b85;font-size:11px;font-weight:700}.filter-field select,.filter-field input{font-size:13px;font-weight:400;min-height:41px}.clear-filters{align-self:flex-end;border:1px solid #d7e1ed;border-radius:8px;padding:10px 13px;background:#fff;color:#315d89;font-size:12px;min-height:41px}.analysis-options{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:0 0 18px;color:#526b85;font-size:12px}.analysis-options label{display:flex;gap:7px;align-items:center}.analysis-options input[type=checkbox]{min-width:0;width:16px;height:16px;margin:0}.analysis-options .clear-filters{margin-left:auto}@media(max-width:700px){.filter-field{flex:1 1 160px;min-width:0}.filter-field select,.filter-field input{width:100%;min-width:0}.analysis-options .clear-filters{margin-left:0}}
.territory-table .table-wrap{max-height:440px;overflow:auto}.territory-table th{position:sticky;top:0;background:#f7f9fc}
.analysis-intro{margin-bottom:16px;padding:22px}.result-kicker{font-size:10px;font-weight:800;letter-spacing:.12em;color:#5880a8}.analysis-intro h2,.analysis-result h2{font-size:19px;margin:8px 0;color:#183551;letter-spacing:-.02em}.analysis-intro p,.analysis-result p,.analysis-detail-body p{font-size:13px;line-height:1.65;color:#637b93;margin:8px 0}.question-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.question-tab{background:#f6f9fd;color:#456581;border:1px solid #dbe5f0;border-radius:8px;padding:10px 14px;font-size:12px;font-weight:650}.question-tab.selected{background:#1e5d9f;color:#fff;border-color:#1e5d9f}.question-tab:hover:not(.selected){background:#e9f2fc}.analysis-context{margin:0 0 15px;padding:12px 15px;background:#f0f6fc;border:1px solid #dae7f4;border-radius:9px;color:#52718f;font-size:12px;line-height:1.5}.analysis-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.analysis-result,.analysis-chart{padding:22px}.analysis-result h2{font-size:23px;margin:12px 0}.analysis-result strong{color:#1b5e9f}.analysis-summary{display:flex;gap:35px;border-top:1px solid #e7edf5;border-bottom:1px solid #e7edf5;padding:15px 0;margin:20px 0}.analysis-summary strong,.analysis-summary span{display:block}.analysis-summary strong{font-size:23px;color:#183b60}.analysis-summary span{font-size:11px;color:#8293a7;margin-top:4px}.analysis-result .analysis-small{font-size:11px}.analysis-empty{display:grid;place-items:center;min-height:235px;background:#f7faff;border-radius:8px;padding:20px;text-align:center;color:#6e8398;font-size:13px}.analysis-details{margin-top:16px}.analysis-details summary{cursor:pointer;font-weight:700;font-size:13px;color:#315d89}.analysis-detail-body{padding-top:8px}.analysis-detail-body .analysis-options{margin:16px 0}.analysis-details .analysis-options input{accent-color:#205b9b}@media(max-width:700px){.analysis-filters .filter-field{flex:1 1 100%}.analysis-intro,.analysis-result,.analysis-chart{padding:17px}.question-tab{flex:1 1 44%;text-align:center}.analysis-result h2{font-size:20px}.analysis-summary{gap:20px}}
.analysis-summary{flex-wrap:wrap}.plot-wrap{position:relative}.point-chart{cursor:crosshair;touch-action:pan-y}.point-chart .point-active{fill:#e07127;stroke:#fff;stroke-width:2;opacity:1;r:6}.plot-tooltip{position:absolute;z-index:2;transform:translate(-50%,-100%);width:max-content;max-width:min(280px,calc(100% - 16px));padding:9px 11px;background:#153451;color:#fff;border-radius:8px;box-shadow:0 4px 14px #1d395840;font-size:11px;line-height:1.5;pointer-events:none}.plot-tooltip[hidden]{display:none}.chart-picker{margin-top:6px}.chart-picker select{width:100%}.chart-detail{padding:10px 12px;background:#f1f6fc;border-radius:8px;color:#456681;font-size:12px;line-height:1.5;min-height:38px}
.analysis-grid{grid-template-columns:minmax(280px,0.8fr) minmax(0,1.2fr)}.analysis-chart .point-chart{display:block;height:auto;aspect-ratio:600/310}@media(max-width:1100px){.analysis-grid{grid-template-columns:1fr}}

/* Inteligência Territorial:
   mapa menor e ranking mais largo */

.territory-layout {
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  gap: 16px;
}

.territory-layout > .card {
  min-width: 0;
}

/* Tabela ocupa a largura disponível */
.territory-layout .territory-table {
  min-width: 0;
}

.territory-layout .territory-table table {
  width: 100%;
}

/* Ajuste para telas menores */
@media (max-width: 1000px) {
  .territory-layout {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   METODOLOGIA MAPA
   ============================================ */

.mapa-hero {
  padding: 38px 42px;
  border-left: 4px solid #286bb3;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #edf5fd 100%
  );
}

.mapa-hero-label {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #3977ad;
  margin-bottom: 18px;
}

.mapa-hero h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  color: #122d4e;
  max-width: 850px;
  margin-bottom: 22px;
}

.mapa-hero h2 span {
  color: #3977ad;
}

.mapa-hero p {
  font-size: 15px;
  line-height: 1.8;
  color: #536982;
  max-width: 930px;
  margin-bottom: 12px;
}

.mapa-section {
  margin-top: 32px;
  margin-bottom: 28px;
}

.mapa-section-heading {
  margin-bottom: 20px;
}

.mapa-section-heading h2 {
  font-size: 25px;
  color: #122d4e;
  margin: 12px 0;
}

.mapa-section-heading p {
  color: #70849b;
  font-size: 14px;
}

.mapa-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mapa-step-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mapa-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mapa-step-letter {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #e8f2fc;
  color: #286bb3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
}

.mapa-step-number {
  color: #9aacbf;
  font-size: 12px;
  font-weight: 700;
}

.mapa-step-card h3 {
  font-size: 21px;
  color: #122d4e;
  margin-bottom: 8px;
}

.mapa-step-card h4 {
  font-size: 13px;
  color: #3977ad;
  margin-bottom: 16px;
}

.mapa-step-card p {
  color: #63788e;
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}

.mapa-step-result {
  border-top: 1px solid #e0e9f3;
  margin-top: 22px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mapa-step-result strong {
  color: #3977ad;
  font-size: 10px;
  letter-spacing: 1px;
}

.mapa-step-result span {
  font-size: 12px;
  color: #415b75;
  line-height: 1.5;
}

.mapa-application,
.mapa-value {
  padding: 32px;
  margin-bottom: 24px;
}

.mapa-application h2,
.mapa-value h2 {
  color: #122d4e;
  font-size: 24px;
  margin: 12px 0 16px;
}

.mapa-application > p,
.mapa-value > p {
  color: #63788e;
  line-height: 1.8;
  max-width: 920px;
}

.mapa-application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.mapa-application-grid > div {
  background: #f2f7fc;
  padding: 22px;
  border-radius: 12px;
}

.mapa-application-grid strong {
  font-size: 11px;
  color: #3977ad;
  letter-spacing: 1px;
}

.mapa-application-grid h3 {
  font-size: 17px;
  margin: 12px 0;
  color: #122d4e;
}

.mapa-application-grid p {
  font-size: 13px;
  line-height: 1.6;
  color: #63788e;
}

.mapa-current-scope {
  margin-top: 24px;
  background: #f5f8fc;
  border-left: 3px solid #3977ad;
  border-radius: 8px;
  padding: 18px 22px;
}

.mapa-current-scope strong {
  font-size: 11px;
  letter-spacing: 1px;
  color: #3977ad;
}

.mapa-current-scope p {
  font-size: 13px;
  line-height: 1.7;
  color: #536982;
  margin-top: 8px;
}

.mapa-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.mapa-flow span {
  background: #e8f2fc;
  color: #244f7c;
  padding: 13px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

.mapa-flow b {
  color: #3977ad;
  font-size: 20px;
}

.mapa-author {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.mapa-author h2 {
  margin: 10px 0;
  color: #122d4e;
}

.mapa-author p {
  font-size: 13px;
  color: #63788e;
  line-height: 1.6;
}

.mapa-author-mark {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #c5d9ec;
}

.mapa-evidence {
  padding: 24px 32px;
}

.mapa-evidence h3 {
  color: #122d4e;
  margin-bottom: 12px;
}

.mapa-evidence p {
  color: #63788e;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  .mapa-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .mapa-hero {
    padding: 24px;
  }

  .mapa-steps-grid,
  .mapa-application-grid {
    grid-template-columns: 1fr;
  }

  .mapa-author {
    flex-direction: column;
    align-items: flex-start;
  }

  .mapa-flow {
    justify-content: flex-start;
  }
}


/* ============================================
   MAPA SIRE — APRESENTAÇÃO NA TELA PRINCIPAL
   ============================================ */

.sire-intro {
  padding: 36px 42px;
  margin-bottom: 28px;
  background: linear-gradient(120deg, #102846, #204f7e);
  color: #ffffff;
  border: none;
  border-radius: 16px;
}

.sire-intro-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a9c9ed;
  margin-bottom: 14px;
}

.sire-intro h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.sire-intro h1 span {
  color: #8bc4ff;
}

.sire-intro h2 {
  font-size: 17px;
  font-weight: 500;
  color: #d5e5f5;
  margin: 0 0 24px;
}

.sire-intro-headline {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.sire-intro-description {
  font-size: 14px;
  line-height: 1.8;
  color: #d1dfed;
  max-width: 850px;
}

.sire-intro-footer {
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  font-weight: 600;
  color: #a9c9ed;
}

@media (max-width: 700px) {
  .sire-intro {
    padding: 25px;
  }

  .sire-intro-headline {
    font-size: 19px;
  }
}
