.nextlist-dashboard-applications {
  width: 100%;
  padding: 20px;
}

.nextlist-dashboard-applications .page-header {
  margin-bottom: 2rem;
}

.nextlist-dashboard-applications .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nextlist-dashboard-applications .header-left {
  flex: 1;
}

.nextlist-dashboard-applications .page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nextlist-dashboard-applications .page-title i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.nextlist-dashboard-applications .page-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary, #6b7280);
  margin: 0;
}

.nextlist-dashboard-applications .header-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nextlist-dashboard-applications .date-range-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nextlist-dashboard-applications .date-range-selector label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary, #1f2937);
}

.nextlist-dashboard-applications .filter-select {
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--input-bg, #ffffff);
  color: var(--text-primary, #1f2937);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: all 0.2s;
}

.nextlist-dashboard-applications .filter-select:focus {
  outline: none;
  border: 2px solid var(--primary-color);
  padding: 9px 11px;
  padding-right: 35px;
}

.nextlist-dashboard-applications .kpi-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.nextlist-dashboard-applications .kpi-card {
  background-color: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
}

.nextlist-dashboard-applications .kpi-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.nextlist-dashboard-applications .kpi-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.nextlist-dashboard-applications .kpi-icon-total {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.nextlist-dashboard-applications .kpi-icon-completed {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.nextlist-dashboard-applications .kpi-icon-progress {
  background-color: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.nextlist-dashboard-applications .kpi-icon-overdue {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.nextlist-dashboard-applications .kpi-icon-avg {
  background-color: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.nextlist-dashboard-applications .kpi-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nextlist-dashboard-applications .kpi-label {
  font-size: 0.875rem;
  color: var(--text-secondary, #6b7280);
  font-weight: 500;
}

.nextlist-dashboard-applications .kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary, #1f2937);
}

.nextlist-dashboard-applications .kpi-change {
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nextlist-dashboard-applications .kpi-positive {
  color: #10b981;
}

.nextlist-dashboard-applications .kpi-negative {
  color: #ef4444;
}

.nextlist-dashboard-applications .kpi-neutral {
  color: var(--text-secondary, #9ca3af);
}

.nextlist-dashboard-applications .charts-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.nextlist-dashboard-applications .chart-card {
  background-color: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.5rem;
}

.nextlist-dashboard-applications .chart-card-half {
  grid-column: span 1;
}

.nextlist-dashboard-applications .chart-card-full {
  grid-column: 1 / -1;
}

.nextlist-dashboard-applications .charts-row {
  grid-template-columns: repeat(2, 1fr);
}

.nextlist-dashboard-applications .chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.nextlist-dashboard-applications .chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nextlist-dashboard-applications .chart-title i {
  color: var(--primary-color);
  font-size: 0.875rem;
}

.nextlist-dashboard-applications .chart-actions {
  display: flex;
  gap: 0.75rem;
}

.nextlist-dashboard-applications .chart-select {
  padding: 6px 10px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  font-size: 0.8125rem;
  background-color: var(--input-bg, #ffffff);
  color: var(--text-primary, #1f2937);
  cursor: pointer;
}

.nextlist-dashboard-applications .chart-body {
  position: relative;
  min-height: 300px;
}

.nextlist-dashboard-applications .recent-applications-card {
  background-color: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.nextlist-dashboard-applications .recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.nextlist-dashboard-applications .recent-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nextlist-dashboard-applications .recent-title i {
  color: var(--primary-color);
  font-size: 0.875rem;
}

.nextlist-dashboard-applications .recent-body {
  padding: 1rem;
}

.nextlist-dashboard-applications .recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nextlist-dashboard-applications .recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--surface-hover, #f9fafb);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.nextlist-dashboard-applications .recent-item:hover {
  background-color: var(--border, #e5e7eb);
  transform: translateX(4px);
}

.nextlist-dashboard-applications .recent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.nextlist-dashboard-applications .recent-checklist {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nextlist-dashboard-applications .recent-assignee {
  font-size: 0.8125rem;
  color: var(--text-secondary, #9ca3af);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nextlist-dashboard-applications .recent-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nextlist-dashboard-applications .recent-status {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.nextlist-dashboard-applications .recent-progress {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 40px;
  text-align: right;
}

.nextlist-dashboard-applications .recent-loading,
.nextlist-dashboard-applications .recent-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-secondary, #6b7280);
}

.nextlist-dashboard-applications .overdue-alert-card {
  background-color: var(--card-bg, #ffffff);
  border: 1px solid #ef4444;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.nextlist-dashboard-applications .alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: rgba(239, 68, 68, 0.05);
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.nextlist-dashboard-applications .alert-title {
  font-size: 1rem;
  font-weight: 600;
  color: #dc2626;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nextlist-dashboard-applications .alert-count {
  background-color: #dc2626;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

.nextlist-dashboard-applications .alert-body {
  padding: 1rem;
}

.nextlist-dashboard-applications .overdue-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nextlist-dashboard-applications .overdue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: rgba(239, 68, 68, 0.05);
  border-radius: 8px;
  border-left: 3px solid #ef4444;
  cursor: pointer;
  transition: all 0.2s;
}

.nextlist-dashboard-applications .overdue-item:hover {
  background-color: rgba(239, 68, 68, 0.1);
  transform: translateX(4px);
}

.nextlist-dashboard-applications .overdue-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.nextlist-dashboard-applications .overdue-checklist {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nextlist-dashboard-applications .overdue-assignee {
  font-size: 0.8125rem;
  color: var(--text-secondary, #9ca3af);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nextlist-dashboard-applications .overdue-days {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.nextlist-dashboard-applications .btn {
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.nextlist-dashboard-applications .btn-secondary {
  background-color: var(--btn-secundary-color);
  color: var(--btn-secundary-text-color);
  border: var(--border-type);
}

.nextlist-dashboard-applications .btn-secondary:hover {
  opacity: 0.9;
}

.nextlist-dashboard-applications .btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nextlist-dashboard-applications .btn-link:hover {
  background-color: var(--surface-hover, #f3f4f6);
}

.nextlist-dashboard-applications .loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.nextlist-dashboard-applications .loading-content {
  background-color: var(--card-bg, #ffffff);
  border-radius: 12px;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.nextlist-dashboard-applications .loading-content i {
  font-size: 2rem;
  color: var(--primary-color);
  animation: spin 1s linear infinite;
}

.nextlist-dashboard-applications .loading-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary, #1f2937);
  font-weight: 500;
}

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

html.dark-theme .nextlist-dashboard-applications .page-title,
html.dark-theme .nextlist-dashboard-applications .kpi-value,
html.dark-theme .nextlist-dashboard-applications .chart-title,
html.dark-theme .nextlist-dashboard-applications .recent-title,
html.dark-theme .nextlist-dashboard-applications .recent-checklist,
html.dark-theme .nextlist-dashboard-applications .overdue-checklist {
  color: #f0f0f0;
}

html.dark-theme .nextlist-dashboard-applications .page-subtitle,
html.dark-theme .nextlist-dashboard-applications .kpi-label,
html.dark-theme .nextlist-dashboard-applications .recent-assignee,
html.dark-theme .nextlist-dashboard-applications .overdue-assignee {
  color: #b0b0b0;
}

html.dark-theme .nextlist-dashboard-applications .kpi-card,
html.dark-theme .nextlist-dashboard-applications .chart-card,
html.dark-theme .nextlist-dashboard-applications .recent-applications-card,
html.dark-theme .nextlist-dashboard-applications .overdue-alert-card,
html.dark-theme .nextlist-dashboard-applications .loading-content {
  background-color: #2c2c2c;
  border-color: #555555;
}

html.dark-theme .nextlist-dashboard-applications .recent-item,
html.dark-theme .nextlist-dashboard-applications .overdue-item {
  background-color: #1e1e1e;
}

html.dark-theme .nextlist-dashboard-applications .recent-item:hover {
  background-color: #3a3a3a;
}

html.dark-theme .nextlist-dashboard-applications .filter-select,
html.dark-theme .nextlist-dashboard-applications .chart-select {
  background-color: #1e1e1e;
  color: #f0f0f0;
  border-color: #555555;
}

html.dark-theme .nextlist-dashboard-applications .chart-header,
html.dark-theme .nextlist-dashboard-applications .recent-header,
html.dark-theme .nextlist-dashboard-applications .alert-header {
  border-color: #555555;
}

html.dark-theme .nextlist-dashboard-applications .btn-link:hover {
  background-color: #3a3a3a;
}

@media (max-width: 1024px) {
  .nextlist-dashboard-applications .charts-row {
    grid-template-columns: 1fr;
  }

  .nextlist-dashboard-applications .chart-card-half {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .nextlist-dashboard-applications {
    padding: 15px;
  }

  .nextlist-dashboard-applications .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nextlist-dashboard-applications .header-right {
    width: 100%;
    flex-direction: column;
  }

  .nextlist-dashboard-applications .kpi-cards {
    grid-template-columns: 1fr;
  }
}