
/*fix css of tables*/
#progressRankingTable,#dailyRankingTable12{
      border-collapse: collapse; /* ביטול מרווח בין גבולות תאים */
  border: none; /* הסרת גבולות הטבלה */
  background: none; /* ביטול רקע */
}
#progressRankingTable th,#progressRankingTable td,#dailyRankingTable12 th,#dailyRankingTable12 td{
     border: none; /* הסרת גבולות תאים */
  background: none; /* ביטול רקע של תאים */
  padding:0;
    padding: 10px 10px; 
}

#progressRankingTable th,#progressRankingTable td{
     padding: 12px 10px;
}

.sheet-app-daily-rank-table{
    width:100%;
    
    
}

.sheet-app-daily-rank-table .sheet-app__image-cell {

}

.sheet-app-daily-rank-table th,.sheet-app-daily-rank-table td{
    text-align:center;
}
.sheet-app-daily-rank-table .sheet-app__rank-cell{
    padding: 5px;
 
    border-radius: 50%;
    background-color:#6EC1E4;
    font-size:18px;
}
@keyframes sheet-app-move-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* אנימציה לנציג שיורד למטה */
@keyframes sheet-app-move-down {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* מחלקות לשורות עם אנימציות */
.sheet-app__row.sheet-app-animate-up {
    animation: sheet-app-move-up 1s ease-in-out;
}

.sheet-app__row.sheet-app-animate-down {
    animation: sheet-app-move-down 1s ease-in-out;
}
/***************************888טבלת כל הנציגים לפי מכירות יומיות*/


/* הגדרה כללית לכל התאים בטבלה */
#dailyRankingTable12.sheet-app_daily-rank-table th,
#dailyRankingTable12.sheet-app_daily-rank-table td {
    text-align: center!important; /* יישור כללי למרכז */
    padding: 8px 0; /* ריפוד בתאים (אפשר להוסיף או לשנות לפי הצורך) */
}

/* הגדרת רוחב עמודות */
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__rank-cell {
    width: 10%; /* רוחב עמודת דירוג */
}
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__image-cell {
    width: 15%; /* רוחב עמודת תמונה */
}
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__name-cell {
    width: 35%; /* רוחב עמודת שם הנציג */
    padding-right: 30px!important;
}
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__target-cell {
    width: 20%; /* רוחב עמודת יעד יומי */
}
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__sales-cell {
    width: 20%; /* רוחב עמודת מכירות היום */
}

/* עיצוב שורות זוגיות */
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__row:nth-child(even) {
    background-color: #f2f2f2; /* צבע אפור בהיר לשורות זוגיות */
}

/* עיצוב כפתור עיגול בדירוג */
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__rank-circle {
    background-image: url('https://dashboard.meladas.com/wp-content/uploads/2025/01/star-rating-e.png'); /* תמונת הכוכב */
    background-size: contain; /* התמונה תתאים לגודל העיגול */
    background-position: center; /* מיקום התמונה במרכז */
    background-repeat: no-repeat; /* מניעת חזרה על התמונה */
    color: black; /* צבע טקסט */
    width: 2vw; /* רוחב העיגול */
    height: 2vw; /* גובה העיגול */
    line-height: vw; /* מרכז אנכית */
    text-align: center; /* מרכז אופקית */
    border-radius: 50%; /* עיגול מושלם */
    font-weight: bold; /* טקסט מודגש */
    font-size: 1vw; /* גודל טקסט */
    display: inline-flex; /* תצוגת גמישה */
    align-items: center; /* ממרכז את התוכן אנכית */
    justify-content: center; /* ממרכז את התוכן אופקית */
}
/* עיצוב התמונה בעמודת התמונה */
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__image-cell img {
    width: 60px; /* קוטר התמונה */
    height: 60px; /* קוטר התמונה */
    border-radius: 50%; /* הפיכת התמונה לעיגול */
    object-fit: cover; /* התאמת התמונה כך שתכסה את כל העיגול */
    object-position: center; /* ממקם את התמונה במרכז */
    border: 1.5px solid black; /* מסגרת שקופה תחילה */
   
    box-sizing: border-box; /* מבטיח שהפדינג לא משנה את גודל התמונה */
}

