body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #333;
  background: #f1f1f1;
  padding: 20px;
}

.container {
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  margin: auto;
  padding: 30px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

header {
  background-color: #002f4b;
  color: white;
  padding: 30px 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 20px;
}

header img {
  max-width: 100px;
  margin-bottom: 10px;
}

header h1 {
  margin: 10px 0 5px;
  font-size: 30px;
  letter-spacing: 1px;
}

header p {
  margin: 5px 0;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.info-grid {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  gap: 30px;
  flex-wrap: wrap;
}

.info-grid div {
  flex: 1;
  min-width: 240px;
  font-size: 12px;
  line-height: 1.5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

th, td {
  font-size: 12px;
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background: #f8f8f8;
}

input[type="number"] {
  width: 60px;
  padding: 6px;
  font-size: 12px;
}

input[type="text"], textarea {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 12px;
}

textarea {
  min-height: 80px;
}

.button-group {
  margin-top: 20px;
}

button {
  padding: 10px 16px;
  margin-right: 10px;
  font-size: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

.totals {
  margin-top: 20px;
  text-align: right;
}

.totals div {
  font-size: 13px;
  border-top: 1px solid #ccc;
  padding-top: 6px;
}

.total-line {
  font-size: 15px;
  font-weight: bold;
  background: #f8f8f8;
  padding: 10px;
  margin-top: 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#floatingTotalBox {
  display: inline-block;
  float: right;
  clear: both;
  background: #e0f2ff;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  border: 2px solid #007bff;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
  margin-top: -10px;
  margin-bottom: 10px;
  text-align: right;
}

#floatingTotalBox strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .header {
    background-color: #1e2a38 !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Mobile-friendly improvements */
@media (max-width: 600px) {
  header img {
    max-width: 60px;
  }

  header h1 {
    font-size: 20px;
  }

  header p {
    font-size: 14px;
  }

  .info-grid {
    flex-direction: column;
  }

  .container {
    padding: 10px;
  }

  input[type="text"], textarea {
    width: 100%;
    box-sizing: border-box;
  }
}
