/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.widget-activity-content-table th,
.widget-activity-content-table td {
    text-align: left;
    padding:10px;
}
.wbcom-bp-stats select.bp-stats-chart-filter {
    width: 100%;
    margin-bottom: 15px;
}

/* Single Profile Report   */
.bp-stats-report-section {
    margin-bottom: 25px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e7e7e7;
}

.bp-stats-report-section h3 {
    margin-top: 0 !important;
}

.bp-stats-activity-report,
.bp-stats-message-report,
.bp-stats-group-report,
.bp-stats-engagement-report {
    display: flex;
    margin-bottom: 10px;
    gap: 10px;
}

.bp-stats-report-section select,
.bp-stats-report-section input[type="date"] {
    height: 40px !important;
    line-height: 40px !important;
    width: 150px !important;
    border-radius: 5px !important;
}

.bp-stats-report-section canvas {
    padding: 10px;
    background: #fbfafa;
}

div#bp_stats_group_activity_statistics,
div#bp_stats_user_message_statistics,
div#bp_stats_engagement_statistics,
div#bp_stats_activity_statistics {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0 0;
    font-size: 15px;
    padding: 8px 15px;
    background: #eee;
    border-radius: 0 !important;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

div#bp_stats_user_message_graph{
    margin-bottom: 20px;
}

#bp-stats-profile-reports-container .bp-stats-report-section:last-child {
    border: none;
    margin: 0;
    padding: 0;
}

.bp-stats-report-section h4 {
    font-size: 18px;
}

div#bp_stats_user_message_pie_graph {
    background: #fbfafa;
}

canvas#profile_message_pie_graph {
    max-width: 550px;
    margin: 0 auto;
    height: auto !important;
    width: 100% !important;
}

/* Widget UI */
div#member-front-widgets.bp-sidebar {
    max-width: 100%;
    display: block;
}
.widget.widget-block.wbcom-bp-stats {
    position: relative;
    margin: 1.2rem 0;
    padding: 1em;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
    border-radius:5px;
    width: 100% !important;
    background: #fff;
}
.widget.widget-block.wbcom-bp-stats .widget-title {
    margin: -1rem -1rem 1rem;
    padding: 1rem 1rem .5em;
    border-bottom: 1px solid #e8e8e8;
    font-size: 20px;
}
.widget.widget-block.wbcom-bp-stats .widget-title * {
    margin: 0 !important;
}

.theme-reign-theme .widget.widget-block.wbcom-bp-stats .widget-title {
    padding: 0;
}


/* activity-content */
.bp_stats_count_number {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.wb-activity-content-count {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.wb-activity-count {
    background: #f7f7f9;
    color: #333;
    width: 48%;
    text-align: center;
    border-radius: 5px !important;
    line-height: 13px;
    overflow: hidden;
    font-size: 14px;
    padding: 15px 10px 16px;
    justify-content: space-between;
    margin:1%;
    transition: all 0.5s;
    position: relative;
    border: 1px solid #eee;
}
.wb-activity-count:hover{
    background: #fff;
    box-shadow: 0 10px 20px #eee;
}
.wb-activity-content-count span.dashicons {
    color: #df5a3d;
    font-size: 25px;
    transition: all 0.5s;
    margin-right: 6px;
}
.wb-activity-count strong {
    font-size: 28px;    
    margin-bottom: 5px;
}
.wb-activity-count small {
    display: block;
    color: #606060;
    line-height: 1;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}
div#bp-stats-chart-member_activities-container {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Filter */
.widget-activity-date-filter form {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}
.widget-activity-date-filter form select {
    width: 100%;
    height: 40px !important;
    border-radius: 4px !important;
}
.widget-activity-date-filter input[type="submit"] {
    border-radius: 4px !important;
    height: 40px;
    font-size: 15px;
}

/* notice */
.bp-stats-disabled-notice {
    padding: 15px;
    margin: 10px 0;
    background-color: #fff3cd;
    border-left: 6px solid #ffeeba;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    color: #856404;
    display: flex;
    align-items: center;
}

.bp-stats-disabled-notice::before {
    content: "\26A0";
    font-size: 18px;
    color: #856404;
    margin-right: 10px;
}

.bp-stats-disabled-notice p {
    margin: 0;
    line-height: 1.3;
    display: block;
}

/* Group Stats */
.bp-stats-group-activity-report {
    display: flex;
    gap: 10px;
}

.buddyx-nav-iconic #bp-statistics-groups-li>a#bp-statistics::before,
.reign-nav-iconic #bp-statistics-personal-li>a#user-bp-statistics::before,
.reign-nav-iconic #bp-statistics-groups-li>a#bp-statistics::before {
    content: "\f080";
}

div#bp_stats_group_engagement_statistics {
    background: #fbfafa;
    text-align: center;
}

canvas#group_engagement_graph {
    max-width: 500px;
    margin: 0 auto;
}

div#bp_stats_group_top_contributtors_statistics {
    background: #fafafa;
}

#bp_stats_group_top_contributtors_statistics table thead,
#bp_stats_group_top_contributtors_statistics tbody tr:nth-child(2n+2) {
    background-color: #fff;
}

/* BuddyBoss Theme */
.buddyboss-theme div#bp-stats-profile-reports-container {
    max-width: 900px;
}

/* BuddyX theme */
.theme-buddyx #item-body .member-front-page .wb-activity-count {
    width: 24%;
    margin: 0.5%;
}

/* Member Front Page Widget */
#item-body .member-front-page .wb-activity-count {
    padding: 20px 15px 20px;
}
#item-body .member-front-page .wb-activity-count small {
    font-size: 15px;
}
#item-body .member-front-page .wb-activity-count strong {
    font-size:45px;
}


@media only screen and (max-width: 600px) {
  
    .theme-buddyx #item-body .member-front-page .wb-activity-count {
        width: 100%;
    } 
    div#bp_stats_group_activity_statistics,
    div#bp_stats_user_message_statistics,
    div#bp_stats_engagement_statistics,
    div#bp_stats_activity_statistics{
        display: block;
    }
    div#bp_stats_group_activity_statistics span,
    div#bp_stats_user_message_statistics span,
    div#bp_stats_engagement_statistics span,
    div#bp_stats_activity_statistics span{
        display: block;
    }


}

/* Top 10 Contributor */
@media only screen and (max-width: 767px) {

    div#bp_stats_group_top_contributtors_statistics table.widefat {
        border: 1px solid #ddd;
    }

    div#bp_stats_group_top_contributtors_statistics .thead {
        display: none;
    }

    div#bp_stats_group_top_contributtors_statistics table {
      border: 0;
    }
  
    div#bp_stats_group_top_contributtors_statistics table caption {
      font-size: 1.3em;
    }
    
    div#bp_stats_group_top_contributtors_statistics table thead {
      border: none;
      clip: rect(0 0 0 0);
      height: 1px;
      margin: -1px;
      overflow: hidden;
      padding: 0;
      position: absolute;
      width: 1px;
    }
    
    div#bp_stats_group_top_contributtors_statistics table tr {
      display: block;
    }
    
    div#bp_stats_group_top_contributtors_statistics table td {
      border-bottom: 1px solid #ddd;
      display: block;
      font-size: 1em;
      text-align: right;
    }
    
    div#bp_stats_group_top_contributtors_statistics table td::before {
      content: attr(data-label);
      float: left;
      font-weight: bold;
      text-transform: uppercase;
      font-size: 0.8em;
    }
    
    div#bp_stats_group_top_contributtors_statistics table td:last-child {
      border-bottom: 0;
    }

  }










