.dmy-date-wrap {
  display: flex;
  gap: 0.35rem;
  align-items: stretch;
  position: relative;
}
.dmy-date-wrap .dmy-date-text {
  flex: 1 1 auto;
  min-width: 0;
}
.dmy-date-wrap .dmy-cal-hit {
  position: relative;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  min-width: 2.4rem;
  display: block;
}
/* Visual calendar button — entire box is clickable */
.dmy-date-wrap .dmy-cal-btn {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 2.35rem;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line, #d5dee7);
  border-radius: 6px;
  cursor: pointer;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4E79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.15rem 1.15rem;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}
.dmy-date-wrap .dmy-cal-btn:hover {
  background-color: #eef5f2;
  border-color: #0f5c4c;
}
.dmy-date-wrap .dmy-cal-btn:focus {
  outline: 2px solid #0f5c4c;
  outline-offset: 1px;
}
/*
  Native date input is hidden; showPicker() is called from the button.
  Avoids WebKit's tiny calendar-picker-indicator (edge-only clicks).
*/
.dmy-date-wrap .dmy-cal-hit .dmy-date-cal {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
  z-index: 0;
  -webkit-appearance: none;
  appearance: none;
}
.dmy-date-wrap .dmy-cal-hit .dmy-date-cal::-webkit-calendar-picker-indicator {
  display: none;
}
/* Manual templates: bare .dmy-date-cal sibling of text (no button) */
.dmy-date-wrap > input.dmy-date-cal {
  position: relative;
  flex: 0 0 2.4rem;
  width: 2.4rem !important;
  min-height: 2.35rem;
  opacity: 1;
  pointer-events: auto;
  border: 1px solid var(--line, #d5dee7);
  border-radius: 6px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4E79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.15rem 1.15rem;
  color: transparent;
  cursor: pointer;
}
.dmy-date-wrap > input.dmy-date-cal::-webkit-datetime-edit,
.dmy-date-wrap > input.dmy-date-cal::-webkit-datetime-edit-fields-wrapper,
.dmy-date-wrap > input.dmy-date-cal::-webkit-inner-spin-button,
.dmy-date-wrap > input.dmy-date-cal::-webkit-clear-button {
  display: none !important;
}
.dmy-date-wrap > input.dmy-date-cal::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
