/* Painel Financeiro · Grupo EAG3 — estilos da tela.
   Identidade Further: navy #042630, dourado #CEBC81 (filetes e fundos escuros) e tons mais escuros #78683E/#867445/#7D652F
   para texto dourado sobre claro (contraste WCAG AA); bege #EFE9E2/#F7F4EF. Títulos em Cormorant Garamond com números alinhados às maiúsculas (lining-nums), corpo e números em Libre Franklin. */

:root {
  color-scheme: light;
  --bg: #F7F4EF;
  --card: #fff;
  --ink: #1E2A2E;
  --ink2: #4F5B5E;
  --mute: #686868;
  --line: #E4DCCF;
  --g9: #042630;
  --g7: #0C3B4A;
  --rec: #1d6f82;
  --pag: #7D652F;
  --late: #c92a2a;
  --warn: #a85d00;
  --g1: #EFE9E2;
  --g2: #D9CBA3;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 'Libre Franklin',system-ui,sans-serif;
  overflow-x: clip;
}

.top {
  background: var(--g9);
  color: #fff;
  padding: 14px max(2.5vw,16px) 0;
  border-bottom: 3px solid #CEBC81;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: 24px;
  align-items: end;
}

.top>.kick {
  grid-column: 1;
  grid-row: 1;
}

.top>.who {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.top>h1,.top>.sub {
  grid-column: 1/-1;
}

.top>.tabs {
  grid-column: 1;
  grid-row: 4;
}

.top>.chips {
  grid-column: 2;
  grid-row: 4;
  align-self: center;
  padding-bottom: 6px;
  justify-content: flex-end;
}

@media(max-width:1100px) {
  .top {
    grid-template-columns: minmax(0,1fr);
  }
  .top>.who {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-bottom: 6px;
  }
  .top>.tabs,.top>.chips {
    grid-column: 1;
    grid-row: auto;
  }
  .top>.chips {
    justify-content: flex-start;
    padding-bottom: 0;
  }
}

.kick {
  font-size: 10.5px;
  font-weight: 700;
  color: #CEBC81;
  letter-spacing: 2.2px;
  margin-bottom: 4px;
}

.top h1 {
  margin: 0;
  font-family: 'Cormorant Garamond',Georgia,serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  letter-spacing: .2px;
  font-size: clamp(22px,2.4vw,30px);
  line-height: 1.1;
  font-weight: 800;
  text-wrap: balance;
}

.top .sub {
  color: #CEBC81;
  margin: 4px 0 10px;
  font-size: 14px;
}

.chips,.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid #AD9860;
  background: transparent;
  color: #EFE9E2;
  border-radius: 999px;
  padding: 6px 14px;
  font: 600 13.5px 'Libre Franklin',sans-serif;
  cursor: pointer;
  min-height: 34px;
}

.chip[aria-pressed=true] {
  background: #CEBC81;
  color: #042630;
  border-color: #CEBC81;
}

.tabs {
  margin-top: 4px;
  gap: 2px;
}

.tab {
  background: transparent;
  border: 0;
  color: #D8CFBF;
  padding: 10px 14px;
  font: 700 14px 'Libre Franklin',sans-serif;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  min-height: 40px;
}

.tab[aria-selected=true] {
  background: var(--bg);
  color: var(--g9);
}

button:focus-visible,select:focus-visible,input:focus-visible {
  outline: 3px solid #CEBC81;
  outline-offset: 2px;
}