#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__sales-cell,
#dailyRankingTable12.sheet_app_daily-rank-table .sheet-app__target-cell {
    padding: 0!important;
}

/* עיצוב ספנר של יעד יומי ומכירות היום */
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__target-cell span,
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__sales-cell span {
    display: inline-block; /* הצגת ה- span כבלוק משולב */
    background-color: #0000ff; /* רקע כחול */
    color: white; /* צבע טקסט לבן */
    border-radius: 3px; /* קצוות מעוגלים */
    padding: 8px 10px; /* ריפוד של 10 פיקסל למעלה ולמטה ו-20 פיקסל בצדדים */
    font-weight: 900; /* הדגשת הטקסט */
    text-align: center; /* מרכז את הטקסט בתוך המלבן */
    width: 90%;
}

/* הגדרת גבולות ומרווחים */
#dailyRankingTable12.sheet-app_daily-rank-table {
    width: 100%;
    border-collapse: collapse; /* מבטל גבולות פנימיים בין התאים */
}

/* הסרה של גבולות בין תאים */
#dailyRankingTable12.sheet-app_daily-rank-table th,
#dailyRankingTable12.sheet-app_daily-rank-table td {
    border: none!important; /* הסרה של גבולות בין התאים */
    text-align: center; /* יישור אופקי למרכז */
    vertical-align: middle; /* יישור אנכי למרכז */
}

/* הגדרת צבעים לשורות זוגיות */
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__row:nth-child(even) {
    background-color: #f2f2f2; /* צבע אפור בהיר לשורות זוגיות */
}

/* עיצוב של השם הנציג */
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__name-cell .name-container {
    text-align: right; /* יישור לימין עבור הטקסט בתוך ה-div */
    white-space: nowrap; /* מונע שבירת שורות */
    display: inline-block; /* שומר על הטקסט כאובייקט משולב */
    width: 100%;
}

#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__target-cell,
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__name-cell,
#dailyRankingTable12.sheet-app_daily-rank-table .sheet-app__sales-cell {
    font-size: 1vw;
    line-height: 1vw;
    font-weight: 900;
}

#dailyRankingTable12.sheet-app_daily-rank-table th {
    font-size: 0.9vw;
    line-height: 1.1vw;
}




/*CSS  ל***************************** 4המובלים הימיים*/
#todayRankingTable {
display: flex;
  flex-wrap: wrap; /* מאפשר לכל כרטיס לעבור לשורה חדשה אם אין מקום */
  gap: 0px;
  padding: 0px;
  justify-content: space-between;
}

#todayRankingTable .rep-card {
display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 25%; /* כל כרטיס יקח 25% מהרוחב של השורה */

  padding: 15px 8px;
  border-radius: 8px;


}

#todayRankingTable .rep-image-wrapper {
  width: 100%;
  text-align: center;
 
  
}

#todayRankingTable .rep-image {
  width: 150px;
  height: 150px;
   object-fit:cover;
       border: 3px solid transparent;
    border-radius: 50%; /* הופך את המסגרת לעגולה */
    background: linear-gradient(90deg, #ffd700, #fffacd, #ffa500, #ffd700); /* גווני זהב */
    background-size: 200% 200%;
    animation: neon-rotate 2s infinite linear; /* זמן אנימציה מהיר יותר */
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

#todayRankingTable .rep-name {
  font-size: 1vw; /* דינמי - הגדל את הפונט יחסית לגודל החלון */

  color: black;
  
}
#todayRankingTable .rep-bonus-label{
    margin-top:8px;
    font-size:  1vw;
    color: black;
}
#todayRankingTable .rep-sales{
  font-size:  1vw; /* דינמי - הגדל את הפונט יחסית לגודל החלון */

    font-weight: bold;
    color: black;

}

#todayRankingTable .rep-bonus {
  margin-top: 5px;
  background-color: #0000ff;
  color: #fff;
  padding: 5px 20px;
  border-radius: 3px;
  display: inline-block;
  cursor: pointer;
   font-weight: bold;
  font-size:  1vw;/* דינמי - הגדל את הפונט יחסית לגודל החלון */
}

#todayRankingTable .rep-bonus:hover {
  background-color: #0056b3;
}

/*טבלת התקדמות*************************************************************************************/
/* טבלה עם שני עמודות - שם נציג ומד התקדמות */
/* סגנונות כלליים לטבלה */
/* סגנונות כלליים לטבלה */

