label {
  cursor: pointer;
}
.check-container {
  color: #000;
  border: 2px solid #34495e;
  width: 100%;
  height: 320px;
  background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}
.check-container__header-banner,
.check-container__payto,
.check-container__dollar-word,
.check-container__footer {
  display: flex;
  justify-content: space-between;
  margin: 5px 10px;
}

.check-container__header-banner {
  margin-top: 0;
  align-items: flex-start;
}
.check-container__name-address {
  display: flex;
  flex-direction: column;
}

.check-container__main-section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin: 8px 0;
}
#date-input::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

.check-container__order {
  display: flex;
  flex: 1;
}
.check-container__dollar-border {
  border: 2px solid #34495e;
  padding: 8px;
  background: white;
  border-radius: 4px;
}
#name-payto {
  padding: 5px;
  font-size: 16px;
  margin-bottom: 0px;
  border: 1px solid #ccc;
  background: white !important;
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
  /* Override global select styles that can interfere with dropdown functionality */
  backdrop-filter: none !important;
  box-shadow: none !important;
  /* Ensure proper z-index for dropdown menu */
  position: relative;
  z-index: 1000;
}

#name-payto:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Style option groups */
#name-payto optgroup {
  font-weight: bold;
  color: #2c3e50 !important;
  background: #f8f9fa !important;
  padding: 5px;
  /* Ensure optgroups don't have glass effects */
  backdrop-filter: none !important;
  pointer-events: auto !important;
}

#name-payto option {
  padding: 8px;
  color: #2c3e50 !important;
  background: white !important;
  /* Ensure options are selectable */
  pointer-events: auto !important;
  /* Override any glass morphism effects */
  backdrop-filter: none !important;
}

#name-payto option:hover {
  background: #e3f2fd !important;
  color: #2c3e50 !important;
}

#name-payto option:checked,
#name-payto option:selected {
  background: #3498db !important;
  color: white !important;
}
.check-container__payto-desc {
  width: 90px;
  display: flex;
  flex-wrap: nowrap;
}
.check-container__dollar-word,
.check-container__memo,
.check-container__signature,
.check-container__order {
  border-bottom: 2px solid #34495e;
}

.check-container__memo {
  display: flex;
  flex: 2;
}
.check-container__signature-word,
.check-container__memo-word {
  margin-left: 8px;
  border: none;
  margin-bottom: 0px;
}

.check-container__footer {
  margin-bottom: 0;
  align-items: flex-end;
}

.check-container__signature {
  display: flex;
  flex: 3;
  margin-left: 20%;
}

.checkInput {
  background: transparent;
  color: #000;
  border: none;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 600;
}

.checkInput1 {
  background: transparent;
  color: #000;
  width: 35rem;
  border: none;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 600;
}

/* Ensure placeholder text is also visible */
.checkInput::placeholder,
.checkInput1::placeholder {
  color: #666;
  opacity: 1;
}

/* Style specific input fields */
#date-input,
#name-payto,
#name-input,
#address-input {
  color: #000 !important;
}

/* Additional fixes for dropdown functionality */
#name-payto {
  /* Force native dropdown behavior */
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  appearance: menulist !important;

  /* Ensure proper user interaction */
  user-select: auto !important;
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;

  /* Remove any transform effects that could interfere */
  transform: none !important;
  filter: none !important;

  /* Ensure proper stacking */
  isolation: auto !important;
}

/* Ensure options are fully functional */
#name-payto option,
#name-payto optgroup {
  /* Force standard rendering */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  /* Ensure they can be selected */
  user-select: auto !important;
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;

  /* Remove any effects that could interfere */
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}
