/* Theo Properties RC1.0.15.129.9 — Admin Affiliate Programme Cross-Device Premium SaaS Lock
   Presentation-only authority for Affiliate Programme across desktop, laptop, tablet and mobile.
   No affiliate, attribution, commission, payout, Supabase, RLS, role or routing logic changed. */

:root{
  --aff1299-navy:#10344b;
  --aff1299-navy-2:#174a64;
  --aff1299-blue:#4f87cf;
  --aff1299-blue-soft:#f2f7fd;
  --aff1299-teal:#2d967e;
  --aff1299-teal-soft:#eef9f5;
  --aff1299-gold:#c58b31;
  --aff1299-gold-soft:#fff8eb;
  --aff1299-violet:#7466b6;
  --aff1299-violet-soft:#f5f3fb;
  --aff1299-line:#d9e5ec;
  --aff1299-line-2:#e7eef2;
  --aff1299-muted:#718795;
  --aff1299-surface:#ffffff;
  --aff1299-shadow:0 14px 36px rgba(15,48,70,.055),0 2px 8px rgba(15,48,70,.025);
}

/* Shared affiliate surface authority */
.theo-admin .aff-admin-page{
  min-width:0!important;
  gap:18px!important;
}
.theo-admin .aff-admin-page>.page-head{
  position:relative!important;
  overflow:hidden!important;
  padding:24px 26px!important;
  border:1px solid var(--aff1299-line)!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#fff 0%,#fbfdfe 68%,#fff8ec 100%)!important;
  box-shadow:var(--aff1299-shadow)!important;
}
.theo-admin .aff-admin-page>.page-head::before{
  content:"";
  position:absolute;
  left:0;top:22px;bottom:22px;
  width:4px;
  border-radius:0 999px 999px 0;
  background:linear-gradient(180deg,#d9a44a,#b87518);
}
.theo-admin .aff-admin-page>.page-head>div{min-width:0!important;max-width:900px!important}
.theo-admin .aff-admin-page>.page-head h1{
  margin:6px 0 8px!important;
  color:#123149!important;
  font-size:clamp(34px,2.7vw,46px)!important;
  line-height:1!important;
  letter-spacing:-.045em!important;
}
.theo-admin .aff-admin-page>.page-head p{
  max-width:850px!important;
  color:#6f8492!important;
  font-size:15px!important;
  line-height:1.55!important;
}
.theo-admin .aff-admin-page .aff-link{
  flex:0 0 auto!important;
  min-height:44px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 16px!important;
  border:1px solid #cfdde5!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--aff1299-navy)!important;
  box-shadow:0 5px 14px rgba(15,48,70,.035)!important;
  white-space:nowrap!important;
}

/* KPI system */
.theo-admin .aff-kpis{
  gap:12px!important;
}
.theo-admin .aff-kpis article{
  position:relative!important;
  overflow:hidden!important;
  min-width:0!important;
  min-height:126px!important;
  padding:20px 20px 18px 22px!important;
  border:1px solid var(--aff1299-line)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#fff 0%,var(--aff1299-blue-soft) 100%)!important;
  box-shadow:var(--aff1299-shadow)!important;
}
.theo-admin .aff-kpis article::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:4px;
  background:var(--aff1299-blue);
}
.theo-admin .aff-kpis article:nth-child(2){background:linear-gradient(145deg,#fff,var(--aff1299-teal-soft))!important}
.theo-admin .aff-kpis article:nth-child(2)::before{background:var(--aff1299-teal)}
.theo-admin .aff-kpis article:nth-child(3){background:linear-gradient(145deg,#fff,var(--aff1299-gold-soft))!important}
.theo-admin .aff-kpis article:nth-child(3)::before{background:var(--aff1299-gold)}
.theo-admin .aff-kpis article:nth-child(4){background:linear-gradient(145deg,#fff,var(--aff1299-violet-soft))!important}
.theo-admin .aff-kpis article:nth-child(4)::before{background:var(--aff1299-violet)}
.theo-admin .aff-kpis article span{
  font-size:10px!important;
  line-height:1.25!important;
  letter-spacing:.105em!important;
  color:#748896!important;
}
.theo-admin .aff-kpis article strong{
  margin:10px 0 6px!important;
  color:#123149!important;
  font-size:31px!important;
  line-height:1!important;
}
.theo-admin .aff-kpis article small{
  color:#78909e!important;
  font-size:11px!important;
  line-height:1.4!important;
}

/* Tabs */
.theo-admin .aff-admin-tabs{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:7px!important;
  border:1px solid var(--aff1299-line)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,48,70,.035)!important;
}
.theo-admin .aff-admin-tabs button{
  min-height:42px!important;
  padding:0 16px!important;
  border-radius:10px!important;
  color:#637a89!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
.theo-admin .aff-admin-tabs button.active{
  background:linear-gradient(135deg,var(--aff1299-navy),var(--aff1299-navy-2))!important;
  color:#fff!important;
  box-shadow:0 6px 16px rgba(16,52,75,.16)!important;
}

/* Panel + desktop/laptop table authority */
.theo-admin .aff-admin-panel{
  min-width:0!important;
  padding:20px!important;
  border:1px solid var(--aff1299-line)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:var(--aff1299-shadow)!important;
}
.theo-admin .aff-table-wrap{
  width:100%!important;
  overflow:auto!important;
  border:1px solid var(--aff1299-line-2)!important;
  border-radius:14px!important;
  background:#fff!important;
}
.theo-admin .aff-table-wrap table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
.theo-admin .aff-table-wrap thead{
  background:linear-gradient(180deg,#f9fbfc,#f5f8fa)!important;
}
.theo-admin .aff-table-wrap th{
  padding:13px 13px!important;
  border-bottom:1px solid #dce6eb!important;
  color:#657b89!important;
  font-size:9.5px!important;
  line-height:1.2!important;
  letter-spacing:.08em!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.theo-admin .aff-table-wrap td{
  padding:15px 13px!important;
  border-bottom:1px solid #edf2f5!important;
  color:#405b6b!important;
  font-size:12px!important;
  line-height:1.45!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
.theo-admin .aff-table-wrap tbody tr:last-child td{border-bottom:0!important}
.theo-admin .aff-table-wrap td strong{
  color:#17384f!important;
  font-size:12.5px!important;
  line-height:1.35!important;
}
.theo-admin .aff-table-wrap td small{
  color:#7d909d!important;
  font-size:10.5px!important;
  line-height:1.45!important;
}
.theo-admin .aff-pill{
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  padding:6px 9px!important;
  border:1px solid transparent!important;
}
.theo-admin .aff-pill.active,.theo-admin .aff-pill.approved,.theo-admin .aff-pill.paid{
  border-color:#d0eadf!important;
  background:#eaf7f1!important;
}
.theo-admin .aff-table-btn{
  min-width:86px!important;
  min-height:38px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  border-radius:10px!important;
}
.theo-admin .aff-admin-actions{margin:0 0 14px!important}
.theo-admin .aff-admin-actions button{min-height:40px!important;padding:0 14px!important;border-radius:10px!important}

/* Applications desktop proportions */
.theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel th:nth-child(1){width:18%}
.theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel th:nth-child(2){width:10%}
.theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel th:nth-child(3){width:35%}
.theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel th:nth-child(4){width:7%}
.theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel th:nth-child(5){width:8%}
.theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel th:nth-child(6){width:10%}
.theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel th:nth-child(7){width:12%}

/* --------------------------------------------------------------------------
   Tablet / iPad — affiliate registers become 2-column governance cards
   -------------------------------------------------------------------------- */
@media (min-width:701px) and (max-width:1180px){
  .theo-admin .aff-admin-page>.page-head{padding:21px 22px!important;border-radius:18px!important}
  .theo-admin .aff-admin-page>.page-head h1{font-size:34px!important}
  .theo-admin .aff-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .theo-admin .aff-kpis article{min-height:112px!important;padding:17px 17px 15px 19px!important;border-radius:15px!important}
  .theo-admin .aff-kpis article strong{font-size:27px!important}
  .theo-admin .aff-admin-tabs{overflow-x:auto!important;scrollbar-width:none!important;overscroll-behavior-inline:contain!important}
  .theo-admin .aff-admin-tabs::-webkit-scrollbar{display:none!important}
  .theo-admin .aff-admin-tabs button{flex:0 0 auto!important}
  .theo-admin .aff-admin-panel{padding:14px!important;border-radius:16px!important}
  .theo-admin .aff-table-wrap{overflow:visible!important;border:0!important;background:transparent!important}
  .theo-admin .aff-table-wrap table{display:block!important;min-width:0!important;table-layout:auto!important}
  .theo-admin .aff-table-wrap thead{display:none!important}
  .theo-admin .aff-table-wrap tbody{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .theo-admin .aff-table-wrap tbody tr{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px 14px!important;
    min-width:0!important;
    padding:16px!important;
    border:1px solid #dde8ee!important;
    border-radius:15px!important;
    background:linear-gradient(145deg,#fff,#fbfdfe)!important;
    box-shadow:0 7px 20px rgba(15,48,70,.035)!important;
  }
  .theo-admin .aff-table-wrap tbody td{
    display:block!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    font-size:11.5px!important;
    overflow-wrap:anywhere!important;
  }
  .theo-admin .aff-table-wrap tbody td::before{
    display:block!important;
    margin-bottom:4px!important;
    color:#8799a5!important;
    font-size:8px!important;
    line-height:1.15!important;
    font-weight:800!important;
    letter-spacing:.08em!important;
    text-transform:uppercase!important;
  }
  .theo-admin .aff-table-wrap tbody tr:has(td[colspan]){
    grid-column:1/-1!important;
    display:block!important;
    padding:30px 18px!important;
    border:1px dashed #cfdee6!important;
    background:linear-gradient(135deg,#fbfdfe,#f7fafc)!important;
    text-align:center!important;
    color:#748b98!important;
  }
  .theo-admin .aff-table-wrap tbody tr:has(td[colspan]) td::before{content:none!important}
}

/* --------------------------------------------------------------------------
   Mobile — true governance cards, no compressed vertical table text
   -------------------------------------------------------------------------- */
@media (max-width:700px){
  .theo-admin #content:has(.aff-admin-page){padding-bottom:122px!important}
  .theo-admin .aff-admin-page{gap:11px!important}
  .theo-admin .aff-admin-page>.page-head{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:13px!important;
    padding:16px!important;
    border-radius:17px!important;
  }
  .theo-admin .aff-admin-page>.page-head::before{top:16px!important;bottom:16px!important;width:3px!important}
  .theo-admin .aff-admin-page>.page-head h1{font-size:29px!important;line-height:1.03!important;margin:5px 0 7px!important}
  .theo-admin .aff-admin-page>.page-head p{font-size:12px!important;line-height:1.48!important}
  .theo-admin .aff-admin-page .aff-link{width:100%!important;min-height:42px!important;padding:0 12px!important;font-size:11px!important}

  .theo-admin .aff-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .theo-admin .aff-kpis article{min-height:102px!important;padding:14px 13px 13px 16px!important;border-radius:14px!important}
  .theo-admin .aff-kpis article::before{width:3px!important}
  .theo-admin .aff-kpis article span{font-size:8px!important;letter-spacing:.075em!important;line-height:1.2!important}
  .theo-admin .aff-kpis article strong{font-size:25px!important;margin:8px 0 4px!important}
  .theo-admin .aff-kpis article small{font-size:9.5px!important;line-height:1.3!important}

  .theo-admin .aff-admin-tabs{
    gap:5px!important;
    padding:5px!important;
    border-radius:14px!important;
    overflow-x:auto!important;
    scrollbar-width:none!important;
    overscroll-behavior-inline:contain!important;
  }
  .theo-admin .aff-admin-tabs::-webkit-scrollbar{display:none!important}
  .theo-admin .aff-admin-tabs button{flex:0 0 auto!important;min-height:39px!important;padding:0 11px!important;font-size:10px!important;border-radius:9px!important}

  .theo-admin .aff-admin-panel{padding:10px!important;border-radius:15px!important}
  .theo-admin .aff-admin-actions{margin:0 0 10px!important}
  .theo-admin .aff-admin-actions button{width:100%!important;min-height:42px!important}
  .theo-admin .aff-table-wrap{overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important}
  .theo-admin .aff-table-wrap table{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important}
  .theo-admin .aff-table-wrap thead{display:none!important}
  .theo-admin .aff-table-wrap tbody{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .theo-admin .aff-table-wrap tbody tr{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px 12px!important;
    min-width:0!important;
    padding:14px!important;
    border:1px solid #dce8ee!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,#fff,#fbfdfe)!important;
    box-shadow:0 6px 18px rgba(15,48,70,.03)!important;
  }
  .theo-admin .aff-table-wrap tbody td{
    display:block!important;
    min-width:0!important;
    width:auto!important;
    padding:0!important;
    border:0!important;
    color:#405b6b!important;
    font-size:11px!important;
    line-height:1.4!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
  }
  .theo-admin .aff-table-wrap tbody td::before{
    display:block!important;
    margin:0 0 4px!important;
    color:#8799a5!important;
    font-size:7.8px!important;
    line-height:1.15!important;
    font-weight:800!important;
    letter-spacing:.075em!important;
    text-transform:uppercase!important;
  }
  .theo-admin .aff-table-wrap tbody td strong{font-size:12px!important;line-height:1.3!important}
  .theo-admin .aff-table-wrap tbody td small{font-size:9.5px!important;line-height:1.35!important}
  .theo-admin .aff-table-wrap .aff-pill{font-size:9px!important;padding:5px 8px!important}
  .theo-admin .aff-table-wrap .aff-table-btn{width:100%!important;min-width:0!important;min-height:40px!important;font-size:11px!important}

  /* Empty table state */
  .theo-admin .aff-table-wrap tbody tr:has(td[colspan]){
    display:block!important;
    padding:27px 15px!important;
    border:1px dashed #cfdee6!important;
    border-radius:13px!important;
    background:linear-gradient(135deg,#fbfdfe,#f7fafc)!important;
    box-shadow:none!important;
    text-align:center!important;
  }
  .theo-admin .aff-table-wrap tbody tr:has(td[colspan]) td{
    display:block!important;
    color:#758b98!important;
    text-align:center!important;
  }
  .theo-admin .aff-table-wrap tbody tr:has(td[colspan]) td::before{content:none!important}

  /* Applications */
  .theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel tbody td:nth-child(1){grid-column:1/-1!important}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel tbody td:nth-child(1)::before{content:"Applicant"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel tbody td:nth-child(2)::before{content:"Partner Type"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel tbody td:nth-child(3){grid-column:1/-1!important;padding:10px 0!important;border-top:1px solid #edf2f5!important;border-bottom:1px solid #edf2f5!important}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel tbody td:nth-child(3)::before{content:"Requested Categories"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel tbody td:nth-child(4)::before{content:"Attribution Window"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel tbody td:nth-child(5)::before{content:"Status"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel tbody td:nth-child(6)::before{content:"Applied"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel tbody td:nth-child(7){grid-column:1/-1!important}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="applications"].active) + .aff-admin-panel tbody td:nth-child(7)::before{content:none!important}

  /* Affiliates */
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(1){grid-column:1/-1!important}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(1)::before{content:"Affiliate"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(2)::before{content:"Code"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(3){grid-column:1/-1!important}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(3)::before{content:"Eligibility"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(4)::before{content:"Window"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(5)::before{content:"Status"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(6)::before{content:"Clicks"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(7)::before{content:"Leads"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(8)::before{content:"Conversions"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(9){grid-column:1/-1!important}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(9)::before{content:"Approved Earnings"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(10){grid-column:1/-1!important}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="affiliates"].active) + .aff-admin-panel tbody td:nth-child(10)::before{content:none!important}

  /* Conversions & commissions */
  .theo-admin .aff-admin-tabs:has([data-aff-tab="conversions"].active) + .aff-admin-panel tbody td:nth-child(1)::before{content:"Date"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="conversions"].active) + .aff-admin-panel tbody td:nth-child(2)::before{content:"Affiliate"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="conversions"].active) + .aff-admin-panel tbody td:nth-child(3){grid-column:1/-1!important}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="conversions"].active) + .aff-admin-panel tbody td:nth-child(3)::before{content:"Conversion"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="conversions"].active) + .aff-admin-panel tbody td:nth-child(4)::before{content:"Value"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="conversions"].active) + .aff-admin-panel tbody td:nth-child(5)::before{content:"Commission"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="conversions"].active) + .aff-admin-panel tbody td:nth-child(6)::before{content:"Status"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="conversions"].active) + .aff-admin-panel tbody td:nth-child(7){grid-column:1/-1!important}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="conversions"].active) + .aff-admin-panel tbody td:nth-child(7)::before{content:none!important}

  /* Commission rules */
  .theo-admin .aff-admin-tabs:has([data-aff-tab="rules"].active) + .aff-admin-panel tbody td:nth-child(1)::before{content:"Conversion"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="rules"].active) + .aff-admin-panel tbody td:nth-child(2)::before{content:"Calculation"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="rules"].active) + .aff-admin-panel tbody td:nth-child(3)::before{content:"Rate / Amount"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="rules"].active) + .aff-admin-panel tbody td:nth-child(4)::before{content:"Effective"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="rules"].active) + .aff-admin-panel tbody td:nth-child(5)::before{content:"Status"}

  /* Payouts */
  .theo-admin .aff-admin-tabs:has([data-aff-tab="payouts"].active) + .aff-admin-panel tbody td:nth-child(1){grid-column:1/-1!important}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="payouts"].active) + .aff-admin-panel tbody td:nth-child(1)::before{content:"Reference"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="payouts"].active) + .aff-admin-panel tbody td:nth-child(2){grid-column:1/-1!important}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="payouts"].active) + .aff-admin-panel tbody td:nth-child(2)::before{content:"Affiliate"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="payouts"].active) + .aff-admin-panel tbody td:nth-child(3)::before{content:"Period"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="payouts"].active) + .aff-admin-panel tbody td:nth-child(4)::before{content:"Amount"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="payouts"].active) + .aff-admin-panel tbody td:nth-child(5)::before{content:"Status"}
  .theo-admin .aff-admin-tabs:has([data-aff-tab="payouts"].active) + .aff-admin-panel tbody td:nth-child(6)::before{content:"Payment Reference"}
}

@media (max-width:390px){
  .theo-admin .aff-admin-page>.page-head{padding:14px!important}
  .theo-admin .aff-admin-page>.page-head h1{font-size:27px!important}
  .theo-admin .aff-kpis{gap:7px!important}
  .theo-admin .aff-kpis article{min-height:96px!important;padding:13px 11px 11px 14px!important}
  .theo-admin .aff-kpis article strong{font-size:23px!important}
  .theo-admin .aff-admin-panel{padding:8px!important}
  .theo-admin .aff-table-wrap tbody tr{grid-template-columns:1fr!important;padding:13px!important}
  .theo-admin .aff-table-wrap tbody td{grid-column:1/-1!important}
}