main {
  padding: 16px max(2.5vw,16px) 32px;
  max-width: 1680px;
  margin: 0 auto;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.kpi {
  background: #EFE9E2;
  border: 0;
  border-top: 3px solid #CEBC81;
  border-radius: 6px;
  padding: 10px 14px;
}

.kpi .l {
  color: #78683E;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
}

.kpi .v {
  color: #042630;
  font-family: 'Libre Franklin',system-ui,sans-serif;
  font-size: clamp(20px,2.1vw,25px);
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums proportional-nums;
  white-space: nowrap;
  margin-top: 4px;
}

.kpi .n {
  color: var(--mute);
  font-size: 12px;
  line-height: 1.35;
}

.kpi.hero {
  background: #042630;
  border-color: #CEBC81;
  color: #fff;
}

.kpi.hero .v {
  color: #fff;
}

.kpi.hero .l,.kpi.hero .n {
  color: #E8DEC3;
}

.neg {
  color: var(--late);
}

.kpi.hero .neg {
  color: #ffd0d0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.card h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  font-family: 'Cormorant Garamond',Georgia,serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  color: #042630;
}

.card .hint {
  color: var(--ink2);
  margin: 0 0 8px;
  font-size: 13px;
  max-width: 150ch;
}

.row2 {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 18px;
}

@media(max-width:900px) {
  .row2 {
    grid-template-columns: minmax(0,1fr);
  }
}

.fig {
  position: relative;
  height: clamp(240px,34vh,320px);
}

.fig>svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tip {
  position: absolute;
  pointer-events: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  white-space: nowrap;
  display: none;
  z-index: 2;
}

.tip b {
  display: block;
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 6px;
}

.sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}

.ctl {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

select,input[type=search] {
  font: 600 15px 'Libre Franklin',sans-serif;
  border: 1px solid #D9D2C4;
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 42px;
  background: #fff;
  color: var(--ink);
}

input[type=search] {
  flex: 1 1 220px;
}

label.tg {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  min-height: 42px;
}

label.tg input {
  width: 18px;
  height: 18px;
  accent-color: var(--rec);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  color: #867445;
  font-weight: 700;
  font-size: 12px;
  border-bottom: 2px solid #CEBC81;
  padding: 8px 8px;
}

td {
  border-bottom: 1px solid #EFE9E2;
  padding: 8px 8px;
  vertical-align: top;
}

td.num,th.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

tr.tot td {
  font-weight: 800;
  border-top: 2px solid #CEBC81;
  background: #EFE9E2;
}

.scroll {
  overflow-x: auto;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
}

.tR {
  background: var(--g1);
  color: var(--rec);
}

.tP {
  background: #F4EEDD;
  color: var(--pag);
}

.tL {
  background: #fdeaea;
  color: var(--late);
}

.tW {
  background: #fff3e0;
  color: var(--warn);
}

.bars .b {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr) 130px;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}

.bars .track {
  background: #EFE9E2;
  border-radius: 6px;
  height: 16px;
  overflow: hidden;
}

.bars .fill {
  height: 100%;
  border-radius: 6px;
}

