.tm-table-wrapper {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin: 0.75rem 0;
  overflow: hidden;
}

.tabulator {
  border: none !important;
  background-color: #ffffff !important;
  font-size: 0.9rem;
  color: #1f2937;
}

.tabulator .tabulator-header {
  background-color: #f9fafb !important;
  color: #1f2937 !important;
  border-bottom: none !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tabulator .tabulator-col {
  background-color: #f9fafb !important;
  color: #1f2937 !important;
  padding: 0.5rem 0.75rem !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tabulator-col,
.tabulator-col-resize-handle,
.tabulator-frozen-col {
  border-right: none !important;
  box-shadow: none !important;
}

.tabulator-col-content {
  border-right: none !important;
  background-color: transparent !important;
}

.tabulator-tableholder {
  border-top: none !important;
}

.tabulator-row {
  border-bottom: 1px solid #e5e7eb !important;
}

.tabulator-row .tabulator-cell {
  border-right: none !important;
  background-color: #ffffff !important;
  padding: 0.5rem 0.5rem;
}

.tabulator-row:nth-child(even) .tabulator-cell {
  background-color: #fcfcfc !important;
}

.tabulator-row:hover .tabulator-cell {
  background-color: #f9fafb !important;
}

.tabulator-header-filter input,
.tabulator-header-filter select {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  font-size: 0.8125rem;
  color: #111827;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tabulator-header-filter input:focus,
.tabulator-header-filter select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  outline: none;
}

.tm-table-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.tm-table-badge-created {
  background-color: #dcfce7;
  color: #166534;
}

.tm-table-badge-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.tm-table-badge-approved {
  background-color: #e0f2fe;
  color: #0369a1;
}

.tm-table-badge-rejected {
  background-color: #fee2e2;
  color: #991b1b;
}

.tm-table-badge-closed {
  background-color: #e5e7eb;
  color: #374151;
}

.tabulator-cell a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.tabulator-cell a:hover {
  text-decoration: underline;
}

.tabulator-placeholder {
  color: #9ca3af;
  font-style: italic;
  padding: 1.5rem;
  text-align: center;
}

.tabulator .tabulator-tableholder {
  overflow-x: hidden !important;
}