/* Inventory Sync, Shopify's own look (4 Oct 2026): only what Polaris does not do itself. Polaris draws the page, the cards,
   the tables, the badges, the buttons and the modals in the admin's own colors and type; nothing here sets a color but the
   page behind them, which inside the admin is the admin's own. */

html, body { margin: 0; }
body { background: #f1f1f1; } /* slop-ok: Shopify admin look (owner choice 4 Oct 2026) - the admin's page grey behind the iframe content */

/* App Bridge reads the menu from the page and draws it in the admin's sidebar; the links themselves are never shown here. */
s-app-nav { display: none; } /* slop-ok: Shopify admin look (owner choice 4 Oct 2026) */

/* Until polaris-1.js defines the elements they are unknown inline elements: keep the words readable if it never loads. */
s-page:not(:defined), s-section:not(:defined), s-table:not(:defined) { display: block; padding: 8px 16px; }
s-modal:not(:defined), s-empty-state:not(:defined) { display: none; }

/* A to-do: its photo beside it on a wide screen; on a phone the photo sits with the title, so the words use the full width. */
.todo { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; align-items: start; }
.todo-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; }
.todo .photo-narrow { display: none; }
@media (max-width: 600px) {
  .todo { grid-template-columns: minmax(0, 1fr); }
  .todo .photo-wide { display: none; }
  .todo-head { grid-template-columns: auto minmax(0, 1fr); }
  .todo .photo-narrow { display: block; }
}

/* A History entry: time, photo, what happened, its badge; on a phone the time and the badge go with the words. */
.entry { display: grid; grid-template-columns: 88px 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.entry .e-time { grid-column: 1; }
.entry .e-photo { grid-column: 2; }
.entry .e-body { grid-column: 3; }
.entry .e-badge { grid-column: 4; justify-self: end; }
@media (max-width: 600px) {
  .entry { grid-template-columns: 40px minmax(0, 1fr); row-gap: 4px; }
  .entry .e-time { grid-column: 2; grid-row: 1; }
  .entry .e-photo { grid-column: 1; grid-row: 1 / span 3; }
  .entry .e-body { grid-column: 2; grid-row: 2; }
  .entry .e-badge { grid-column: 2; grid-row: 3; justify-self: start; }
}
.phone-only { display: none; }
@media (max-width: 600px) { .phone-only { display: block; } }

/* A long word (a SKU, an address) wraps where it must; nothing scrolls sideways. */
#app { overflow-wrap: break-word; }

/* A refresh keeps the rows on screen, dimmed, until the new ones are drawn (the only motion is this dim). */
.refreshing { opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) { .refreshing { transition: opacity 160ms ease-out; } }
