.staff-table {
  width: 100%;
}

.negative-balance {
  color: #ffdbdb !important;
  background-color: #ffdbdb;
}
.positive-balance {
  color: #ff2c2c !important;
  background-color: pink;
}
.neutral-balance {
  color: #4db464 !important;
  background-color: #e2f8eb;
}

.staff-row {
  display: flex;
  align-items: center;
  height: 68px; /* row height */
  background: #fff; /* white background */
  border-radius: 10px; /* rounded corners */
  border-left: 5px solid orange; /* orange left border */
  margin-bottom: 10px; /* space between rows */
  box-shadow: 0 0 0 1px #eee; /* subtle border look */
  transition: background 0.2s ease, transform 0.1s ease;
  transition: background 0.2s ease;
}
.staff-row2 {
  display: flex;
  align-items: center;
  height: 68px; /* row height */
  background: #fff; /* white background */
  border-radius: 10px; /* rounded corners */
  border-left: 5px solid orange; /* orange left border */
  margin-bottom: 10px; /* space between rows */
  box-shadow: 0 0 0 1px #eee; /* subtle border look */
  transition: background 0.2s ease, transform 0.1s ease;
  transition: background 0.2s ease;
}
.staff-row:hover {
  background: #f2f2f2; /* light gray hover */
}

.staff-row > div {
  padding: 4px 12px;
  border-radius: 3px;
  flex: 1; /* equal column width */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Header style */
.staff-header {
  margin-top: 30px;
  font-weight: bold;
  background: #fafafa;
  border-left-color: white;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.staff-header:hover {
  background: #fafafa; /* disable hover effect on header */
}
.staff-name .name {
  font-size: 16px;
  font-weight: 600; /* semi-bold */
  color: #000; /* black text */
}
.generalname {
  font-size: 16px;
  font-weight: 600; /* semi-bold */
  color: #000; /* black text */
}

.staff-name .phone {
  font-size: 12px;
  font-weight: 700; /* bold */
  color: #a6afc2; /* your light gray color */
  margin-top: 2px; /* small spacing under name */
}
/* Use Urbanist for the form */
.staff-search-form {
  font-family: "Urbanist", sans-serif;
  margin-bottom: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Input group */
.staff-search-form .input-group {
  display: flex;
  max-width: 600px;
  margin: 0 auto; /* center */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

/* Search input */
.staff-search-form .form-control {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  height: 46px;
}

/* Buttons */
.staff-search-form .btn-search {
  height: 100%;
  background-color: #17a2b8; /* info color */
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.staff-search-form .btn-search:hover {
  background-color: #138496;
}

/* Reset button */
.staff-search-form .btn-reset {
  background-color: #f1f1f1;
  color: #333;
  font-weight: 500;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  margin-left: 5px;
  transition: background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.staff-search-form .btn-reset:hover {
  background-color: #e0e0e0;
}
.btn-view {
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background-color: #17a2b8; /* modern info blue */
  padding: 10px 15px;
  border-radius: 8px; /* rounded button */
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); /* subtle shadow */
}

.btn-view:hover {
  background-color: #138496; /* slightly darker on hover */
  transform: translateY(-1px); /* subtle lift effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}
.action-btn {
  display: flex;
  gap: 8px; /* space between buttons */
}
.btn-add-order {
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #333; /* darker text for contrast */
  background-color: #fff6db; /* light yellow */
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.btn-add-order:hover {
  background-color: #ffe8a0; /* slightly darker on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}
/* Button */
.btn-add-staff {
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  padding: 14px 16px;
  background-color: #17a2b8;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-add-staff:hover {
  background-color: #138496;
}

/* Modal backdrop */
.modal {
  display: none; /* hidden by default */
  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 box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-family: "Urbanist", sans-serif;
  position: relative;
}

/* Close button */
.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
}

/* Form inside modal */
.add-staff-form input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: "Urbanist", sans-serif;
  font-size: 14px;
}

.add-staff-form input:focus {
  border-color: #17a2b8;
  outline: none;
}

#addStaffModal .btn-submit {
  width: 100%;
  padding: 10px;
  background-color: #17a2b8 !important; /* force override */
  color: #fff !important;
  font-weight: 600;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: background 0.2s ease;
}

#addStaffModal .btn-submit:hover {
  background-color: #138496 !important;
}

/* Error message */
.message {
  color: #e74c3c;
  font-weight: 600;
  margin-bottom: 10px;
}
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  display: none;
  z-index: 2000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.success {
  background-color: #27ae60;
}
.toast.error {
  background-color: #e74c3c;
}
.dashboard-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.dashboard-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 220px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-family: "Urbanist", sans-serif;
  position: relative;
}

.card-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.card-value {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.card-progress {
  height: 8px;
  background-color: #eee;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #27ae60;
  border-radius: 6px;
}

.dashboard-card .card-progress .progress-bar[style*="#ffdbdb"] {
  background-color: #ffdbdb; /* override for outstandings */
}
.leaderboard-dashboard {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.leaderboard-card {
  flex: 1;
  min-width: 350px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.leaderboard-card h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #333;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 40px 1fr 100px 1fr;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.rank {
  font-weight: 700;
  color: #555;
  text-align: center;
}

.customer-name {
  font-weight: 600;
  color: #222;
}

.amount {
  font-weight: 700;
  color: #444;
  text-align: right;
}

.progress-wrapper {
  background: #f0f0f0;
  height: 8px;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 8px;
  border-radius: 6px;
  background-color: #27ae60; /* green for payments */
}

.balance-bar {
  background-color: #ff4d4d; /* red for balances */
}

.top-rank {
  background-color: #fff9e6; /* subtle highlight for rank 1 */
  border-left: 4px solid #f1c40f; /* gold accent */
  padding-left: 16px;
  border-radius: 6px;
}

.no-records {
  color: #999;
  font-style: italic;
  padding: 10px 0;
}
.box-body {
  font-size: 16px;
}
select#balanceFilter {
  height: 46px;
  border: none;
  font-size: 16px;
}
