/* ==================== DASHBOARD HOME REDESIGN ==================== */
.az-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  margin-bottom: 24px;
}

.card-dashboard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.card-header-custom {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.card-title-custom {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.metric-label {
  font-size: 13px;
  color: #7987a1;
  margin-bottom: 4px;
}

.badge-custom {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Home dashboard cards clickable hover */
.card-dashboard:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}

/* Ensure canvas charts fit their containers */
#home canvas {
  max-width: 100%;
  height: auto !important;
}

/* ==================== ROADMAP CARDS ==================== */
.roadmap-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.roadmap-card:hover {
  border-color: var(--accent);
  background: var(--border-light);
}
.roadmap-card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  flex-wrap: nowrap;
}
.roadmap-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.roadmap-card-title {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.roadmap-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.roadmap-card-actions button {
  padding: 6px 12px;
  font-size: 13px;
  min-height: auto;
  white-space: nowrap;
}
.roadmap-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}
.roadmap-card-body .field {
  margin: 0;
}
.roadmap-card-body .detail-block {
  margin-top: 4px;
  padding: 10px 12px;
  background: var(--search-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.roadmap-card-empty {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .roadmap-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .roadmap-card-title-wrap {
    width: 100%;
  }
  .roadmap-card-title {
    white-space: normal;
  }
  .roadmap-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
