/* Custom styles for WorkCabinet and WorkRecord */

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-todo {
  background-color: #e2e8f0;
  color: #475569;
}

.status-in_progress {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-on_hold {
  background-color: #fef3c7;
  color: #92400e;
}

.status-completed {
  background-color: #d1fae5;
  color: #065f46;
}

.status-cancelled {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* Priority badges */
.priority-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.priority-low {
  background-color: #d1fae5;
  color: #065f46;
}

.priority-medium {
  background-color: #dbeafe;
  color: #1e40af;
}

.priority-high {
  background-color: #fef3c7;
  color: #92400e;
}

.priority-urgent {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* Tag badges */
.tag-badge {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 500;
  background-color: #f3f4f6;
  color: #4b5563;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  border: 1px solid #e5e7eb;
}

.tag-badge:hover {
  background-color: #e5e7eb;
  color: #374151;
}

/* Dashboard stats */
.dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background-color: #f8fafc;
  border-radius: 0.5rem;
  padding: 1rem;
  min-width: 120px;
  flex: 1;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
}

/* Filters */
.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter {
  flex: 1;
  min-width: 200px;
}

.filter label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: #64748b;
}

/* Work record tables */
.work-table td {
  vertical-align: middle;
}

tr.overdue {
  background-color: #fff1f2 !important;
}

/* User assignments */
.user-assignments {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.user-assignment-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  background-color: #e2e8f0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
}

.user-email {
  color: #64748b;
  font-size: 0.875rem;
}

/* Comments */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-item {
  background-color: #f8fafc;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.comment-body {
  color: #1e293b;
}
