body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

input[type="text"], input[type="file"] {
  width: 96%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.filters label {
  background-color: #e9ecef;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.filters input[type="checkbox"] {
  margin-right: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

thead {
  background-color: #343a40;
  color: #fff;
}

th, td {
  text-align: left;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
}

tbody tr:hover {
  background-color: #f1f3f5;
  cursor: pointer;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}

.collapsible {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 5px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
}

.filters.collapsed {
  display: none;
}

@media (max-width: 600px) {
  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.4rem 0.5rem;
  }

  .container {
    padding: 0.5rem;
  }

  input[type="text"] {
    font-size: 1rem;
  }
}

#closeBtn {
  position:absolute;
  top: 10px;
  left: 10px;
  background: #007bff33;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

#refreshBtn {
  position:absolute;
  top: 10px;
  right: 10px;
  background: #007bff33;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

#Montant {
  position: absolute;
  top: 10px;
  right: 60px;
  background: #007bff33;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  text-align: center;
  line-height: 40px;
  text-decoration: none;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

#favBtn {
  position: absolute;
  top: 10px;
  right: 110px;
  background: #28a74633;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  text-align: center;
  line-height: 40px;
  text-decoration: none;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

#install {
  //position: absolute;
  //top: 10px;
  //right: 110px;
  background: #28a746;
  color: white;
  border: none;
  border-radius: 10%;
  //width: 40px;
  height: 25px;
  font-size: 16px;
  text-align: center;
  //line-height: 40px;
  text-decoration: none;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

#donBtn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #28a746;
  color: white;
  border: none;
  border-radius: 10%;
  height: 25px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

#closeBtn:hover {
  background: #0056b3;
}

#chatBtn:hover {
  background: #1e7e34;
}

#refreshBtn:hover {
  background: #0056b3;
}

#Montant:hover {
  background: #0056b3;
}

.pastilles {
  margin-bottom: 1em;
}
.pastille {
  display: inline-block;
  background: #444;
  color: white;
  border-radius: 12px;
  padding: 4px 10px;
  margin-right: 6px;
  font-size: 0.9em;
}
.pastille.immobilisation { background: #f39c12; }
.pastille.fourriere { background: #ddb263; }
.pastille.points { background: #2980b9; }
.pastille.montant { background: #27ae60; }
.pastille.pve { background: #9b59b6; }
.pastille.alavole { background: #2ccfd4; }
.pastille.retention { background: #c0392b; }
.pastille.afd { background: #1caf13; }

.remove-fav {
  display: inline-block;
  background: #f8f6f5;
  color: white;
  border-radius: 12px;
  padding: 10px 10px;
  margin-right: 6px;
  font-size: 0.9em;
  width: 100%;
  height: 100%;
}

.favButton {
  display: inline-block;
  background: #f8f6f5;
  color: black;
  border-radius: 12px;
  padding: 4px 10px;
  margin-right: 6px;
  font-size: 0.9em;
}