* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif; }

body {
  background-color: #a5afae;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; }

.check-wrapper {
  width: 970px;
  height: 380px;
  /* Increased height */
  background-color: white;
  padding: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }

.check-border {
  border: 2px solid black;
  width: 960px;
  height: 370px;
  /* Increased height */ }

.check-container {
  background-color: #d9fad1;
  border: 1px solid black;
  width: 956px;
  height: 366px;
  /* Increased height */
  padding: 8px;
  /* Reduced padding */ }

.check-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Reduced gap */
  width: 936px; }

/* Header section */
.check-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 0;
  /* Reduced margin */ }

.check-title {
  width: 300px; }

.check-title-bold {
  font-weight: bold;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
  /* Reduced line height */
  margin-bottom: 3px;
  /* Reduced margin */ }

.check-name {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1px;
  line-height: 1.2;
  /* Added line height control */ }

.check-memo {
  border: 1px solid #333;
  text-transform: uppercase;
  font-size: 10px;
  width: 417px; }

.memo-header {
  text-align: center;
  height: 20px;
  /* Reduced height */
  font-size: 8px;
  padding: 5px;
  /* Reduced padding */ }

.memo-input {
  border-top: 1px solid #333;
  padding: 3px;
  /* Reduced padding */
  height: 22px;
  /* Reduced height */ }

.memo-input > input {
  width: 100%; }

.check-number {
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 1px;
  align-self: flex-start; }

/* Pay order section */
.pay-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  /* Reduced margin */
  position: relative;
  width: 100%; }

.pay-order {
  position: relative;
  width: 720px;
  display: flex;
  align-items: center; }

.pay-label {
  text-transform: uppercase;
  font-size: 10px;
  margin-right: 10px; }

.pay-input-container {
  position: relative;
  width: 680px;
  border-bottom: 1px solid #333;
  border-right: 1px solid #333;
  padding: 0 0 3px 10px;
  /* Reduced padding */ }

.pay-input {
  font-size: 18px;
  /* Slightly reduced font size */
  border: none;
  background: transparent;
  width: 600px;
  outline: none; }

.dollars-text {
  position: absolute;
  right: 5px;
  bottom: 0;
  font-size: 10px;
  text-transform: uppercase; }

.amount-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 160px; }

.amount-label {
  display: flex;
  gap: 10px;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 8px;
  /* Reduced margin */ }

.amount-box {
  display: flex;
  border: 1px solid #333;
  width: 170px;
  height: 28px;
  /* Reduced height */
  align-items: center;
  position: relative; }

.dollar-sign {
  position: absolute;
  left: -25px;
  font-size: 15px; }

.whole-amount {
  width: 180px;
  height: 26px;
  /* Reduced height */
  display: flex;
  align-items: center;
  justify-content: flex-end; }

/* Fixed inputs for whole and cents */
.whole-amount input {
  width: 125px;
  font-size: 16px;
  text-align: right; }

.cents-amount input {
  width: 30px;
  font-size: 16px;
  text-align: center; }

/* Info table */
.check-info {
  width: 936px;
  border-collapse: collapse;
  text-transform: uppercase;
  font-size: 10px;
  border: 1px solid #333;
  margin-top: 10px;
  /* Reduced margin */
  table-layout: fixed; }

.check-info th, .check-info td {
  border: 1px solid #333;
  padding: 3px;
  /* Reduced padding */
  text-align: center; }

.check-info input {
  width: 100%;
  border: none;
  background: transparent;
  text-align: center;
  text-transform: uppercase;
  outline: none; }

.col-date {
  width: 80px; }

.col-name {
  width: 320px; }

.col-check-no {
  width: 80px; }

.col-description {
  width: 320px; }

.col-discount {
  width: 100px;
  border-left: 1px dashed #333; }

.check-info .blank {
  height: 35px;
  /* Reduced height */ }

/* Bottom section */
.check-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  /* Reduced margin */
  width: 936px; }

.address {
  width: 300px; }

.address-line {
  border-bottom: 1px solid #333;
  height: 22px;
  /* Reduced height */
  font-size: 13px;
  text-align: center;
  margin-bottom: 4px;
  /* Reduced margin */ }

.address-line input {
  width: 300px;
  border: none;
  background: transparent;
  font-size: 13px;
  text-transform: uppercase;
  text-align: center;
  outline: none; }

.bank-name {
  font-size: 9px;
  text-align: center;
  height: 20px;
  /* Reduced height */
  padding-top: 5px;
  /* Reduced padding */
  letter-spacing: 0.5px; }

.signature {
  padding-top: 15px;
  width: 250px;
  display: flex;
  flex-direction: column; }

.signature-line {
  font-size: 2em;
  border-bottom: 1px solid #333;
  height: 35px;
  /* Reduced height */
  width: 250px; }

.mp-text {
  font-size: 9px;
  text-align: center;
  height: 20px;
  /* Reduced height */
  padding-top: 5px;
  /* Reduced padding */
  letter-spacing: 0.5px; }

input {
  font-family: Helvetica, Arial, sans-serif;
  color: #333;
  background-color: #d9fad1;
  border: none;
  outline: none; }

/* Print-specific styles */
@media print {
  body {
    background-color: white;
    margin: 0;
    padding: 0; }
  .check-wrapper {
    box-shadow: none; } }
