/* Restore Attendance 1.3.4
   Stable owner month field for iPhone PWAs.
   Safari's native month text remains the click target but is visually replaced
   by an app-rendered label that can be centered reliably. */

html body section.dashboard-card.owner-card > input.month-input[type="month"] {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: calc(100% - 20px) !important;
  min-width: 0 !important;
  max-width: calc(100% - 20px) !important;
  height: 56px !important;
  min-height: 56px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

html body section.dashboard-card.owner-card > .restore-owner-month-display {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(100% - 20px) !important;
  min-width: 0 !important;
  max-width: calc(100% - 20px) !important;
  height: 56px !important;
  min-height: 56px !important;
  margin: -56px auto 0 !important;
  padding: 0 48px !important;
  overflow: hidden !important;
  border: 2px solid #707988 !important;
  border-radius: 18px !important;
  background: #0d1015 !important;
  color: #fffaf0 !important;
  -webkit-text-fill-color: #fffaf0 !important;
  box-sizing: border-box !important;
  font-size: clamp(18px, 5vw, 22px) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  unicode-bidi: isolate !important;
  pointer-events: none !important;
}

html body section.dashboard-card.owner-card > .restore-owner-month-display::after {
  content: "▦";
  position: absolute;
  inset-inline-end: 17px;
  top: 50%;
  color: #d9dce3;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

html body section.dashboard-card.owner-card > input.month-input[type="month"]:focus-visible + .restore-owner-month-display {
  outline: 3px solid #ffe29a !important;
  outline-offset: 3px !important;
}

@media (max-width: 390px) {
  html body section.dashboard-card.owner-card > .restore-owner-month-display {
    padding-inline: 42px !important;
    font-size: 18px !important;
  }
}
