body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin: 0px;
    background-color: #f5f5f5;
    font-size: 12pt;
    word-spacing: normal;
}

h1 {
    color: #333;
}
h2{
    text-align: center;
    font-size: 18pt;
}
h5{
    text-align: center;
    color: #757373;
}
p{
    margin: 5px;
    text-align: center;
    color: #000000;
}
.total {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    margin-top: 20px;
    margin-left: auto; 
    width: fit-content; 
}

.total p {
    text-align: right;
 
 }
 .form-container {
    display: flex;
    justify-content: center;
  }
  
  #invoice-form {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
  }
  
  .form-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
  }
  
  .invoice-number,
  .generate-button {
    align-self: center;
    width: 100%;
    max-width: 400px;
  }
  
  .form-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 4px;
  }
  
  legend {
    font-weight: bold;
    padding: 0 5px;
  }
  
  label {
    margin-top: 10px;
    font-weight: bold;
  }
  
  input {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%
  }
  
  button {
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  button:hover {
    background: #0056b3;
  }
  
  
  
  
.date-due-bar {
    background-color: #e0e0e0;
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-top: 10mm;
    margin-bottom: 10mm;
    
}

.invoice {
    text-align: left;
}

header {
    display: grid;
    align-items: center;
    grid-template-columns: 120px 3fr;
    margin: 0;
    height: 120px; 
}

#company-logo {
    max-width: 120px;
}

.table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse; /* Unifică bordurile între celule */
}

.table td {
    border: 1px solid #3d3c3c; /* Bordură pentru fiecare celulă */
    padding: 1mm;
    text-align: center; /* Aliniere centrală */
}

.table th {
    border: 1px solid #3d3c3c; /* Bordură pentru capul tabelului */
    padding: 1mm;
    text-align: center;
    font-weight: bold;
}



.intro{
    display: flex;
    justify-content: space-between;
}

.intro p{
    text-align: left;
}
.client{
    background: #ffffff;
    text-align: left;
}
.order-data{
    background: #ffffff;
    text-align: right;
}

#invoice-container {
    display: flex;
    flex-direction: column;
    height: 297mm; /* pagină A4 înălțime */
    width: 210mm;  /* pagină A4 lățime */
    background: white;
    margin: 0 auto;
    padding: 15mm 20mm 15mm 20mm; /* top, right, bottom, left */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    
}


.invoice-body {
    flex: 1; /* ocupă tot spațiul disponibil */
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-top: auto;
    
}


@media print {
    body {
        background: none;
        
    }

    .form-container, button {
        display: none;
    }

    #invoice-container {
        box-shadow: none;
    }
}
@media (max-width: 768px) {
    .form-sections {
      grid-template-columns: 1fr;
    }
  }
  