/* Invoices Popup Styles */
.billing-popup-content {
    padding: 20px;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 1px 2px rgba(0.2, 0.2, 0.2, 0.2);
    border-radius: 20px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 20px;
    transform-origin: center;
    transform: scale(1);
    transition: transform 0.2s;
  }
  
  .billing-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #4a37282f;
    margin-bottom: 20px;
    flex-shrink: 0;
  }

.billing-popup-header h3 {
    color: var(--color-purple1);
    margin: 0;
    font-size: 1.2rem;
 }
  
  .popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .popup-body::-webkit-scrollbar {
    display: none;
  }
  
  #invoices-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #4a3728;
    padding: 5px;
    line-height: 1;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
  }
  
  #invoices-close-btn:hover {
    background-color: #dedcd16d;
  }
  
  .invoices-container {
    width: 100%;
    overflow-x: auto;
  }
  
  .loading-text {
    text-align: center;
    padding: 40px 20px;
    color: #4a3728;
    font-size: 1rem;
  }
  
  /* Mobile optimalizácie */
  @media (max-width: 768px) {
    .billing-popup-content {
      width: 95%;
      max-width: none;
      max-height: 95vh;
      margin: 10px;
      border-radius: 15px;
    }
    
    .billing-popup-header h3 {
      font-size: 1.1rem;
    }
    
    .popup-body {
      padding: 15px;
    }
    
    #invoices-close-btn {
      font-size: 20px;
      width: 30px;
      height: 30px;
      position: relative;
      top: 1px;
    }
  }
  
  @media (max-width: 480px) {
    .billing-popup-content {
      width: 98%;
      max-height: 98vh;
      margin: 5px;
      border-radius: 15px;
    }
    
    .billing-popup-header h3 {
      font-size: 1rem;
    }
    
    .popup-body {
      padding: 12px;
    }
    
    .loading-text {
      padding: 30px 15px;
      font-size: 0.9rem;
    }
  }