/* v0.9.67 saas-final: Orgaos Publicos + Relatorios */
:root{
  --v52-blue:#0b6fef;--v52-blue2:#1c95f3;--v52-navy:#0e2a47;--v52-text:#1b2b3b;--v52-muted:#66788a;
  --v52-line:#e1ebf5;--v52-bg:#f4f8fc;--v52-card:#fff;--v52-shadow:0 10px 30px rgba(18,52,86,.07);
}
body.v52-ps,body.v52-rp{background:var(--v52-bg)!important}

/* ===== ORGAOS PUBLICOS ===== */
body.v52-ps .ps-page{display:grid!important;gap:18px!important}

/* KPIs */
body.v52-ps .ps-kpis{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important}
body.v52-ps .ps-kpi{
  display:flex!important;align-items:center!important;gap:14px!important;padding:16px 18px!important;
  background:var(--v52-card)!important;border:1px solid var(--v52-line)!important;border-radius:16px!important;box-shadow:var(--v52-shadow)!important;position:relative!important;
}
body.v52-ps .ps-kpi .saas-kpi-icon{display:none!important}
body.v52-ps .ps-kpi-icon{
  flex:0 0 52px!important;width:52px!important;height:52px!important;border-radius:14px!important;display:grid!important;place-items:center!important;
  background:#e8f2ff!important;color:var(--v52-blue)!important;font-weight:900!important;font-size:17px!important;
}
body.v52-ps .ps-kpi small{display:block!important;font-size:13px!important;font-weight:700!important;color:var(--v52-text)!important}
body.v52-ps .ps-kpi strong{display:block!important;font-size:26px!important;line-height:1.15!important;font-weight:850!important;color:var(--v52-navy)!important;letter-spacing:-.01em}
body.v52-ps .ps-kpi span{display:block!important;font-size:12px!important;color:var(--v52-muted)!important}

