/*
 * Hasad Telecommunications report visuals
 * Light indicators with dark achieved percentages.
 */

:root{
  --telecom-report-pale:#f2f8f5;
  --telecom-report-pale-strong:#e6f2ed;
  --telecom-report-track:#deece6;
  --telecom-report-track-soft:#edf5f2;
  --telecom-report-fill-start:#4aa382;
  --telecom-report-fill-end:#0f6a50;
  --telecom-report-dark:#075842;
  --telecom-report-border:#d4e6de;
  --telecom-report-muted:#73827a;
}

.telecommunications-report-theme .telecommunications-indicator-rate{
  color:var(--telecom-report-dark)!important;
  font-weight:850!important;
  font-variant-numeric:tabular-nums;
}

.telecommunications-report-theme .telecommunications-indicator-box{
  background:linear-gradient(135deg,var(--telecom-report-pale),#fbfdfc)!important;
  border-color:var(--telecom-report-border)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.45);
}

.telecommunications-report-theme .telecommunications-progress-track{
  background:var(--telecom-report-track)!important;
  border-color:var(--telecom-report-border)!important;
  box-shadow:inset 0 1px 2px rgba(7,88,66,.04)!important;
  overflow:hidden;
}

.telecommunications-report-theme .telecommunications-progress-fill{
  background:linear-gradient(90deg,var(--telecom-report-fill-start),var(--telecom-report-fill-end))!important;
  border-radius:inherit;
}

