@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --bg-body: #ffffff;
  --secundaria: #6A0053;
  --text-main: #C40C5C;
  --terciaria: #252525;
  --green-text: #15803d;
  --primaria: #C40C5C;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-body);
}

/* CONTEÚDO PRINCIPAL */

.Main-container {
  width: 80%;
  margin: 0 auto;
}

/* CABEÇALHO DO FORNECEDOR */

.header-fornecedor {
  display: flex;
  align-items: center;
  margin-top: 120px;
  background-color:var(--terciaria);
 
  border-radius: 20px;
  padding: 20px;
  color: white;
  flex-direction: column;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.img-volpato {
  width: 80px;
  height: 80px;
}

.txt-emissor {
  display: flex;
    width: 100%;
  justify-content: space-between;
  font-weight: 400;
  font-size: 12px;
}

.txt-cliente{
font-size: 20px;
font-family: poppins;
}

.h1-client{

font-size: 20px;
text-align: center;
}

/* BOLETOS */

.grid-boletos {
  border: 1px solid #ff0404;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
  padding-right: 5px;
  background-color: #28a745;
}

.grid-detalhes {
  border-radius: 0 0 15px 15px;
  overflow: hidden;
}

.card-boleto {
  background: white;
  border-radius: 12px;
  padding: 14px;
  margin-top: 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  background-color: white;
  border: 2px solid var(--terciaria);
  flex-direction: column;
  gap: 20px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.destinatario {
  font-weight: 600;
  font-size: 18px;
  color: var(--terciaria);
  font-family: Poppins;
}

.valor {
  
  color: var(--terciaria);
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 500;
}

.card-actions {
  display: flex;
  justify-content: center;
  color: white;
  cursor: pointer;
  gap: 10px;
}

.icon-action {
  background-color: var(--primaria);
  padding: 10px;
  border-radius: 10px;
  border: 2px var(--text-main) solid;
  transition: all 0.25s ease;
}

.icon-action:hover {
  background-color: var(--text-main);
  transform: translateY(-2px) scale(1.03);
}

.card-detalhes {
  border-top: 1px solid #eee;
  padding-top: 10px;
  font-size: 13px;
  color: #555;
}

.card-detalhes p {
  margin: 4px 0;
}

.card-info {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
}

.info-item strong {
  font-size: 16px;
  color: var(--primaria);
  font-weight: 400;
}

.info-item span {
 
  color: var(--terciaria);
}

.nome-cliente {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* TEXTOS */

label {
  font-size: 11px;
  color: var(--text-label);
  display: block;
}

p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin: 4px 0;
}

/* LOADER */

.grid-detalhes {
  position: relative;
  min-height: 200px;
}

.loader {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(255,255,255,.65);
  backdrop-filter: blur(3px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 20px;

  z-index: 100;
}

.hidden {
  display: none;
}

/* SPINNER */

/* From Uiverse.io by Nawsome */ 
.pl {
  width: 6em;
  height: 6em;
}

.pl__ring {
  animation: ringA 2s linear infinite;
}

.pl__ring--a {
  stroke: var(--primaria);
}

.pl__ring--b {
  animation-name: ringB;
  stroke: var(--secundaria);
}

.pl__ring--c {
  animation-name: ringC;
  stroke: var(--terciaria);
}

.pl__ring--d {
  animation-name: ringD;
  stroke: #505050;
}

/* Animations */
@keyframes ringA {
  from, 4% {
    stroke-dasharray: 0 660;
    stroke-width: 20;
    stroke-dashoffset: -330;
  }

  12% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -335;
  }

  32% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -595;
  }

  40%, 54% {
    stroke-dasharray: 0 660;
    stroke-width: 20;
    stroke-dashoffset: -660;
  }

  62% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -665;
  }

  82% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -925;
  }

  90%, to {
    stroke-dasharray: 0 660;
    stroke-width: 20;
    stroke-dashoffset: -990;
  }
}

@keyframes ringB {
  from, 12% {
    stroke-dasharray: 0 220;
    stroke-width: 20;
    stroke-dashoffset: -110;
  }

  20% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -115;
  }

  40% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -195;
  }

  48%, 62% {
    stroke-dasharray: 0 220;
    stroke-width: 20;
    stroke-dashoffset: -220;
  }

  70% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -225;
  }

  90% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -305;
  }

  98%, to {
    stroke-dasharray: 0 220;
    stroke-width: 20;
    stroke-dashoffset: -330;
  }
}

