/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-input {
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  width: 280px;
  outline: none;
  transition: border-color 0.15s;
}

.filter-input:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  width: 180px;
  background: #fff;
  outline: none;
  cursor: pointer;
}

.filter-select--small {
  width: 90px;
}

.filter-group--export {
  margin-left: auto;
}

/* Table */
.table-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  position: relative;
  min-height: 200px;
}

.table-wrapper--loading {
  opacity: 0.5;
  pointer-events: none;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
}

.projects-table thead {
  background: #f7fafc;
}

.projects-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.projects-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
  font-size: 13px;
}

.projects-table tbody tr:last-child td {
  border-bottom: none;
}

.projects-table tbody tr:hover {
  background: #f7fafc;
}

.col-name {
  max-width: 300px;
}

.project-name {
  display: block;
  font-weight: 500;
  color: #2d3748;
}

.project-description {
  display: block;
  font-size: 12px;
  color: #718096;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.col-date {
  white-space: nowrap;
  color: #4a5568;
}

.col-value {
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
  color: #276749;
}

.empty-state {
  text-align: center;
  color: #a0aec0;
  padding: 48px 16px !important;
  font-size: 14px;
}

/* Loading */
.loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a5568;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-top-color: #4299e1;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pagination */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}

.pagination-info {
  font-size: 13px;
  color: #718096;
}
