/* =====================================================
   SECÇÃO BALANCETES
===================================================== */
.bs-balancetes{
  padding: 64px 0;
  background: #ffffff;
}

.bs-balancetes .container{
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

/* =====================================================
   BOX
===================================================== */
.bs-bal-box{
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 24px 22px 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* =====================================================
   GRID
===================================================== */
.bs-bal-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
}

/* =====================================================
   CARD
===================================================== */
.bs-bal-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  min-height:218px;
  padding:20px 18px 18px;
  text-align:center;
  background:#fff;
  border:1px solid #e8ebf0;
  border-radius:18px;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.bs-bal-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(15,23,42,.10);
  border-color:rgba(255,210,0,.6);
}

.bs-bal-card:focus-visible{
  outline:3px solid rgba(255,210,0,.5);
  outline-offset:3px;
}

.bs-bal-top{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.bs-bal-year{
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  color:#8f6b00;
  background:#fff4c4;
  border:1px solid rgba(198,166,0,.25);
  padding:4px 11px;
  border-radius:999px;
}

.bs-bal-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#98a2b3;
}

.bs-bal-thumb-wrap{
  position:relative;
  margin:16px 0 12px;
}

.bs-bal-thumb{
  width:66px;
  height:66px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(150deg,#fff4c4,#ffe9a0);
  box-shadow:inset 0 0 0 1px rgba(198,166,0,.25), 0 6px 14px rgba(198,166,0,.16);
  color:#B89200;
}

.bs-bal-thumb svg{
  width:30px;
  height:30px;
  display:block;
}

.bs-bal-pdf-tag{
  position:absolute;
  right:-6px;
  bottom:-6px;
  background:#E5484D;
  color:#fff;
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.06em;
  padding:3px 7px;
  border-radius:6px;
  box-shadow:0 4px 10px rgba(229,72,77,.35);
}

.bs-bal-title{
  font-size:15px;
  line-height:1.4;
  font-weight:800;
  letter-spacing:.01em;
  text-transform:uppercase;
  color:#0f172a;
  max-width:18ch;
  margin:0 auto;
}

.bs-bal-open{
  margin-top:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:800;
  color:#B89200;
}

.bs-bal-open-arrow{
  display:inline-block;
  transition:transform .22s ease;
}

.bs-bal-card:hover .bs-bal-open-arrow{
  transform:translate(2px,-2px);
}

/* =====================================================
   PAGINAÇÃO
===================================================== */
.bs-bal-pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.bs-bal-page-btn{
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: #7a7f87;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}

.bs-bal-page-btn:hover{
  color: #111827;
}

.bs-bal-page-btn.is-active{
  background: #FFD200;
  color: #ffffff;
}

.bs-bal-page-btn.is-disabled{
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

.bs-bal-page-icon{
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

/* =====================================================
   RESPONSIVO
===================================================== */
@media (max-width: 991px){
  .bs-bal-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .bs-balancetes{
    padding: 52px 0;
  }

  .bs-balancetes .container{
    width: min(100% - 20px, 1220px);
  }

  .bs-bal-box{
    padding: 16px 14px 24px;
    border-radius: 16px;
  }

  .bs-bal-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bs-bal-card{
    min-height: 200px;
    border-radius: 14px;
  }

  .bs-bal-title{
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce){
  .bs-bal-card,
  .bs-bal-card:hover,
  .bs-bal-open-arrow{
    transform:none;
    transition:none;
  }
}