@keyframes ringC {
  from {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: 0;
  }

  8% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -5;
  }

  28% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -175;
  }

  36%, 58% {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -220;
  }

  66% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -225;
  }

  86% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -395;
  }

  94%, to {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -440;
  }
}

@keyframes ringD {
  from, 8% {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: 0;
  }

  16% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -5;
  }

  36% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -175;
  }

  44%, 50% {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -220;
  }

  58% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -225;
  }

  78% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -395;
  }

  86%, to {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -440;
  }
}
@keyframes spin{
  to{
    transform:rotate(360deg);
  }
}

/* STATUS */

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
}

.status-pago {
  background-color: #28a745;
  color: #ffffff;
  border: none;
  height: auto;
  padding: 2px 8px;
}

.status-vencido {
  background-color: #dc3545;
  color: #ffffff;
  height: 14px;
  padding: 3px 6px;
}

.status-pendente {
  background-color: #007bff;
  color: #ffffff;
  height: auto;
  padding: 4px 10px;
  max-height: 14px;
}

/* DOWNLOAD */

.download {
  border: none;
  width: 20px;
  height: auto;
  background: none;
  cursor: pointer;
}

.btn-download {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.2s;
}

.btn-download:hover {
  background-color: #f0f4f8;
}

.btn-download img {
  width: 18px;
  height: auto;
  opacity: 0.6;
}

.btn-download:hover img {
  opacity: 1;
}

/* FILTROS */

.tabs {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.btn-filtro {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background:rgb(165, 165, 165);
  color: white;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-filtro:hover {
  background: var(--terciaria);
  transform: translateY(-1px);
}

.btn-filtro.ativo {
  background: var(--primaria);
  color: white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* PAGINAÇÃO */

.btn-pagina {
  width: 40px;
  height: 40px;
  margin: 3px;
  border: 1px solid #fafafa;
  background: white;
  cursor: pointer;
  border-radius: 100%;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}

.btn-pagina:hover {
  background-color: var(--text-main);
}

.btn-pagina.ativa {
  background: rgb(25,25,26);
  border: rgb(131,131,131) solid 2px;
  color: white;
}

/* TOAST */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.toast-message {
  background-color: white;
  padding: 12px 24px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease-out;
}

.toast-success {
  border-left: 5px solid #cc0067;
}

.toast-error {
  border-left: 5px solid #e74c3c;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* WHATSAPP */

.container-zap {
  background-color: var(--terciaria);
  height: 60px;
  width: 60px;
  display: flex;
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.container-zap:hover {
  transform: scale(1.1);
  background-color: #28a745;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.whatsapp_icon {
  font-size: 28px;
  color: white;
  transition: transform 0.3s ease;
}

.container-zap:hover .whatsapp_icon {
  transform: rotate(10deg);
}

/* DESKTOP */

@media (min-width: 769px) {


  .card-boleto {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
  }

  .card-top {
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
  }

  .card-info {

    flex-direction: row;
    gap: 40px;
    flex: 1;
    justify-content: center;
  }

  .card-actions {
    justify-content: flex-end;
    min-width: 220px;
  }

  .icon-action {
    
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
  }
}

/* MOBILE */

@media (max-width: 768px) {
    
    .tabs {
  margin-top: 20px;
  justify-content: center;
}
    
      .back-home-btn{
    width:42px;
    height:42px;

    padding:0;

    border-radius:50%;
  }

  .back-home-btn span{
    display:none;
  }

  .back-icon{
    width:18px;
    height:18px;
  }

    .h1-client{

font-size: 15px;
text-align: center;
}

  .Main-container {
    width: 92%;
  }

  .header-fornecedor {
    margin-top: 130px;
    padding: 16px;
  }

  .info-item {
    font-size: 12px;
  }

  .card-boleto {
    padding: 14px;
    flex-direction: column;
    gap: 20px;
  }

  .card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .destinatario {
    font-size: 18px;
  }

  .card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .icon-action {
    padding: 10px;
    font-size: 15px;
  }

  .card-info {
    display: flex;
    justify-content: space-between;
    text-align: center;
  }
}