/* S79-T17: the Amazon operator App screen. Tokens only. The dispatcher draws the frame; this is its body. */ .ao-app { position: relative; display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; background: var(--lp-surface); color: var(--lp-ink); font-size: var(--lp-fs-sm); } .ao-scroll { container: ao / inline-size; flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; } /* Buttons reset native chrome first (DESIGN.md ยง4). */ .ao-tab, .ao-button, .ao-link, .ao-open, .ao-dismiss-open { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; } .ao-tabs { display: flex; gap: 4px; padding-bottom: 8px; border-bottom: var(--lp-hairline-width) solid var(--lp-line); } .ao-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: var(--lp-r-md); color: var(--lp-muted); font-size: var(--lp-fs-xs); } .ao-tab:hover { background: var(--lp-wash); color: var(--lp-ink); } .ao-tab.is-active { background: var(--lp-blue-tint); color: var(--lp-ink); font-weight: var(--lp-fw-semibold); } .ao-count { color: var(--lp-muted); font-weight: 400; font-variant-numeric: tabular-nums; } .ao-body, .ao-view { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .ao-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 32px; } .ao-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; } .ao-date { color: var(--lp-muted); font-size: var(--lp-fs-xs); font-variant-numeric: tabular-nums; } .ao-button { min-height: 32px; padding: 0 12px; border-radius: var(--lp-r-sm); background: var(--lp-wash); color: var(--lp-ink); font-size: var(--lp-fs-xs); font-variant-numeric: tabular-nums; transition: transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing), opacity var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); } .ao-button.is-primary { background: var(--lp-primary); color: var(--lp-surface); font-weight: var(--lp-fw-semibold); } .ao-button.is-primary:hover:not(:disabled) { background: var(--lp-primary-hover); } .ao-button.is-quiet { background: transparent; color: var(--lp-muted); } .ao-button.is-quiet:hover { background: var(--lp-wash); color: var(--lp-ink); } .ao-button:active:not(:disabled) { transform: scale(0.97); } .ao-button:disabled { opacity: var(--lp-home-disabled-opacity); cursor: default; } .ao-link { padding: 0; color: var(--lp-blue-deep); text-decoration: underline; } .ao-open { padding: 0; text-align: left; color: var(--lp-ink); font-weight: 500; } .ao-open:hover { color: var(--lp-blue-deep); text-decoration: underline; } /* The per-row decline: small and quiet, at the row's right end. */ .ao-dismiss-open { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; margin-left: -8px; border-radius: var(--lp-r-sm); color: var(--lp-muted); font-size: var(--lp-fs-2xs); } .ao-dismiss-open:hover:not(:disabled) { background: var(--lp-wash); color: var(--lp-ink); } .ao-dismiss-open:disabled { opacity: var(--lp-home-disabled-opacity); cursor: default; } .ao-reason-form { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .ao-reason-form.is-inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; } .ao-reason-actions { display: inline-flex; flex-wrap: wrap; gap: 4px; } .ao-input { min-height: 32px; width: 100%; min-width: 0; box-sizing: border-box; padding: 0 8px; border: var(--lp-hairline-width) solid var(--lp-line-strong); border-radius: var(--lp-r-sm); background: var(--lp-surface); color: var(--lp-ink); font: inherit; font-size: var(--lp-fs-xs); } .ao-reason-form.is-inline .ao-input { width: 200px; max-width: 100%; } .ao-field { display: inline-flex; align-items: center; gap: 8px; } .ao-field-label { color: var(--lp-muted); font-size: var(--lp-fs-xs); } .ao-select { min-height: 32px; min-width: 152px; box-sizing: border-box; padding: 0 8px; border: var(--lp-hairline-width) solid var(--lp-line-strong); border-radius: var(--lp-r-sm); background: var(--lp-surface); color: var(--lp-ink); font: inherit; font-size: var(--lp-fs-xs); } .ao-check { width: 16px; height: 16px; margin: 0; accent-color: var(--lp-primary); cursor: pointer; } .ao-check:disabled { cursor: default; } .ao-tab:focus-visible, .ao-button:focus-visible, .ao-link:focus-visible, .ao-open:focus-visible, .ao-select:focus-visible, .ao-input:focus-visible, .ao-dismiss-open:focus-visible, .ao-check:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } .ao-empty { margin: 0; color: var(--lp-ink); } .ao-error { margin: 0; color: var(--lp-red-deep); } .ao-heading { margin: 0; font-size: var(--lp-fs-sm); font-weight: var(--lp-fw-semibold); } /* One table, fixed columns: a result landing in a row never reflows the others. */ .ao-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--lp-fs-xs); } .ao-table th { text-align: left; font-weight: 500; color: var(--lp-muted); padding: 8px; border-bottom: var(--lp-hairline-width) solid var(--lp-line); } .ao-table td { padding: 8px; vertical-align: top; border-bottom: var(--lp-hairline-width) solid var(--lp-line); overflow-wrap: anywhere; } .ao-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .ao-col-tick { width: 40px; } .ao-today .ao-col-campaign { width: 16%; } .ao-today .ao-col-sku { width: 11%; } .ao-today .ao-col-change { width: 17%; } .ao-today .ao-col-gate { width: 18%; } .ao-today .ao-col-result { width: 14%; } .ao-history .ao-col-day { width: 72px; } .ao-history .ao-col-campaign { width: 24%; } .ao-history .ao-col-sku { width: 14%; } .ao-history .ao-col-decision { width: 12%; } .ao-history .ao-col-outcome { width: 26%; } .ao-c-tick { text-align: center; } .ao-c-tick .ao-check { margin-top: 1px; } .ao-tick-all { display: inline-flex; align-items: center; gap: 8px; } .ao-tick-all-label { display: none; } .ao-c-campaign .ao-open { margin-right: 8px; } .ao-c-change { font-variant-numeric: tabular-nums; } .ao-c-gate { color: var(--lp-muted); } .ao-row.is-decided .ao-c-change, .ao-row.is-decided .ao-c-reason { color: var(--lp-muted); } .ao-tag { display: inline-block; padding: 0 4px; border: var(--lp-hairline-width) solid var(--lp-line); border-radius: var(--lp-r-sm); color: var(--lp-muted); font-size: var(--lp-fs-2xs); line-height: var(--lp-lh); vertical-align: baseline; } .ao-result { display: block; } .ao-result.is-sent { color: var(--lp-green-deep); } .ao-result.is-refused { color: var(--lp-red-deep); } .ao-result.is-approved, .ao-result.is-dismissed, .ao-result.is-notice { color: var(--lp-muted); } .ao-decision.is-open { color: var(--lp-muted); } /* After Approve a row leaves the batch in place: its tick fades out and its result fades in. */ .ao-row .ao-c-tick .ao-check { transition: opacity var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); } .ao-row.is-settled .ao-c-tick .ao-check { opacity: 0; pointer-events: none; } .ao-row.is-settled .ao-result { animation: ao-result-in var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing) both; } @keyframes ao-result-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } .ao-held { display: flex; flex-direction: column; gap: 8px; } .ao-held-list { margin: 0; padding: 0; list-style: none; font-size: var(--lp-fs-xs); } .ao-held-list li { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 160px) minmax(0, 1fr); gap: 4px 12px; padding: 8px; border-bottom: var(--lp-hairline-width) solid var(--lp-line); color: var(--lp-muted); } .ao-held-what { color: var(--lp-ink); overflow-wrap: anywhere; } .ao-more { display: flex; justify-content: center; } .ao-skeleton-rows { display: flex; flex-direction: column; gap: 8px; } .ao-skeleton { height: 32px; border-radius: var(--lp-r-sm); background: var(--lp-wash); } /* The item drawer: right side, inside the App panel, over the list. */ .ao-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 100%); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow-y: auto; background: var(--lp-panel); border-left: var(--lp-hairline-width) solid var(--lp-line); box-shadow: var(--lp-panel-shadow); z-index: 2; animation: ao-drawer-in var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing) both; } @keyframes ao-drawer-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } } .ao-drawer-head { display: flex; align-items: flex-start; gap: 8px; } .ao-drawer-title { flex: 1 1 auto; margin: 0; font-size: var(--lp-fs-md); font-weight: var(--lp-fw-semibold); font-variant-numeric: tabular-nums; } .ao-facts { margin: 0; display: flex; flex-direction: column; font-size: var(--lp-fs-xs); } .ao-fact { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: var(--lp-hairline-width) solid var(--lp-line); } .ao-fact dt { color: var(--lp-muted); } .ao-fact dd { margin: 0; overflow-wrap: anywhere; } .ao-fact dd.is-num { text-align: right; font-variant-numeric: tabular-nums; } .ao-fact dd.is-refused { color: var(--lp-red-deep); } /* Keep the decision and its evidence readable inside the App's Grid host. */ .ao-app .ao-grid-shell .ao-table .ao-c-product { min-width: 180px; max-width: 200px; } .ao-product-picture { display: inline-block; width: 32px; height: 32px; margin-right: 8px; vertical-align: middle; border: var(--lp-hairline-width) solid var(--lp-line); border-radius: var(--lp-r-sm); background: var(--lp-wash); } .ao-product-copy { display: inline-flex; flex-direction: column; max-width: 144px; vertical-align: middle; } .ao-product-copy .ao-open { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ao-product-copy small { color: var(--lp-muted); font-size: var(--lp-fs-2xs); } .ao-app .ao-grid-shell .ao-table .ao-c-value { min-width: 112px; max-width: none; } .ao-app .ao-grid-shell .ao-table .ao-c-reason { min-width: 224px; max-width: 280px; white-space: normal; overflow: visible; text-overflow: clip; } .ao-app .ao-grid-shell .ao-table .ao-c-address, .ao-app .ao-grid-shell .ao-table .ao-c-action { min-width: 240px; max-width: 280px; white-space: normal; overflow-wrap: anywhere; overflow: visible; } .ao-app .ao-grid-shell .ao-table .ao-c-plan { min-width: 160px; max-width: none; } .ao-app .ao-grid-shell[data-hidden~="current_value"] [data-field="current_value"], .ao-app .ao-grid-shell[data-hidden~="proposed_value"] [data-field="proposed_value"], .ao-app .ao-grid-shell[data-hidden~="value_change"] [data-field="value_change"], .ao-app .ao-grid-shell[data-hidden~="first_seen"] [data-field="first_seen"], .ao-app .ao-grid-shell[data-hidden~="campaign"] [data-field="campaign"], .ao-app .ao-grid-shell[data-hidden~="action"] [data-field="action"], .ao-app .ao-grid-shell[data-hidden~="plan_link"] [data-field="plan_link"], .ao-app .ao-grid-shell[data-hidden~="ship_from"] [data-field="ship_from"], .ao-app .ao-grid-shell[data-hidden~="prep_owner"] [data-field="prep_owner"], .ao-app .ao-grid-shell[data-hidden~="source"] [data-field="source"], .ao-app .ao-grid-shell[data-hidden~="day"] [data-field="day"], .ao-app .ao-grid-shell[data-hidden~="app"] [data-field="app"] { display: none; } .ao-app .ao-grid-shell .ao-table .ao-c-result { min-width: 176px; max-width: 240px; white-space: normal; } .ao-c-result .ao-button { min-height: 28px; margin: 4px; padding: 0 8px; } .ao-status { display: inline-block; padding: 2px 8px; border-radius: var(--lp-r-sm); background: var(--lp-blue-tint); color: var(--lp-blue-deep); font-size: var(--lp-fs-2xs); white-space: nowrap; } .ao-status[data-status="sent"], .ao-status[data-status="approved"] { background: var(--lp-green-tint); color: var(--lp-green-deep); } .ao-status[data-status="refused"] { background: var(--lp-red-tint); color: var(--lp-red-deep); } .ao-status[data-status="dismissed"], .ao-status[data-status="stale"], .ao-status[data-status="unknown"] { background: var(--lp-wash); color: var(--lp-muted); } .ao-app .ao-grid-shell .ao-table .ao-c-delta.is-up { background: var(--lp-green-tint); color: var(--lp-green-deep); } .ao-app .ao-grid-shell .ao-table .ao-c-delta.is-down { background: var(--lp-red-tint); color: var(--lp-red-deep); } .ao-app .ao-grid-shell .ao-history th:nth-child(3), .ao-app .ao-grid-shell .ao-history .ao-c-campaign { position: static; } .ao-app .ao-grid-shell .ao-history th[data-field="product"], .ao-app .ao-grid-shell .ao-history .ao-c-product { position: sticky; left: 0; z-index: 1; } .ao-app .ao-grid-shell .ao-history th[data-field="product"] { z-index: 2; } /* The initial Today columns fit the App pane; optional fields expand the same table. */ .ao-app .ao-grid-shell .ao-table.ao-today { table-layout: fixed; } .ao-app .ao-grid-shell .ao-table.ao-today th, .ao-app .ao-grid-shell .ao-table.ao-today td, .ao-app .ao-grid-shell .ao-table.ao-today td:empty { min-width: 0; max-width: none; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; } .ao-app .ao-grid-shell .ao-table.ao-today th:first-child, .ao-app .ao-grid-shell .ao-table.ao-today .ao-grid-marker, .ao-app .ao-grid-shell .ao-table.ao-today .ao-c-tick { width: 32px; min-width: 32px; max-width: 32px; padding: 4px; } .ao-app .ao-grid-shell .ao-today .ao-product-copy { max-width: calc(100% - 40px); } .ao-app .ao-grid-shell .ao-today .ao-product-copy small { overflow-wrap: anywhere; } .ao-app .ao-grid-shell .ao-today .ao-c-result .ao-status, .ao-app .ao-grid-shell .ao-today .ao-c-result .ao-result { display: block; } .ao-app .ao-grid-shell .ao-today .ao-c-result .ao-status { width: fit-content; margin-bottom: 4px; } .ao-app .ao-grid-shell .ao-today .ao-c-result .ao-button, .ao-app .ao-grid-shell .ao-today .ao-c-result .ao-dismiss-open { min-height: 28px; margin: 0; padding: 0 4px; } .ao-app .ao-grid-shell .ao-today .ao-c-result .ao-reason-form { margin-top: 4px; } @media (prefers-reduced-motion: reduce) { .ao-button, .ao-row .ao-c-tick .ao-check { transition: none; } .ao-button:active:not(:disabled) { transform: none; } .ao-row.is-settled .ao-result, .ao-drawer { animation: none; } } /* Narrow panel (390 px phone): each row stacks. Campaign and change share a line, reason sits under it. */ @container ao (max-width: 640px) { .ao-table, .ao-table tbody { display: block; width: 100%; } .ao-table colgroup { display: none; } .ao-table thead { display: block; } .ao-table thead tr { display: flex; } .ao-table thead th { display: none; } .ao-table thead th.ao-c-tick { display: block; padding: 8px 0; border: 0; text-align: left; } .ao-tick-all-label { display: inline; } .ao-table tr.ao-row { display: grid; column-gap: 8px; padding: 8px 0; border-bottom: var(--lp-hairline-width) solid var(--lp-line); } .ao-table td { display: block; padding: 2px 0; border: 0; min-width: 0; } .ao-table td:empty { display: none; } .ao-today tr.ao-row { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "tick campaign change" "tick reason reason" "tick sku sku" "tick gate gate" "tick result result"; } .ao-today.is-readonly tr.ao-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "campaign change" "reason reason" "sku sku" "gate gate" "result result"; } .ao-today .ao-c-tick { grid-area: tick; text-align: left; } .ao-today .ao-c-campaign { grid-area: campaign; } .ao-today .ao-c-change { grid-area: change; text-align: right; } .ao-today .ao-c-reason { grid-area: reason; } .ao-today .ao-c-sku { grid-area: sku; color: var(--lp-muted); } .ao-today .ao-c-gate { grid-area: gate; } .ao-today .ao-c-result { grid-area: result; } .ao-history tr.ao-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "campaign change" "sku day" "decision outcome"; } .ao-history .ao-c-day { grid-area: day; color: var(--lp-muted); } .ao-history .ao-c-campaign { grid-area: campaign; } .ao-history .ao-c-change { grid-area: change; text-align: right; } .ao-history .ao-c-sku { grid-area: sku; color: var(--lp-muted); } .ao-history .ao-c-decision { grid-area: decision; } .ao-history .ao-c-outcome { grid-area: outcome; text-align: right; } .ao-held-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ao-held-why { grid-column: 1 / -1; } .ao-drawer { width: 100%; } }