/* 1.82*/

@media (min-width: 922px) {
  .site-content .ast-container {
    min-width: 100vw;
  }
}

/*  hide old City search  */
.select2-container {display: none!important;}

main#main {
  padding: 0 15px !important;
}


/*  Optimal date  */
.optimize-follow .dashicons {
    vertical-align: middle;
    margin-left: 5px;
    color: #2271b1;
}

.followup-counter {
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 11px;
    padding: 2px 5px;
    margin-left: 3px;
    color: #555;
    font-weight: bold;
}
/*  Optimal date  */
.agent-customers-list {
  margin: -30px 0 0 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.agent-customers-list h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #df1a81 !important;
}

.customer-search-form {
  margin-bottom: 20px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 5px;
}

.customer-search-form form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-search-form .search-field {
  flex: 1;
  min-width: 200px;
}

.filter-section select,
.filter-section input[type='text'] {
  font-size: 14px;
  width: 100%;
  padding: 8px;
  background: #f3f3f3 !important;
  color: #000;
}

.customer-search-form button {
  padding: 8px 15px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.customer-search-form button:hover {
  background: #005177;
}

.customer-search-form .reset-button {
  display: inline-block;
  padding: 8px 15px;
  background: #f1f1f1;
  color: #555;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.customer-search-form .reset-button:hover {
  background: #e1e1e1;
}

.agent-customers-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.agent-customers-table thead th {
  font-size: 16px;
  line-height: 1.2;
  text-align: right;
  padding: 5px 10px;
  border-bottom: 1px solid #ddd;
  background: #f5f5f5;
}

.agent-customers-table tbody td {
  padding: 8px 3px;
  border-bottom: 1px solid #eee;
  line-height: 1.5;
  letter-spacing: 0.1px;
}

.agent-customers-table tbody td span {
  font-size: 16px;
  line-height: 1.5;
}

td.last-notes-followup {
  font-size: 12px;
  min-width: 120px;
}

span.registration-date {
  font-size: 10px;
}

.hp-number.small-text {
  font-size: 0.85em;
  color: #666;
  margin-top: 3px;
  line-height: 1.2;
}

td[data-label='טלפון'] a {
  text-decoration: none;
  color: #0073aa;
}

td[data-label='טלפון'] a:hover {
  text-decoration: underline;
}

.agent-customers-table .customer-action {
  display: inline-block;
  padding: 5px 10px;
  background: #0073aa;
  color: white;
  text-decoration: none !important;
  border-radius: 3px;
  transition: background 0.3s ease;
  margin-bottom: 5px;F
}

a.add-followup-button.customer-action {
  background: #df1a81;
}
a.add-new-followup-button.customer-action {
  background: #5c414f;
}

td.user-action {
  min-width: 180px !important;
}

.agent-customers-table .customer-action:hover {
  background: #005177;
}

td.user-action a {
  text-align: center;
}

a.transfer-agent-request-btn.customer-action {
  margin-right: 5px;
}

a.send-login-link-wa-btn.customer-action {
  margin-right: 5px;
}



@media screen and (min-width: 1025px) {
  a.customer-action.login-user:before {
    content: '\f2f6';
  }

  a.customer-action.manage-user:before {
    content: '\f4fe';
  }

  a.customer-action.manage-ext-user:before {
    content: '\f234';
  }

  a.customer-action.transfer-agent-btn:before,
  a.customer-action.transfer-agent-request-btn:before,
  a.customer-action.take-customer-btn:before {
    content: '\f074';
  }
  
  a.customer-action.send-login-link-wa-btn:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
  }

  a.transfer-agent-btn.customer-action {
    margin-right: 5px;
  }

  a.refresh-customer-data.customer-action:before {
    content: '\f2f1';
  }

  a.customer-action.show-history-button:before {
    content: '\f05a';
  }

  a.add-new-followup-button.customer-action:before,
  a.add-followup-button.customer-action:before {
    content: '\f7f5';
  }

  a.customer-action {
    font-size: 0;
    height: 30px;
    display: inline-block;
    width: 30px;
    position: relative;
    vertical-align: middle;
  }

  a.customer-action:before {
    font-family: 'Font Awesome 5 Free';
    font-size: 16px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: inherit;
  }

  a.customer-action:after {
    content: attr(aria-label);
    /* לוקח את הטקסט מהמאפיין data-tooltip */
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    margin-bottom: 5px;
  }

  a.customer-action:hover:after {
    visibility: visible;
    opacity: 1;
  }

  table.agent-customers-table td,
  table.agent-customers-table th {
    max-width: 85px;
  }

  td.second-line.customer-details {
    min-width: 86px;
  }

  td.second-line.customer-details.business-type {
    min-width: 120px;
  }
}

