/* --- Load Minus Report Table Styles --- */

.summary-container {
  display: flex;
  gap: 8px;
  margin: 6px 0;
  flex-wrap: wrap;
  justify-content: center; /* יישור למרכז */
  align-items: center; /* יישור אנכי */
  margin-bottom: 20px;
}

.info-box {
  flex: 0 0 auto;
  width: 130px; /* היה 160px - הוקטן */
  padding: 8px;
  background-color: #ffffff;
  border-radius: 8px; /* היה 10px - הוקטן */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.9rem;
}

.info-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.info-box h3 {
  font-size: 1.2rem;
  color: #111827;
  margin: 0;
}

/* --- צבעים לפי ערכים --- */
.info-box.positive h3 {
  color: #22c55e; /* ירוק בהיר לזכות */
  font-weight: 700;
}

.info-box.negative h3 {
  color: #ef4444; /* אדום בהיר לחובה */
  font-weight: 700;
}

/* צבע ירוק למספר בזכות */
.info-box.positive h3 {
  color: #16a34a; /* ירוק */
}

/* צבע אדום למספרים במינוס */
.info-box.negative h3 {
  color: #dc2626; /* אדום */
}

.info-box p {
  color: #6b7280;
  font-size: 0.8rem;
  margin-top: 3px;
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 15px 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 10px 15px;
  margin-bottom: 20px;
}

.filter-item label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: #374151;
  margin-bottom: 5px;
}

.filter-item select,
.filter-item input {
  padding: 6px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  min-width: 120px;
  font-size: 0.85rem;
  background: #fff;
}

/* --- Buttons --- */
.filter-actions {
  margin-left: auto;
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-self: flex-end;
}

.filter-clear {
  background-color: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 10px; /* הקטן מ-8px 14px */
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.8rem; /* מוקטן מ-0.9rem */
}

.filter-clear:hover {
  background-color: #2563eb;
}

/* --- Table --- */
.minus-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb; /* גבול חיצוני לטבלה */
  margin-bottom: 20px;
}

.minus-table th, .minus-table td {
  border: 1px solid #e5e7eb; /* קווים בין כל תא */
  text-align: left;
  padding: 8px;
  font-size: 0.85rem;
}

.minus-table th {
  background-color: #f9fafb;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 600;
}

.minus-table td {
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  text-align: left;
}

.minus-table tr:hover {
  background-color: #f9fafb;
}

.balance-credit {
  color: #16a34a;
  font-weight: 600;
}

.balance-debit {
  color: #dc2626;
  font-weight: 600;
}

/* --- Buttons inside table --- */
.btn-bordered {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 5px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 5px;
  transition: all 0.2s ease;
}

.btn-bordered:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.icon-separator {
  display: inline-block;
  width: 1px;
  height: 18px;
  background-color: #e5e7eb;
  margin: 0 6px;
  vertical-align: middle;
}

/* === Dropdowns styled like top navigation === */
.reason-select,
.agent-select {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  color: #374151;
  appearance: none;
  outline: none;
  transition: all 0.2s ease;
  text-align: left;
  direction: ltr;
  cursor: pointer;
}
.filter-bar select {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  color: #374151;
  appearance: none;
  outline: none;
  transition: all 0.2s ease;
  text-align: left;
  cursor: pointer;
}

.reason-select:hover,
.agent-select:hover,
.filter-bar select:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

.reason-select:focus,
.agent-select:focus,
.filter-bar select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.reason-select option,
.agent-select option {
  text-align: left;
  direction: ltr;
}

/* --- Align all text to left --- */
.minus-table th,
.minus-table td,
.filter-bar select {
  text-align: left;
  direction: ltr;
}

/* --- תיקון ריווח בעמודת Name --- */
.minus-table td:nth-child(3) {
  min-width: 140px;       /* רוחב מינימלי נורמלי */
  max-width: 220px;       /* מגביל רוחב מקסימלי */
  white-space: nowrap;    /* לא לשבור שורה */
  text-overflow: ellipsis; /* חותך טקסט ארוך עם ... */
  overflow: hidden;
  padding-right: 8px;     /* ריווח פנימי אחיד */
  padding-left: 8px;
}

/* --- יישור שמות לשמאל --- */
.minus-table th,
.minus-table td {
  text-align: left;
  direction: ltr;
}