.bars .val {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fx {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
  gap: 18px;
  align-items: start;
}

@media(max-width:1000px) {
  .fx {
    grid-template-columns: minmax(0,1fr);
  }
}

.side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.side .card {
  margin-bottom: 14px;
}

.diasel {
  font-size: 14px;
  color: var(--ink2);
  margin: 0 0 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.lnk {
  background: var(--g1);
  border: 0;
  color: var(--g7);
  font: 700 13px 'Libre Franklin',sans-serif;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  min-height: 36px;
}

.mini {
  padding: 12px 14px;
}

.mini h2 {
  font-size: 16px;
}

.mini .hint {
  margin-bottom: 8px;
}

.mbox {
  max-height: 300px;
  overflow: auto;
}

.mbox table {
  font-size: 13px;
}

.mbox thead th {
  position: sticky;
  top: 0;
  background: #fff;
}

.mbox td {
  padding: 6px 6px;
}

.emp {
  color: var(--mute);
  font-size: 11.5px;
  white-space: nowrap;
}

.fxt {
  font-size: 13.5px;
  table-layout: auto;
}

.fxt td,.fxt th {
  padding: 7px 6px;
}

.mbox {
  overflow-x: hidden;
}

.mbox table {
  table-layout: fixed;
}

.mbox td:nth-child(1),.mbox th:nth-child(1) {
  width: 64px;
}

.mbox td:nth-child(3),.mbox th:nth-child(3) {
  width: 96px;
}

.mbox td:nth-child(2) {
  overflow-wrap: anywhere;
}

.fxt tr[data-id] {
  cursor: pointer;
}

.fxt tr[data-id]:hover td {
  background: #F7F4EF;
}

.fxt .tw {
  display: inline-block;
  width: 18px;
  color: var(--g7);
  font-weight: 800;
}

.fxt tr.lv1 td {
  background: #FBF9F5;
}

.fxt tr.lv1 td:first-child {
  padding-left: 26px;
}

.fxt tr.lv2 td {
  color: var(--ink2);
  font-size: 13px;
}

.fxt tr.lv2 td:first-child {
  padding-left: 46px;
}

.fxt tr.sel td,.fxt tr.lv1.sel td,.fxt tr.lv2.sel td {
  background: var(--g1);
}

.conf {
  border-color: #f0d3a6;
  background: #fffaf2;
}

.conf h2 {
  color: var(--warn);
}

.conf h3 {
  margin: 14px 0 6px;
  font-size: 15px;
}

.empty {
  color: var(--mute);
  padding: 14px 0;
}

.bars .bk {
  cursor: pointer;
  border-radius: 8px;
  padding-inline: 6px;
}

.bars .bk:hover {
  background: #F7F4EF;
}

.bars .bk.on {
  background: var(--g1);
}

.gl {
  max-height: 430px;
  overflow-y: auto;
  overflow-x: hidden;
}

.gl details {
  border-bottom: 1px solid #EFE9E2;
}

.gl summary {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}

.gl summary::-webkit-details-marker {
  display: none;
}

.gl summary::before {
  content: '+';
  color: var(--g7);
  font-weight: 800;
  width: 14px;
  flex: none;
}

.gl details[open] summary::before {
  content: '−';
}

.gl .gn {
  flex: 1;
  overflow-wrap: anywhere;
}

.gl .gv {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.gl table {
  font-size: 13px;
  margin: 0 0 8px 18px;
  width: calc(100% - 18px);
  table-layout: fixed;
}

.gl td {
  padding: 4px 6px;
}

.gl td:first-child {
  width: 86px;
}

.gl td:last-child {
  width: 110px;
}

.gl td:nth-child(2) {
  overflow-wrap: anywhere;
}

.dvtop {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.6fr);
  gap: 18px;
  align-items: stretch;
}

.dvtop .card {
  margin-bottom: 18px;
}

@media(max-width:900px) {
  .dvtop {
    grid-template-columns: minmax(0,1fr);
  }
}

.dhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pbox {
  max-height: 380px;
  overflow-y: auto;
}

.pbox thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.ptb {
  font-size: 14px;
}

.ptb td {
  white-space: normal;
}

.ptb td:first-child,.ptb td:nth-child(4) {
  white-space: nowrap;
}

.donut {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 16px;
  align-items: center;
}

@media(max-width:600px) {
  .donut {
    grid-template-columns: minmax(0,1fr);
  }
}

.dfig {
  height: 220px;
  margin: 4px 0 14px;
}

.segh {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 10px;
}

.segh b {
  font-size: 28px;
  font-weight: 700;
  color: #042630;
  letter-spacing: -.01em;
}

.segh span {
  color: var(--ink2);
  font-size: 14px;
}

.seg {
  display: flex;
  gap: 2px;
  height: 28px;
  margin: 0 0 14px;
  border-radius: 6px;
  overflow: hidden;
}

.seg i {
  display: block;
  min-width: 4px;
  height: 100%;
}

.sk {
  background: linear-gradient(90deg,#EFE9E2 25%,#F7F4EF 50%,#EFE9E2 75%);
  background-size: 200% 100%;
  animation: sk 1.3s ease-in-out infinite;
  border-radius: 6px;
}

.kpi.skc {
  border-top-color: #E4DCCF;
}

.skl {
  height: 12px;
  width: 55%;
  margin: 2px 0 10px;
}

.skv {
  height: 26px;
  width: 80%;
  margin-bottom: 8px;
}

.skn {
  height: 11px;
  width: 40%;
}

.skf {
  height: 300px;
}

.skh {
  height: 18px;
  width: 35%;
  margin-bottom: 14px;
}

@keyframes sk {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  .sk {
    animation: none;
  }
}

.dleg {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 14px;
}

.dleg div {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #EFE9E2;
}

.dleg div:last-child {
  border-bottom: 0;
}

.dleg b {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dleg em {
  color: var(--mute);
  font-style: normal;
  font-size: 12.5px;
  margin-left: 4px;
}

.dbox {
  max-height: 330px;
}

.ctt {
  font-size: 13.5px;
}

.ctt td,.ctt th {
  padding: 7px 6px;
}

.pb {
  display: inline-block;
  width: 70px;
  height: 8px;
  background: #EFE9E2;
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 6px;
}

.pb div {
  height: 100%;
  background: var(--rec);
  border-radius: 4px;
}

.pbl {
  font-size: 12.5px;
  white-space: nowrap;
}

.itb {
  font-size: 13.5px;
}

.itb td,.itb th {
  padding: 7px 6px;
}

.itb td.obs {
  color: var(--ink2);
  font-size: 12.5px;
  max-width: 320px;
}

.credit {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .3px;
  color: var(--mute);
}

footer {
  color: var(--mute);
  font-size: 13px;
  padding: 0 max(2.5vw,16px) 30px;
  max-width: 1680px;
  margin: 0 auto;
}

details {
  margin-top: 8px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink2);
}

@media(max-width:600px) {
  table {
    font-size: 13px;
  }
  .stack thead {
    display: none;
  }
  .stack tr {
    display: grid;
    padding-block: 8px;
    border-bottom: 1px solid var(--line);
  }
  .stack td {
    display: flow-root;
    border: 0;
    padding: 2px 0;
    padding-inline-start: 8.5em;
    text-align: start;
  }
  .stack td::before {
    content: attr(data-l);
    float: inline-start;
    width: 8em;
    margin-inline-start: -8.5em;
    color: var(--mute);
    font-size: 12px;
  }
  .stack td:empty {
    display: none;
  }
  .bars .b {
    grid-template-columns: 80px minmax(0,1fr) 100px;
  }
  .tab {
    padding: 10px 10px;
  }
}

.sem-dados .tabs,.sem-dados footer details {
  display: none;
}

.login {
  max-width: 420px;
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

.login h2 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond',Georgia,serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  color: var(--g9);
  font-size: 26px;
}

.login p {
  color: var(--ink2);
  margin: 0 0 18px;
}

.login label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--ink);
}

.login input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 15px 'Libre Franklin',sans-serif;
}

