/* Ontbrekend (missingScreen.js), ported from the prototype (viewMissing). The line head is a part row
   (.prow from common.css) with .mline; its counter slot holds the total and "in n sets". The declare bar
   (.banner.ask) and the set line (.mset) are shared and live in common.css. */

/* Toolbar and hint stay under the top bar */
.missing-screen .sticky { position: sticky; top: calc(52px + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg); padding-top: 4px; }
/* --sticky-h is measured from the sticky block, so the keyboard's selected row is not hidden under it */
.missing-screen .mline, .missing-screen .mset { scroll-margin-top: var(--sticky-h, 140px); scroll-margin-bottom: 12px; }
.missing-screen .banner.ask { margin: 0 0 12px; }

.missing-screen .lhead.miss { grid-template-columns: 44px 100px minmax(0, 1fr) 130px 150px 90px 110px; }
.missing-screen .lhead.miss .r { text-align: right; }
.missing-screen .mrow { border-top: 1px solid var(--line); }
.missing-screen .lhead + .mrow, .missing-screen .mrow:first-child { border-top: 0; }
.missing-screen .prow.mline { grid-template-columns: 44px 100px minmax(0, 1fr) 130px 150px 90px 110px; min-height: 46px; padding: 6px 14px; border-top: 0; cursor: pointer; }
.missing-screen .prow.mline:hover { background: var(--surface-2); }
.missing-screen .prow.mline.sel { background: var(--sel); }
.missing-screen .mline .tot { font: 600 15px var(--font-mono); text-align: right; }
.missing-screen .mline .insets { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.missing-screen .mline .insets svg { width: 14px; height: 14px; transition: transform .15s; }
.missing-screen .mline[aria-expanded="true"] .insets svg { transform: rotate(90deg); }
.missing-screen .prow.mline.is-skeleton { cursor: default; }
.missing-screen .prow.mline.is-skeleton:hover { background: none; }
.missing-screen .msets { padding: 4px 14px 12px 56px; display: grid; gap: 6px; }

@media (max-width: 760px) {
  .missing-screen .sticky { top: calc(56px + env(safe-area-inset-top, 0px)); }
  .missing-screen .sticky .toolbar { padding: 8px 0; }
  .missing-screen .sticky .toolbar .search { flex-basis: 100%; }
  .missing-screen .sticky .toolbar .dd-bar { flex: 1 1 0; min-width: 0; font-size: 13px; }
  .missing-screen .sticky .toolbar .dd-bar .ddbtn { width: 100%; padding: 0 6px 0 8px; }
  .missing-screen .mline, .missing-screen .mset { scroll-margin-bottom: 72px; }
  .missing-screen .prow.mline { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "sw nm tot" "sw meta ins"; gap: 0 10px; padding: 8px 12px; }
  .missing-screen .mline .tot { grid-area: tot; }
  .missing-screen .mline .insets { grid-area: ins; }
  .missing-screen .msets { padding: 0 8px 10px; }
}
