body {
  font-family: Arial, sans-serif;
  padding: 20px;
}
.container {
  max-width: 800px; 
  border: 1px solid #ccc;
}
.container1 {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #ccc;
  padding: 20px;
}
.invoice-table1{
  width: 60%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
h1 {
  text-align: center;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
table th, table td {
  padding: 8px;
  text-align: center;
  border: 1px solid #ccc;
}
table th {
  background-color:gray;
}
#item-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}
#item-form input {
  padding: 8px;
  width: 150px;
}
.summary {
  text-align: center;
  margin-bottom: 20px;
}
#total-items, #total-amount {
  font-weight: bold;
}
#print-invoice { 
  background-color:blue;
  color: white;
  border: 1px solid #ccc;
}
#print-invoice:hover { 
  background-color: rgb(141, 19, 172); 
}
#color-picker {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
#color-picker label {
  font-weight: bold;
}
#color-picker input {
  padding: 5px;
  width: 50px;
}
.section {
  display: flex;
}
.section textarea{
  padding: 0px 5px;
}
.Description{
  display: flex;
}
textarea {
  width: 50%;
  height: 60px;
  margin-top: 1px;
  border: 2px solid #ccc; 
  border-radius: 4px;
  font-size: 16px; 
  font-family: Arial, sans-serif;
  resize: both; 
  box-sizing: border-box; 
}
textarea:focus {
  border-color: #66afe9; 
  outline: none; 
}
button {
 padding: 5px 10px;
 margin: 2px;
 cursor: pointer;
background-color: blue;
 color: white;
 border-radius: 4px;
 border: 1px solid #ccc;
}
button:hover {
  background-color: rgb(141, 19, 172); 
}
button:nth-of-type(2) {
  background-color:blue; 
}
button:nth-of-type(2):hover {
  background-color: rgb(141, 19, 172);  
}
.form-section{
  display: flex;
  gap: 94px; 
}
.label .textarea{
  display: flex;
}
.invoice{
  display: grid;
  gap: 2px;
 width: 550px;
}
.number{
  display: grid;
  gap: 2px;
  float: right;
  justify-content: space-between;
  grid-row: 10px;
  width: 550px;  
}
@media print {
.number, .invoice{
    display: inline-block;
    margin-right: 320px;    
  }
}
@media print {
.form-section {
    display: flex;
  }
.number, .invoice{
       margin-right: 100px;
    justify-content: space-between;
    grid-row: 10px; 
  }  
}
h1{
  padding:0px 0px 2px 320px  
}
@media print {
textarea {
    border: none; 
    background: none; 
    color: black; 
    font-size: 12pt;
    width: auto; 
    height: auto; 
    resize: none; 
    display: block; 
   font-weight: 600;
  }
}
@media print {
  #color-picker,
  #color-picker label {
    display: none;
  }
.invoice .Name, .Email, .Phone, .Address{
    display: none;
  }
  button,
  th:last-child,
  td:last-child {
    display: none;
  }
#item-form {
    display: none;
  }
#print-invoice {
    display: none;
  }
.summary {
    display: block;
  }
body {
    color: var(--print-color, black); 
  }
.container{  
   border: none;
  }
table th, table td {
    color: var(--print-color, black); 
  }
}
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  table th, table td {
    font-size: 14px;
    padding: 4px;
  }
  #item-form {
    flex-direction: column;
    align-items: center;
  } 
  #item-form input {
    width: 100%;
    margin-bottom: 10px;
  }
  button {
    width: 100%;
  }
 #amount{
  padding-left: 215px;
 }
 #count{
  padding-left: 215px;
 }
 #discount{
  padding-left: 215px;
 }
 #tax{
  padding-left: 215px;
 }
 #total{
  padding-left: 215px;
 }
 #balance{
  padding-left: 215px;
 }
.form-section {

  display: flex;
  gap: 40px;
}
}
@media (max-width: 480px) {
h1 {
    font-size: 20px;
  }
.summary {
    font-size: 14px;
  }
table th, table td {
    font-size: 12px;
  }
#item-form input {
    width: 100%;
    padding: 6px;
  }
.disc tr{
    margin-right: -252px;
  }
.disc tbody{
    width: 5px;
  }
.disc tr td{
    display: flex;
    font-size: 2px;    
  }
.disc td{
    width: 10px;
   padding: -167px;
  } 
.disc table th, table td {
    width: 10px;
    padding: 0px;
  }
.form-section textarea{
    width: 104%;
    height: 30px;
  }
}