.lbtn {
  width: 100%;
  background: var(--g9);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font: 700 15px 'Libre Franklin',sans-serif;
  cursor: pointer;
  min-height: 44px;
}

.lbtn:disabled {
  opacity: .6;
}

.rt {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.rt th {
  text-align: left;
  color: #867445;
  font-weight: 700;
  font-size: 12px;
  border-bottom: 2px solid #CEBC81;
  padding: 7px 8px;
  white-space: nowrap;
}

.rt th.num {
  text-align: right;
}

.rt td {
  padding: 6px 8px;
  border-bottom: 1px solid #EFE9E2;
}

.rt td.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rt tr.sec td {
  background: #F7F4EF;
  font-weight: 700;
  color: #042630;
}

.rt tr.sub td {
  font-weight: 700;
  border-top: 1px solid #CEBC81;
  background: #FBF9F5;
}

.rt tr.tot td {
  font-weight: 700;
  background: #042630;
  color: #fff;
  border: 0;
}

.rt tr.rc {
  cursor: pointer;
}

.rt tr.rc:hover td {
  background: #F7F4EF;
}

.rt tr.rc.sel td {
  background: var(--g1);
}

.rt tr.rmore td {
  cursor: pointer;
  color: var(--g7);
  font-weight: 700;
  font-size: 13px;
}

.rt tr.rmore:hover td {
  background: #F7F4EF;
}

.rt .pb {
  display: inline-block;
  height: 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 6px;
}

.rconf {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rconf td {
  padding: 7px 4px;
  border-bottom: 1px solid #EFE9E2;
}

.rconf td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rconf tr.tot td {
  font-weight: 700;
  border-top: 2px solid #CEBC81;
  background: #EFE9E2;
}

.rtop {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) auto;
  gap: 8px 10px;
  align-items: center;
  font-size: 14px;
}

.rtop>div {
  height: 10px;
  background: #EFE9E2;
  border-radius: 5px;
  overflow: hidden;
}

.rtop>div>div {
  height: 100%;
  background: #a8883f;
  border-radius: 5px;
}

.rtop b {
  font-variant-numeric: tabular-nums;
}

.rdet {
  margin-top: 14px;
  border-top: 2px solid #CEBC81;
  padding-top: 12px;
}

.rdet h3 {
  margin: 0;
  font-size: 16px;
  color: #042630;
}

.who {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  color: #E8DEC3;
  flex-wrap: wrap;
}

.who .em {
  opacity: .9;
}

.who .dt {
  font-weight: 700;
  color: #CEBC81;
}

.who button {
  background: transparent;
  border: 1px solid #AD9860;
  color: #EFE9E2;
  border-radius: 999px;
  padding: 3px 12px;
  font: 600 12.5px 'Libre Franklin',sans-serif;
  cursor: pointer;
  min-height: 28px;
}

.who button:hover {
  background: #0C3B4A;
}

#aviso:empty {
  display: none;
}

