
/* QA-D19: Galaxy Tab A9+ Android WebView computes calc(100dvh - Npx) as
   0px even though it reports support for dvh. Use literal pixel dimensions
   only in tablet portrait mode; no playback/Settings handlers are changed. */
@media (min-width: 769px) and (max-width: 1024px) and (pointer: coarse) and (orientation: portrait) {
  /* Today: preserve natural content height and scrolling, without zero max-height. */
  html body #dailyAmolakModal:not([hidden]) > .daily-amolak-card:not(:has(#dailyHistoryBtn[aria-pressed="true"])) {
    height: auto !important;
    min-height: 190px !important;
    max-height: 1200px !important;
    flex: 0 1 auto !important;
    overflow-y: auto !important;
  }
  /* History: explicit height is needed by the independently scrolling date list. */
  html body #dailyAmolakModal:not([hidden]) > .daily-amolak-card:has(#dailyHistoryBtn[aria-pressed="true"]) {
    display: flex !important;
    flex-direction: column !important;
    height: 1000px !important;
    min-height: 700px !important;
    max-height: 1200px !important;
    width: 100% !important;
    max-width: 800px !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
  }
  html body #dailyAmolakModal .daily-amolak-card:has(#dailyHistoryBtn[aria-pressed="true"]) .daily-history-layout {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
  html body #dailyAmolakModal .daily-amolak-card:has(#dailyHistoryBtn[aria-pressed="true"]) #dailyHistoryList {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }
}
