/* S79-T27: the Payouts App. Tokens only; one containment layer (the app panel); the drawer is the overlay. */ .po-app { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; min-height: 0; height: 100%; box-sizing: border-box; padding: 12px 16px 24px; overflow-x: hidden; overflow-y: auto; background: var(--lp-surface); color: var(--lp-ink); font-size: var(--lp-fs-sm); } .po-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; } /* The list stays readable beside the drawer on a wide screen. */ @media (min-width: 1100px) { .po-app.has-drawer .po-main { margin-right: 480px; } } .po-num, .po-amount { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; } .po-amount.is-neg, .po-kpi-delta.is-neg { color: var(--lp-red-deep); } .po-amount.is-pos, .po-kpi-delta.is-pos { color: var(--lp-green-deep); } /* KPI strip: micro-label, tabular value, delta and period. */ .po-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; } .po-kpi { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 16px; border: var(--lp-hairline-width, 1px) solid var(--lp-line); border-radius: var(--lp-r-md); } .po-kpi-label { color: var(--lp-muted); font-size: var(--lp-fs-2xs); } .po-kpi-value { font-size: var(--lp-fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .po-kpi-foot { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--lp-fs-2xs); font-variant-numeric: tabular-nums; } .po-kpi-delta { font-weight: 500; } .po-kpi-period { color: var(--lp-muted); } /* Tabs with counts and the currency picker. */ .po-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; padding-bottom: 8px; border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); } .po-tabs { display: inline-flex; gap: 4px; } .po-tab, .po-link, .po-more, .po-icon-button, .po-row, .po-step-head { border: 0; background: transparent; font: inherit; color: inherit; } .po-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: var(--lp-r-md); color: var(--lp-muted); font-size: var(--lp-fs-xs); cursor: pointer; } .po-tab:hover { background: var(--lp-surface-2); color: var(--lp-ink); } .po-tab.is-active { background: var(--lp-blue-tint); color: var(--lp-ink); font-weight: 600; } .po-count { font-variant-numeric: tabular-nums; color: var(--lp-muted); font-weight: 400; } .po-currency { display: inline-flex; flex-direction: column; gap: 4px; margin-left: auto; } .po-field-label { color: var(--lp-muted); font-size: var(--lp-fs-2xs); } .po-select { min-height: 32px; min-width: 152px; max-width: 100%; box-sizing: border-box; padding: 0 8px; border: var(--lp-hairline-width, 1px) 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); } /* Settlement list: text left, amount right. */ .po-list { display: flex; flex-direction: column; min-width: 0; } .po-list-head, .po-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(160px, 1.6fr) 80px minmax(110px, 1fr); align-items: center; gap: 12px; padding: 8px; } .po-list-head { color: var(--lp-muted); font-size: var(--lp-fs-2xs); font-weight: 500; border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); } .po-rows { list-style: none; margin: 0; padding: 0; } .po-row { width: 100%; text-align: left; font-size: var(--lp-fs-xs); border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); cursor: pointer; transition: background-color var(--lp-motion-feedback-duration, 140ms) var(--lp-motion-feedback-easing, ease-out); } .po-row:hover { background: var(--lp-surface-2); } .po-row.is-selected { background: var(--lp-blue-tint); } .po-row-period { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; } .po-row-currency { color: var(--lp-muted); } .po-row-amount { justify-self: end; } .po-chip { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: var(--lp-r-sm); background: var(--lp-yellow-tint); color: var(--lp-yellow-deep); font-size: var(--lp-fs-2xs); font-weight: 500; } .po-more { align-self: flex-start; margin-top: 8px; min-height: 32px; padding: 0 12px; border-radius: var(--lp-r-sm); color: var(--lp-blue-deep); font-size: var(--lp-fs-xs); font-weight: 500; cursor: pointer; } .po-more:hover { background: var(--lp-surface-2); } .po-more:disabled { opacity: 0.5; cursor: default; } .po-link { color: var(--lp-blue-deep); padding: 0; text-decoration: underline; cursor: pointer; } .po-empty, .po-note { margin: 0; color: var(--lp-ink); } .po-error { margin: 0; color: var(--lp-red-deep); } /* Skeletons over spinners; no animation. */ .po-skeleton-rows { display: flex; flex-direction: column; gap: 8px; } .po-skeleton { height: 32px; border-radius: var(--lp-r-sm); background: var(--lp-surface-2); } .po-skeleton.is-kpi { height: 84px; border-radius: var(--lp-r-md); } /* Drawer: right side, full width at 390 px. */ .po-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-direction: column; width: min(480px, 100vw); box-sizing: border-box; overflow-y: auto; background: var(--lp-surface); border-left: var(--lp-hairline-width, 1px) solid var(--lp-line); box-shadow: var(--lp-panel-shadow); animation: po-drawer-in var(--lp-motion-feedback-duration, 160ms) var(--lp-motion-feedback-easing, ease-out); } .po-drawer:focus { outline: none; } .po-drawer:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: -2px; } @keyframes po-drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } .po-drawer-head { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; padding: 16px 16px 12px; background: var(--lp-surface); border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); } .po-drawer-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--lp-fs-md); font-weight: 600; } .po-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--lp-r-sm); color: var(--lp-muted); cursor: pointer; } .po-icon-button:hover { background: var(--lp-surface-2); color: var(--lp-ink); } .po-drawer > .po-skeleton-rows, .po-drawer > .po-error { padding: 16px; } .po-drawer-body { display: flex; flex-direction: column; gap: 20px; padding: 16px; } .po-section { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .po-heading { margin: 0; font-size: var(--lp-fs-sm); font-weight: 600; } .po-flag { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; } .po-item { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; } .po-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .po-field-value { display: flex; align-items: center; min-height: 32px; box-sizing: border-box; font-size: var(--lp-fs-xs); } /* Waterfall rows, each expandable to its parts; the deposit row is bold. */ .po-waterfall, .po-parts { list-style: none; margin: 0; padding: 0; } .po-step { border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); } .po-step-head { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 0 4px; text-align: left; font-size: var(--lp-fs-xs); } button.po-step-head { cursor: pointer; } button.po-step-head:hover { background: var(--lp-surface-2); } .po-chevron { color: var(--lp-muted); transition: transform var(--lp-motion-feedback-duration, 140ms) var(--lp-motion-feedback-easing, ease-out); } .po-chevron.is-open { transform: rotate(90deg); } .po-chevron-gap { width: 12px; } .po-step.is-deposit { border-bottom: 0; border-top: 2px solid var(--lp-line-strong); } .po-step.is-deposit .po-step-head { font-weight: 600; } .po-parts { padding: 0 4px 8px 28px; } .po-part { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: var(--lp-fs-2xs); } .po-part-label { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; } .po-part-kind { color: var(--lp-muted); } /* Tie line. */ .po-tie { display: flex; flex-direction: column; gap: 8px; } .po-tie-rows { margin: 0; display: flex; flex-direction: column; } .po-tie-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: var(--lp-hairline-width, 1px) solid var(--lp-line); font-size: var(--lp-fs-xs); } .po-tie-row dt { color: var(--lp-muted); min-width: 0; } .po-tie-row dd { margin: 0; } .po-tie-row.is-excluded dt { padding-left: 12px; } .po-verdict { margin: 0; font-weight: 600; } .po-verdict.is-matched { color: var(--lp-green-deep); } .po-verdict.is-unmatched { color: var(--lp-red-deep); } .po-tab:focus-visible, .po-row:focus-visible, .po-step-head:focus-visible, .po-more:focus-visible, .po-link:focus-visible, .po-icon-button:focus-visible, .po-select:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } /* 390 px: one column, the drawer full width. */ @media (max-width: 640px) { .po-app { padding: 12px; } .po-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .po-kpi { padding: 10px 12px; } .po-list-head { display: none; } .po-row { grid-template-columns: 1fr auto; grid-template-areas: "deposit amount" "period currency"; gap: 4px 12px; } .po-row-deposit { grid-area: deposit; } .po-row-amount { grid-area: amount; } .po-row-period { grid-area: period; color: var(--lp-muted); } .po-row-currency { grid-area: currency; justify-self: end; } .po-drawer { width: 100vw; border-left: 0; } .po-currency { margin-left: 0; } } /* S82-T32: the settlements list is the Table Grid; it takes a bounded height inside the scrolling panel. */ .po-settlements { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .po-grid { display: flex; flex-direction: column; height: calc(100vh - 260px); min-height: 420px; min-width: 0; border: var(--lp-hairline-width, 1px) solid var(--lp-line); border-radius: var(--lp-r-md); overflow: hidden; } .po-grid > [data-proof="app-grid"], .po-grid .cg-shell { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; height: auto; } @media (prefers-reduced-motion: reduce) { .po-drawer { animation: none; } .po-row, .po-chevron { transition: none; } } /* S82-T34: tiles as a 2x2 block beside the deposits chart, so the Grid opens above the fold. */ .po-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; align-items: stretch; min-width: 0; } .po-tiles .lp-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .po-tiles .lp-kpi { padding: 12px 16px; gap: 4px; } .po-tiles [data-proof="payouts-deposits-chart"] { display: flex; min-width: 0; } .po-tiles .lp-chart { flex: 1; padding: 12px 16px; } .po-tiles .lp-chart figcaption { margin-bottom: 4px; } .po-tiles .lp-chart-plot svg { min-width: 0; } .po-tiles .lp-chart-table { margin-top: 4px; } /* A cost tile: a rise is bad news, a fall is good news. */ .po-tiles [data-cost="true"] .lp-kpi-change[data-sign="up"] { color: var(--lp-red-deep); background: var(--lp-red-tint); } .po-tiles [data-cost="true"] .lp-kpi-change[data-sign="down"] { color: var(--lp-green-deep); background: var(--lp-green-tint); } @media (max-width: 900px) { .po-tiles { grid-template-columns: minmax(0, 1fr); } }