#aviso {
  max-width: 1680px;
  margin: 12px auto 0;
  padding: 0 max(2.5vw,16px);
}

.faixa {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff3e0;
  border: 1px solid #f0d3a6;
  border-left: 4px solid var(--warn);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: #5a3a00;
}

.faixa.err {
  background: #fdeaea;
  border-color: #f3c2c2;
  border-left-color: var(--late);
  color: #6b1414;
}

.ctl {
  justify-content: space-between;
}

.ctl .cl,.ctl .cc,.ctl .cr {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.ctl .cc {
  flex: 1 1 320px;
}

.ctl .cr {
  margin-left: auto;
}

.ab {
  background: #fff;
  border: 1px solid #D9D2C4;
  color: var(--g7);
  font: 700 13px 'Libre Franklin',sans-serif;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  min-height: 42px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.ab:hover {
  background: #F7F4EF;
}

.ttl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ttl h2 {
  margin: 0!important;
}

.info {
  position: relative;
  display: inline-flex;
}

.info>button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #B8AE9C;
  background: #fff;
  color: var(--g7);
  font: italic 700 12px Georgia,serif;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.info>button:hover,.info>button[aria-expanded=true] {
  background: var(--g1);
}

.info .pop {
  display: none;
  position: absolute;
  z-index: 5;
  top: 28px;
  left: -8px;
  width: min(420px,80vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  padding: 10px 12px;
  font: 400 13px/1.45 'Libre Franklin',sans-serif;
  color: var(--ink2);
}

.info>button[aria-expanded=true]+.pop {
  display: block;
}

.xbtn {
  background: none;
  border: 0;
  color: var(--g7);
  font: 700 12px 'Libre Franklin',sans-serif;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: auto;
  white-space: nowrap;
}

.xbtn:hover {
  background: var(--g1);
}

.gdados {
  margin-top: 6px;
}

.gdados summary {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--g7);
}

.gdados table {
  font-size: 12.5px;
  margin-top: 6px;
}

.gdados .scroll {
  max-height: 260px;
  overflow: auto;
}

.erro {
  max-width: 560px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.erro h2 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond',Georgia,serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  color: var(--g9);
}

.erro p {
  color: var(--ink2);
}

.rt tr.rg td {
  font-weight: 700;
  background: #FBF9F5;
  cursor: pointer;
}

.rt tr.rg td:first-child::before {
  content: '+';
  display: inline-block;
  width: 16px;
  color: var(--g7);
  font-weight: 800;
}

.rt tr.rg[aria-expanded=true] td:first-child::before {
  content: '−';
}

.rt tr.rg:hover td {
  background: #F7F4EF;
}

.rt tr.rc.n2 td:first-child {
  padding-left: 30px;
}

.conc {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.3fr);
  gap: 18px;
}

@media(max-width:900px) {
  .conc {
    grid-template-columns: minmax(0,1fr);
  }
}

.cbig {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}

.cbig b {
  display: block;
  font-size: 26px;
  color: #042630;
  font-variant-numeric: tabular-nums;
}

.cbig span {
  font-size: 12.5px;
  color: var(--mute);
}

.printhead {
  display: none;
}

@page {
  size: A4;
  margin: 12mm;
}

@media print {
  body {
    background: #fff;
    font-size: 12px;
  }
  .top,.ctl,.faixa button,footer details,.xbtn,.info,.lnk,.gdados,#rmais,noscript {
    display: none!important;
  }
  .printhead {
    display: block;
    border-bottom: 2px solid #CEBC81;
    padding: 0 0 6px;
    margin-bottom: 10px;
  }
  .printhead b {
    font-family: 'Cormorant Garamond',Georgia,serif;
    font-variant-numeric: lining-nums;
    font-feature-settings: 'lnum' 1;
    font-size: 18px;
    color: #042630;
  }
  .printhead span {
    display: block;
    font-size: 11px;
    color: #4F5B5E;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .card,.kpi {
    break-inside: avoid;
  }
  .kpis {
    grid-template-columns: repeat(3,1fr);
  }
  .gl,.pbox,.mbox,.scroll {
    max-height: none!important;
    overflow: visible!important;
  }
  .row2,.fx,.dvtop,.conc {
    grid-template-columns: minmax(0,1fr)!important;
  }
  .fig {
    height: 240px;
  }
}