a.transfer-agent-btn.customer-action.has-pending-transfer:before {
  color: red;
}

.impersonation-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #e44;
  color: #fff;
  padding: 10px;
  text-align: center;
  z-index: 9999;
  font-weight: bold;
}

.impersonation-bar a {
  color: #fff;
  text-decoration: underline;
  margin-right: 15px;
}

body.impersonating {
  margin-top: 40px;
}

.customer-management-page {
  max-width: 900px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

main#main .customer-management-page h1 {
  font-size: 22px;
  margin: 18px 0;
}

main#main div#categories-selection h3 {
  font-size: 22px;
}

.nav-tab-wrapper {
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
}

.nav-tab {
  display: inline-block;
  padding: 10px 15px;
  margin-right: 5px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-bottom: none;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  text-decoration: none;
  color: #333;
}

.nav-tab-active {
  background: #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}

.settings-section {
  margin-bottom: 30px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 3px;
}

.form-actions input {
  font-size: 16px;
  border-radius: 10px;
}

.user_business_type-section.settings-section {
  display: flex;
  justify-content: space-between;
  align-content: center;
  align-items: flex-end;
}

.settings-section .form-actions {
  margin: 0;
  border: unset;
}

.override-settings-toggle {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.categories-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.category-item {
  padding: 5px;
}

.categories-actions {
  margin: 15px 0;
}

.form-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.success-message {
  background: #dff0d8;
  color: #3c763d;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 3px;
}

.error-message {
  background: #f2dede;
  color: #a94442;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 3px;
}

.select-all-button,
.clear-all-button {
  margin-right: 10px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  color: #000;
}

@media (max-width: 1024px) {
  .categories-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .categories-list {
    grid-template-columns: 1fr;
  }
}

.business-type-info {
  margin-bottom: 15px;
  padding: 10px;
  background: #e7f4ff;
  border-radius: 4px;
  border-left: 4px solid #0073aa;
}

.agent-customers-wraper {
  overflow: auto;
  max-height: 76vh;
}

.agent-customers-wraper::-webkit-scrollbar {
  width: 15px !important;
  height: unset;
}

::-webkit-scrollbar-thumb {
  background: #0073aa !important;
}

::-webkit-scrollbar-track {
  background: #d5d8dc !important;
}

.agent-stats-dashboard {
  margin: 20px 0;
}

.stats-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  flex: 1;
  min-width: 150px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-card.alert {
  background: #fff8f8;
  border-color: #e74c3c;
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-card.alert .stat-number {
  color: #e74c3c;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

.customers-in-deviation {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin-top: 20px;
}

.customers-in-deviation h3 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.deviation-days {
  font-weight: bold;
  color: #e74c3c;
}

@media (max-width: 1024px) {
  .stats-cards {
    flex-direction: column;
  }
}

.refresh-customer-data .dashicons {
  /* vertical-align: middle;
    margin: 0;
    line-height: 1;
    width: 35px;
    height: 35px;
    font-size: 28px;
    color: #0073aa !important; */
}

.refresh-customer-data {
  /* padding: 0;
    line-height: 35px;
    height: 35px; */
}

a.refresh-customer-data.button {
  /* padding: 0 !important;
    background: unset !important; */
}

p.last-refresh-small {
  line-height: 1;
  font-size: 12px;
}

.agent-info {
  margin: 15px 0;
  padding: 10px;
  background-color: #f9f9f9;
  border-right: 3px solid #0073aa;
  border-radius: 3px;
}

.agent-name {
  font-weight: bold;
  color: #0073aa;
}

.agent-history {
  margin: 20px 0;
  direction: rtl;
}

.agent-history-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  font-size: 14px;
  margin: 20px 0;
}

.agent-history-table th,
.agent-history-table td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: right;
}

.agent-history-table th {
  background-color: #f5f5f5;
  font-weight: bold;
  padding: 0;
  text-align: center;
}

.agent-history-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.agent-history-table tr:hover {
  background-color: #f1f1f1;
}

/* סגנון עבור אזור הניווט */
.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  padding: 0;
  direction: rtl;
}

/* סגנון בסיסי לכל הכפתורים */
.pagination-nav .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 5px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  background-color: #f5f5f5;
  border-radius: 4px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

/* כפתור של העמוד הנוכחי */
.pagination-nav .current {
  color: #fff;
  background-color: #1e88e5;
  border-color: #1976d2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* אפקט hover על הכפתורים */
.pagination-nav .page-numbers:hover:not(.current) {
  background-color: #e0e0e0;
  border-color: #bdbdbd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* כפתורי הקודם והבא */
.pagination-nav .prev,
.pagination-nav .next {
  font-weight: bold;
  padding: 0 15px;
}

/* נקודות השעיה (אליפסיס) */
.pagination-nav .dots {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* התאמה לתצוגת מובייל */
@media (max-width: 1024px) {
  .pagination-nav .page-numbers {
    min-width: 35px;
    height: 35px;
    font-size: 14px;
    margin: 0 3px;
  }

  .pagination-nav .prev,
  .pagination-nav .next {
    padding: 0 10px;
  }
}

/* התאמה לתצוגה קטנה מאוד */
@media (max-width: 480px) {
  .pagination-nav .page-numbers:not(.prev):not(.next):not(.current) {
    display: none;
  }

  .pagination-nav .page-numbers.current {
    display: flex;
  }
}

td.actions-col {
  min-width: 150px;
}

.customers-filters-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.customers-filters-wrapper .filter-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 5px;
}

.filter-section,
.sort-section {
  margin-bottom: 0;
}

.results-and-sort {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  flex-wrap: wrap;
  gap: 10px;
  flex-direction: column-reverse;
  align-content: flex-start;
}

.sort-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-inline-form select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.sort-inline-form label {
  font-size: 14px;
  color: #666;
  margin: 0;
}

@media (max-width: 1024px) {
  .results-and-sort {
    flex-direction: column;
    align-items: flex-start;
  }
}

.customers-filters-wrapper select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
}

th.meet-followup-title,
td.meet-followup-title,
td.meet-followup {
  border: 2px solid #4caf50;
  /* background-color: rgba(76, 175, 80, 0.1); */
}

th.meet-followup-title:first-of-type,
td.meet-followup-title:first-of-type,
td.meet-followup:first-of-type {
  border-left: 2px solid #4caf50;
}

th.meet-followup-title:last-of-type,
td.meet-followup-title:last-of-type,
td.meet-followup:last-of-type {
  border-right: 2px solid #4caf50;
}

th.tel-followup-title,
td.tel-followup-title,
td.tel-followup {
  border: 2px solid #2196f3;
  /* background-color: rgba(33, 150, 243, 0.1); */
}

th.tel-followup-title,
td.tel-followup-title,
td.tel-followup {
  border: 2px solid #2196f3;
  /* background-color: rgba(33, 150, 243, 0.1); */
}

th.transfer-info,
td.transfer-info,
td.transfer-info {
  border: 2px solid #cc693b;
  /* background-color:#f366211a; */
}

th.tel-followup-title:first-of-type,
td.tel-followup-title:first-of-type,
td.tel-followup:first-of-type {
  border-left: 2px solid #2196f3;
}

th.transfer-info:first-of-type {
  border-left: 2px solid #2196f3;
}

td.transfer-info:last-of-type {
  border-right: 2px solid #2196f3;
}

th.meet-followup-title,
th.tel-followup-title,
th.transfer-info {
  position: relative;
}

th.meet-followup-title:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #4caf50;
}

th.tel-followup-title:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #2196f3;
}

