/* Shared authenticated operations shell: one calm surface and integrated rows. */
:root { --ops-surface-neutral:#f5f5f4; --ops-divider:#dededb; --ops-hover:#ececea; }
.tenga-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:0 0 20px;border-bottom:1px solid var(--ops-divider)}
.tenga-page-header__main{min-width:0}.tenga-page-header__back{display:inline-block;margin-bottom:10px;color:#667085;text-decoration:none;font-size:13px;font-weight:700}
.tenga-page-header__eyebrow{display:block;margin-bottom:6px;color:#ff5a00;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.tenga-page-header__title{margin:0;color:#101828;font-size:27px;line-height:1.15;font-weight:900}.tenga-page-header__subtitle{margin:7px 0 0;color:#667085;font-size:14px;line-height:1.5}
.tenga-primary-action{flex:0 0 auto;padding:11px 16px;border-radius:10px;background:#ff5a00;color:#fff;text-decoration:none;font-size:13px;font-weight:850}
.tenga-tabs{display:flex;gap:24px;overflow-x:auto;border-bottom:1px solid var(--ops-divider);scrollbar-width:none}.tenga-tabs__item{position:relative;padding:14px 0 12px;color:#667085;text-decoration:none;font-size:13px;font-weight:750;white-space:nowrap}.tenga-tabs__item.is-active{color:#c2410c}.tenga-tabs__item.is-active:after{position:absolute;right:0;bottom:-1px;left:0;height:2px;background:#ff5a00;content:""}
.tenga-empty-state{display:grid;justify-items:center;gap:7px;padding:38px 16px;color:#667085;text-align:center}.tenga-empty-state__icon{display:grid;width:38px;height:38px;place-items:center;border-radius:50%;background:#ececea;color:#667085}.tenga-empty-state strong{color:#344054}.tenga-empty-state p{max-width:360px;margin:0;font-size:13px}
.portfolio-search{display:flex;gap:8px;margin-top:20px}.portfolio-search input{min-width:0;flex:1;padding:11px 13px;border:1px solid var(--ops-divider);border-radius:9px;background:#fff;font:inherit}.portfolio-record{display:flex;align-items:center;gap:12px;color:#101828;text-decoration:none}.portfolio-record__main{min-width:0;flex:1}.portfolio-record__main strong,.portfolio-record__main small,.portfolio-record__state strong,.portfolio-record__state small{display:block}.portfolio-record small{margin-top:4px;color:#667085;font-size:12px}.portfolio-record__state{flex:0 0 155px;text-align:right}.portfolio-record>i{color:#98a2b3}
body:has(.ops-shell) .app-shell { max-width:none; width:100%; min-height:100vh; background:#fff; box-shadow:none; }
.ops-shell { width:100%; min-height:100vh; background:#fff; }
.ops-main { width:100%; max-width:560px; min-height:100vh; margin-inline:auto; padding-inline:24px; box-sizing:border-box; background:var(--ops-surface-neutral); }
.ops-section { margin-top:24px; }
.ops-list { border:0; border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
.ops-row { min-height:62px; padding:14px 16px; border:0; border-bottom:1px solid var(--ops-divider); border-radius:0; background:transparent; box-shadow:none; }
.ops-row:last-child { border-bottom:1px solid var(--ops-divider); }
.ops-row:hover { background:var(--ops-hover); box-shadow:none; }
.ops-row:focus-visible { outline:2px solid #2458df; outline-offset:-2px; background:var(--ops-hover); }

/* Merchant: preserve the orange workflow control; flatten everything secondary. */
.merchant-dashboard-shell.ops-shell .merchant-shell { width:100%; max-width:560px; padding-inline:24px; background:var(--ops-surface-neutral); }
.merchant-dashboard-shell.ops-shell .merchant-header { margin-inline:-24px; padding-inline:24px; background:var(--ops-surface-neutral); }
.merchant-dashboard-shell.ops-shell .merchant-cta-wrap { padding-block:4px 10px; }
.merchant-dashboard-shell.ops-shell .portfolio-overview { padding:18px 0 20px; border:0; border-bottom:1px solid var(--ops-divider); border-radius:0; background:transparent; box-shadow:none; }
.merchant-dashboard-shell.ops-shell .portfolio-overview__icon { width:auto; height:auto; margin-bottom:7px; justify-content:flex-start; border-radius:0; background:transparent; }
.merchant-dashboard-shell.ops-shell .dashboard-section-title { margin-top:16px; padding:12px 16px 7px; border:0; background:transparent; color:#667085; }
.merchant-dashboard-shell.ops-shell .ts-dashboard-menu-list { border:0; border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
.merchant-dashboard-shell.ops-shell .ts-dashboard-menu-row { padding:14px 16px; border-bottom:1px solid var(--ops-divider); background:transparent; box-shadow:none; }
.merchant-dashboard-shell.ops-shell .ts-dashboard-menu-row:hover { background:var(--ops-hover); }
.merchant-dashboard-shell.ops-shell .ts-dashboard-menu-icon { width:34px; flex-basis:34px; height:34px; border-radius:0; background:transparent; }

/* Underwriter: retain queue-state and MY ACTIVE fills; quieten navigation below. */
.uw-home.ops-main { width:100%; max-width:560px; padding-inline:24px; background:var(--ops-surface-neutral); }
.uw-home .uw-section-label { margin-top:16px; padding:12px 16px 7px; border:0; background:transparent; color:#667085; }
.uw-home .ts-dashboard-menu-list { border:0; border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
.uw-home .ts-dashboard-menu-row { padding:14px 16px; border-bottom:1px solid var(--ops-divider); background:transparent; box-shadow:none; }
.uw-home .ts-dashboard-menu-row:hover { background:var(--ops-hover); }
.uw-home .ts-dashboard-menu-icon { width:34px; flex-basis:34px; height:34px; border-radius:0; background:transparent; }

/* Earnings: retain the balance summary and action buttons, flatten transaction lists. */
.earnings-ops { padding-block:20px 96px; }
.earnings-ops .wallet-balance-card { border:1px solid var(--ops-divider); border-radius:8px; box-shadow:none; background:#fff; }
.earnings-ops .card { padding-inline:0; border:0; border-radius:0; box-shadow:none; background:transparent; }
.earnings-ops .transaction-row { margin:0; padding:16px; border:0; border-bottom:1px solid var(--ops-divider); border-radius:0; background:transparent; box-shadow:none; }
.earnings-ops .payout-breakdown,.earnings-ops .metric-grid { border-radius:0; box-shadow:none; }

/* Recommerce keeps functional tables/forms while sharing the focused work surface. */
.rc-shell.ops-shell { background:#fff; }
.rc-shell .rc-main { width:calc(100% - 48px); max-width:680px; min-height:100vh; margin-inline:auto; padding:38px 24px 90px; box-sizing:border-box; background:var(--ops-surface-neutral); }
.rc-shell .rc-head { padding-bottom:20px; border-bottom:1px solid var(--rc-line); }
.rc-shell .rc-head h1 { font-size:27px; }
.rc-shell .rc-stats { gap:0; border-top:1px solid var(--rc-line); border-bottom:1px solid var(--rc-line); }
.rc-shell .rc-stats article { padding:18px 12px; border:0; border-right:1px solid var(--rc-line); border-radius:0; background:transparent; box-shadow:none; }
.rc-shell .rc-stats article:last-child { border-right:0; }
.rc-shell .rc-stats strong { font-size:19px; }
.rc-shell .rc-panel { padding:18px 0 0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.rc-shell .rc-table-wrap { border-top:1px solid var(--rc-line); }
.rc-shell th,.rc-shell td { padding-inline:8px; }

@media(max-width:700px){
  .tenga-page-header{padding-bottom:16px}.tenga-page-header__title{font-size:24px}.tenga-page-header__subtitle{font-size:13px}.tenga-tabs{gap:20px}
  .ops-main,.merchant-dashboard-shell.ops-shell .merchant-shell,.uw-home.ops-main { width:100%; max-width:560px; padding-inline:16px; }
  .merchant-dashboard-shell.ops-shell .merchant-header { margin-inline:-16px; padding-inline:16px; }
  .ops-row,.merchant-dashboard-shell.ops-shell .ts-dashboard-menu-row,.uw-home .ts-dashboard-menu-row { padding-inline:16px; }
  .rc-shell .rc-main { width:100%; padding:22px 16px 86px; }
  .rc-shell .rc-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rc-shell .rc-stats article:nth-child(2) { border-right:0; }
  .rc-shell .rc-stats article:nth-child(-n+2) { border-bottom:1px solid var(--rc-line); }
}