#progressRankingTable {
    width: 100%;
    padding-top:20px;
    padding-bottom:20px;
  
}

/* סגנון שורות הטבלה */
#progressRankingTable tbody tr {
    text-align: center;
    border-bottom: 1px solid #ddd;
}

/* סגנון עמודת שמות הנציגים */
#progressRankingTable .name-cell {
    width: 20%;
    font-size: 0.8vw;
    text-align: center; /* ממורכז */
    padding:9px 0 0px 5px;
    color:white;
    font-weight: 900;
    
}

/* סגנון עמודת מד ההתקדמות */
#progressRankingTable .progress-cell {
width: 100%;
  text-align: left;
  padding-right: 10px;
  display: flex;
  padding-left: 20px;
}

/* סגנון של מד ההתקדמות */
.progress-bar-wrapper {
width: 87%;
height: 1.2vw;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
 
}

/* סגנון מד ההתקדמות עצמו */
.progress-bar {
    height: 100%;
    transition: width 0.5s ease-in-out; /* אנימציה */
    position: relative;
    text-align: left;
}
#progressRankingTable .progress-is-100{
    background-color:green!important;
}

/* סגנון האחוזים בתוך מד ההתקדמות */
.progress-text {
  
    margin: 0 10px; /* רווח קטן מימין */
    font-size: 0.8vw; /* גודל קטן */
    font-weight: bold; /* בולד */
    color: white;
}

/* עיצוב של מד ההתקדמות כשהוא לא מלא */
.progress-bar-wrapper .progress-bar {
    background-color: #2196F3; /* צבע ברירת מחדל */
    
}

.progress-bar-wrapper .progress-bar[data-progress="full"] {
    background-color: #4CAF50; /* צבע אם ההתקדמות יותר מ-100 */
}





/*טבלה לטופ השבועי*/

/* הגדרת עיצוב עבור ה-container של הדירוג השבועי */
#weeklyRankingContainer {
display: flex;
  flex-wrap: wrap; /* מאפשר לכל כרטיס לעבור לשורה חדשה אם אין מקום */
  gap: 0px;
  padding: 0px;
  justify-content: space-between;
}

/* עיצוב כל כרטיס נציג בתוך ה-container */
#weeklyRankingContainer .weekly-ranking-representative-card {
display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 33.33%; /* כל כרטיס יקח 25% מהרוחב של השורה */

  padding: 15px 8px;
  border-radius: 8px;
}

/* עיצוב התמונה של הנציג */
#weeklyRankingContainer .weekly-ranking-representative-image {
    width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1.5px solid black;
   object-fit:cover;
}

/* עיצוב שם הנציג */
#weeklyRankingContainer .weekly-ranking-representative-name {
   
    margin-top: 10px;
      font-size: 1vw; /* דינמי - הגדל את הפונט יחסית לגודל החלון */
  color: black;
}

/* עיצוב סכום המכירות החודשיות */
#weeklyRankingContainer .weekly-ranking-representative-sales {
  font-size: 1vw;
  font-weight:bold;
    color: #000;
   
}


/***********************************************************************************CSS לטבלת המובילים החודש*

/* הגדרת עיצוב עבור ה-container של הדירוג החודשי */
#monthlyRankingContainer {
  display: flex;
  flex-wrap: wrap; /* מאפשר לכל כרטיס לעבור לשורה חדשה אם אין מקום */
  gap: 0px;
  padding: 0px;
  justify-content: space-between;
}

/* עיצוב כל כרטיס נציג בתוך ה-container */
#monthlyRankingContainer .monthly-ranking-representative-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 33.33%; /* כל כרטיס יקח 33% מהרוחב של השורה */
  padding: 15px 8px;
  border-radius: 8px;
}

/* עיצוב התמונה של הנציג */
#monthlyRankingContainer .monthly-ranking-representative-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1.5px solid black;
  object-fit: cover;
}

/* עיצוב שם הנציג */
#monthlyRankingContainer .monthly-ranking-representative-name {
  margin-top: 10px;
  font-size: 1vw; /* דינמי - הגדל את הפונט יחסית לגודל החלון */
  color: black;
}

