/* Retter-Portal v1.2.98 – inventory date fields on tablets only. */
@media (min-width:761px) and (max-width:1180px),
       (min-width:1181px) and (max-width:1366px) and (hover:none) and (pointer:coarse){
  /* iPad Safari gives native date inputs an intrinsic width. Keep both
     Kaufdatum and Nächste Prüfung strictly inside their form cards. */
  html body .app-shell .main .content .inventory-form{
    min-width:0!important;
    max-width:100%!important;
  }

  html body .app-shell .main .content .inventory-form > label{
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  html body .app-shell .main .content .inventory-form > label:has(input[type="date"]){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-content:start!important;
    gap:9px!important;
  }

  html body .app-shell .main .content .inventory-form input[type="date"]{
    -webkit-appearance:none!important;
    appearance:none!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    display:block!important;
    inline-size:100%!important;
    width:100%!important;
    min-inline-size:0!important;
    min-width:0!important;
    max-inline-size:100%!important;
    max-width:100%!important;
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    margin:0!important;
    padding:0 14px!important;
    line-height:48px!important;
    text-align:center!important;
    font-size:16px!important;
    font-variant-numeric:tabular-nums!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  html body .app-shell .main .content .inventory-form input[type="date"]::-webkit-date-and-time-value{
    min-width:0!important;
    margin:0!important;
    text-align:center!important;
  }
}