th.transfer-info:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #cc693b;
}

tr.ordering-through-agent {
  /* background: #df1a810f; */
}

.unified-filter-form-wrapper {
  border: #cecece 1px solid;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.unified-filter-form {
  display: flex;
  flex-direction: row;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.filter-sections-container,
.sort-sections-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-sections-wraper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.filter-sections-wraper .filter-section {
  min-width: unset;
}

.filter-section {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.unified-filter-form-wrapper label {
  font-size: 14px;
  font-weight: 500;
}

.search-section {
  width: 100%;
}

.filter-actions {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.apply-filter,
.reset-filter,
#export-to-csv {
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

.button.quick-filter-btn {
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  background: #5c414f;
}

.filter-section.top-section {
  gap: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
}

.filter-sections-container {
  width: 83%;
}

.sort-inline-container {
  gap: 20px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

.sort-inline-container .filter-section {
  margin: 0;
}

.apply-filter {
  background: #0073aa;
  color: white;
  border: none;
}

.reset-filter,
#export-to-csv {
  font-size: 16px !important;
  background: #bbbaba !important;
  border-radius: 5px !important;
  color: #555 !important;
  text-align: center;
}

#export-to-csv {
  background: #aa4a00;
  color: white;
}

.search-results-info,
.results-count {
  margin: 10px 0;
}

.filter-active {
  color: #df1a81;
}

.agent-customers-table .overdue-days {
  color: #d63638;
  font-weight: bold;
}

.agent-customers-table td[class*='חריגת'] {
  text-align: center;
}

.update-visit-button,
.update-call-button,
.update-transfer-button,
.update-api-button {
  background-color: #0073aa;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 16px;
}

.update-visit-button {
  background-color: #2f7f2f;
}

.update-transfer-button {
  background-color: #cc693b;
}

.update-visit-button:hover,
.update-call-button:hover {
  background-color: #005177;
}

.followup-popup {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.followup-popup-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  max-width: 500px;
  position: relative;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close-popup,
.cancel-popup {
  cursor: pointer;
}

.close-popup {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 20px;
  font-weight: bold;
}

textarea.select2-search__field {
  margin: 0 !important;
  font-size: 16px !important;
  color: #666 !important;
}

@media (max-width: 1024px) {
  .filter-section {
    min-width: 100%;
  }

  .sort-inline-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sort-inline-container .filter-section {
    width: 50%;
    min-width: unset;
  }

  .filter-section.top-section {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    align-items: stretch !important;
  }

  .customer-search-form form {
    flex-direction: column;
  }

  .customer-search-form .search-field,
  .customer-search-form button,
  .customer-search-form .reset-button {
    width: 100%;
  }

  .agent-customers-table {
    display: block;
    overflow-x: auto;
  }

  .agent-customers-table th,
  .agent-customers-table td {
    width: 22%;
  }

  td.user-stat {
    width: calc(99% / 3);
  }

  table.agent-customers-table td.transfer-info {
    max-width: 100%;
    width: calc(99% / 2);
  }

  .agent-customers-table td.first-line.customer-details {
    width: calc(99% / 3);
  }

  .admin-bar .agent-customers-table td.first-line.customer-details {
    width: calc(99% / 5);
  }

  .agent-customers-table td.second-line.customer-details {
    width: calc(99% / 4);
    height: 50px;
  }

  td[data-label='טלפון'] a {
    font-size: 12px;
  }

  .agent-customers-table td:nth-child(17) {
    width: 30% !important;
  }

  tr td.customer-details.first-line {
    margin-top: 30px;
  }

  tr td.customer-details:first-of-type::after {
    content: 'פרטי לקוח';
    display: block;
    font-weight: bold;
    color: #0073aa;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
    position: absolute;
    top: -39px;
    right: calc((82vw - 100px) / 2);
    width: 100px;
  }

  tr td.user-stat {
    margin-top: 45px !important;
  }

/*
  tr td.first-user-stat:after {
    content: 'פרטי רכישה';
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #0073aa;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
    position: absolute;
    top: -39px;
    right: calc((82vw - 100px) / 2);
    width: 100px;
  }
*/
  /*  changes after adding 2 new follow up fields  */

  tr td.first-transfer-info {
    margin-top: 45px !important;
  }
  
  tr td.phone-cell {
    margin-top: 29px;
    height: 41px;
  }

  tr td.sales-change {
    width: 50%;
  }

  tr td.transfer-info {
    width: 25%!important;
  }

  tr td.optimize-follow:after {
    content: 'פולואפ לקוח';
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #0073aa;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
    position: absolute;
    top: -39px;
    right: calc((82vw - 100px) / 2);
    width: 100px;
  }
  
  /*
  tr td.first-transfer-info:after {
    content: 'פולואפ לקוח';
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #0073aa;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
    position: absolute;
    top: -39px;
    right: calc((82vw - 100px) / 2);
    width: 100px;
  }
  */ 

  /*  End of changes after adding 2 new follow up fields  */

  td.last-notes-followup {
    width: 78%;
    max-width: unset !important;
  }

  .agent-customers-table .customer-action {
    display: block;
    text-align: center;
  }

  .form-group {
    display: flex;
    justify-content: space-around;
  }

  .followup-popup-content,
  #followup-popup .modal-content {
    width: 87% !important;
  }

  .unified-filter-form-wrapper label {
    font-size: 12px;
  }

  .filter-section select,
  .filter-section input[type='text'] {
    font-size: 10px;
  }

  .filter-sections-wraper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
  }

  .filter-actions {
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    width: 100%;
  }

  .filter-actions a,
  .filter-actions button {
    width: 48% !important;
  }

  td.user-action {
    display: flex !important;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100% !important;
    min-width: 100% !important;
    justify-content: space-evenly;
  }

  .agent-customers-table thead {
    display: none;
  }

  .impersonation-bar {
    font-size: 10px;
    padding: 0;
  }

  .agent-customers-table tbody td {
    display: block;
    text-align: center;
    padding: 4px 0;
    position: relative;
    border: unset;
    font-size: 10px;
    border-top: 1px solid #b4b4b4;
    border-bottom: 1px solid #b4b4b4;
    margin: 18px 0 5px;
    min-height: 40px;
  }

  .agent-customers-table tbody td.user-action {
    border-top: unset !important;
    border-bottom: unset !important;
  }

  .agent-customers-table tbody td span {
    font-size: 10px;
    letter-spacing: 0.2px;
  }

  span.registration-date {
    font-size: 8px;
  }

  td.transfer-info {
    font-size: 8px !important;
  }

  .agent-customers-table tbody td:last-child {
    border-bottom: none;
  }

  .agent-customers-table tbody tr {
    border: 1px solid;
    padding: 16px 4px;
    display: flex !important;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  td.user-action {
    width: 100%;
  }

  .agent-customers-table tbody td:before {
    content: attr(data-label);
    position: absolute;
    top: -20px;
    font-weight: 500;
    font-size: 11px;
    text-align: center;
    right: 0;
    line-height: 1;
    background: #aeaeae;
    color: #fff;
    min-width: 97%;
    padding: 3px;
    border-radius: 3px;
    letter-spacing: 0px;
  }

  .agent-customers-table tbody td.user-action:before {
    font-size: 18px;
    background: unset;
    color: #000;
  }

  .agent-customers-table .customer-action {
    margin-top: 5px;
  }

  .update-visit-button,
  .update-call-button,
  .update-transfer-button,
  .update-api-button {
    font-size: 10px;
    min-height: 30px;
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .invoices-table thead {
    display: none;
    /* מסתיר את הכותרות במובייל */
  }

  .invoices-table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .invoices-table td {
    display: block;
    text-align: right;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-right: 50%;
  }

  .invoices-table td:before {
    content: attr(data-label);
    position: absolute;
    right: 12px;
    width: 45%;
    padding-right: 10px;
    font-weight: bold;
    line-height: 1;
  }

  .invoices-table td:nth-of-type(1):before {
    content: 'תאריך';
  }

  .invoices-table td:nth-of-type(2):before {
    content: 'מספר חשבונית';
  }

  .invoices-table td:nth-of-type(3):before {
    content: 'סכום';
  }

  .invoices-table td:nth-of-type(4):before {
    content: 'סטטוס';
  }

  .invoices-table td:last-child {
    border-bottom: 0;
  }

  /* חשבוניות מויביל */

  .overdue-invoices-table,
  .overdue-invoices-table thead,
  .overdue-invoices-table tbody,
  .overdue-invoices-table tr,
  .overdue-invoices-table th,
  .overdue-invoices-table td {
    display: block;
  }

  .overdue-invoices-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .overdue-invoices-table td:before {
    right: 10px;
    width: 45%;
    padding-left: 10px;
    white-space: nowrap;
    font-weight: bold;
  }

  #overdue-invoices-popup .invoices-table td:nth-of-type(5):before {
    content: 'גוביינא:';
  }

  #overdue-invoices-popup .invoices-table td:nth-of-type(6):before {
    content: 'ימי חריגה:';
  }
}

.overdue-invoices-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 767px) {
  .invoices-list .widefat {
    border: 0;
  }

  .invoices-list .widefat thead {
    display: none;
    /* מסתיר את הכותרות במובייל */
  }

  .invoices-list .widefat tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .invoices-list .widefat td {
    display: block;
    text-align: right;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-right: 50%;
  }

  .invoices-list .widefat td:before {
    content: attr(data-label);
    position: absolute;
    right: 12px;
    width: 45%;
    padding-right: 10px;
    font-weight: bold;
  }

  .invoices-list .widefat td:nth-of-type(1):before {
    content: 'תאריך';
  }

  .invoices-list .widefat td:nth-of-type(2):before {
    content: 'מספר חשבונית';
  }

  .invoices-list .widefat td:nth-of-type(3):before {
    content: 'סכום';
  }

  .invoices-list .widefat td:nth-of-type(4):before {
    content: 'סטטוס';
  }

  .invoices-list .widefat td:last-child {
    border-bottom: 0;
  }
}

