.text-muted {
  color: #6c757d;
  /* Grey color */
}

.text-success {
  color: #28a745;
  /* Bootstrap-style green */
}

.bg-muted {
  background: #6c757d;
  /* Grey color */
}

.bg-success {
  background: #28a745;
  /* Bootstrap-style green */
}

.custom-data-container {
  max-width: 1200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  width: 95%;
  margin: auto;
  margin-top: 20px;
}

.custom-data-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.custom-filters {
  display: flex;
  /*flex-wrap: wrap;*/
  gap: 10px;
  align-items: center;
}

.custom-filters input,
.custom-filters select {
  /*padding: 8px 12px;*/
  /*border: 1px solid #e2e8f0;*/
  /*border-radius: 6px;*/
  /*font-size: 0.9rem;*/
  min-width: 160px;
}

.custom-data-header .btn-add {
  background-color: var(--btn-bg-color);
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.custom-data-header .btn-add i {
  margin-right: 6px;
}

.custom-data-table {
  width: 100%;
  border-collapse: collapse;
  /*min-width: 900px;*/
}

.custom-data-table th,
.custom-data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.custom-data-table thead {
  background-color: #f1f5f9;
  color: #334155;
}

.custom-data-table tbody tr:hover {
  background-color: #f9fafb;
}

.status-active {
  color: green;
  font-weight: 600;
}

.status-inactive {
  color: red;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.action-buttons button {
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  font-size: 0.85rem;
}

.btn-edit {
  background-color: #3b82f6;
}

.btn-delete {
  background-color: #ef4444;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background-color: #e2e8f0;
  color: #1e293b;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.pagination button:hover {
  background-color: #cbd5e1;
}

.pagination button.active {
  background-color: #3b82f6;
  color: white;
  font-weight: bold;
}

.table-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .custom-filters {
    flex-wrap: wrap;
  }

  .custom-data-table {
    width: 100%;
    margin: auto;
  }

  .custom-data-table,
  .custom-data-table thead,
  .custom-data-table tbody,
  .custom-data-table th,
  .custom-data-table td,
  .custom-data-table tr {
    display: block;
  }

  .custom-data-table thead {
    display: none;
  }

  .custom-data-table tr {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px;
  }

  .custom-data-table td {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    gap: 10px;
  }

  .custom-data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #475569;
    flex-shrink: 0;
    min-width: 110px;
  }

  /* All td direct children push to right */
  .custom-data-table td>*:not(::before) {
    margin-left: auto;
    text-align: right;
  }

  /* Content wrapper for mobile */
  .custom-data-table td .td-content {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: right;
  }

  .custom-data-table td .td-content div,
  .custom-data-table td .td-content small {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: right;
  }

  /* Right-align span/strong/div values */
  .custom-data-table td>span,
  .custom-data-table td>strong {
    text-align: right;
    flex: 1;
  }

  /* Right-align any direct div that is not the label side */
  .custom-data-table td>div {
    text-align: right;
    flex: 1;
  }

  .custom-data-table td:last-child {
    border-bottom: none;
  }

  .action-buttons {
    justify-content: center;
  }

  .custom-data-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-image {
    width: 60px;
    height: 60px;
  }
}