:root {
  --laranja: #FF9F4A;
  --laranja-claro: #fff1e3;
  --verde: #00aa00;
  --cinza: #e0e0e0;
  --cinza-claro: #f9f9f9;
  --branco: #fff;
  --fonte: 'Arial', sans-serif;
}
.page-info-boletos{
  display: flex;
  justify-content: center;
}
.btn-toggle-detalhes {
  background-color: transparent;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  height: 32px;
  display: flex;
  align-items: center;
}

.btn-toggle-detalhes img {
  width: 16px;
  height: 16px;
}

.layout-com-sidebar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.sidebar {
  width: 60px;
  background:  #FF9F4A;
  transition: width 0.3s ease;
  overflow: hidden;
  color: white;
  border-radius: 12px;
}

.sidebar.open {
  width: 220px;
}

.toggle-btn {
  padding: 10px;
  cursor: pointer;
  color: white;
  text-align: center;
  font-size: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  display: flex;
  align-items: center;
  padding-bottom: 8px;
}

.sidebar ul li button {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 15px;
  color: white;
  transition: background 0.2s;
  width: 100%;
  box-sizing: border-box;
  border:none;
  background-color: var(--laranja);
}

.sidebar ul li button:hover {
  background: #CC7830;
  border-radius: 8px;
}

.sidebar ul li .icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar ul li .icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sidebar ul li span {
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar.open ul li span {
  opacity: 1;
}
.containerBoleto{
  display: flex;
  justify-content: center;
}
.layout-boleto {
  display: flex;
  gap: 20px;
  align-items: flex-start; /* evita alinhar pela altura maior */
}

.box-left {
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.box-right {
  /* já usa .card-antecipacao, mas aqui reforçamos */
  max-width: 600px;
  height: 100%;
}

.sidebar {
  width: 60px;
  background: #FF9F4A;
  transition: width 0.3s ease;
  overflow: hidden;
  color: white;
  border-radius: 12px;
}

.sidebar.open {
  width: 220px;
}

.toggle-btn {
  padding: 10px;
  cursor: pointer;
  color: white;
  text-align: center;
  font-size: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  display: flex;
  align-items: center;
  padding-bottom: 8px;
}


.sidebar ul li .icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar ul li .icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sidebar ul li span {
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar.open ul li span {
  opacity: 1;
}

.conteudo-pagina {
  flex: 1;
  width: 100%;
}

.card-antecipacao {
  background-color: #fff1e3;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: Arial, sans-serif;
  position: relative;
  transition: transform 0.2s ease;
}
.container-card-antecipacao {
  display: grid;
  grid-template-rows: auto auto;
}
.top{
  grid-row: span 1;
}
.middle{
  grid-row: span 1;
}
.card-antecipacao:hover{
  transform: translateY(-5px);
}

.header-antecipacao {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.icone-antecipacao {
  font-size: 20px;
}

.quantidade-parcelas {
  margin-top: 20px;
  text-align: center;
}

.quantidade-parcelas label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.controle-parcelas {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;;
}

.controle-parcelas button {
 width: 60px;
  height: 60px;
  font-size: 28px;
  font-weight: bold;
  background-color: black;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* remove qualquer espaço interno */
}
.controle-parcelas button:hover {
  background-color: #333;
}

.controle-parcelas input {
    width: 100%;
  height: 60px;
  font-size: 26px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 12px;
  color: var(--laranja);
  background-color: white;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-valor {
  margin: 20px 0;
  font-size: 18px;
  line-height: 1.4;
}

.botao-acao {
  background-color: #ff8000;
  color: white;
  border: none;
  padding: 12px 16px;
  font-weight: bold;
  border-radius: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.botao-acao .icone-aviao {
  width: 20px;
  height: 20px;
}
.boletos-container {
  display: grid;
  grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.boleto-box {
  background-color: var(--laranja-claro);
  border-radius: 12px;
  border: none;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  min-height: 100%;
}

.boleto-box:hover {
  transform: translateY(-5px);
}

.linha-botoes {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}
.linha-botoes img{
  width: 25px;
  height: 25px;
}
.botao-boleto {
  background-color: var(--laranja);
  height: 100px;
  text-align: left;
  color: #333;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 10px;
  cursor: pointer;
}
.botao-boleto:hover {
  background-color: #e06b00;
}
.cabecalho-boleto {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-boleto {
  flex-grow: 1;
 width: 100%;
}

.disabled{
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
.box-novidade{
    color: #fff;
    border-radius: 10px;
    border: none;
    padding-left: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 20px;
    padding-top: 10px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    animation: piscarCor 0.5s infinite alternate;
}
@keyframes piscarCor {
    0% {
        background-color: red;
        color: white;
    }
    100% {
        background-color: white;
        color: red;
    }
}
.box-novidade p{
  font-size: 18px;
  font-weight: bold;
}
.img-novidade{
  position: absolute;
  top: -15px;
  right: -15px;
}
.avisoNovidade {
  color: #fff;
  border-radius: 10px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  animation: piscarCor 0.5s infinite alternate;
  position: absolute;
  margin-bottom: 50px;
  margin-left: 50px;
}

@keyframes piscarCor {
  0% {
    background-color: red;
    color: white;
  }

  100% {
    background-color: white;
    color: red;
  }
}

.avisoNovidade p {
  font-size: 12px;
  font-weight: bold;
  margin: 0;
  padding: 4px;
}
.sidebar.open .avisoNovidade{
  margin-bottom: 50px;
  margin-left: 190px;
}
@media (max-width: 1197px) {
  .containerBoleto, .layout-boleto {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .box-left, .box-right {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px !important;
  }
  .sidebar {
    width: 10% !important;
    min-width: unset !important;
    margin-bottom: 15px !important;
  }
}
@media (max-width: 768px) {
  .containerBoleto, .layout-boleto,
  .boleto-box, .box-right, .box-left {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px !important;
  }

  .sidebar {
    width: 60px !important; /* valor fixo e usável */
  }

  .sidebar.open {
    width: 180px !important;
  }

  .cabecalho-boleto h3 {
    font-size: 18px;
  }

  .box-novidade {
    right: 10px;
    bottom: 10px;
    transform: scale(0.9);
  }
}
