
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f1f5f9;
  margin: 0;
  padding: 24px;
  color: #111827;
}
.page {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  padding: 24px 28px 32px;
}
h1, h2, h3 {
  margin: 0;
  font-weight: 600;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.subtitle {
  font-size: 13px;
  color: #6b7280;
}
.meta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 13px;
}
.meta-table td {
  padding: 4px 6px;
}
.meta-label {
  width: 80px;
  color: #6b7280;
}
.meta-input {
  width: 100%;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
}
.meta-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.15);
}

.table-wrapper {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #ffffff;
}
thead {
  background: #f9fafb;
}
th, td {
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 13px;
}
th {
  text-align: left;
  font-weight: 600;
  color: #4b5563;
}
tbody tr:nth-child(even) {
  background: #fafafa;
}
.col-select { width: 40px; text-align: center; }
.col-name   { width: 180px; }
.col-desc   { width: 260px; }
.col-unit   { width: 60px; text-align: center; }
.col-num, .col-time {
  width: 150px;
}
.col-price  { width: 80px; text-align: right; white-space: nowrap; }
.col-subtotal { width: 90px; text-align: right; white-space: nowrap; }

.input-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.num-input {
  width: 64px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  text-align: center;
}
.num-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.15);
}
.btn-step {
  border-radius: 999px;
  border: none;
  padding: 2px 9px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  background: #e5e7eb;
  color: #374151;
}
.btn-step:hover {
  background: #d1d5db;
}
.checkbox-cell input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

/* remove native number spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

.small-text {
  font-size: 12px;
  color: #6b7280;
}

.footer-section {
  margin-top: 20px;
  display: flex;
  gap: 32px;
  font-size: 12px;
}
.footer-notes {
  flex: 2;
}
.footer-notes ol {
  margin: 4px 0 0 18px;
  padding: 0;
}
.footer-stamp {
  flex: 1;
}
.footer-stamp table {
  width: 100%;
  border-collapse: collapse;
}
.footer-stamp td {
  padding: 4px 4px;
  border: none;
}
.footer-stamp-label {
  width: 60px;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  margin-top: 16px;
}
.btn-primary:hover {
  background: #1d4ed8;
}
.actions-row {
  display: flex;
  justify-content: flex-end;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
}