/* Filtros */
body.v52-ps .ps-filter-panel{
  background:var(--v52-card)!important;border:1px solid var(--v52-line)!important;border-radius:16px!important;box-shadow:var(--v52-shadow)!important;padding:18px 20px 20px!important;
}
body.v52-ps .ps-filter-title{font-size:18px!important;font-weight:850!important;color:var(--v52-navy)!important;margin-bottom:12px!important}
body.v52-ps form.ps-filter{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px 14px!important;align-items:end!important}
body.v52-ps form.ps-filter>label{display:flex!important;flex-direction:column!important;gap:6px!important;font-size:12px!important;font-weight:700!important;color:var(--v52-text)!important;margin:0!important}
body.v52-ps form.ps-filter select,body.v52-ps form.ps-filter input{
  width:100%!important;min-height:42px!important;border:1px solid #d5e3f1!important;border-radius:10px!important;background:#fff!important;padding:0 12px!important;font-size:14px!important;color:var(--v52-text)!important;
}
body.v52-ps form.ps-filter select:focus,body.v52-ps form.ps-filter input:focus{border-color:#73b8ed!important;box-shadow:0 0 0 3px rgba(11,111,239,.10)!important;outline:none!important}
body.v52-ps form.ps-filter .ps-search{grid-column:1 / span 3!important}
body.v52-ps form.ps-filter .ps-actions{grid-column:4 / span 2!important;display:flex!important;gap:12px!important;align-items:center!important}
body.v52-ps form.ps-filter .ps-actions .btn{min-height:44px!important;padding:0 22px!important;border-radius:10px!important;font-weight:800!important;white-space:nowrap}
body.v52-ps form.ps-filter .ps-actions .btn-primary{
  background:linear-gradient(135deg,var(--v52-blue),var(--v52-blue2))!important;color:#fff!important;border:0!important;box-shadow:0 8px 18px rgba(11,111,239,.2)!important;
}
body.v52-ps form.ps-filter .ps-actions .btn-secondary{background:#fff!important;color:var(--v52-blue)!important;border:1px solid #cfe0f2!important}

/* Mapa + ranking */
body.v52-ps .ps-main-grid{display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)!important;gap:18px!important;align-items:stretch!important}
body.v52-ps .ps-panel{
  background:var(--v52-card)!important;border:1px solid var(--v52-line)!important;border-radius:16px!important;box-shadow:var(--v52-shadow)!important;padding:18px 20px!important;
}
body.v52-ps .ps-panel-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:12px!important}
body.v52-ps .ps-panel-head h2{font-size:18px!important;font-weight:850!important;color:var(--v52-navy)!important;margin:0!important}
body.v52-ps .ps-panel-head select{min-height:38px!important;border:1px solid #d5e3f1!important;border-radius:10px!important;padding:0 10px!important;font-size:13px!important}
body.v52-ps .v52-seeall{
  border:1px solid #cfe0f2;background:#fff;color:var(--v52-blue);font-weight:800;font-size:13px;border-radius:10px;padding:8px 16px;cursor:pointer;
}
body.v52-ps .v52-seeall:hover{background:#f0f7ff}

body.v52-ps .ps-map-wrap{display:grid!important;grid-template-columns:minmax(0,1fr) 150px!important;gap:14px!important;align-items:center!important}
body.v52-ps #psMap.v52-src{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;min-height:0!important}
body.v52-ps .v52-map{min-height:360px;display:flex;align-items:center;justify-content:center}
body.v52-ps .v52-br-svg{width:100%;max-height:420px;height:auto;display:block;overflow:visible}
body.v52-ps .v52-uf{cursor:pointer;outline:none}
body.v52-ps .v52-uf path{stroke:#fff;stroke-width:.9;stroke-linejoin:round;transition:filter .15s,stroke .15s}
body.v52-ps .v52-uf:hover path,body.v52-ps .v52-uf:focus path{filter:brightness(.92) drop-shadow(0 2px 4px rgba(11,62,145,.35))}
body.v52-ps .v52-uf.is-selected path{stroke:var(--v52-navy);stroke-width:2.2}
body.v52-ps .v52-uf text{font-size:8.5px;font-weight:800;fill:#fff;text-anchor:middle;dominant-baseline:middle;pointer-events:none;paint-order:stroke;stroke:rgba(14,42,71,.35);stroke-width:1.4px}
body.v52-ps .v52-uf.is-empty text{fill:#4b6580;stroke:none}
body.v52-ps .ps-map-legend{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;padding:14px!important;
  border:1px solid var(--v52-line)!important;border-radius:14px!important;background:#fff!important;
}
body.v52-ps .ps-map-legend strong{font-size:13px!important;color:var(--v52-navy)!important}
body.v52-ps .ps-map-legend{position:relative!important}
body.v52-ps .ps-legend-bar{
  width:16px!important;height:150px!important;border-radius:6px!important;
  background:linear-gradient(0deg,#e7f5a8 0%,#8fd68f 25%,#2fb5a3 50%,#1b7fb8 75%,#0b3d91 100%)!important;
}
body.v52-ps .ps-legend-labels{display:flex!important;flex-direction:column-reverse!important;justify-content:space-between!important;height:150px!important;font-size:12px!important;color:var(--v52-muted)!important;position:absolute!important;left:44px!important;top:42px!important}
body.v52-ps .ps-help{font-size:12px!important;color:var(--v52-muted)!important;margin-top:10px!important}

/* Ranking */
body.v52-ps .ps-ranking{display:flex!important;flex-direction:column!important}
body.v52-ps .ps-rank-row{
  display:grid!important;grid-template-columns:36px minmax(0,1fr) auto 128px!important;gap:14px!important;align-items:center!important;
  padding:12px 4px!important;border-bottom:1px solid var(--v52-line-soft,#edf3fa)!important;
}
body.v52-ps .ps-rank-row:last-child{border-bottom:0!important}
body.v52-ps .ps-rank-num{
  width:32px!important;height:32px!important;border-radius:50%!important;display:grid!important;place-items:center!important;
  background:#eaf3ff!important;color:var(--v52-blue)!important;font-weight:850!important;font-size:14px!important;
}
body.v52-ps .ps-rank-name strong{display:block!important;font-size:13.5px!important;font-weight:850!important;color:var(--v52-navy)!important;line-height:1.25}
body.v52-ps .ps-rank-name small{display:block!important;font-size:11.5px!important;color:var(--v52-muted)!important;margin:2px 0 7px!important}
body.v52-ps .ps-progress{height:7px!important;background:#e8f0f8!important;border-radius:99px!important;overflow:hidden!important}
body.v52-ps .ps-progress i{display:block!important;height:100%!important;background:linear-gradient(90deg,var(--v52-blue),var(--v52-blue2))!important;border-radius:inherit!important}
body.v52-ps .ps-rank-count{font-size:12.5px!important;color:var(--v52-muted)!important;white-space:nowrap}
body.v52-ps .ps-rank-value{font-size:14px!important;font-weight:850!important;color:var(--v52-navy)!important;text-align:right!important;white-space:nowrap}

/* Tabela */
body.v52-ps .ps-table-panel{padding:18px 20px!important}
body.v52-ps .ps-table-wrap{overflow:auto!important;border-radius:12px!important}
body.v52-ps table.ps-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important}
body.v52-ps table.ps-table thead th{
  background:#f3f8fd!important;color:var(--v52-muted)!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase!important;
  letter-spacing:.04em!important;padding:11px 12px!important;text-align:left!important;border-bottom:1px solid var(--v52-line)!important;position:sticky;top:0;
}
body.v52-ps table.ps-table td{padding:11px 12px!important;font-size:13px!important;color:var(--v52-text)!important;border-bottom:1px solid #eef3f9!important}
body.v52-ps table.ps-table tbody tr:hover td{background:#f8fbff!important}
body.v52-ps table.ps-table td strong{font-weight:700!important}

/* ===== RELATORIOS v0.9.67 ===== */
body.v52-rp{background:var(--v52-bg)!important}
body.v52-rp header.saas-page-heading{
  display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:16px!important;
  background:none!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:0!important;margin-bottom:18px!important;position:static!important;overflow:visible!important;
}
body.v52-rp header.saas-page-heading::after{content:none!important;display:none!important}
body.v52-rp header.saas-page-heading .eyebrow{display:none!important}
body.v52-rp header.saas-page-heading h1{font-size:30px!important;line-height:1.15!important;font-weight:850!important;color:var(--v52-navy)!important;margin:0!important}
body.v52-rp header.saas-page-heading p{font-size:14px!important;color:var(--v52-muted)!important;margin:4px 0 0!important}
body.v52-rp header.saas-page-heading .topbar-tools{position:static!important}
body.v52-rp .report-center{display:block!important}
body.v52-rp .report-center>.report-intro{display:none!important}
body.v52-rp .report-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important}
body.v52-rp .report-options a.v53-host{
  display:flex!important;flex-direction:column!important;padding:0!important;background:#fff!important;border:1px solid var(--v52-line)!important;border-radius:18px!important;
  box-shadow:var(--v52-shadow)!important;text-decoration:none!important;color:var(--v52-text)!important;transition:transform .15s,box-shadow .15s;
}
body.v52-rp .report-options a.v53-host:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(18,52,86,.12)!important}
body.v52-rp a.v53-host>b,body.v52-rp a.v53-host>span,body.v52-rp a.v53-host>small,body.v52-rp a.v53-host>strong{display:none!important}
body.v52-rp .v53-card{display:flex;flex-direction:column;gap:14px;padding:22px;flex:1;min-height:260px}
body.v52-rp .v53-top{display:flex;align-items:center;gap:12px}
body.v52-rp .v53-ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#e8f2ff;color:var(--v52-blue);flex:0 0 44px}
body.v52-rp a.is-green .v53-ic{background:#dff5e8;color:#18a058}
body.v52-rp .v53-top h3{font-size:19px;font-weight:850;color:var(--v52-navy);margin:0}
body.v52-rp .v53-badge{margin-left:auto;font-size:12px;font-weight:800;padding:4px 11px;border-radius:999px;background:#e8f2ff;color:var(--v52-blue);white-space:nowrap}
body.v52-rp .v53-desc{font-size:14px;color:var(--v52-muted);line-height:1.5;margin:0}
body.v52-rp .v53-box{margin-top:auto;background:#f5f9fd;border-radius:12px;padding:12px 14px;min-height:62px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.v52-rp .v53-stat{align-items:baseline}
body.v52-rp .v53-stat b{font-size:28px;font-weight:900;color:var(--v52-navy);letter-spacing:-.02em;line-height:1.1}
body.v52-rp .v53-stat span{font-size:13px;color:var(--v52-muted)}
body.v52-rp .v53-chips span{font-size:12.5px;font-weight:700;background:#fff;border:1px solid var(--v52-line);border-radius:999px;padding:5px 12px;color:#4b6580}
body.v52-rp .v53-cta{
  text-align:center;font-size:15px;font-weight:850;padding:13px;border-radius:12px;color:#fff;
  background:linear-gradient(135deg,var(--v52-blue),var(--v52-blue2));box-shadow:0 8px 18px rgba(11,111,239,.2);
}
body.v52-rp a.is-green .v53-cta{background:#fff;color:var(--v52-blue);border:1px solid #cfe0f2;box-shadow:none;padding:12px}
body.v52-rp .v53-note{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--v52-muted);margin:16px 2px 0}
body.v52-rp .v53-note svg{color:var(--v52-blue);flex:0 0 auto}
@media(max-width:1280px){
  body.v52-ps .ps-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.v52-ps form.ps-filter{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.v52-ps form.ps-filter .ps-search{grid-column:1 / span 2!important}
  body.v52-ps form.ps-filter .ps-actions{grid-column:3!important}
  body.v52-ps .ps-main-grid{grid-template-columns:1fr!important}
  body.v52-rp .report-options{grid-template-columns:1fr!important}
}
@media(max-width:760px){
  body.v52-ps .ps-kpis{grid-template-columns:1fr 1fr!important}
  body.v52-ps form.ps-filter{grid-template-columns:1fr!important}
  body.v52-ps form.ps-filter .ps-search,body.v52-ps form.ps-filter .ps-actions{grid-column:1!important}
  body.v52-ps .ps-map-wrap{grid-template-columns:1fr!important}
}

/* v0.9.67 correcao: cartoes preenchem a largura e alinham a esquerda */
body.v52-rp .report-options a.v53-host{align-items:stretch!important;justify-content:flex-start!important;text-align:left!important}
body.v52-rp .v53-card{width:100%!important;box-sizing:border-box!important;align-items:stretch!important;text-align:left!important}
body.v52-rp .v53-top{justify-content:flex-start!important}
html body.v52-rp .report-center .report-options a.v53-host.mui-nav-link{align-items:stretch!important;text-align:left!important}
html body.v52-rp .report-options a.v53-host .v53-card{align-self:stretch!important;width:100%!important;max-width:none!important}

/* v0.9.67 correcao: cabecalho das tabelas de /reports/fiscal sobreposto as linhas.
   A regra antiga ".reports-stage .reports-table thead{position:sticky;top:68px}" empurrava o thead 68px
   para dentro do container .scroll (overflow:auto), cobrindo a primeira linha. */
html body .reports-stage .reports-table thead,
html body .reports-table thead{top:0!important}
html body .reports-stage .reports-table thead th{position:static!important}/* ===== v0.9.67 padrao SaaS unico ===== */
:root{--v56-blue:#0b6fef;--v56-blue2:#1c95f3;--v56-navy:#0e2a47;--v56-text:#1b2b3b;--v56-muted:#66788a;--v56-line:#e1ebf5;--v56-card:#fff;--v56-shadow:0 10px 30px rgba(18,52,86,.07)}

/* ---- comum: cabecalho, paineis, botoes, tabelas ---- */
html body.v56 header.saas-page-heading{margin-top:18px!important}
html body.v56 header.saas-page-heading h1{font-size:30px!important;font-weight:850!important;color:var(--v56-navy)!important;line-height:1.15!important}
html body.v56 header.saas-page-heading p{font-size:14px!important;color:var(--v56-muted)!important}
html body.v56 header.saas-page-heading .eyebrow{display:none!important}
html body.v56 .v56-hide.v56-hide.v56-hide{display:none!important}
html body.v56 .v56-more{display:none!important}
html body.v56 form.v56-open .v56-more{display:flex!important}
html body.v56 .v56-more-btn{
  border:0!important;background:none!important;color:var(--v56-blue)!important;font-weight:700!important;font-size:13px!important;
  padding:8px 4px!important;cursor:pointer;margin-right:auto;box-shadow:none!important;min-height:0!important
}

/* ---- VISAO GERAL ---- */
html body.v56-ov .commercial-dashboard{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important;gap:14px!important}
html body.v56-ov .commercial-dashboard>*{grid-column:1 / -1!important;min-width:0!important}
html body.v56-ov .overview-grid{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:14px!important}
html body.v56-doc .document-summary-grid.document-summary-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
html body.v56-ov .overview-filter{background:#fff!important;border:1px solid var(--v56-line)!important;border-radius:16px!important;box-shadow:var(--v56-shadow)!important;padding:14px 16px!important}
html body.v56-ov .overview-filter .mui-filter-panel{display:none!important}
html body.v56-ov .overview-filter form{display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:flex-end!important;width:100%!important}
html body.v56-ov .overview-filter form label{display:flex!important;flex-direction:column!important;gap:6px!important;font-size:12px!important;font-weight:700!important;color:var(--v56-muted)!important;flex:1 1 150px!important}
html body.v56-ov .overview-filter form button{
  background:linear-gradient(135deg,var(--v56-blue),var(--v56-blue2))!important;color:#fff!important;border:0!important;border-radius:10px!important;
  min-height:42px!important;padding:0 24px!important;font-weight:800!important;box-shadow:0 8px 18px rgba(11,111,239,.2)!important
}
html body.v56-ov .overview-filter form a.mui-nav-link{
  background:#fff!important;color:var(--v56-blue)!important;border:1px solid #cfe0f2!important;border-radius:10px!important;min-height:42px!important;
  padding:0 20px!important;font-weight:800!important;display:inline-flex!important;align-items:center!important
}
html body.v56-ov .overview-kpis{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:12px!important}
html body.v56-ov .overview-kpis>.v56-kpi-main{grid-column:span 3!important;order:1!important;padding:16px 18px!important;border-radius:16px!important}
html body.v56-ov .overview-kpis>.v56-kpi-aux{grid-column:span 4!important;order:2!important;padding:10px 16px!important;border-radius:14px!important;min-height:0!important;display:flex!important;align-items:baseline!important;gap:8px!important;flex-wrap:wrap}
html body.v56-ov .overview-kpis>.v56-kpi-aux .saas-kpi-icon{display:none!important}
html body.v56-ov .overview-kpis article span,html body.v56-ov .overview-kpis article small{text-transform:none!important;letter-spacing:0!important}
html body.v56-ov .overview-kpis article span:not(.saas-kpi-icon){font-size:13px!important;color:var(--v56-muted)!important;font-weight:700!important}
html body.v56-ov .overview-kpis .v56-kpi-main strong{font-size:22px!important;color:var(--v56-navy)!important;font-weight:850!important}
html body.v56-ov .overview-kpis .v56-kpi-aux strong{font-size:16px!important;color:var(--v56-navy)!important}
html body.v56-ov .overview-kpis article small{font-size:12px!important;color:var(--v56-muted)!important;font-weight:500!important}
html body.v56-ov .overview-chart,html body.v56-ov .overview-total,html body.v56-ov .overview-companies{
  background:#fff!important;border:1px solid var(--v56-line)!important;border-radius:18px!important;box-shadow:var(--v56-shadow)!important
}
html body.v56-ov .overview-companies .company-section-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body.v56-ov .overview-companies .company-section-head>div{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
html body.v56-ov .overview-companies .company-eyebrow{display:none!important}
html body.v56-ov .overview-companies .company-section-head h3{font-size:18px!important;font-weight:850!important;color:var(--v56-navy)!important;margin:0!important}
html body.v56-ov .overview-companies .company-section-head p{font-size:13px!important;color:var(--v56-muted)!important;margin:2px 0 0!important}
html body.v56-ov .overview-companies .company-section-head a{
  background:#fff!important;color:var(--v56-blue)!important;border:1px solid #cfe0f2!important;border-radius:10px!important;box-shadow:none!important;font-weight:800!important
}
html body.v56-ov .overview-company-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
html body.v56-ov a.overview-company{background:#fff!important;border:1px solid var(--v56-line)!important;border-radius:16px!important;padding:14px 16px!important;transition:transform .15s,box-shadow .15s}
html body.v56-ov a.overview-company:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(18,52,86,.1)!important}
html body.v56-ov a.overview-company b{display:none!important}
html body.v56-ov a.overview-company dt{font-size:12px!important;color:var(--v56-muted)!important;text-transform:none!important;letter-spacing:0!important}
html body.v56-ov a.overview-company dd{font-size:14px!important;font-weight:850!important;color:var(--v56-navy)!important}
html body.v56-ov a.overview-company h3{font-size:14px!important;color:var(--v56-navy)!important}

html body.v56-ov.mui-page-dashboard .overview-kpis.mui48-kpi-grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:12px!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
html body.v56-ov .overview-kpis>.v56-kpi-main{padding:16px 18px 16px 62px!important;min-height:92px!important;background:#fff!important;border:1px solid var(--v56-line)!important;box-shadow:var(--v56-shadow)!important}
html body.v56-ov .overview-kpis>.v56-kpi-aux{background:#fff!important;border:1px solid var(--v56-line)!important;box-shadow:none!important}
html body.v56-ov .overview-kpis>.v56-kpi-aux::before{display:none!important}
html body.v56-ov .overview-kpis>article strong{display:block!important}
/* ---- NOTAS FISCAIS (documents) ---- */
html body.v56-doc .document-summary-context{display:none!important}
html body.v56-doc .document-summary-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
html body.v56-doc .document-summary-card{padding:14px 18px!important;border-radius:16px!important;min-height:0!important;background:#fff!important;border:1px solid var(--v56-line)!important;box-shadow:var(--v56-shadow)!important}
html body.v56-doc .document-summary-card span:not(.saas-kpi-icon){font-size:13px!important;text-transform:none!important;letter-spacing:0!important;color:var(--v56-muted)!important;font-weight:700!important}
html body.v56-doc .document-summary-card strong{font-size:24px!important;color:var(--v56-navy)!important;font-weight:850!important}
html body.v56-doc .document-summary-card small{font-size:12px!important;text-transform:none!important;letter-spacing:0!important;color:var(--v56-muted)!important;font-weight:500!important}
html body.v56-doc section.filter-panel{background:#fff!important;border:1px solid var(--v56-line)!important;border-radius:18px!important;box-shadow:var(--v56-shadow)!important}
html body.v56-doc section.filter-panel form{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px 14px!important;align-items:end!important}
html body.v56-doc section.filter-panel form>.field{grid-column:auto!important;min-width:0!important}
html body.v56-doc section.filter-panel form>.saas-filter-search{grid-column:span 2!important;order:-4!important}
html body.v56-doc section.filter-panel form>.saas-filter-period{order:-3!important}
html body.v56-doc section.filter-panel form>.saas-filter-type{order:-2!important}
html body.v56-doc section.filter-panel form>.saas-filter-status{order:-1!important}
html body.v56-doc section.filter-panel form>.v56-more{order:20!important}
html body.v56-doc section.filter-panel form>.filter-actions{grid-column:1 / -1!important;order:99!important;display:flex!important;justify-content:flex-end!important;gap:10px!important;align-items:center!important}
html body.v56-doc section.filter-panel .field>span{font-size:12px!important;text-transform:none!important;letter-spacing:0!important;font-weight:700!important;color:var(--v56-muted)!important}
html body.v56-doc section.filter-panel .filter-actions button{
  background:linear-gradient(135deg,var(--v56-blue),var(--v56-blue2))!important;color:#fff!important;border:0!important;border-radius:10px!important;
  min-height:42px!important;padding:0 24px!important;font-weight:800!important;box-shadow:0 8px 18px rgba(11,111,239,.2)!important
}
html body.v56-doc section.filter-panel .filter-actions a{background:#fff!important;color:var(--v56-blue)!important;border:1px solid #cfe0f2!important;border-radius:10px!important;min-height:42px!important;padding:0 20px!important;display:inline-flex!important;align-items:center!important;font-weight:800!important}
html body.v56-doc .document-query-empty{background:#fff!important;border:1px solid var(--v56-line)!important;border-radius:18px!important;box-shadow:var(--v56-shadow)!important;padding:36px 20px!important;text-align:center}
html body.v56-doc .document-query-empty h2{font-size:18px!important;font-weight:850!important;color:var(--v56-navy)!important}
html body.v56-doc .document-query-empty p{font-size:14px!important;color:var(--v56-muted)!important}
html body.v56-doc .v56-chips{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}
html body.v56-doc .v56-chips button{background:#f3f8fd;color:var(--v56-blue);border:1px solid var(--v56-line);border-radius:999px;padding:7px 16px;font-weight:800;font-size:13px;cursor:pointer}
html body.v56-doc .v56-chips button:hover{background:#e8f2ff}

/* ---- ORGAOS PUBLICOS (ajustes sobre a v0.9.52) ---- */
html body.v56-ps .ps-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html body.v56-ps form.ps-filter{grid-template-columns:repeat(6,minmax(0,1fr))!important}
html body.v56-ps form.ps-filter .ps-search{grid-column:span 2!important;order:-1!important}
html body.v56-ps form.ps-filter>label.v56-more{order:20!important}
html body.v56-ps form.ps-filter .ps-actions{grid-column:1 / -1!important;order:99!important;justify-content:flex-end!important}
html body.v56-ps .ps-map-wrap{grid-template-columns:minmax(0,1fr) 150px!important;align-items:start!important}
html body.v56-ps .v56-uf-list{grid-column:1 / -1;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px 18px;margin-top:6px;padding-top:12px;border-top:1px solid var(--v56-line)}
html body.v56-ps .v56-uf-row{display:flex;justify-content:space-between;font-size:12.5px;color:var(--v56-text)}
html body.v56-ps .v56-uf-row b{font-weight:850;color:var(--v56-navy)}
html body.v56-ps .v56-uf-bar{height:6px;background:#e8f0f8;border-radius:99px;margin-top:4px;overflow:hidden}
html body.v56-ps .v56-uf-bar i{display:block;height:100%;background:linear-gradient(90deg,#2fb5a3,#0b3d91);border-radius:inherit}
html body.v56-ps .v56-uf-empty{font-size:12px;color:var(--v56-muted)}
html body.v56-ps .v52-br-svg{max-height:460px!important}
html body.v56-ps .ps-rank-name small{text-transform:none!important}

/* ---- RELATORIOS: acabamentos ---- */
html body.v56-rp .report-options a.v53-host{margin:0!important}
html body.v56-rp header.saas-page-heading{margin-top:18px!important;align-items:flex-end!important}
html body.v56-rp header.saas-page-heading .topbar-tools label{margin:0!important}

/* ---- RELATORIO FISCAL: cabecalho das tabelas ---- */
html body.v56-fiscal .reports-table thead{top:0!important}
html body.v56-fiscal .reports-table thead th{position:static!important}
html body.v56-fiscal .reports-table th{font-size:11px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.04em;color:var(--v56-muted)!important}
html body.v56-fiscal .reports-table td{font-size:13px!important;color:var(--v56-text)!important}
html body.v56-fiscal .reports-section,html body.v56-fiscal .reports-stage .panel{border-radius:18px!important;border:1px solid var(--v56-line)!important;box-shadow:var(--v56-shadow)!important}

/* ---- ADMIN (Empresas, Certificados, Usuarios): so visual ---- */
html body.v56-adm section.panel{background:#fff!important;border:1px solid var(--v56-line)!important;border-radius:18px!important;box-shadow:var(--v56-shadow)!important}
html body.v56-adm .panel-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important}
html body.v56-adm .panel-head>a,html body.v56-adm .panel-head>.btn,html body.v56-adm .panel-head>button{margin-left:auto!important}
html body.v56-adm .panel-head h2{font-size:18px!important;font-weight:850!important;color:var(--v56-navy)!important;margin:0!important}
html body.v56-adm table.mui-table thead th{background:#f3f8fd!important;color:var(--v56-muted)!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.04em;padding:11px 12px!important;border-bottom:1px solid var(--v56-line)!important}
html body.v56-adm table.mui-table td{padding:12px!important;font-size:13px!important;color:var(--v56-text)!important;border-bottom:1px solid #eef3f9!important;vertical-align:middle}
html body.v56-adm table.mui-table tbody tr:hover td{background:#f8fbff!important}
html body.v56-adm .mui49-admin-cta,html body.v56-adm .panel-head .btn-small:not(.secondary){
  background:linear-gradient(135deg,var(--v56-blue),var(--v56-blue2))!important;color:#fff!important;border:0!important;border-radius:10px!important;
  font-weight:800!important;box-shadow:0 8px 18px rgba(11,111,239,.2)!important
}
html body.v56-adm td .btn-small,html body.v56-adm td a.btn-small{border-radius:8px!important;border:1px solid #cfe0f2!important;background:#fff!important;color:var(--v56-blue)!important;font-weight:800!important;box-shadow:none!important}

@media(max-width:1280px){
  html body.v56-ov .overview-kpis>.v56-kpi-main{grid-column:span 6!important}
  html body.v56-ov .overview-kpis>.v56-kpi-aux{grid-column:span 12!important}
  html body.v56-ov .overview-company-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.v56-doc .document-summary-grid{grid-template-columns:1fr!important}
  html body.v56-doc section.filter-panel form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.v56-ps .ps-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.v56-ps form.ps-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* v0.9.67: titulo do filtro (pseudo-elemento) sempre na primeira linha */
html body.v56-doc section.filter-panel form::before{grid-column:1 / -1!important;order:-10!important}
html body.v56-doc main.content{display:block!important}
html body.v56-ov main.content{display:block!important}

html body.v56 .v56-more-btn{white-space:nowrap!important;flex:0 0 auto!important;width:auto!important}
html body.v56-ps form.ps-filter .ps-actions .btn{flex:0 0 auto!important;width:auto!important;min-width:140px}
html body.v56-ps form.ps-filter .ps-actions{gap:12px!important}

/* v0.9.67: indicadores de Notas fiscais uniformes e grade que se adapta a 3 ou 4 cartoes */
html body.v56-doc .document-summary-grid.document-summary-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important}
html body.v56-doc .document-summary-grid .document-summary-card{border-top:1px solid var(--v56-line)!important;box-shadow:var(--v56-shadow)!important;padding:14px 18px!important;min-height:0!important}
html body.v56-doc .document-summary-grid .document-summary-card::before,html body.v56-doc .document-summary-grid .document-summary-card::after{display:none!important}
html body.v56-doc .document-summary-grid .document-summary-card strong{font-size:24px!important;line-height:1.2!important;display:block!important}
html body.v56-doc .document-summary-grid .document-summary-card small{text-transform:none!important;letter-spacing:0!important;font-size:12px!important;font-weight:500!important;color:var(--v56-muted)!important;display:block!important}
html body.v56 .v56-dup{display:none!important}
/* ---- v0.9.67: Situacao dos CNPJs (Orgaos Publicos) ---- */
html body.v56-ps .v60-ident{background:#fff!important;border:1px solid var(--v56-line)!important;border-radius:18px!important;box-shadow:var(--v56-shadow)!important;padding:18px 20px!important}
html body.v56-ps .v60-ident .ps-panel-head{align-items:baseline!important;flex-wrap:wrap!important}
html body.v56-ps .v60-note{font-size:12.5px;color:var(--v56-muted)}
html body.v56-ps .v60-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
html body.v56-ps .v60-card{
  text-align:left;background:#f7fafe;border:1px solid var(--v56-line);border-radius:14px;padding:12px 14px;cursor:pointer;
  display:flex;flex-direction:column;gap:2px;transition:transform .15s,box-shadow .15s,border-color .15s;min-height:104px
}
html body.v56-ps .v60-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(18,52,86,.1)}
html body.v56-ps .v60-card.is-active{border-color:var(--v56-blue);background:#eef6ff}
html body.v56-ps .v60-card-label{font-size:12.5px;font-weight:800;color:var(--v56-muted)}
html body.v56-ps .v60-card b{font-size:26px;font-weight:900;color:var(--v56-navy);line-height:1.15}
html body.v56-ps .v60-card small{font-size:11.5px;color:var(--v56-text)}
html body.v56-ps .v60-card em{font-style:normal;font-size:11px;color:var(--v56-muted);margin-top:auto}
html body.v56-ps .v60-card.tone-blue{border-top:3px solid #0b6fef}
html body.v56-ps .v60-card.tone-gray{border-top:3px solid #9fb2c6}
html body.v56-ps .v60-card.tone-amber{border-top:3px solid #f0a53a}
html body.v56-ps .v60-card.tone-red{border-top:3px solid #e24b4a}
html body.v56-ps .v60-list{margin-top:16px;border-top:1px solid var(--v56-line);padding-top:14px}
html body.v56-ps .v60-list[hidden]{display:none!important}
html body.v56-ps .v60-list-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;color:var(--v56-navy)}
html body.v56-ps .v60-table-wrap{max-height:420px;overflow:auto;border:1px solid var(--v56-line);border-radius:12px}
html body.v56-ps .v60-table th{position:sticky;top:0;background:#f3f8fd!important;z-index:1}
html body.v56-ps .v60-table td.num{text-align:right;white-space:nowrap}
html body.v56-ps .v60-loading,html body.v56-ps .v60-error{font-size:13px;color:var(--v56-muted);margin:8px 0}
html body.v56-ps .v60-error{color:#a32d2d}
@media(max-width:1280px){html body.v56-ps .v60-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v0.9.67: botoes de exportacao lado a lado */
html body .v61-actions{display:flex!important;gap:10px!important;align-items:center!important;flex-wrap:wrap}
html body .v61-actions .btn{min-height:42px!important;border-radius:10px!important;font-weight:800!important;padding:0 18px!important}
html body .v61-actions .btn-primary{background:linear-gradient(135deg,#0b6fef,#1c95f3)!important;color:#fff!important;border:0!important;box-shadow:0 8px 18px rgba(11,111,239,.2)!important}

/* v0.9.67: botoes de exportacao com largura propria, no canto direito do titulo */
html body .v61-actions{display:flex!important;flex:0 0 auto!important;width:auto!important;gap:10px!important;align-items:center!important;justify-content:flex-end!important}
html body .v61-actions>.btn,html body .v61-actions>button{flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;padding:0 18px!important;min-height:40px!important;font-size:14px!important}
html body.v56-ps .ps-table-panel .ps-panel-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important}
/* v0.9.67: painel da empresa (company-hero): texto legivel sobre o azul e paleta do sistema */
html body .company-hero{
  background:linear-gradient(120deg,#0e2a47 0%,#0b4fb3 62%,#0b6fef 100%)!important;color:#fff!important;border-radius:18px!important;
  box-shadow:0 12px 30px rgba(18,52,86,.16)!important;padding:22px 26px!important
}
html body .company-hero h1,html body .company-hero h2,html body .company-hero h3{color:#fff!important;font-size:24px!important;font-weight:850!important;letter-spacing:-.01em!important}
html body .company-hero p{color:#d7ebfa!important}
html body .company-hero .company-eyebrow{color:#8fd2ff!important}
html body .company-hero .company-hero-actions .btn,html body .company-hero .company-hero-actions a,html body .company-hero .company-hero-actions button{
  border-radius:10px!important;font-weight:800!important;min-height:40px!important
}
/* ===== v0.9.67: login Master Contadores / Brascon ===== */
html body.v65-login{background:#eef4fb!important}
html body.v65-login .auth-shell{
  display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;min-height:100vh!important;width:100%!important;gap:0!important;background:#f7fafe!important
}
html body.v65-login .auth-hero{
  order:-1!important;position:relative!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;
  background:linear-gradient(150deg,#0e2a47 0%,#0b4fb3 62%,#0b6fef 100%)!important;color:#fff!important;padding:48px 56px!important;min-height:100vh!important
}
html body.v65-login .auth-hero::after{content:"";position:absolute;right:-120px;top:-120px;width:380px;height:380px;border-radius:50%;background:rgba(255,255,255,.06);pointer-events:none}
html body.v65-login .auth-hero .hero-copy{display:none!important}
html body.v65-login .v65-brand{position:relative;z-index:1;display:flex;flex-direction:column;gap:30px;height:100%;min-height:calc(100vh - 96px)}
html body.v65-login .v65-logo-row{display:flex;align-items:center;gap:20px}
html body.v65-login .v65-tile-m{width:112px;height:112px;border-radius:26px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 14px 30px rgba(0,0,0,.2);flex:0 0 112px}
html body.v65-login .v65-tile-m img{width:88px;height:88px;object-fit:contain}
html body.v65-login .v65-name{font-size:34px;font-weight:850;line-height:1.1;letter-spacing:-.01em}
html body.v65-login .v65-name small{display:block;font-size:16px;font-weight:500;color:#bcd9f7;margin-top:4px;letter-spacing:0}
html body.v65-login .v65-headline h2{font-size:40px;line-height:1.12;margin:0;font-weight:850;letter-spacing:-.02em;color:#fff!important}
html body.v65-login .v65-headline p{font-size:17px;color:#cfe3fa;margin:14px 0 0;max-width:470px;line-height:1.5}
html body.v65-login .v65-benefits{display:grid;gap:16px}
html body.v65-login .v65-benefit{display:flex;gap:14px;align-items:flex-start}
html body.v65-login .v65-benefit i{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;flex:0 0 40px;color:#fff}
html body.v65-login .v65-benefit i svg{width:22px;height:22px}
html body.v65-login .v65-benefit b{display:block;font-size:16px;font-weight:700}
html body.v65-login .v65-benefit span{font-size:14px;color:#cfe3fa}
html body.v65-login .v65-client{margin-top:auto;display:flex;align-items:center;gap:22px;padding:20px 24px;border-radius:16px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2)}
html body.v65-login .v65-client small{display:block;font-size:14px;color:#bcd9f7;text-transform:uppercase;letter-spacing:.08em}
html body.v65-login .v65-client strong{font-size:34px;font-weight:850;line-height:1.1;letter-spacing:-.01em}
html body.v65-login .v65-tile-b{width:112px;height:112px;border-radius:26px;background:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 112px;box-shadow:0 14px 30px rgba(0,0,0,.2)}
html body.v65-login .v65-tile-b img{width:88px;height:88px;object-fit:contain}

html body.v65-login .auth-panel{display:flex!important;align-items:center!important;justify-content:center!important;padding:40px!important;background:#f7fafe!important;min-height:100vh!important;width:auto!important;max-width:none!important}
html body.v65-login .auth-card{width:100%!important;max-width:410px!important;box-shadow:none!important;border:0!important;background:transparent!important;padding:0!important}
html body.v65-login .auth-card .brand-mark,html body.v65-login .auth-card .eyebrow{display:none!important}
html body.v65-login .auth-card h1{font-size:32px!important;line-height:1.15!important;font-weight:850!important;color:#0e2a47!important;margin:0!important}
html body.v65-login .auth-card .lead{font-size:15px!important;color:#66788a!important;margin:8px 0 26px!important}
html body.v65-login .auth-card .field label{font-size:13px!important;font-weight:700!important;color:#1b2b3b!important;text-transform:none!important;letter-spacing:0!important}
html body.v65-login .auth-card .field input{height:50px!important;border:1px solid #d5e3f1!important;border-radius:12px!important;background:#fff!important;font-size:15px!important;padding:0 14px!important}
html body.v65-login .auth-card .field input:focus{border-color:#73b8ed!important;box-shadow:0 0 0 3px rgba(11,111,239,.12)!important;outline:none!important}
html body.v65-login .auth-card .btn-primary{
  height:52px!important;border-radius:12px!important;font-size:16px!important;font-weight:800!important;width:100%!important;border:0!important;
  background:linear-gradient(135deg,#0b6fef,#1c95f3)!important;color:#fff!important;box-shadow:0 10px 22px rgba(11,111,239,.25)!important
}
html body.v65-login .auth-card .link-row{display:flex!important;flex-direction:column!important;gap:12px!important;margin-top:18px!important}
html body.v65-login .auth-card .link-row a.v65-forgot{align-self:flex-end;order:-1;color:#0b6fef!important;font-weight:700;font-size:14px;text-decoration:none!important}
html body.v65-login .auth-card .link-row a.v65-second{
  display:flex!important;align-items:center;justify-content:center;height:50px;border-radius:12px;background:#fff;border:1px solid #cfe0f2;color:#0b6fef!important;
  font-weight:800;font-size:15px;text-decoration:none!important
}
html body.v65-login .v65-foot{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:26px;font-size:13px;color:#8aa0b4}
html body.v65-login .v65-foot svg{width:16px;height:16px}
@media(max-width:900px){
  html body.v65-login .auth-shell{grid-template-columns:1fr!important}
  html body.v65-login .auth-hero{min-height:0!important;padding:28px!important}
  html body.v65-login .v65-brand{min-height:0}
  html body.v65-login .v65-headline h2{font-size:28px}
  html body.v65-login .v65-tile-m{width:84px;height:84px;flex-basis:84px}
  html body.v65-login .v65-tile-m img{width:64px;height:64px}
  html body.v65-login .v65-name{font-size:26px}
  html body.v65-login .v65-tile-b{width:84px;height:84px;flex-basis:84px;border-radius:20px}
  html body.v65-login .v65-tile-b img{width:64px;height:64px}
  html body.v65-login .v65-client strong{font-size:26px}
}

/* ===== v0.9.116 Clientes e Fornecedores ===== */
.cf-page{display:flex;flex-direction:column;gap:14px;font-family:inherit;color:#0e2a47}
.cf-page.is-loading .cf-kpis,.cf-page.is-loading .cf-grid{opacity:.55;transition:opacity .15s}
.cf-top{display:flex;justify-content:flex-end}
.cf-seg{display:inline-flex;background:#eef4fb;border-radius:999px;padding:3px}
.cf-seg button{border:0;background:transparent;padding:7px 18px;border-radius:999px;font:inherit;font-size:14px;color:#4a6580;cursor:pointer}
.cf-seg button.on{background:#0b6fef;color:#fff}
.cf-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;background:#fff;border:1px solid #e1eaf5;border-radius:18px;padding:14px 16px}
.cf-filters label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#4a6580;min-width:130px;flex:1 1 130px}
.cf-filters .cf-grow{flex:2 1 200px}
.cf-filters select,.cf-filters input{height:38px;border:1px solid #d5e1ef;border-radius:12px;padding:0 10px;font:inherit;font-size:14px;color:#0e2a47;background:#fff;min-width:0;width:100%}
.cf-filters .btn{height:38px}
.cf-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.cf-card{background:#fff;border:1px solid #e1eaf5;border-radius:18px;padding:16px 18px;min-width:0}
.cf-card small{display:block;font-size:12px;color:#4a6580}
.cf-card strong{display:block;font-size:24px;font-weight:600;margin-top:2px;color:#0e2a47}
.cf-card h2{font-size:16px;font-weight:600;margin:0 0 12px;color:#0e2a47}
.cf-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:12px}
@media(max-width:900px){.cf-grid{grid-template-columns:minmax(0,1fr)}}
.cf-rankrow{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(60px,1fr) 78px;gap:10px;align-items:center;padding:5px 0;font-size:14px}
.cf-ufrow{display:grid;grid-template-columns:30px 1fr 44px;gap:10px;align-items:center;padding:4px 0;font-size:14px}
.cf-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cf-bar{height:8px;border-radius:99px;background:#eef4fb;overflow:hidden}
.cf-bar i{display:block;height:100%;background:#1c95f3;border-radius:99px}
.r{text-align:right}
.cf-note{font-size:12px;color:#4a6580;margin:10px 0 0}
.cf-map{max-width:300px;margin:0 auto 8px}
.cf-map svg{width:100%;height:auto;display:block}
.cf-uf{stroke:#fff;stroke-width:.6;cursor:pointer;transition:opacity .12s}
.cf-uf:hover{opacity:.8}
.cf-uf.is-selected{stroke:#0e2a47;stroke-width:1.6}
.cf-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.cf-head h2{margin:0}
.cf-actions{display:flex;gap:8px}
.cf-tablewrap{overflow-x:auto}
.cf-table{width:100%;border-collapse:collapse;font-size:14px}
.cf-table th{font-size:12px;font-weight:600;color:#4a6580;text-align:left;padding:9px 8px;border-bottom:1px solid #e1eaf5;white-space:nowrap}
.cf-table td{padding:10px 8px;border-bottom:1px solid #eef3f9;max-width:280px}
.cf-table th.r,.cf-table td.r{text-align:right}
.cf-pill{font-size:12px;padding:2px 10px;border-radius:99px;display:inline-block}
.cf-pill.c{background:#e6f1fb;color:#0c447c}
.cf-pill.f{background:#eaf3de;color:#27500a}
/* ===== v0.9.116 ajustes Clientes e Fornecedores ===== */
.cf-hide{display:none!important}
.cf-table td,.cf-table th{font-size:14px!important}
.cf-table th{font-size:12px!important}
.cf-table td{line-height:1.3}
.cf-actions{flex-wrap:nowrap}
.cf-actions .btn{flex:none!important;width:auto!important;height:auto!important;min-height:0!important;padding:8px 16px!important;font-size:13px!important;line-height:1.2!important;white-space:nowrap!important}
.cf-bar{display:block;width:100%}
.cf-bar i{display:block;height:100%}.cf-map{display:flex;align-items:center;gap:14px;max-width:none;margin:0 0 8px}
.cf-map svg{flex:1 1 auto;min-width:0;max-width:440px;width:100%;height:auto}
.cf-uflabel{font-size:8.5px;font-weight:600;pointer-events:none;cursor:pointer;paint-order:normal}
.cf-legend{flex:none;border:1px solid #e1eaf5;border-radius:12px;padding:10px 12px;font-size:12px;color:#4a6580;background:#fff}
.cf-legend b{display:block;font-weight:600;color:#0e2a47;margin-bottom:8px}
.cf-legend-body{display:flex;gap:8px;height:110px}
.cf-legend-bar{display:block;width:12px;border-radius:99px;background:linear-gradient(to top,rgb(231,245,168),rgb(143,214,143),rgb(47,181,163),rgb(27,127,184),rgb(11,61,145))}
.cf-legend-labels{display:flex;flex-direction:column;justify-content:space-between;white-space:nowrap}
@media(max-width:520px){.cf-map{flex-direction:column}}
/* ===== v0.9.116 tela compacta: tabela com rolagem propria ===== */
.cf-page{gap:12px}
.cf-grid{align-items:start}
.cf-grid>.cf-card:last-child{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:0 18px;align-content:start}
.cf-grid>.cf-card:last-child h2{grid-column:1/-1}
.cf-grid>.cf-card:last-child .cf-ufbars{align-self:center}
@media(max-width:1100px){.cf-grid>.cf-card:last-child{grid-template-columns:minmax(0,1fr)}}
.cf-map{margin:0}
.cf-map svg{max-width:300px}
.cf-legend-body{height:90px}
.cf-tablewrap{max-height:360px;overflow:auto;border-radius:12px}
.cf-table thead th{position:sticky;top:0;background:#fff;z-index:2;box-shadow:0 1px 0 #e1eaf5}
/* ===== v0.9.116 etiquetas de filtro, notas por empresa e novas colunas ===== */
.cf-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cf-chips[hidden]{display:none}
.cf-chips-l{font-size:13px;color:#4a6580}
.cf-chip{display:inline-flex;align-items:center;gap:6px;background:#e6f1fb;color:#0c447c;border-radius:99px;padding:4px 6px 4px 12px;font-size:13px}
.cf-chip button{border:0;background:#fff;color:#0c447c;border-radius:50%;width:20px;height:20px;line-height:18px;padding:0;cursor:pointer;font-size:14px}
.cf-chip button:hover{background:#0b6fef;color:#fff}
.cf-click{cursor:pointer}
.cf-table tbody tr.cf-click:hover td{background:#f1f7fd}
.cf-rankrow.cf-click:hover .cf-name{color:#0b6fef;text-decoration:underline}
.cf-table td.cf-name{max-width:220px}
.cf-modal-bg{position:fixed;inset:0;background:rgba(14,42,71,.45);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
.cf-modal{background:#fff;border-radius:18px;width:min(920px,100%);max-height:86vh;display:flex;flex-direction:column;overflow:hidden}
.cf-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 20px 8px}
.cf-modal-head strong{display:block;font-size:17px;color:#0e2a47}
.cf-modal-head small{color:#4a6580;font-size:13px}
.cf-modal-x{border:0;background:#eef4fb;color:#0e2a47;border-radius:50%;width:32px;height:32px;font-size:20px;line-height:30px;cursor:pointer;padding:0}
.cf-modal-sum{padding:0 20px 10px;font-size:14px;color:#4a6580}
.cf-modal-body{overflow:auto;padding:0 20px 16px}
.cf-modal-body thead th{position:sticky;top:0;background:#fff;z-index:1}
/* ===== v0.9.116 janela de notas sem rolagem lateral ===== */
.cf-modal{width:min(1080px,100%)}
.cf-modal-body{overflow-x:hidden}
.cf-modal-body .cf-table{table-layout:fixed;width:100%}
.cf-modal-body .cf-table th,.cf-modal-body .cf-table td{padding-left:6px;padding-right:6px}
.cf-modal-body .cf-table th:nth-child(1){width:11%}
.cf-modal-body .cf-table th:nth-child(2){width:13%}
.cf-modal-body .cf-table th:nth-child(3){width:30%}
.cf-modal-body .cf-table th:nth-child(4){width:14%}
.cf-modal-body .cf-table th:nth-child(5){width:16%}
.cf-modal-body .cf-table th:nth-child(6){width:16%}
.cf-modal-body .cf-table td{max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* ===== v0.9.116 dados cadastrais: porte, regime, CNAE ===== */
.cf-cov{margin:0;font-size:13px;color:#633806;background:#faeeda;border-radius:12px;padding:8px 14px}
.cf-cov[hidden]{display:none}
.cf-table{min-width:1240px}
.cf-modal-body .cf-table{min-width:0}
.cf-table td.cf-name{max-width:200px}
/* ===== v0.9.116 logos Master e Brascon no menu lateral + menu recolhivel ===== */
@media (min-width:900px){body .app>aside.sidebar.saas-sidebar{position:sticky;top:0;align-self:start;height:100vh;overflow-y:auto;overflow-x:hidden}}
.sidebar .saas-brand-row.v75{display:flex;align-items:center;gap:10px;padding:2px 4px 14px;margin-bottom:6px;border-bottom:1px solid #e1eaf5;font-size:0}
.v75-tile{width:44px;height:44px;flex:none;border-radius:12px;background:#fff;border:1px solid #e1eaf5;display:flex;align-items:center;justify-content:center}
.v75-tile img{width:28px;height:28px;object-fit:contain;display:block}
.v75-tile.sm{width:34px;height:34px;border-radius:10px}
.v75-tile.sm img{width:22px;height:22px}
.v75-name{display:block;font-size:13px;font-weight:700;line-height:1.15;color:#0e2a47;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v75-sub{display:block;font-size:11px;font-weight:500;color:#4a6580;margin-top:2px}
.v75-txt{min-width:0;flex:1 1 auto}
.v75-client{margin:auto 0 8px;border:1px solid #e1eaf5;border-radius:14px;padding:10px;display:flex;align-items:center;gap:10px;background:#f8fbff}
.v75-client .k{display:block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#4a6580}
.v75-client .n{display:block;font-size:13px;font-weight:700;color:#0e2a47}
.sidebar .v75-client+.side-user{margin-top:0}
.v75-toggle{flex:none;width:28px;height:28px;border:1px solid #e1eaf5;background:#fff;border-radius:9px;color:#4a6580;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;font-size:0}
.v75-toggle:hover{background:#e6f1fb;color:#0c447c}
.v75-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.sidebar .side-user .v75-av{display:none}
body:not(.v75-collapsed) .sidebar .v75-ico{display:none!important}
@media (max-width:899px){.v75-toggle{display:none}}
@media (min-width:900px){
 body.v75-collapsed .app{grid-template-columns:76px 1fr!important}
 body.v75-collapsed .sidebar.saas-sidebar{padding:18px 10px;align-items:center}
 body.v75-collapsed .saas-brand-row.v75{flex-direction:column;gap:8px;padding:2px 0 12px;width:100%;justify-content:center}
 body.v75-collapsed .v75-txt{display:none}
 body.v75-collapsed .v75-toggle svg{transform:rotate(180deg)}
 body.v75-collapsed .sidebar nav.nav{width:100%}
 body.v75-collapsed .sidebar nav.nav a{font-size:0!important;display:flex;justify-content:center;align-items:center;padding:10px 0!important;gap:0}
 body.v75-collapsed .sidebar nav.nav a .saas-nav-icon{margin:0!important;font-size:14px}
 body.v75-collapsed .sidebar nav.nav .nav-section{font-size:0!important;height:1px;background:#e1eaf5;margin:10px 8px;padding:0}
 body.v75-collapsed .v75-client{padding:6px;margin:auto 0 8px;border-radius:12px;justify-content:center}
 body.v75-collapsed .v75-client .v75-txt{display:none}
 body.v75-collapsed .side-user{padding:12px 0 2px;text-align:center;width:100%}
 body.v75-collapsed .side-user strong,body.v75-collapsed .side-user>span{display:none}
 body.v75-collapsed .side-user .v75-av{display:inline-flex;width:34px;height:34px;border-radius:50%;background:#e6f1fb;color:#0c447c;font-size:12px;font-weight:700;align-items:center;justify-content:center}
}
/* ===== v0.9.116 usuarios e permissoes por perfil ===== */
.u78-inline{margin:0}
.u78-inline select{height:32px;border:1px solid #d5e1ef;border-radius:10px;padding:0 8px;font:inherit;font-size:13px;color:#0e2a47;background:#fff}
.u78-lock{color:#4a6580;font-size:12px}
.u78-note{margin:10px 2px 0;font-size:12px;color:#4a6580}
.u78-users td,.u78-matrix td{vertical-align:middle}
.u78-users .r,.u78-matrix .c{text-align:right}
.u78-matrix th.c,.u78-matrix td.c{text-align:center}
.u78-matrix input[type=checkbox]{width:18px;height:18px;accent-color:#0b6fef;cursor:pointer}
.u78-matrix input[disabled]{cursor:not-allowed;opacity:.55}
.u78-perms{margin-top:14px}
.u78-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.u78-del{border:1px solid #f0b8b8;color:#a32d2d;background:#fff;border-radius:999px;padding:6px 14px;font-size:12px;cursor:pointer}
.u78-del:hover{background:#fcebeb}
.u78-danger{background:#d93c3c;color:#fff;border:0;border-radius:999px;padding:8px 16px;font-size:13px;cursor:pointer}
.u78-confirm{width:min(460px,100%)}
.u78-confirm-actions{display:flex;justify-content:flex-end;gap:8px;padding:6px 20px 18px;margin:0}
.u78-confirm-actions .btn{border:1px solid #d5e1ef;background:#fff;border-radius:999px;padding:8px 16px;font-size:13px;cursor:pointer}
body.v78-no-export :is(a[href*="export"],button[id*="xport"],a[id*="xport"],#cfXlsx,#cfCsv,#v61Xlsx,#psExport){display:none!important}
/* ===== v0.9.116 painel da empresa: aviso das notas fora dos valores ===== */
.company-excluded{margin:0 0 12px;padding:9px 14px;border-radius:12px;background:#faeeda;color:#633806;font-size:13px}
/* ===== v0.9.116 Visao Geral: notas canceladas e substituidas fora dos valores ===== */
.v82-link{display:inline-block;margin-left:10px;font-size:11px;font-weight:700;color:#0b6fef;text-decoration:none;white-space:nowrap}
.v82-link:hover{text-decoration:underline}
.v82-eq{margin:8px 6px 0;font-size:12px;color:#4a6580}
/* v0.9.116 cartoes acompanham os filtros */
.v84-banner{display:flex;gap:10px;align-items:center;margin:0 0 14px;padding:12px 16px;border-radius:14px;background:#fff1f0;border:1px solid #f5b5b0;color:#9a2a20;font-size:14px;font-weight:600}
.v84-banner.is-sub{background:#fff8e6;border-color:#f0d58a;color:#7a5a00}
.v84-banner b{font-weight:800}
/* v0.9.116 cartoes de movimentacao (Visao Geral e painel da empresa) */
aside.overview-total.p85,aside.movement-summary.p85{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:0!important;padding:24px!important;height:auto!important;min-height:0!important}
aside.p85>span.p85-eyebrow{display:block!important;font-size:12px!important;letter-spacing:.06em;text-transform:uppercase;color:#5b7088!important;font-weight:800!important}
aside.p85>strong{display:block!important;margin:8px 0 4px!important;font-size:clamp(24px,2.1vw,32px)!important;line-height:1.1!important;color:#0e2a47!important;overflow-wrap:anywhere}
aside.p85>small{display:block!important;margin:0 0 18px!important;color:#5b7088!important;font-size:13px!important}
aside.p85 .p85-bar{display:flex!important;height:12px!important;padding:0!important;gap:2px!important;border-radius:99px;overflow:hidden;background:#e4ebf3;margin:0 0 4px!important;width:100%!important;box-sizing:border-box;border:0!important}
p85-seg{display:block;height:12px;min-width:3px}
p85-seg.a{background:#0b6fef}p85-seg.b{background:#f59e0b}p85-seg.c{background:#94a3b8}
aside.p85 .p85-leg{display:grid!important;gap:8px!important;margin:14px 0!important;padding:0!important;border:0!important}
aside.p85 .p85-leg div{display:flex!important;justify-content:space-between!important;align-items:center!important;font-size:14px;color:#4a6078;padding:0!important;margin:0!important;border:0!important}
aside.p85 .p85-leg b{color:#0e2a47!important;font-weight:800}
aside.p85 .p85-leg em{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px;font-style:normal}
aside.p85 .p85-leg .a em{background:#0b6fef}aside.p85 .p85-leg .b em{background:#f59e0b}aside.p85 .p85-leg .c em{background:#94a3b8}
aside.p85 .p85-line{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px;padding:13px 0!important;margin:0!important;border-top:1px solid #e4ebf3!important;font-size:14px;color:#4a6078}
aside.p85 .p85-line span{font-size:14px!important;color:#4a6078!important;text-transform:none!important}
aside.p85 .p85-line b{color:#0e2a47!important;font-weight:800;font-size:14px!important;text-align:right}
aside.overview-total.p85>a{margin:auto 0 0!important;width:100%!important;box-sizing:border-box!important;text-align:center!important}
/* v0.9.116 ISS por local de incidencia (Relatorios) e legenda dos cartoes de movimentacao */
.p86-sec{margin:18px 0 6px}
.p86-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 10px;flex-wrap:wrap}
.p86-head h3{margin:0;font-size:16px;color:#0e2a47}
.p86-head span{font-size:13px;color:#5b7088}
.p86-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
a.p86-card{display:block;text-decoration:none;color:inherit;background:#fff;border:1px solid #dbe5f0;border-radius:18px;padding:18px 20px;box-shadow:0 2px 10px rgba(14,42,71,.05);transition:box-shadow .15s,border-color .15s}
a.p86-card:hover{border-color:#0b6fef;box-shadow:0 6px 18px rgba(11,111,239,.14)}
a.p86-card.is-selected{border-color:#0b6fef;box-shadow:0 0 0 2px rgba(11,111,239,.25)}
a.p86-card.is-out{border-left:5px solid #f59e0b}
a.p86-card.is-in{border-left:5px solid #0b6fef}
.p86-card .k{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:800;color:#5b7088}
.p86-card .v{display:block;margin:6px 0 2px;font-size:28px;font-weight:800;color:#0e2a47}
.p86-card .s{display:block;font-size:13px;color:#5b7088}
.p86-card .ufs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 2px}
.p86-card .ufs b{font-size:12px;background:#fff4e0;color:#7a4a00;border-radius:99px;padding:3px 10px}
.p86-card .go{display:block;margin-top:12px;font-size:13px;font-weight:800;color:#0b6fef}
.p86-eq{margin:10px 2px 0;font-size:13px;color:#5b7088}
@media (max-width:760px){.p86-cards{grid-template-columns:1fr}}
aside.p85 .p85-leg{justify-items:stretch!important}
aside.p85 .p85-leg div{width:100%!important;box-sizing:border-box}
/* v0.9.116 retencoes por tributo, ISS estimado e avisos */
.p86-card .est{display:block;margin-top:10px;font-size:14px;color:#0e2a47}
.p86-card .est b{font-size:16px}
.p86-card .est2{display:block;margin-top:3px;font-size:12px;color:#5b7088}
.p86-warn{margin:10px 2px 0;padding:8px 12px;border-radius:12px;background:#fff8e6;border:1px solid #f0d58a;color:#7a5a00;font-size:13px}
.p86-cards.p87-ret{grid-template-columns:repeat(4,minmax(0,1fr))}
a.p86-card.is-ret{border-left:5px solid #7c5cff}
a.p86-card.is-ret .v{font-size:24px}
@media (max-width:1100px){.p86-cards.p87-ret{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.p86-cards.p87-ret{grid-template-columns:1fr}}
/* v0.9.116 retencoes: legenda, grupos (destacado / a conferir / desconto no liquido) */
.p87-leg{margin:0 2px 6px;font-size:13px;line-height:1.55;color:#5b7088}
.p87-leg b{color:#0e2a47}
.p87-grp{margin:16px 2px 8px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:800;color:#0e2a47}
.p86-cards.p87-two{grid-template-columns:repeat(2,minmax(0,1fr))}
a.p86-card.is-chk{border-left:5px solid #f59e0b}
a.p86-card.is-chk .v,a.p86-card.is-ded .v{font-size:24px}
a.p86-card.is-ded{border-left:5px solid #14b8a6}
a.p86-card.is-chk .k,a.p86-card.is-ded .k{text-transform:none;letter-spacing:0;font-size:13px}
@media (max-width:760px){.p86-cards.p87-two{grid-template-columns:1fr}}
/* v0.9.116 abas Retido pelos clientes / Retido por voce / Todas */
.p87-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 6px}
.p87-tab{appearance:none;-webkit-appearance:none;cursor:pointer;display:inline-flex;align-items:baseline;gap:8px;padding:8px 16px;border-radius:999px;border:1px solid #dbe5f0;background:#fff;color:#0e2a47;font:inherit;font-size:13px;font-weight:700;line-height:1.2;transition:border-color .15s,background .15s}
.p87-tab b{font-size:13px;font-weight:800;color:#5b7088}
.p87-tab:hover{border-color:#0b6fef}
.p87-tab:focus-visible{outline:2px solid #0b6fef;outline-offset:2px}
.p87-tab.is-on{background:#0b6fef;border-color:#0b6fef;color:#fff}
.p87-tab.is-on b{color:#dbe9ff}
.p87-pane[hidden]{display:none}

/* v0.9.116 Relatorios > Visao geral em abas (Indicadores, Local do ISS, Retencoes, Desconto no liquido) */
#rv{container-type:inline-size;display:block;color:#1b2b3b;margin:0 0 18px;padding:0;background:none;border:0;box-shadow:none;-webkit-text-stroke:0;text-shadow:none}
#rv *{box-sizing:border-box;-webkit-text-stroke:0;text-shadow:none}
#rv svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#rv svg.rv-bar,#rv svg.bar{stroke:none}
#rv svg.rv-bar rect,#rv svg.bar rect{stroke:none}
.rv-old{display:none!important}
#rv .rv-pane[hidden],#rv .rv-hold,#rv .rv-leg[hidden]{display:none}
#rv .rv-tabs{display:flex;gap:2px;background:#fff;border:1px solid #e1ebf5;border-radius:16px;padding:0 10px;box-shadow:0 10px 30px rgba(18,52,86,.06);margin-bottom:16px;overflow-x:auto}
#rv .rv-tab{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:9px;padding:17px 16px 14px;font:700 13.5px/1 Inter,"Segoe UI",Roboto,Arial,sans-serif;color:#5b7088;border-bottom:3px solid transparent;white-space:nowrap;border-radius:0!important}
#rv .rv-tab svg{width:19px;height:19px}
#rv .rv-tab:hover{color:#0e2a47}
#rv .rv-tab:focus-visible{outline:2px solid #0b6fef;outline-offset:-2px}
#rv .rv-tab.on{color:#0b6fef;border-bottom-color:#0b6fef}
#rv .rv-pill{font:800 11px/1 Inter,"Segoe UI",sans-serif;padding:4px 8px;border-radius:99px;background:#fff1d6;color:#8a5a00;border:1px solid #f4d48d}
#rv .rv-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 16px}
#rv .rv-card{display:flex;align-items:center;gap:14px;padding:16px 18px;background:#fff;border:1px solid #e1ebf5;border-left:4px solid var(--ac,#0b6fef);border-radius:16px;box-shadow:0 8px 24px rgba(18,52,86,.05);min-width:0}
#rv button.rv-card{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:14px;padding:16px 18px;background:#fff;border:1px solid #e1ebf5;border-left:4px solid var(--ac,#0b6fef);border-radius:16px!important;box-shadow:0 8px 24px rgba(18,52,86,.05);min-width:0}
#rv button.rv-card:hover{border-color:var(--ac);box-shadow:0 10px 28px rgba(11,111,239,.14)}
#rv button.rv-card:focus-visible{outline:2px solid #0b6fef;outline-offset:2px}
#rv .rv-ico{flex:none;width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:var(--tt,#e8f1ff);color:var(--ac,#0b6fef)}
#rv .rv-ico svg{width:25px;height:25px}
#rv .rv-body{min-width:0}
#rv .rv-body .k{display:block;font-size:11px;font-weight:800;letter-spacing:.55px;text-transform:uppercase;color:#3c5975}
#rv .rv-body .v{display:block;margin:4px 0 2px;font-size:25px;line-height:1.15;font-weight:800;color:#0a2a52;font-variant-numeric:tabular-nums;white-space:nowrap}
#rv .rv-body .s{display:block;font-size:12.5px;line-height:1.35;color:#5b7088}
#rv .a-blue{--ac:#1d6fe8;--tt:#e6f0ff}
#rv .a-green{--ac:#12a37a;--tt:#e0f6ee}
#rv .a-red{--ac:#e5484d;--tt:#fde8e9}
#rv .a-purple{--ac:#7c5cff;--tt:#efeaff}
#rv .a-amber{--ac:#f59e0b;--tt:#fff3d9}
#rv .a-indigo{--ac:#4f5bd5;--tt:#e9ebff}
#rv .a-slate{--ac:#64748b;--tt:#eaeef3}
#rv .rv-loc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
#rv .rv-kpis+.rv-loc{margin-top:0}
#rv .rv-lc{background:#fff;border:1px solid #e1ebf5;border-left:4px solid var(--ac);border-radius:16px;box-shadow:0 8px 24px rgba(18,52,86,.05);padding:18px 20px}
#rv .rv-lc .k{display:block;font-size:11px;font-weight:800;letter-spacing:.55px;text-transform:uppercase;color:#3c5975}
#rv .rv-lc .row{display:flex;align-items:center;gap:16px;margin:6px 0 2px}
#rv .rv-lc .v{font-size:27px;font-weight:800;color:#0a2a52;font-variant-numeric:tabular-nums;white-space:nowrap}
#rv .rv-lc .bar{flex:1;min-width:60px;height:8px}
#rv .rv-lc .pc{font-size:12.5px;font-weight:700;color:#3c5975;font-variant-numeric:tabular-nums}
#rv .rv-lc .s{display:block;font-size:13px;color:#5b7088}
#rv .rv-lc .chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 2px}
#rv .rv-lc .chips b{font-size:12px;font-weight:700;background:#fff4e0;color:#7a4a00;border-radius:99px;padding:4px 11px}
#rv .rv-lc a.go{display:inline-block;margin-top:12px;font-size:13px;font-weight:800;color:#0b6fef;text-decoration:none}
#rv .rv-foot{margin:12px 2px 0;font-size:12.5px;color:#5b7088}
#rv .rv-warn{margin:10px 2px 0;padding:8px 12px;border-radius:12px;background:#fff8e6;border:1px solid #f0d58a;color:#7a5a00;font-size:13px}
#rv .rv-panel{background:#fff;border:1px solid #e1ebf5;border-radius:18px;box-shadow:0 10px 30px rgba(18,52,86,.06);overflow:hidden}
#rv .rv-ph{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:18px 20px;border-bottom:1px solid #edf2f7}
#rv .rv-ph h3{margin:0;font-size:16px;font-weight:800;color:#0e2a47}
#rv .rv-ph p{margin:2px 0 0;font-size:12.5px;color:#68809b}
#rv .rv-tools{display:flex;gap:10px;align-items:center;margin-left:auto}
#rv .rv-seg{display:inline-flex;padding:3px;border:1px solid #dce7f2;background:#f4f8fc;border-radius:12px;gap:2px}
#rv .rv-seg button{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;align-items:baseline;white-space:nowrap;border-radius:9px!important;padding:8px 13px;font:800 12.5px/1.2 Inter,"Segoe UI",Roboto,Arial,sans-serif;color:#66788a}
#rv .rv-seg button b{font-weight:800;color:#8aa0b8}
#rv .rv-seg button:hover{color:#0e2a47}
#rv .rv-seg button:focus-visible{outline:2px solid #0b6fef;outline-offset:1px}
#rv .rv-seg button.on{background:#fff;color:#0e2a47;box-shadow:0 1px 3px rgba(14,42,71,.14)}
#rv .rv-seg button.on b{color:#0b6fef}
#rv .rv-ib{all:unset;box-sizing:border-box;cursor:pointer;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px!important;border:1px solid #dce7f2;background:#fff;color:#3c5975;font:800 14px/1 Inter,"Segoe UI",sans-serif;font-style:italic}
#rv .rv-ib:hover,#rv .rv-ib.on{border-color:#0b6fef;color:#0b6fef}
#rv .rv-ib:focus-visible{outline:2px solid #0b6fef;outline-offset:1px}
#rv .rv-leg{margin:0;padding:11px 20px;background:#f8fbff;border-bottom:1px solid #edf2f7;font-size:12.5px;color:#5b7088}
#rv .rv-leg b{color:#0e2a47}
#rv .rv-pb{padding:18px 20px 20px}
#rv .rv-sub{display:flex;align-items:baseline;gap:10px;margin:0 0 10px}
#rv .rv-sub h4{margin:0;font-size:14px;color:#0e2a47}
#rv .rv-sub span{font-size:12.5px;color:#68809b}
#rv .rv-split{height:1px;background:#edf2f7;margin:22px -20px}
#rv .rv-panel[data-mode="PRE"] [data-side-pane="TOM"],#rv .rv-panel[data-mode="TOM"] [data-side-pane="PRE"]{display:none}
#rv .rv-panel:not([data-mode="ALL"]) .rv-sub,#rv .rv-panel:not([data-mode="ALL"]) .rv-split{display:none}
#rv .rv-tw{border:1px solid #dbe6f1;border-radius:12px;overflow:hidden}
#rv table.rv-t{width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse;font-size:13px;line-height:1.35;margin:0}
#rv .rv-t th{background:#f4f8fc;color:#66788a;font-size:11px;font-weight:800;letter-spacing:.44px;text-transform:uppercase;padding:11px 14px;text-align:left;border:0;border-bottom:1px solid #dbe6f1}
#rv .rv-t td{padding:12px 14px;border:0;border-bottom:1px solid #eaf0f6;color:#1b2b3b;font-size:13px;vertical-align:middle;background:transparent}
#rv .rv-t tbody tr:last-child td{border-bottom:0}
#rv .rv-t th:nth-child(2){width:100px}
#rv .rv-t th:nth-child(3){width:160px}
#rv .rv-t th:nth-child(4){width:170px}
#rv .rv-t th:nth-child(5){width:96px}
#rv .rv-t .num{text-align:right;font-variant-numeric:tabular-nums}
#rv .rv-t .money{font-weight:800}
#rv .rv-t tr.z td{color:#9db0c6}
#rv .rv-t tr.z .money{font-weight:600}
#rv .rv-t tbody tr:not(.z){cursor:pointer}
#rv .rv-t tbody tr:hover td{background:#f8fbff}
#rv .rv-t tfoot td{background:#f4f8fc;font-size:13px;font-weight:800;border-top:1px solid #dbe6f1;border-bottom:0;color:#0e2a47;cursor:pointer}
#rv .rv-t tfoot tr:hover td{background:#eef4fb}
#rv .rv-t .sh{white-space:nowrap}
#rv .rv-t em{font-style:normal;font-size:12px;font-weight:600;color:#5b7088;font-variant-numeric:tabular-nums}
#rv .rv-bar{display:inline-block;vertical-align:middle;margin-right:10px}
#rv .rv-t .go{text-align:right;white-space:nowrap}
#rv .rv-t .go a{font-size:12px;font-weight:800;color:#0b6fef;text-decoration:none}
#rv .rv-t .go a:hover{text-decoration:underline}
#rv .rv-dot{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:10px;vertical-align:-1px}
#rv .c-ISS{background:#6d4aff}
#rv .c-PIS{background:#2563eb}
#rv .c-COFINS{background:#0ea5e9}
#rv .c-CSLL{background:#94a3b8}
#rv .c-IRRF{background:#db2777}
#rv .c-INSS{background:#334155}
#rv .rv-t small{display:block;margin-top:3px;font-size:12px;color:#8a6a10;font-weight:400}
#rv .rv-chk{margin-top:20px}
#rv .rv-chk .hd{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:14px;font-weight:800;color:#0e2a47}
#rv .rv-chk .hd i{width:9px;height:9px;border-radius:50%;background:#f59e0b;display:inline-block}
#rv .rv-chk .hd span{font-weight:400;font-size:12.5px;color:#68809b}
#rv .rv-rec{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:16px;align-items:center;padding:20px 22px;border:1px solid #dbe6f1;border-radius:12px}
#rv .rv-rec .k{display:block;font-size:11px;font-weight:800;letter-spacing:.55px;text-transform:uppercase;color:#68809b}
#rv .rv-rec b{display:block;margin:5px 0 2px;font-size:24px;font-weight:800;color:#0a2a52;font-variant-numeric:tabular-nums}
#rv .rv-rec .s{font-size:12.5px;color:#68809b}
#rv .rv-rec .op{font-size:24px;color:#9db0c6;font-weight:300}
#rv .rv-note{margin:12px 2px 0;font-size:13px;color:#5b7088}
#rv .rv-note a{font-weight:800;color:#0b6fef;text-decoration:none;white-space:nowrap}
#rv .rv-empty{padding:26px 20px;text-align:center;color:#68809b;font-size:13.5px}
#rv details.rv-conf{margin-top:16px;border-top:1px solid #edf2f7;padding-top:12px}
#rv details.rv-conf>summary{all:unset;cursor:pointer;display:block;font:800 12.5px/1.2 Inter,"Segoe UI",sans-serif;color:#0b6fef}
#rv details.rv-conf>summary:before{content:"▸ "}
#rv details[open].rv-conf>summary:before{content:"▾ "}
#rv details.rv-conf p{margin:8px 0 0;font-size:12.5px;line-height:1.55;color:#68809b}
@container (max-width:900px){#rv .rv-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#rv .rv-loc{grid-template-columns:1fr}#rv .rv-rec{grid-template-columns:1fr;gap:12px}#rv .rv-rec .op{display:none}#rv .rv-t th.sh,#rv .rv-t td.sh{display:none}#rv .rv-t th:nth-child(3){width:140px}#rv .rv-tools{margin-left:0;width:100%;justify-content:space-between}}
@container (max-width:640px){#rv .rv-kpis{grid-template-columns:1fr}#rv .rv-t th:nth-child(2),#rv .rv-t td:nth-child(2){display:none}#rv .rv-seg button b{display:none}}

/* v0.9.116 etiqueta "verificar" no grupo de ISS com desconto menor que 2% */
#rv .rv-t .rv-tag{display:inline-block;margin-left:8px;padding:1px 9px;border-radius:999px;background:#fff1d6;color:#9a5b00;font-size:11px;font-weight:700;font-style:normal;letter-spacing:.02em;line-height:18px;vertical-align:1px;white-space:nowrap}

/* v0.9.116 aba Apuracao (ISS devido a 5%, retido pelo tomador, a pagar pelo emissor e desconto no liquido) */
#rv .rv-t tr.grp td{background:#f6f9fd;font-weight:800;color:#0e2a47}
#rv .rv-t tr.fx td:first-child{padding-left:38px;position:relative}
#rv .rv-t tr.fx td:first-child:before{content:"";position:absolute;left:20px;top:50%;width:10px;height:1px;background:#b8c7d8}
#rv .rv-t td.dif{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
#rv .rv-t td.dif small{display:block;font-weight:600;font-size:11px;margin:1px 0 0}
#rv .rv-t td.dif.ok{color:#0f7a4f}#rv .rv-t td.dif.menos{color:#b45309}#rv .rv-t td.dif.mais{color:#5b7088}
#rv .rv-t.rv-ap th:nth-child(n+2){width:auto}
#rv .rv-t.rv-ap th:first-child{width:35%}
#rv .rv-t.rv-ap th.go{width:96px}
#rv .rv-t.rv-ap td small{color:#5b7088}
#rv .rv-t.rv-ap td:nth-child(2),#rv .rv-t.rv-ap th:nth-child(2){display:table-cell!important}
#rv .rv-card.rv-wide{width:100%;box-sizing:border-box}
#rv .rv-wide .parts{margin-left:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:1 1 360px;max-width:640px}
#rv .rv-wide .parts>div{background:#f6f9fd;border:1px solid #e1ebf5;border-radius:12px;padding:12px 14px;min-width:0}
#rv .rv-wide .parts .k{display:block;font-size:11px;font-weight:800;letter-spacing:.55px;text-transform:uppercase;color:#3c5975}
#rv .rv-wide .parts b{display:block;margin:3px 0 1px;font-size:20px;color:#0a2a52;font-variant-numeric:tabular-nums;white-space:nowrap}
#rv .rv-wide .parts .s{display:block;font-size:12px;color:#5b7088}
@container (max-width:900px){#rv .rv-wide{flex-wrap:wrap}#rv .rv-wide .parts{max-width:none;flex:1 1 100%}}
#rv .rv-eq{margin:14px 2px 0;font-size:12.5px;line-height:1.5;color:#5b7088}
#rv .rv-eq b{color:#0e2a47}

/* v0.9.116 aba Exceções */
#rv .rv-gap{height:16px}
#rv .rv-lc .rule{display:block;margin-top:12px;padding-top:12px;border-top:1px solid #edf2f7;font-size:12.5px;line-height:1.5;color:#5b7088}
#rv .rv-lc .rule b{color:#0e2a47}
#rv .rv-lc .chips b.ok{background:#e0f6ee;color:#0f7a4f}
#rv .rv-t td .vv{display:block}
#rv .rv-t td .vv+.vv{margin-top:8px}
#rv .rv-t.rv-rg th:first-child{width:150px}
#rv .rv-t.rv-rg th:nth-child(n+2){width:auto}
#rv .rv-t.rv-rg td{vertical-align:top;line-height:1.5}
#rv .rv-t.rv-rg tbody tr{cursor:default}
#rv .rv-t.rv-rg tbody tr:hover td{background:transparent}
#rv .rv-gapt{margin-top:10px}
#rv .rv-av{display:flex;gap:12px;align-items:flex-start;margin-top:14px;padding:13px 16px;background:#fff8e8;border:1px solid #f4d48d;border-radius:12px;font-size:13px;line-height:1.5;color:#6b4a06}
#rv .rv-av svg{flex:none;width:20px;height:20px;margin-top:1px;color:#d98a00}
#rv .rv-av b{color:#4d3504}
#rv .rv-av.info{background:#eef4fb;border-color:#dce7f2;color:#41576f}
#rv .rv-av.info svg{color:#64748b}
#rv .rv-av.info b{color:#0e2a47}

/* v0.9.116 Simples Nacional */
.sn-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.sn-per{display:inline-flex;gap:4px;background:#eef4fb;border-radius:999px;padding:3px}
.sn-per button{border:0;background:transparent;padding:7px 14px;border-radius:999px;font:inherit;font-size:13px;color:#4a6580;cursor:pointer}
.sn-per button.on{background:#0e2a47;color:#fff}
.sn-sec h2{margin:0 0 2px}
.sn-sd{margin:0 0 14px;font-size:13px;color:#4a6580}
.sn-pn{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sn-pn.um{grid-template-columns:minmax(0,1fr)}
@media(max-width:1400px){.sn-pn{grid-template-columns:minmax(0,1fr)}}
.sn-p{border:1px solid #e1eaf5;border-top:4px solid var(--c,#0b6fef);border-radius:16px;padding:16px 18px;background:#fbfdff;min-width:0;overflow-x:auto}
.sn-p.cli{--c:#0b6fef}.sn-p.for{--c:#7c5cff}
.sn-p h3{margin:0;font-size:15px;color:#0e2a47;display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.sn-p h3 small{font-weight:400;color:#4a6580;font-size:12px}
.sn-big{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:10px 0 2px}
.sn-big b{font-size:30px;font-weight:700;color:#0a2a52;font-variant-numeric:tabular-nums}
.sn-big span{font-size:13px;color:#3c5975;font-weight:600}
.sn-sm{font-size:12.5px;color:#5b7088;margin-bottom:10px}
.sn-seg{display:flex;height:12px;border-radius:99px;overflow:hidden;background:#e8eef5;margin:6px 0 4px}
.sn-seg i{display:block;height:100%;width:0}
.sn-seg i.s{background:#12a37a}.sn-seg i.m{background:#7c5cff}.sn-seg i.o{background:#94a3b8}.sn-seg i.n{background:#e3b95e}
.sn-leg{display:flex;gap:14px;flex-wrap:wrap;font-size:11.5px;color:#5b7088;margin-bottom:10px}
.sn-leg u{text-decoration:none;display:inline-flex;align-items:center;gap:5px}
.sn-leg u::before{content:"";width:9px;height:9px;border-radius:3px;background:#94a3b8}
.sn-leg u.s::before{background:#12a37a}.sn-leg u.m::before{background:#7c5cff}.sn-leg u.n::before{background:#e3b95e}
.sn-mini{width:100%;min-width:0!important;border-collapse:collapse;font-size:12.5px}
.sn-mini th{font-size:10.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#68809b;text-align:right;padding:6px 8px;border-bottom:1px solid #e1eaf5}
.sn-mini th:first-child{text-align:left}
.sn-mini td{padding:8px;border-bottom:1px solid #eef3f9;text-align:right;font-variant-numeric:tabular-nums}
.sn-mini td:first-child{text-align:left}
.sn-mini td small{display:block;color:#68809b;font-size:11px}
.sn-mini tr.sum td{background:#f5f9fe}
.sn-pill{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:3px 10px;font-size:12px;font-weight:700;white-space:nowrap}
.sn-pill::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.sn-pill.s{background:#e1f5ec;color:#0f7a4f}.sn-pill.m{background:#efeaff;color:#5b3fd0}.sn-pill.o{background:#eaeef3;color:#475569}.sn-pill.n{background:#fff;color:#8a5a00;border:1px dashed #e3b95e}
.sn-chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.sn-chips button{border:1px solid #d5e1ef;background:#fff;border-radius:99px;padding:7px 13px;font:inherit;font-weight:700;font-size:13px;color:#3c5975;cursor:pointer;display:inline-flex;gap:8px;align-items:center}
.sn-chips button b{background:#eef3f9;border-radius:99px;padding:2px 8px;font-size:12px;color:#0e2a47}
.sn-chips button.on{background:#0b6fef;border-color:#0b6fef;color:#fff}
.sn-chips button.on b{background:rgba(255,255,255,.22);color:#fff}
.sn-table td.sn-name{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sn-table td strong{display:block;color:#0e2a47;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.sn-table td small{display:block;color:#68809b;font-size:12px}
.sn-tablewrap{max-height:520px}
.sn-pager{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin-top:12px;font-size:13px;color:#4a6580}
.sn-pgbt{display:inline-flex;gap:8px}
.sn-pgbt .btn[disabled]{opacity:.45;cursor:default}
.sn-page.is-loading .sn-sec{opacity:.6;transition:opacity .15s}
.sn-sec strong{display:inline;font-size:inherit;font-weight:700;margin:0;color:inherit}
.sn-table td strong{display:block;font-size:14px;font-weight:600;color:#0e2a47;margin:0}
.sn-mini td strong{display:inline;font-size:inherit}

/* v0.9.116 login sem primeiro acesso */
a[href="/setup"],.v65-second{display:none!important}
