body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background: #f4f4f4;
}

form {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin-bottom: 20px;
}

input, button {
  display: block;
  margin: 10px 0;
  padding: 8px;
  width: 100%;
}

#output, #invoiceOutput {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 800px;
  margin-top: 30px;
}

.item-group {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  background: #fafafa;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.header .left {
  width: 60%;
}

.header .right {
  text-align: right;
  width: 35%;
}

#logo {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.doc-container {
  background: white;
  padding: 20px;
  margin: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 800px;
}

/* Print styles */
@media print {
  body * {
    visibility: hidden;
  }
  .doc-container, .doc-container * {
    visibility: visible;
  }
  .doc-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
  }
}