/* tendência dos cards (fotografia diária dos indicadores) */
.kpi .tr {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mute);
  margin-top: 4px;
}
.kpi .tr.bom {
  color: #1d6f82;
}
.kpi .tr.ruim {
  color: #b02525;
}
.kpi.hero .tr {
  color: #E8DEC3;
}
.kpi.hero .tr.bom {
  color: #a8dbe6;
}
.kpi.hero .tr.ruim {
  color: #ffb4b4;
}
/* amostra de linha tracejada na legenda (caixa próprio) */
.sw.ln {
  height: 0;
  border-top: 2px dashed #0C3B4A;
  border-radius: 0;
  vertical-align: middle;
}
/* sub-abas das áreas Caixa, Recebíveis e Obrigações */
.subtabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: #EFE9E2;
  border-radius: 10px;
  padding: 4px;
  margin: 0 0 12px;
  width: fit-content;
}
.stab {
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  font: 700 14px 'Libre Franklin', sans-serif;
  color: var(--ink2);
  cursor: pointer;
  min-height: 38px;
}
.stab:hover {
  color: var(--g9);
}
.stab[aria-selected=true] {
  background: #fff;
  color: var(--g9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.faixa.novo {
  background: #EEF5F7;
  border-color: #c5dde3;
  border-left-color: var(--rec);
  color: #0C3B4A;
  margin-bottom: 12px;
}
@media print {
  .subtabs,
  .faixa.novo {
    display: none !important;
  }
}
/* campo de senha com botão para mostrar/ocultar */
.senha {
  position: relative;
  display: block;
}
.senha input {
  padding-right: 52px;
}
.olho {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: #1E2A2E;
  cursor: pointer;
  padding: 0;
}
.olho:hover {
  background: rgba(4, 38, 48, .06);
}
.olho .olho-o,
.olho[aria-pressed=true] .olho-v {
  display: none;
}
.olho[aria-pressed=true] .olho-o {
  display: block;
}
/* telas de acesso (login, senha, erro): o título já diz "Painel financeiro | Grupo EAG3", sem a linha de cima */
body.acesso .top > .kick {
  display: none;
}
