/* ===== BASE ===== */
body {
  font-family: 'Noto Sans JP', sans-serif;
}

/* ===== Shared input helpers ===== */
.input-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.input-field {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #1e293b;
  padding: 0.5rem 0.75rem;
  outline: none;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color 0.15s, background 0.15s;
}
.input-field:focus {
  border-color: #3b82f6;
  background: #fff;
}

/* ===== A4 Canvas ===== */
.invoice-canvas {
  width: 100%;
  max-width: 210mm;
}

/* ===== Line Item Row ===== */
.line-item-row {
  display: grid;
  grid-template-columns: 1fr 60px 90px auto 70px;
  gap: 0.375rem;
  align-items: center;
}

/* ===== Print Media ===== */
@media print {
  @page {
    margin: 0;
    size: A4 portrait;
  }

  body {
    background: white !important;
  }

  .print\:hidden {
    display: none !important;
  }

  #print-area {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .invoice-canvas {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

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