:root {
  --bill-font-family: 'Courier New', Courier, monospace;
  --bill-font-size: 11px;
  --bill-line-height: 1.2;
  --bill-text-color: #000;
  --bill-bg: #fff;
  --bill-border: #000;
  --page-width: 800px;
  --page-padding: 40px;
}

body {
  margin: 0;
  padding: 20px;
  background-color: #f0f0f0;
  font-family: var(--bill-font-family);
  font-size: var(--bill-font-size);
  color: var(--bill-text-color);
  display: flex;
  justify-content: center;
}

.bill-container {
  width: var(--page-width);
  background: var(--bill-bg);
  padding: var(--page-padding);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  min-height: 1000px;
  box-sizing: border-box;
}

.header {
  text-align: center;
  margin-bottom: 20px;
}

.header h1 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
}

.header h2 {
  margin: 2px 0;
  font-size: 13px;
  text-transform: uppercase;
}

.header p {
  margin: 1px 0;
  font-size: 11px;
}

.header .bill-title {
  margin-top: 10px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: underline;
  text-transform: uppercase;
}

.header .bill-subtitle {
  margin-top: 5px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: underline;
}

.bill-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 5px;
  font-weight: bold;
}

.info-grid {
  display: grid;
  grid-template-columns: 140px 1fr 140px 1fr;
  row-gap: 2px;
  margin-bottom: 20px;
}

.info-label {
  font-weight: bold;
}

.info-separator {
  padding-right: 5px;
}

.info-value {
  padding-right: 10px;
}

.section-title {
  font-weight: bold;
  border-top: 1px solid var(--bill-border);
  border-bottom: 1px solid var(--bill-border);
  padding: 2px 0;
  margin: 10px 0 5px 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  border-bottom: 1px solid var(--bill-border);
  text-align: left;
  padding: 2px 0;
  font-weight: bold;
}

.table td {
  padding: 2px 0;
  vertical-align: top;
}

.text-right {
  text-align: right;
}

.indent-1 { padding-left: 10px; }
.indent-2 { padding-left: 20px; }

.sub-header {
  font-weight: bold;
  margin-top: 5px;
}

.footer {
  margin-top: 30px;
  border-top: 1px dashed var(--bill-border);
  padding-top: 5px;
  display: flex;
  justify-content: space-between;
}

.page-number {
  text-align: right;
  font-weight: bold;
}

/* Editable text areas simulation */
[contenteditable="true"]:hover {
  background-color: #f9f9f9;
  outline: 1px dashed #ccc;
}

[contenteditable="true"]:focus {
  background-color: #fff;
  outline: 1px solid #000;
}