.popup-content h3 {
  text-align: center;
  font-size: 24px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  direction: rtl;
  text-align: right;
}

.modal-content span.close {
  cursor: pointer;
}

@media screen and (max-width: 1024px) {
  .modal-content {
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
  }
}

.close-modal {
  color: #aaa;
  float: left;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: black;
  text-decoration: none;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.required {
  color: red;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.response-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.client-summary-tab {
  direction: rtl;

  font-family: Arial, sans-serif;
}

.csv-upload-section {
  background-color: #f9f9f9;

  border: 1px solid #ddd;

  border-radius: 5px;

  padding: 15px;

  margin-bottom: 20px;
}

.badge-info {
  display: inline-block;

  background-color: #17a2b8;

  color: white;

  padding: 2px 6px;

  border-radius: 4px;

  font-size: 12px;

  margin-right: 5px;
}

.filters {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 15px;
}

.filters .form-control {
  min-width: 150px;
}

.pagination-wrapper {
  margin-top: 20px;

  text-align: center;
}

.page-number {
  margin: 0 3px;
}

.page-number.active {
  background-color: #007bff;

  color: white;
}

.bulk-transfer {
  background-color: #f9f9f9;

  padding: 15px;

  margin-top: 20px;

  border-radius: 5px;

  border: 1px solid #ddd;
}

.overdue-invoices-link {
  color: red;
  text-decoration: underline;
  cursor: pointer;
}

div#transfer-request-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

span.popup-close {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 600;
  padding: 20px;
  font-size: 25px;
}


.abp-collection-toggle.is-active ::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height:1px;
  background: red;
  transform: rotate(-45deg);
}
button.button.customer-action.abp-collection-toggle {
    padding: 1px 6px;
    margin: 3px;
}