/* ============================================================================
   Time-portal chrome: the page frame NM Timesheet and NM Partner share (program
   unit 1.9, 2026-09-14), moved verbatim from both hosts' app.css in its original
   order. Every host document links this sheet after time-surfaces.css and before
   its own app.css, the cascade position these rules had. CIP does not load it and
   styles its own frame. The page base these rules sit on (:root tokens, html/body,
   a) opens time-surfaces.css (program unit 1.9 correction 1, review §4 G1).
   ========================================================================== */

/* Page surface: zinc background with the app content on a white card
   (MainLayout's <main>/<article>). min-width:fit-content lets the dense
   content-width grids widen the card instead of overflowing it. */
main.nm-main { padding: 10px 12px 28px; }
article.nm-article {
    background: #fff;
    border: 1px solid var(--nm-ring);
    border-radius: var(--nm-radius-xl);
    box-shadow: var(--nm-shadow-card);
    padding: 0 10px 14px;
    min-width: fit-content;
}

/* File⬌QR sheet: the card hugs its own content instead of the window. The page is a short
   single-column utility, so a full-width card left a wide empty white field beside the text.
   fit-content is capped by .file-qr-workspace's own max-width, and max-width:100% keeps it
   inside main.nm-main on a phone. The narrowed card is centred in the page. */
article.nm-article.file-qr-sheet { width: fit-content; max-width: 100%; margin-inline: auto; }

/* Contain the page-to-table chain at portrait and landscape widths; the approval and admin
   arms of this media block stay in NM's app.css. */
@media (max-width: 1024px) {
    /* THE widener: the white app card grows to its densest grid on desktop. At phone
       width it clamps to the viewport, which is what lets every .ts-scroll box inside
       actually scroll instead of inflating the card (and with it the whole page). */
    article.nm-article { min-width: 0; max-width: 100%; }
}
