.spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-right: 0.5rem;
  }
  
  @keyframes spinner-border {
    to { transform: rotate(360deg); }
  }
  
  .btn:disabled {
    cursor: not-allowed;
  }

  .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
  }
  
  .toast {
    background-color: white;
    color: #333;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }
  
  .toast.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .toast-success {
    border-left: 4px solid #28a745;
  }
  
  .toast-error {
    border-left: 4px solid #dc3545;
  }
  
  .toast-warning {
    border-left: 4px solid #ffc107;
  }
  
  .toast-info {
    border-left: 4px solid #17a2b8;
  }
  
  .toast-icon {
    margin-right: 10px;
    font-size: 18px;
  }
  
  .toast-success .toast-icon {
    color: #28a745;
  }
  
  .toast-error .toast-icon {
    color: #dc3545;
  }
  
  .toast-warning .toast-icon {
    color: #ffc107;
  }
  
  .toast-info .toast-icon {
    color: #17a2b8;
  }
  
  .toast-body {
    flex-grow: 1;
  }
  
  .toast-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
  }
  
  .toast-close:hover {
    color: #333;
  }
  
  .progress-bar {
    height: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
  }
  
  .progress-bar-inner {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
  }

  /* Enhanced styling for client score display */
#clientScoreInfo {
    transition: all 0.3s ease;
  }
  
  #scoreCard {
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    transition: all 0.3s ease;
  }
  
  #scoreCard.card-success {
    border-top: 3px solid #28a745;
  }
  
  #scoreCard.card-info {
    border-top: 3px solid #17a2b8;
  }
  
  #scoreCard.card-warning {
    border-top: 3px solid #ffc107;
  }
  
  #scoreCard.card-danger {
    border-top: 3px solid #dc3545;
  }
  
  #scoreProgressBar {
    transition: width 0.8s ease-in-out;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  #scoreValue {
    min-width: 40px;
    text-align: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
  }
  
  #scoreDescription {
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all 0.3s ease;
  }
  
  /* Add a subtle pulse animation to draw attention when score first loads */
  @keyframes scorePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
  }
  
  .score-pulse {
    animation: scorePulse 0.8s ease-in-out;
  }

  /* Fix for progress bars */

  
  /* Ensure the text is properly aligned */
  td .small {
    display: block;
    margin-top: 4px;
  }
  
  /* Vertical alignment for cells with progress bars */
  td .progress {
    width: 100%;
    display: block;
  }


  













  /* Fix for progress bars and column widths */
  .progress-xs {
    height: 15px; /* Increased height for better visibility */
    margin-bottom: 0;
    margin-top: 8px;
    position: relative;
    overflow: visible;
  }
  
  /* Set column widths */
  .fiabilite-column {
    width: 60%; /* Make this column take more space */
  }
  
  .dette-column {
    width: 15%; /* Make this column take less space */
    text-align: center;
  }
  
  .client-column {
    width: 25%;
  }
  
  /* Style for small percentage text */
  td .small {
    display: block;
    margin-top: 5px;
  }
  
  /* Better badge styling for dette */
  .badge-dette {
    font-size: 85%;
    padding: 6px 8px;
    border-radius: 4px;
    width: 100%;
    display: inline-block;
    text-align: center;
  }
  
  /* Apply Bootstrap colors based on debt amount */
  .badge-dette-zero {
    background-color: #28a745;
    color: white;
  }
  
  .badge-dette-low {
    background-color: #a0b817;
    color: white;
  }
  
  .badge-dette-med {
    background-color: #ffc107;
    color: #212529;
  }
  
  .badge-dette-high {
    background-color: #dc3545;
    color: white;
  }