/* Referrals — dashboard design, scoped under .crdts-dash.
   Page-private classes; the shared shell stays in dashboard.scoped.css. */

.crdts-dash h1,.crdts-dash h2,.crdts-dash h3,.crdts-dash h4,.crdts-dash p,.crdts-dash span,.crdts-dash a,.crdts-dash b,.crdts-dash strong,.crdts-dash small,.crdts-dash em,.crdts-dash i,.crdts-dash li,.crdts-dash ul,.crdts-dash ol,.crdts-dash button,.crdts-dash label,.crdts-dash input,.crdts-dash textarea,.crdts-dash select,.crdts-dash summary,.crdts-dash option:not(.material-symbols-outlined):not([class*="material-symbols"]):not(.material-symbols-rounded):not([class*="material-symbols-rounded"]){font-family:inherit}
.crdts-dash .material-symbols-outlined,.crdts-dash [class*="material-symbols"]{
  font-family:'Material Symbols Outlined'!important;font-weight:400;font-style:normal;
  line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;
  white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:'liga';
  -webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}

/* ============ referrals: the six-tile metric row ============ */

.crdts-dash .rf-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}

/* ============ referrals: tables ============ */

.crdts-dash .rf-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;
  color:var(--orange);background:none;border:0;padding:0;cursor:pointer;direction:ltr;
  display:inline-block;text-decoration:underline;text-underline-offset:2px}
.crdts-dash .rf-code:hover{color:#171714}
.crdts-dash .rf-mon{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;
  color:#494938;direction:ltr;display:inline-block}
.crdts-dash .rf-num{font-weight:700;color:#171714}
.crdts-dash .rf-num.rf-orange{color:#cc4a05}
.crdts-dash .rf-per{font-size:11.5px;line-height:1.7;color:#8c8c81}
.crdts-dash .rf-per span{display:block}
.crdts-dash .rf-cancelled .status-chip{color:#c94742}

.crdts-dash .rf-acts{display:flex;gap:5px;justify-content:flex-end}

/* ============ referral link form: the reward picker ============ */

.crdts-dash .rf-types{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.crdts-dash .rf-type{border:1px solid #e5e5db;border-radius:9px;background:#fff;padding:13px 14px;
  text-align:start;cursor:pointer;display:grid;gap:4px;justify-items:start;
  transition:border-color .15s,background .15s,box-shadow .15s;font-family:inherit}
.crdts-dash .rf-type:hover{border-color:#e0c266}
.crdts-dash .rf-type.on{border-color:#f0d99a;background:#fff9e4;box-shadow:0 0 0 2px #f6edb9}
.crdts-dash .rf-type-ico{width:30px;height:30px;border-radius:8px;background:#f6f6f0;color:#8c8c81;
  display:grid;place-items:center;margin-bottom:2px}
.crdts-dash .rf-type-ico svg{width:16px;height:16px}
.crdts-dash .rf-type.on .rf-type-ico{background:#fff;color:var(--orange)}
.crdts-dash .rf-type b{display:block;font-size:12.5px;color:#38382d}
.crdts-dash .rf-type small{display:block;font-size:10.5px;color:#a1a194;line-height:1.6}

/* ============ referral link form: the date trigger ============ */

.crdts-dash .rf-date{width:100%;height:42px;display:flex;align-items:center;gap:9px;padding:0 13px;
  border:1px solid #e5e5db;border-radius:8px;background:#fff;color:inherit;font:inherit;font-size:13px;
  cursor:pointer;transition:border-color .15s;text-align:start}
.crdts-dash .rf-date:hover{border-color:#e0c266}
.crdts-dash .rf-date svg{width:15px;height:15px;color:#a1a194;flex-shrink:0}
.crdts-dash .rf-date.is-empty{color:#b4b4a7}

@media(max-width:1200px){
  .crdts-dash .rf-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:680px){
  .crdts-dash .rf-metrics{grid-template-columns:1fr 1fr}
  .crdts-dash .rf-types{grid-template-columns:1fr}
  .crdts-dash .rf-acts{justify-content:flex-start}
}

