body {
  font-family: Arial, sans-serif;
  margin: 8px;
}

h1 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 4px;
}

p {
  text-align: center;
  font-size: 13px;
  margin: 2px 0;
}

hr {
  margin: 8px 0;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  border: 1px solid #000;
  padding: 6px;
  font-size: 13px;
}

td {
  border: 1px solid #000;
  padding: 6px;
  font-size: 14px;
}

select, input, button {
  width: 100%;
  padding: 6px;
  font-size: 15px;
}

button {
  margin-top: 6px;
}

/* ===== TOTAL ===== */
h2 {
  text-align: right;
  font-size: 18px;
  margin-top: 10px;
}

/* ===== MOBILE MODE ===== */
@media (max-width: 768px) {

  table, thead, tbody, th, tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    border: 1px solid #000;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 10px;
    background: #fafafa;
  }

  td {
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    width: 45%;
    font-size: 13px;
  }

  td select,
  td input {
    width: 55%;
  }

  h2 {
    text-align: center;
    font-size: 20px;
  }

  button {
    font-size: 16px;
  }
}

/* ===== PRINT (THERMAL SAFE) ===== */
@media print {
  button {
    display: none;
  }

  body {
    font-size: 12px;
    margin: 0;
  }

  tr {
    border: none;
  }
}
