loopable / web /src /styles /sdlc81 /operator-results.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
9e15897 verified
Raw History Blame Contribute Delete
8.27 kB
/* Operator grids keep proposal writes outside the Table mutation adapter. */
.ao-app .ao-scroll { overflow: hidden; gap: 8px; }
.ao-app .ao-body { flex: 1 1 0; min-height: 0; gap: 8px; }
.ao-grid-help {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.ao-grid-shell {
flex: 1 1 0;
min-height: 0;
gap: 0;
border: var(--lp-hairline-width) solid var(--lp-line);
background: var(--lp-surface);
}
.ao-grid-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
min-height: 44px;
padding: 4px 8px;
border-bottom: var(--lp-hairline-width) solid var(--lp-line);
font-size: var(--lp-fs-xs);
}
.ao-grid-view {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 30px;
padding: 0 8px;
color: var(--lp-blue-deep);
white-space: nowrap;
}
.ao-grid-toolbar .ao-grid-group {
min-width: 0;
width: 176px;
border-color: transparent;
background: var(--lp-wash);
}
.ao-grid-search {
display: inline-flex;
align-items: center;
gap: 8px;
margin-left: auto;
padding: 0 8px;
order: 1;
}
.ao-grid-search .ao-input { width: 160px; }
.ao-grid-options {
display: flex;
flex-direction: column;
gap: 12px;
padding: 12px;
color: var(--lp-ink);
font-size: var(--lp-fs-xs);
}
.ao-grid-options > label { display: flex; align-items: center; gap: 8px; }
.ao-grid-options .ao-field { align-items: stretch; flex-direction: column; }
.ao-grid-options p { margin: 0; }
.ao-grid-options strong { font-weight: var(--lp-fw-semibold); }
.ao-budget-detail { max-width: 288px; line-height: var(--lp-lh); }
.ao-grid-decisions {
min-height: 36px;
padding: 4px 12px;
border-bottom: var(--lp-hairline-width) solid var(--lp-line);
}
.ao-grid-decisions .ao-button { min-height: 28px; }
.ao-grid-viewport {
flex: 1 1 0;
min-width: 0;
min-height: 120px;
overflow: auto;
scrollbar-gutter: stable;
background: var(--lp-surface);
}
.ao-grid-shell .ao-table {
display: table;
width: max-content;
min-width: 100%;
table-layout: auto;
border-collapse: separate;
border-spacing: 0;
font-size: var(--lp-fs-xs);
}
.ao-grid-shell .ao-table thead { display: table-header-group; }
.ao-grid-shell .ao-table tbody { display: table-row-group; width: auto; }
.ao-grid-shell .ao-table tr,
.ao-grid-shell .ao-table tr.ao-row {
display: table-row;
padding: 0;
border: 0;
}
.ao-grid-shell .ao-table th,
.ao-grid-shell .ao-table td,
.ao-grid-shell .ao-table td:empty {
display: table-cell;
box-sizing: border-box;
min-width: 96px;
max-width: 200px;
height: 34px;
padding: 4px 8px;
border: 0;
border-right: var(--lp-hairline-width) solid var(--lp-line);
border-bottom: var(--lp-hairline-width) solid var(--lp-line);
vertical-align: middle;
text-align: left;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
overflow-wrap: normal;
background: var(--lp-surface);
}
.ao-grid-shell .ao-table th {
position: sticky;
top: 0;
z-index: 1;
height: 36px;
background: var(--lp-surface-2);
color: var(--lp-muted);
font-weight: 500;
}
.ao-grid-shell .ao-table .is-num {
text-align: right;
font-variant-numeric: tabular-nums;
}
.ao-grid-shell .ao-table th:first-child,
.ao-grid-shell .ao-table .ao-grid-marker,
.ao-grid-shell .ao-table .ao-c-tick {
display: table-cell;
width: 36px;
min-width: 36px;
max-width: 36px;
text-align: center;
color: var(--lp-muted);
font-variant-numeric: tabular-nums;
}
.ao-grid-shell .ao-table .ao-c-campaign { min-width: 160px; }
.ao-grid-shell .ao-table .ao-c-change { min-width: 168px; text-align: left; }
.ao-grid-shell .ao-table .ao-c-reason { min-width: 224px; max-width: 280px; }
.ao-grid-shell .ao-table .ao-c-gate { min-width: 160px; }
.ao-grid-shell .ao-table .ao-c-sku { min-width: 120px; }
.ao-grid-shell .ao-table .ao-c-result { min-width: 160px; max-width: 240px; }
.ao-grid-shell .ao-table .ao-c-day { min-width: 64px; }
.ao-grid-shell .ao-table .ao-metric-head,
.ao-grid-shell .ao-table [data-metric] { min-width: 80px; max-width: 96px; }
.ao-metric-head small { display: block; font: inherit; font-size: var(--lp-fs-2xs); }
.ao-grid-shell .ao-table .ao-result-wait { text-align: center; color: var(--lp-muted); }
.ao-grid-shell .ao-table .ao-result-loading { color: var(--lp-muted); }
.ao-grid-shell .ao-table .ao-spend-head,
.ao-grid-shell .ao-table .ao-budget-spend { min-width: 136px; max-width: 136px; }
.ao-grid-shell .ao-table .ao-grid-undo,
.ao-grid-shell .ao-table .ao-undo-head { width: 104px; min-width: 104px; max-width: 104px; }
.ao-grid-shell .ao-table .ao-c-campaign .ao-open {
display: inline-block;
max-width: 144px;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
white-space: nowrap;
}
.ao-grid-shell .ao-table .ao-c-result .ao-result,
.ao-grid-shell .ao-table .ao-c-outcome .ao-result {
display: inline;
white-space: normal;
}
.ao-grid-shell .ao-table .ao-result + .ao-result::before { content: ". "; }
.ao-grid-shell .ao-table .ao-reason-form { white-space: normal; }
.ao-grid-shell .ao-table .ao-reason-form .ao-input { width: 200px; max-width: 100%; }
.ao-grid-shell .ao-table .ao-tick-all-label { display: none; }
.ao-grid-shell .ao-table td[data-metric$="after"] { font-weight: var(--lp-fw-semibold); }
.ao-grid-shell .ao-table tr[data-included] td { background: var(--lp-blue-tint); }
.ao-grid-shell .ao-table tr[aria-selected="true"] td { background: var(--lp-blue-tint); }
.ao-grid-shell .ao-table td:focus-visible,
.ao-grid-shell .ao-table:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: -2px;
}
.ao-grid-shell .ao-table .ao-budget-spend .cg-tb-btn { font-variant-numeric: tabular-nums; }
.ao-grid-shell .ao-table .ao-budget-spend .cg-tb-btn > svg:last-child { display: inline; }
.ao-grid-shell .ao-table .ao-budget-spend .cg-tb-label { display: inline; }
.ao-grid-shell .ao-table .ao-grid-undo .ao-result-note {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
.ao-grid-shell .ao-table .ao-grid-undo .ao-link { display: block; }
.ao-grid-shell .ao-table .ao-undo { min-height: 24px; padding: 0 8px; }
.ao-grid-shell .ao-history .ao-c-campaign,
.ao-grid-shell .ao-history th:nth-child(3) {
position: sticky;
left: 0;
z-index: 1;
}
.ao-grid-shell .ao-history th:nth-child(3) { z-index: 2; }
.ao-grid-shell .ao-history .ao-budget-spend,
.ao-grid-shell .ao-history .ao-spend-head {
position: sticky;
right: 104px;
z-index: 1;
}
.ao-grid-shell .ao-history .ao-grid-undo,
.ao-grid-shell .ao-history .ao-undo-head {
position: sticky;
right: 0;
z-index: 1;
}
.ao-grid-shell .ao-history .ao-spend-head,
.ao-grid-shell .ao-history .ao-undo-head { z-index: 2; }
.ao-grid-shell[data-hidden~="sku"] .ao-table [data-field="sku"],
.ao-grid-shell[data-hidden~="reason"] .ao-table [data-field="reason"],
.ao-grid-shell[data-hidden~="gate"] .ao-table [data-field="gate"],
.ao-grid-shell[data-hidden~="spend"] .ao-table [data-field="spend"],
.ao-grid-shell[data-hidden~="decision"] .ao-table [data-field="decision"],
.ao-grid-shell[data-hidden~="outcome"] .ao-table [data-field="outcome"] { display: none; }
.ao-grid-shell .ao-empty { padding: 24px 12px; font-size: var(--lp-fs-xs); }
.ao-grid-shell > .ao-error { padding: 8px 12px; font-size: var(--lp-fs-xs); }
.ao-grid-footer {
flex: 0 0 auto;
min-height: 36px;
padding: 4px 8px;
border-top: var(--lp-hairline-width) solid var(--lp-line);
color: var(--lp-muted);
font-size: var(--lp-fs-xs);
font-variant-numeric: tabular-nums;
}
.ao-grid-footer .ao-button { min-height: 28px; }
.ao-grid-shell .ao-button:disabled { cursor: not-allowed; }
.ao-grid-shell .ao-select:disabled,
.ao-grid-shell .ao-check:disabled { opacity: var(--lp-home-disabled-opacity); cursor: not-allowed; }
.ao-result-note { color: var(--lp-muted); font-size: var(--lp-fs-xs); }
.ao-undo-notice { margin: 0; color: var(--lp-ink); font-size: var(--lp-fs-xs); }
@container ao (max-width: 640px) {
.ao-grid-search { margin-left: 0; }
.ao-grid-search .ao-input { width: 136px; }
.ao-grid-toolbar { padding: 4px; }
.ao-grid-shell .ao-history .ao-c-change { text-align: left; }
.ao-grid-shell .ao-history .ao-c-outcome { text-align: left; }
}