/* Campaign portfolio */
.telecommunications-report-theme .ccw-mini-progress{
  min-width:150px;
  padding:8px 10px;
  border:1px solid var(--telecom-report-border);
  border-radius:10px;
  background:linear-gradient(135deg,var(--telecom-report-pale),#fbfdfc);
}
.telecommunications-report-theme .ccw-mini-progress header{
  align-items:center;
  margin-bottom:7px;
}
.telecommunications-report-theme .ccw-mini-progress header b{
  color:var(--telecom-report-dark)!important;
  font-size:10px;
  font-weight:850;
}
.telecommunications-report-theme .ccw-mini-progress header span{
  color:var(--telecom-report-muted);
  font-size:7px;
}
.telecommunications-report-theme .ccw-mini-progress>div{
  height:7px;
  background:var(--telecom-report-track)!important;
}
.telecommunications-report-theme .ccw-mini-progress>div>i{
  background:linear-gradient(90deg,var(--telecom-report-fill-start),var(--telecom-report-fill-end))!important;
}

/* Campaign overview and every campaign report surface */
.telecommunications-report-theme .ccw-kpi{
  background:linear-gradient(135deg,var(--telecom-report-pale),#fff)!important;
  border-color:var(--telecom-report-border)!important;
}
.telecommunications-report-theme .ccw-kpi.featured{
  background:linear-gradient(135deg,var(--telecom-report-pale-strong),#f9fcfb)!important;
}
.telecommunications-report-theme .ccw-kpi.warning{
  background:linear-gradient(135deg,#fff8e9,#fff)!important;
}
.telecommunications-report-theme .ccw-kpi header b,
.telecommunications-report-theme .ccw-kpi>strong{
  color:var(--telecom-report-dark)!important;
}
.telecommunications-report-theme .ccw-kpi>div{
  height:7px;
  background:var(--telecom-report-track)!important;
}
.telecommunications-report-theme .ccw-kpi>div>i{
  background:linear-gradient(90deg,var(--telecom-report-fill-start),var(--telecom-report-fill-end))!important;
}

.telecommunications-report-theme .ccw-reach-stage{
  background:linear-gradient(135deg,var(--telecom-report-pale),#fbfdfc)!important;
  border-color:var(--telecom-report-border)!important;
}
.telecommunications-report-theme .ccw-reach-stage.attempted,
.telecommunications-report-theme .ccw-reach-stage.answered{
  background:linear-gradient(135deg,var(--telecom-report-pale-strong),#f7fbf9)!important;
}
.telecommunications-report-theme .ccw-reach-stage.decision{
  background:linear-gradient(135deg,#fff5df,#fffaf0)!important;
}
.telecommunications-report-theme .ccw-reach-stage strong,
.telecommunications-report-theme .ccw-reach-stage small{
  color:var(--telecom-report-dark)!important;
}

.telecommunications-report-theme .ccw-result-bar{
  border-radius:9px;
  padding-block:6px;
}
.telecommunications-report-theme .ccw-result-bar:hover:not(:disabled){
  background:var(--telecom-report-pale);
}
.telecommunications-report-theme .ccw-result-bar>i{
  height:9px!important;
  background:var(--telecom-report-track)!important;
  border:1px solid rgba(15,106,80,.06);
}
.telecommunications-report-theme .ccw-result-bar>i>b{
  background:linear-gradient(90deg,var(--telecom-report-fill-start),var(--telecom-report-fill-end))!important;
}
.telecommunications-report-theme .ccw-result-bar>strong{
  color:var(--telecom-report-dark)!important;
  font-weight:850;
}
.telecommunications-report-theme .ccw-result-bar>strong small{
  color:var(--telecom-report-dark)!important;
  font-weight:800;
}

/* Existing campaign report and operations components */
.telecommunications-report-theme [data-campaign-inline-metric],
.telecommunications-report-theme .campaign-inline-employee-value,
.telecommunications-report-theme .campaign-operational-metrics>div,
.telecommunications-report-theme .campaign-remaining-summary>div,
.telecommunications-report-theme .campaign-list-counts>div,
.telecommunications-report-theme .campaign-list-counts>span{
  background:linear-gradient(135deg,var(--telecom-report-pale),#fbfdfc)!important;
  border:1px solid var(--telecom-report-border)!important;
  border-radius:10px!important;
}
.telecommunications-report-theme [data-campaign-inline-metric] strong,
.telecommunications-report-theme .campaign-inline-employee-value b,
.telecommunications-report-theme .campaign-inline-employee-value strong,
.telecommunications-report-theme .campaign-operational-metrics strong,
.telecommunications-report-theme .campaign-remaining-summary strong,
.telecommunications-report-theme .campaign-list-counts strong{
  color:var(--telecom-report-dark)!important;
}

.telecommunications-report-theme .bar-row .bar,
.telecommunications-report-theme .telecommunications-indicator-row .bar,
.telecommunications-report-theme .telecommunications-indicator-row [class*="track"]{
  background:var(--telecom-report-track)!important;
  border:1px solid rgba(15,106,80,.06);
  height:9px;
}
.telecommunications-report-theme .bar-row .bar i,
.telecommunications-report-theme .telecommunications-indicator-row .bar i,
.telecommunications-report-theme .telecommunications-indicator-row [class*="track"]>*{
  background:linear-gradient(90deg,var(--telecom-report-fill-start),var(--telecom-report-fill-end))!important;
}

/* Generic report metrics inside Communications / Telecommunications only */
.telecommunications-report-theme [data-telecommunications-indicator="1"].telecommunications-indicator-box{
  padding:10px 12px;
  border:1px solid var(--telecom-report-border);
  border-radius:11px;
}
.telecommunications-report-theme [data-telecommunications-indicator="1"] strong,
.telecommunications-report-theme [data-telecommunications-indicator="1"] b{
  font-variant-numeric:tabular-nums;
}
.telecommunications-report-theme .telecommunications-report-surface [class*="metric"] strong,
.telecommunications-report-theme .telecommunications-report-surface [class*="kpi"] strong,
.telecommunications-report-theme .telecommunications-report-surface [class*="stat"] strong{
  color:var(--telecom-report-dark);
}

/* Corrected manager-decision heading */
.telecommunications-report-theme [data-contact-manager-decision-title="1"]{
  color:#10231d;
  font-weight:850;
  letter-spacing:-.01em;
}

@media(max-width:900px){
  .telecommunications-report-theme .ccw-mini-progress{min-width:128px;padding:7px 8px}
}

@media print{
  .telecommunications-report-theme .telecommunications-indicator-box,
  .telecommunications-report-theme .ccw-mini-progress,
  .telecommunications-report-theme .ccw-kpi,
  .telecommunications-report-theme .ccw-reach-stage,
  .telecommunications-report-theme [data-campaign-inline-metric],
  .telecommunications-report-theme .campaign-operational-metrics>div,
  .telecommunications-report-theme .campaign-remaining-summary>div{
    background:#f1f7f4!important;
    border-color:#cfe2da!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
  .telecommunications-report-theme .telecommunications-indicator-rate,
  .telecommunications-report-theme .ccw-kpi header b,
  .telecommunications-report-theme .ccw-result-bar>strong,
  .telecommunications-report-theme .ccw-reach-stage strong{
    color:#075842!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
  .telecommunications-report-theme .telecommunications-progress-fill,
  .telecommunications-report-theme .ccw-result-bar>i>b,
  .telecommunications-report-theme .ccw-mini-progress>div>i{
    background:#237c60!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
}

/*
 * V12.20.1 — actual achieved progress with the approved green-to-gold gradient.
 * This correction intentionally keeps the inline width generated from real campaign data.
 */
:root{
  --telecom-progress-track:#edf2ef;
  --telecom-progress-track-border:#dce8e3;
  --telecom-progress-fill-start:#0c7056;
  --telecom-progress-fill-middle:#4f835f;
  --telecom-progress-fill-end:#c7a13d;
  --telecom-progress-rate:#075842;
  --telecom-progress-muted:#718078;
}

.telecommunications-report-theme .telecommunications-progress-track.telecommunications-indicator-box,
.telecommunications-report-theme [data-telecommunications-indicator="1"].telecommunications-progress-track,
.telecommunications-report-theme [data-telecommunications-indicator="1"].telecommunications-progress-track.telecommunications-indicator-box{
  min-height:0!important;
  padding:0!important;
  border:1px solid var(--telecom-progress-track-border)!important;
  border-radius:999px!important;
  background:var(--telecom-progress-track)!important;
  box-shadow:none!important;
}

.telecommunications-report-theme .telecommunications-progress-fill,
.telecommunications-report-theme .ccw-mini-progress>div>i,
.telecommunications-report-theme .ccw-kpi>div>i,
.telecommunications-report-theme .ccw-result-bar>i>b,
.telecommunications-report-theme .bar-row .bar i,
.telecommunications-report-theme .campaign-progress i,
.telecommunications-report-theme .operations-progress i{
  display:block!important;
  min-width:0!important;
  height:100%!important;
  border:0!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,var(--telecom-progress-fill-start) 0%,var(--telecom-progress-fill-middle) 58%,var(--telecom-progress-fill-end) 100%)!important;
  box-shadow:none!important;
}

.telecommunications-report-theme .ccw-mini-progress,
.telecommunications-report-theme .ccw-mini-progress.telecommunications-indicator-box,
.telecommunications-report-theme [data-telecommunications-indicator="1"].ccw-mini-progress{
  display:flex!important;
  flex-direction:column!important;
  min-width:132px!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.telecommunications-report-theme .ccw-mini-progress>div{
  order:1;
  width:100%;
  height:8px!important;
  min-height:8px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid var(--telecom-progress-track-border)!important;
  border-radius:999px!important;
  background:var(--telecom-progress-track)!important;
  box-shadow:none!important;
}

.telecommunications-report-theme .ccw-mini-progress>header{
  order:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:5px 0 0!important;
  padding:0!important;
}

.telecommunications-report-theme .ccw-mini-progress>header>b{
  color:var(--telecom-progress-rate)!important;
  font-size:8px!important;
  font-weight:850!important;
  line-height:1.35;
  font-variant-numeric:tabular-nums;
}

.telecommunications-report-theme .ccw-mini-progress>header>span{
  color:var(--telecom-progress-muted)!important;
  font-size:7px!important;
  line-height:1.35;
  direction:ltr;
  unicode-bidi:isolate;
}

.telecommunications-report-theme .ccw-kpi>div,
.telecommunications-report-theme .ccw-result-bar>i,
.telecommunications-report-theme .bar-row .bar,
.telecommunications-report-theme .campaign-progress,
.telecommunications-report-theme .operations-progress,
.telecommunications-report-theme [role="progressbar"],
.telecommunications-report-theme [class*="progress-track"],
.telecommunications-report-theme [class*="bar-track"]{
  padding:0!important;
  overflow:hidden!important;
  border:1px solid var(--telecom-progress-track-border)!important;
  border-radius:999px!important;
  background:var(--telecom-progress-track)!important;
  box-shadow:none!important;
}

.telecommunications-report-theme .ccw-kpi>div,
.telecommunications-report-theme .ccw-result-bar>i,
.telecommunications-report-theme .bar-row .bar,
.telecommunications-report-theme .campaign-progress,
.telecommunications-report-theme .operations-progress{
  height:8px!important;
  min-height:8px!important;
}

.telecommunications-report-theme .telecommunications-indicator-rate,
.telecommunications-report-theme .ccw-kpi header>b,
.telecommunications-report-theme .ccw-result-bar>strong,
.telecommunications-report-theme .ccw-result-bar>strong small,
.telecommunications-report-theme .bar-row>b,
.telecommunications-report-theme .bar-row>strong{
  color:var(--telecom-progress-rate)!important;
  font-weight:850!important;
  font-variant-numeric:tabular-nums;
}

.telecommunications-report-theme .telecommunications-progress-fill[style*="width:0%"],
.telecommunications-report-theme .ccw-mini-progress>div>i[style*="width:0%"],
.telecommunications-report-theme .ccw-kpi>div>i[style*="width:0%"]{
  min-width:0!important;
  box-shadow:none!important;
}

@media(max-width:900px){
  .telecommunications-report-theme .ccw-mini-progress,
  .telecommunications-report-theme .ccw-mini-progress.telecommunications-indicator-box{
    min-width:120px!important;
    padding:0!important;
  }
}

@media print{
  .telecommunications-report-theme .telecommunications-progress-track,
  .telecommunications-report-theme .ccw-mini-progress>div,
  .telecommunications-report-theme .ccw-kpi>div,
  .telecommunications-report-theme .ccw-result-bar>i,
  .telecommunications-report-theme .bar-row .bar,
  .telecommunications-report-theme .campaign-progress,
  .telecommunications-report-theme .operations-progress{
    background:#edf2ef!important;
    border-color:#cfddd7!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }

  .telecommunications-report-theme .telecommunications-progress-fill,
  .telecommunications-report-theme .ccw-mini-progress>div>i,
  .telecommunications-report-theme .ccw-kpi>div>i,
  .telecommunications-report-theme .ccw-result-bar>i>b,
  .telecommunications-report-theme .bar-row .bar i,
  .telecommunications-report-theme .campaign-progress i,
  .telecommunications-report-theme .operations-progress i{
    background:linear-gradient(90deg,#0c7056 0%,#4f835f 58%,#c7a13d 100%)!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
}
