@media all and (display-mode: standalone) {
  .app-header {
    padding-top: 30px; /* Espace pour la barre de statut */
  }
  
  body {
    background-color: #f8f9fa;
    overflow: hidden;
    height: 100vh;
  }
  
  .app-container {
    height: calc(100vh - 20px);
  }
}
/* Style pour la section d'en-tête avec fond coloré */
.d-flex.justify-content-between.align-items-center.mb-2 {
  background-color: #B7E3FA;  /* Couleur de fond légère */
  padding: 10px 15px;        /* Espacement interne */
  border-radius: 8px;        /* Coins arrondis */
  border-left: 4px solid #3498db; /* Bordure gauche bleue */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Ombre légère */
}

/* Style pour le titre à l'intérieur */
.d-flex.justify-content-between.align-items-center.mb-2 h5, 
.d-flex.justify-content-between.align-items-center.mb-2 h6 {
  color: #2c3e50; /* Couleur de texte foncée */
  margin-bottom: 0 !important;
}

/* Style pour les boutons à l'intérieur */
.d-flex.justify-content-between.align-items-center.mb-2 .btn {
  box-shadow: none;
  border: 1px solid transparent;
}

/* Version sombre pour le mode sombre */
@media (prefers-color-scheme: dark) {
  .d-flex.justify-content-between.align-items-center.mb-2 {
    background-color: #343a40;
    border-left-color: #17a2b8;
  }
  .d-flex.justify-content-between.align-items-center.mb-2 h5,
  .d-flex.justify-content-between.align-items-center.mb-2 h6 {
    color: #f8f9fa;
  }
}
/* Ajouter ces styles */
.table-dark {
  background-color: #2c3e50;
}

.text-danger {
  color: #dc3545 !important;
}

.text-success {
  color: #28a745 !important;
}

#listeInvestisseurs td, #listeInvestisseurs th {
  padding: 0.4rem;
  vertical-align: middle;
}

#listeInvestisseurs .btn-sm {
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
}
/* Ajouter ce style pour améliorer l'apparence du select */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}
/* Style cohérent pour tous les selects */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 0.875rem;
}:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  /* Ajouter ces styles */
.table-dark {
  background-color: #2c3e50;
}

.text-danger {
  color: #dc3545 !important;
}

.text-success {
  color: #28a745 !important;
}

#listeInvestisseurs td, #listeInvestisseurs th {
  padding: 0.4rem;
  vertical-align: middle;
}

#listeInvestisseurs .btn-sm {
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
}
/* Ajouter ce style pour améliorer l'apparence du select */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}
/* Style cohérent pour tous les selects */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 0.875rem;
}
  --light-bg: #f8f9fa;
  --dark-bg: ;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  font-size: 13px;
}

.app-container {
  background-color: #E0F0F8;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 15px;
  margin-top: 10px;
}

.app-header {
  color: var(--secondary-color);
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.form-section {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.form-section h5 {
  color: var(--secondary-color);
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}

.table-container {
  max-height: 350px;
  overflow-y: auto;
  border-radius: 6px;
}

.table-sm td, .table-sm th {
  padding: 0.3rem;
  font-size: 12px;
}

.btn-action {
  border-radius: 15px;
  font-weight: 500;
  padding: 3px 10px;
  font-size: 12px;
}

.modal-header {
  padding: 10px 15px;
}

.modal-title {
  font-size: 15px;
}

.search-group {
  padding: 10px;
  margin-bottom: 10px;
}

.search-group h6 {
  margin-bottom: 10px;
  font-size: 13px;
}

.action-buttons {
  margin-top: 15px;
  padding-top: 10px;
}

.form-control, .form-select {
  padding: 0.25rem 0.5rem;
  font-size: 12px;
  height: calc(1.8em + 0.5rem + 2px);
}

.form-label {
  margin-bottom: 0.3rem;
  font-size: 12px;
}

.bi {
  font-size: 0.85em;
}

.row {
  margin-left: -8px;
  margin-right: -8px;
}

.col-md-6, .col-md-12 {
  padding-left: 8px;
  padding-right: 8px;
}

@media (max-width: 768px) {
  .app-container {
    padding: 10px;
  }
  
  .form-section {
    padding: 10px;
  }
  
  body {
    font-size: 12px;
  }
}

/* Style spécifique pour la table des résultats de vente */
#venteTableContainer {
  max-height: 300px;
  overflow-y: auto;
  position: relative;
  margin-top: 5px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
}

#venteTableContainer table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

#venteTableContainer thead th {
  position: sticky;
  top: 0;
  background-color: #2c3e50;
  color: white;
  z-index: 10;
  border-bottom: 1px solid #dee2e6;
}

