/* Mobile calendar + numeric date entry helper. Original date field remains the API source. */
@media (max-width: 767px), (pointer: coarse) {
  input.mdp-source[type="date"] { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; padding: 0 !important; border: 0 !important; margin: 0 !important; }
  .mdp-helper { width: 100%; max-width: 100%; min-width: 0; margin-top: 2px; }
  .mdp-row { display: flex; align-items: stretch; gap: 7px; max-width: 100%; width: 100%; min-width: 0; }
  .mdp-helper .mdp-input { display: block; min-width: 0; flex: 1 1 0; width: 100%; max-width: 100%; font-size: 16px !important; min-height: 44px; padding: 9px 10px; border-radius: 9px; border: 1px solid #737373; background: #16191d; color: #fff; font-family: inherit; box-sizing: border-box; }
  .mdp-helper .mdp-input::placeholder { color: #a3a8af; }
  .mdp-helper .mdp-pick { flex: 0 0 auto; min-height: 44px; border: 1px solid var(--accent, #ef651c); padding: 8px 10px; border-radius: 9px; background: #24211d; color: #fff; font-size: 13px; font-family: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
  .mdp-error { font-size: 12px; min-height: 0; color: #ff8d87; line-height: 1.4; margin-top: 3px; }
  /* Tennis has an old inline max-width:150px on the date field. */
  .field:has(> #matchDate) { max-width: 100% !important; width: 100%; }
}
.mdp-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(0,0,0,.83); box-sizing: border-box; }
.mdp-overlay * { box-sizing: border-box; }
.mdp-dialog { width: min(100%, 360px); max-width: 100%; max-height: calc(100dvh - 24px); overflow-y: auto; border: 1px solid #5a6872; border-radius: 16px; padding: 14px; background: #171a20; color: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); font: 15px/1.4 sans-serif; }
.mdp-dialog-title { font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 10px; }
.mdp-monthbar { display: grid; grid-template-columns: 38px minmax(0, 1fr) 72px 38px; gap: 5px; align-items: center; margin-bottom: 11px; }
.mdp-monthbar select, .mdp-monthbar button, .mdp-bottom button { min-width: 0; width: 100%; min-height: 42px; padding: 5px; background: #272d34; border: 1px solid #56616c; border-radius: 7px; color: #fff; font-size: 15px; cursor: pointer; }
.mdp-weekdays, .mdp-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.mdp-weekdays { margin-bottom: 4px; }
.mdp-weekdays span { color: #b9c1cd; text-align: center; font-size: 12px; }
.mdp-days button, .mdp-empty { width: 100%; min-width: 0; height: 39px; display: grid; place-items: center; border-radius: 7px; }
.mdp-days button { background: #242b32; color: #fff; border: 1px solid #3e4752; font-size: 14px; cursor: pointer; padding: 0; }
.mdp-days button.mdp-selected { background: #15709d; border-color: #5dd2ff; font-weight: bold; }
.mdp-days button:disabled { opacity: .25; cursor: default; }
.mdp-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-top: 13px; }
.mdp-overlay button:focus-visible, .mdp-overlay select:focus-visible, .mdp-input:focus-visible, .mdp-pick:focus-visible { outline: 2px solid #69d8ff; outline-offset: 2px; }
@media (max-width: 350px) { .mdp-dialog { padding: 10px; } .mdp-monthbar { grid-template-columns: 30px minmax(0,1fr) 60px 30px; } .mdp-days button { height: 35px; } }
