/* Stock arrival centre — layout around Polaris web components; the table matches Polaris styling. */
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif; color: #303030; background: #f1f1f1; }
.filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto; gap: 8px; align-items: center; }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #e3e3e3; border-radius: 10px; background: #fafafa; }
.bulk.has-selection { background: #f0f5ff; border-color: #b8ccf5; }
.bulk .sep { width: 1px; align-self: stretch; background: #e3e3e3; margin: 0 4px; }
.bulk s-date-field { flex: 0 0 180px; width: 180px; }
.paste { padding: 12px; border: 1px solid #e3e3e3; border-radius: 10px; background: #fff; display: grid; gap: 8px; }
.tablewrap { border: 1px solid #e3e3e3; border-radius: 10px; overflow: auto; max-height: calc(100vh - 290px); background: #fff; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th { position: sticky; top: 0; z-index: 1; background: #f7f7f7; text-align: left; font-weight: 600; color: #616161; padding: 8px 10px; border-bottom: 1px solid #e3e3e3; white-space: nowrap; cursor: pointer; user-select: none; }
table.grid th.c { cursor: default; width: 34px; }
table.grid th[aria-sort="ascending"]::after { content: " ▲"; font-size: 9px; }
table.grid th[aria-sort="descending"]::after { content: " ▼"; font-size: 9px; }
table.grid td { padding: 7px 10px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
table.grid tr:hover td { background: #fafafa; }
table.grid tr.sel td { background: #f0f5ff; }
table.grid td.n, table.grid th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.grid td.c { width: 34px; }
table.grid td .sub { display: block; color: #616161; font-size: 12px; }
table.grid a { color: #005bd3; text-decoration: none; }
table.grid a:hover { text-decoration: underline; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.b-missing, .b-overdue { background: #fedad9; color: #8e1f0b; }
.b-soon { background: #ffeb78; color: #4f4700; }
.b-unknown { background: #e3e3e3; color: #4a4a4a; }
.b-later { background: #e0f0ff; color: #00527c; }
.b-instock { background: #cdfee1; color: #0c5132; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: #303030; cursor: pointer; }
.demo-note { margin: 0 0 8px; padding: 8px 12px; background: #fff4d6; border: 1px solid #f0d78c; border-radius: 8px; font-size: 13px; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }
