/* Weekly Perfomance Report (starts here )*/

/* Legend */
.wpr-kpi-legend {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(114, 114, 114, 1);
}

.wpr-kpi-legend__item {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.wpr-kpi-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    transition: opacity 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.wpr-kpi-legend__dot--success {
    background: rgba(0, 151, 78, 1);
}

.wpr-kpi-legend__dot--failure {
    background: rgba(255, 81, 81, 1);
}

/* 🔸 Disabled state (when dataset hidden) */
.wpr-kpi-legend__item[aria-pressed="false"] {
    opacity: 0.45;
    color: rgba(150, 150, 150, 1);
}

/* Dot changes — faded background with border outline */
.wpr-kpi-legend__item[aria-pressed="false"] .wpr-kpi-legend__dot--success {
    background: transparent;
    border: 1.5px solid rgba(0, 151, 78, 0.6);
}

.wpr-kpi-legend__item[aria-pressed="false"] .wpr-kpi-legend__dot--failure {
    background: transparent;
    border: 1.5px solid rgba(255, 81, 81, 0.6);
}

/* Optional hover feedback */
.wpr-kpi-legend__item:hover {
    opacity: 0.8;
}


.wpr-chartjs-canvas {
    width: 100% !important;
    height: 365px !important;
    display: block;
}


/* Tooltip */
.wpr-tooltip {
    position: absolute;
    pointer-events: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 2px 17px 0px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(237, 239, 236, 1);
    padding: 8px 12px;
    width: 184px;
    /* height: 163px; */
    font-size: 0.875rem;
    line-height: 1;
    transition: opacity .12s ease, transform .08s ease;
    z-index: 30;
    opacity: 0;
}

.wpr-tooltip__date {
    margin-top: 4px;
    font-weight: 400;
    color: rgba(45, 45, 45, 1);
    font-size: 0.875rem;
    /* line-height: 1; */
}

.wpr-tooltip__row {
    align-items: center;
    display: flex;
    padding: 10px 0;
    /* margin-top: 8px; */
}


.wpr-tooltip__bar {
    width: 4px;
    height: 48px;
    border-radius: 2px;
    align-self: start;
}

.wpr-tooltip__bar--success {
    background: rgba(0, 151, 78, 1);
}

.wpr-tooltip__bar--failure {
    background: rgba(255, 81, 81, 1);
}

.wpr-tooltip__label {
    color: rgba(114, 114, 114, 1);
    font-weight: 3 00;
    font-size: 0.875rem;
    display: inline-block;
    margin-left: 10px;
    margin-bottom: 8px;
}


.wpr-tooltip__value {
    font-weight: 600;
    font-size: 0.875rem;
    color: rgba(45, 45, 45, 1);
    margin-left: 10px;
}

.wpr-tooltip.show {
    opacity: 1;
    transform: translateY(-6px);
}


/* fall back data */
.wpr-weeklyPerformance-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

#wpr-no-weekly-data {
    position: absolute;
    inset: 0;
    display: none;
    /* hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    background: #fff;
    z-index: 5;
    animation: fadeIn 0.35s ease-out forwards;
}

.wpr-no-data__circle {
  width: 70px;
  height: 70px;
  border-radius: 47.5px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* background surface */
  background: rgba(248, 248, 248, 1);

  /* gradient border (3px) */
  border: 3px solid transparent;
  border-image: linear-gradient(
    180deg,
    #FFFFFF 0%,
    rgba(255, 255, 255, 0.882873) 43.74%,
    rgba(255, 255, 255, 0.747548) 59.16%,
    rgba(255, 255, 255, 0.1) 100%
  ) 1;

  /* subtle shadow and lift */
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.06),
    0 0 30px rgba(0, 0, 0, 0.04);

  /* optional soft blur glow */
  backdrop-filter: blur(3px);
}


.wpr-no-data__circle img {
    width: 27px;
    height: 27px;
    color: rgba(255, 255, 255, 1);
}

.wpr-no-data__text {
    font-size: 1.275 rem;
    color: rgba(45, 45, 45, 1);
    font-weight: 400;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Weekly Perfomance Report (Ends here)____________________________________________________________________________*/