#venteTableContainer::-webkit-scrollbar {
  width: 8px;
}

#venteTableContainer::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

#venteTableContainer::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

#venteTableContainer::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Style pour les deux tables avec scroll */
.table-scroll-container {
  max-height: 300px;
  overflow-y: auto;
  position: relative;
  margin-top: 5px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
}

.table-scroll-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-scroll-container thead th {
  position: sticky;
  top: 0;
  background-color: #2c3e50;
  color: white;
  z-index: 10;
  border-bottom: 1px solid #dee2e6;
}

.table-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.table-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Style spécifique pour le bouton Supprimer */
.btn-delete {
  padding: 0.15rem 0.3rem !important;
  font-size: 0.7rem !important;
  line-height: 1;
  min-width: 20px;
  margin: 0;
}

/* Style compact pour la section de vente */
.compact-form-section {
  padding: 8px 10px !important;
  margin-bottom: 10px !important;
}

.compact-form-section h5 {
  margin-bottom: 8px !important;
  font-size: 14px;
  padding-bottom: 4px;
}

.compact-form .form-group {
  margin-bottom: 6px !important;
}

.compact-form .form-control {
  padding: 0.2rem 0.4rem !important;
  height: calc(1.5em + 0.4rem + 2px) !important;
  font-size: 12px !important;
}

.compact-form .btn {
  padding: 0.25rem 0.5rem !important;
  font-size: 12px !important;
  margin-top: 6px !important;
}

.compact-form label {
  margin-bottom: 0.1rem !important;
  font-size: 12px !important;
}

.compact-form-section {
  padding: 8px 10px !important;
  margin-bottom: 10px !important;
}

.compact-form-section h5 {
  margin-bottom: 8px !important;
  font-size: 14px;
}

#venteForm .form-control {
  padding: 0.25rem 0.4rem !important;
  height: calc(1.5em + 0.5rem + 2px) !important;
  font-size: 12px !important;
}

#venteForm .btn {
  padding: 0.25rem 0.5rem !important;
  font-size: 12px !important;
}

.file-input {
  display: none;
}

.me-2 {
  margin-right: 0.5rem !important;
}
/* Supprimer les styles .stat-card et .stat-value */
/* Conserver seulement le style pour l'espacement des boutons */
.me-2 {
  margin-right: 0.5rem !important;
}
/* Ajouter ces styles */
.card-header {
  font-weight: bold;
}

.bg-success .bi {
  color: white;
}

.bg-warning .bi {
  color: #212529;
}

.table-responsive {
  max-height: 250px;
  overflow-y: auto;
}

/* Ajouter ces styles à la fin du fichier */
.btn-info.btn-action {
  background-color: #17a2b8;
  border-color: #17a2b8;
  color: white;
}

.btn-info.btn-action:hover {
  background-color: #138496;
  border-color: #117a8b;
}

#listeInvestisseurs td, #listeInvestisseurs th {
  padding: 0.3rem;
  font-size: 12px;
}

.me-2 {
  margin-right: 0.5rem !important;
}
/* Ajouter ces styles */
.table-dark {
  background-color: #2c3e50;
}

.text-danger {
  color: #dc3545 !important;
}

.text-success {
  color: #28a745 !important;
}

#listeInvestisseurs td, #listeInvestisseurs th {
  padding: 0.4rem;
  vertical-align: middle;
}

#listeInvestisseurs .btn-sm {
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
}
/* Ajouter ce style pour améliorer l'apparence du select */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}
/* Style cohérent pour tous les selects */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 0.875rem;
}
/* Ajouter ce style pour améliorer l'apparence du select */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}
/* Style cohérent pour tous les selects */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Style pour les options */
.form-select option {
  padding: 0.5rem;
}