/* עיצוב סכום המכירות החודשיות */
#monthlyRankingContainer .monthly-ranking-representative-sales {
  font-size: 1vw;
  font-weight: bold;
  color: #000;
  
}

.sheet-app__no-data-message{
    width:100%;
    text-align:center;
    padding-top:20px;
    font-size:1vw;
    font-weight:bold;
    
}

/*CSS לעיגולים*/
/* קונטיינר עבור העיגול */
.sheet-app-flex-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* קונטיינר עבור כל עיגול */
.sheet-app-single-chart {
    position: relative;
    width: 110px;
    height: 110px;
}

/* סגנון עיגול הרקע */
.sheet-app-circle-bg {
    fill: none;
    stroke: #e6e6e6;
    stroke-width: 2;
}

/* סגנון עיגול ההתקדמות */
.sheet-app-circle {
    fill: none;
    stroke-width: 2;
    transition: stroke-dasharray 0.5s ease-in-out;
    border-radius: 6px;
}

/* טקסט בתוך העיגול */
.sheet-app-percentage {
    font-size: 6.5px;
    font-weight:bold;
    fill: black;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* סגנון עבור פרטי המכירות והיעדים */
.sheet-app-progress-info {
    text-align: center;
    margin-top: 10px;
       font-weight:bold;
}

/* עיצוב טקסט המכירות והיעד */
.sheet-app-progress-info p {
    margin: 0;
    font-size: 16px;
    color: black;
       font-weight:bold;
}

/* סגנון כללי לקונטיינרים */
#progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* קו עיצוב כללי לעיגולים */
.sheet-app-flex-wrapper {
    width: 100%;
    max-width: 400px;
   
}

.sheet-app-platinum-wrapper{
    width: 100%;
  align-items: center;
  display: flex;
  justify-content: space-around;
  gap: 20px;
}



/*animationss*/

@keyframes neon-rotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%; /* מתאים לגודל של 400% */
    }
}


/* סגנון עבור הרקע עם נצנצים */
.sheet-app-popup-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5); /* רקע חצי שקוף */
    z-index: 9999;
}

/* סגנון עבור תוכן הפופאפ */
.sheet-app-popup-content {
    position: relative;
    background: #fff;
    border: 2px solid #f0c040;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 520px;
    height:520px;
    display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:80px;
  z-index: 99999;
}




/* סגנון עבור הכותרת בתוך הפופאפ */
.sheet-app-popup-content h2 {
    color: #f76a2f;
    margin-bottom: 10px;
}

/* סגנון עבור התמונה של הנציג */
.sheet-app-popup-content .sheet-app-popup-image{
    width: 230px;
    height: 230px!important;
    border-radius: 50%!important;
    margin-bottom: 22px;
    border: 6px solid transparent;
  border-radius: 50%;
  background: linear-gradient(90deg, #ffd700, #fffacd, #ffa500, #ffd700);
    background-size: auto;
    background-clip: border-box;
  background-size: 200% 200%;
  animation: neon-rotate 2s infinite linear;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.sheet-app-popup-content .mazal-tov{
    width:400px;
    animation: sheet-app-pulse 2s infinite ease-in-out;
    margin-left: -44px;

}

/* סגנון עבור שם הנציג */
.sheet-app-popup-content h3 {
    color: black;
    margin-bottom: 10px;
    font-size:30px;
}
.sheet-app-popup-content h3 .rep-full-name{
    font-weight: 900;
    color:#0000ff;
}
/* סגנון עבור טקסטי הפופאפ */
.sheet-app-popup-content .rep-new-sale {
    font-size: 30px;
    color: black;
}
.sheet-app-popup-content .rep-new-sale-amount {
      color:#0000ff;
      font-weight: 900;
}

#sheet-app-popup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* רקע שקוף כהה */
    z-index: 100;
}


/* אפקטים עם ::before */
#sheet-app-popup-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0.5; /* שקיפות */
    z-index: -1; /* רקע מתחת לפופאפ */
}

.postid-9 img{
    animation: fadeInForimages 1s ease;
}
/*animattions*/

@keyframes sheet-app-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05); /* שינוי הגודל */
    opacity: 0.9; /* שינוי קל בשקיפות */
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
#confetti-canvas {
  z-index: 1001;
}



@keyframes fadeInForimages {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
