/* World Bank Style Project Detail Page */

.project-detail-worldbank {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Header Section - Blue Background */
.project-wb-header {
  background: linear-gradient(135deg, #203266 0%, #005a94 100%);
  color: white;
  padding: 30px 50px;
  width: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  gap: 30px;
}

.header-left {
  flex: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 15px;
  transition: color 0.2s;
}

.back-link:hover {
  color: white;
}

.back-icon {
  font-size: 18px;
}

.project-main-title {
  color: white;
  font-size: 36px;
  font-weight: 300;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.questionnaire-badge-header {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.wb-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: 2px solid white;
  background: transparent;
  color: white;
}

.wb-action-btn:hover {
  background: white;
  color: #0071bc;
}

.wb-btn-delete:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
}

/* Tabs Navigation */
.project-wb-tabs {
  display: flex;
  background: linear-gradient(135deg, #203266 0%, #005a94 100%);
  padding: 0 50px;
  gap: 2px;
  border-bottom: none;
}

.wb-tab-button {
  background: rgba(0, 0, 0, 0.2);
  color: white;
  border: none;
  padding: 18px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
}

.wb-tab-button:hover {
  background: rgba(0, 0, 0, 0.3);
}

.wb-tab-button.active {
  background: white;
  color: #333;
}

.wb-tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

/* Tab Content */
.wb-tab-content-wrapper {
  background: white;
  min-height: 600px;
  padding: 40px 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.wb-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.wb-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Metrics Grid (Overview) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.metric-label {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: #0071bc;
  line-height: 1.2;
}

.metric-value-large {
  font-size: 26px;
}

.metric-sub {
  display: block;
  font-size: 16px;
  color: #666;
  margin-top: 4px;
  font-weight: 400;
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 26px;
  font-weight: 700;
  //text-transform: uppercase;
}

.status-active { background: #d4edda; color: #155724; }
.status-pipeline { background: #928e82ff; color: #856404; }
.status-completed { background: #d1ecf1; color: #0c5460; }
.status-dropped { background: #f8d7da; color: #721c24; }

/* Sections */
.wb-section {
  margin-bottom: 40px;
}

.wb-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #0071bc;
}

.wb-content-block {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.content-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.sub-content {
  background: white;
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
}

/* Info Table */
.info-table {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.info-row {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-cell-label {
  flex: 0 0 200px;
  background: #f8f9fa;
  padding: 15px 20px;
  font-weight: 600;
  color: #333;
  border-right: 1px solid #e0e0e0;
}

.info-cell-value {
  flex: 1;
  padding: 15px 20px;
  background: white;
}

/* Eligibility Grid */
.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.eligibility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 14px;
}

.eligibility-item.checked {
  background: #d4edda;
  color: #155724;
}

.check-icon {
  font-size: 20px;
  font-weight: bold;
}

/* Tags */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wb-tag {
  display: inline-block;
  background: #0071bc;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* SDG Cards */
.sdg-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.sdg-header {
  background: #0071bc;
  color: white;
  padding: 15px 20px;
  font-weight: 700;
  font-size: 18px;
}

.sdg-body {
  padding: 20px;
}

.sdg-body p {
  margin: 10px 0;
}

/* Financial Cards */
.financial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.fin-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fin-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 600;
}

.fin-value {
  font-size: 28px;
  font-weight: 700;
  color: #0071bc;
}

.fin-value-text {
  font-size: 14px;
  color: #333;
}

/* Support Grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.support-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

.support-card h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #333;
}

.need-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.need-high { background: #dc3545; color: white; }
.need-medium { background: #ffc107; color: #000; }
.need-low { background: #28a745; color: white; }

/* Accordion */
.accordion-list {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-title {
  background: #f8f9fa;
  padding: 15px 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.accordion-title:hover {
  background: #e9ecef;
}

.accordion-content {
  padding: 20px;
  background: white;
}

/* Documents */
.doc-category {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.doc-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #333;
}

.doc-icon {
  font-size: 24px;
}

.doc-category-desc {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: background 0.2s;
}

.doc-item:hover {
  background: #e9ecef;
}

.doc-file-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-link {
  color: #0071bc;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.doc-link:hover {
  text-decoration: underline;
}

.doc-meta {
  color: #666;
  font-size: 12px;
}

.doc-download {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0071bc;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  transition: background 0.2s;
}

.doc-download:hover {
  background: #005a94;
}

/* Collaboration & Comments */
.collaboration-wrapper,
.comments-wrapper {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .project-wb-header {
    padding: 20px;
  }

  .header-content {
    flex-direction: column;
  }

  .project-main-title {
    font-size: 24px;
  }

  .header-actions {
    width: 100%;
  }

  .wb-action-btn {
    flex: 1;
    justify-content: center;
  }

  .project-wb-tabs {
    padding: 0 20px;
    overflow-x: auto;
  }

  .wb-tab-button {
    white-space: nowrap;
    padding: 15px 20px;
    font-size: 12px;
  }

  .wb-tab-content-wrapper {
    padding: 20px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .info-row {
    flex-direction: column;
  }

  .info-cell-label {
    flex: none;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .financial-cards {
    grid-template-columns: 1fr;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

/**
 * Modern Document Display Styles
 * Add this to your project-detail-worldbank.css file
 */

/* ============================================
   DOCUMENTS TAB - MODERN STYLE
   ============================================ */

/* Section header with action button */
.section-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.wb-action-btn-small {
  background: #0071bc;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.wb-action-btn-small:hover {
  background: #005a94;
}

/* Document category - modern */
.doc-category-modern {
  margin-bottom: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.doc-category-header {
  background: #f5f5f5;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.doc-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.doc-type-icon {
  font-size: 24px;
}

.doc-count-badge {
  background: #0071bc;
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

/* Document list - modern */
.doc-list-modern {
  background: white;
}

.doc-item-modern {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.doc-item-modern:last-child {
  border-bottom: none;
}

.doc-item-modern:hover {
  background: #f9f9f9;
}

/* Document icon */
.doc-icon-wrapper {
  flex-shrink: 0;
}

.doc-file-icon {
  font-size: 32px;
  display: block;
}

.doc-icon-pdf { filter: hue-rotate(0deg); }
.doc-icon-word { filter: hue-rotate(220deg); }
.doc-icon-excel { filter: hue-rotate(120deg); }
.doc-icon-ppt { filter: hue-rotate(30deg); }
.doc-icon-image { filter: hue-rotate(280deg); }
.doc-icon-generic { opacity: 0.7; }

/* Document info */
.doc-info-modern {
  flex: 1;
  min-width: 0;
}

.doc-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.doc-link-modern {
  color: #0071bc;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  word-break: break-word;
}

.doc-link-modern:hover {
  text-decoration: underline;
  color: #005a94;
}

.disclosure-badge {
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.disclosure-disclosed {
  background: #d4edda;
  color: #155724;
}

.disclosure-confidential {
  background: #f8d7da;
  color: #721c24;
}

.disclosure-restricted {
  background: #fff3cd;
  color: #856404;
}

.doc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.doc-meta-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.doc-description {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-top: 8px;
}

/* Document actions */
.doc-actions-modern {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.doc-action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 18px;
}

.doc-action-btn:hover {
  background: #0071bc;
  border-color: #0071bc;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 113, 188, 0.3);
}

.doc-action-btn:hover span {
  filter: grayscale(100%) brightness(5);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  display: block !important;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.empty-state p {
  color: #666;
  margin-bottom: 30px;
}

/* Legacy documents section */
.legacy-docs-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px dashed #ccc;
}

.legacy-badge {
  background: #6c757d;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 15px;
}

.info-message {
  background: #e7f3ff;
  border-left: 4px solid #0071bc;
  padding: 15px;
  margin-bottom: 25px;
  font-size: 14px;
}

.info-message strong {
  color: #0071bc;
}

/* ============================================
   COLLABORATION TAB - DOCUMENT SUMMARY
   ============================================ */

.collab-intro {
  color: #666;
  margin-bottom: 25px;
  font-size: 15px;
}

.collab-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.collab-doc-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: all 0.2s;
}

.collab-doc-card:hover {
  border-color: #0071bc;
  box-shadow: 0 4px 12px rgba(0, 113, 188, 0.15);
  transform: translateY(-2px);
}

.collab-doc-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.collab-doc-info {
  flex: 1;
  min-width: 0;
}

.collab-doc-title {
  display: block;
  color: #0071bc;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 5px;
  word-break: break-word;
}

.collab-doc-title:hover {
  text-decoration: underline;
}

.collab-doc-type {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.collab-doc-disclosure {
  display: inline-block;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #555;
}

.collab-doc-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.collab-doc-action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s;
}

.collab-doc-action:hover {
  background: #0071bc;
  border-color: #0071bc;
  transform: scale(1.1);
}

.view-all-docs-wrapper {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.view-all-docs-btn {
  background: white;
  border: 2px solid #0071bc;
  color: #0071bc;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.view-all-docs-btn:hover {
  background: #0071bc;
  color: white;
}

/* Quick info card on overview */
.quick-info-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-info-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.quick-info-content {
  flex: 1;
}

.quick-info-content h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: white;
}

.quick-info-content p {
  margin: 0 0 15px 0;
  opacity: 0.9;
  font-size: 15px;
}

.quick-link-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  padding: 10px 25px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-link-btn:hover {
  background: white;
  color: #667eea;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .section-header-with-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .doc-item-modern {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-actions-modern {
    width: 100%;
    justify-content: flex-end;
  }

  .collab-doc-grid {
    grid-template-columns: 1fr;
  }

  .collab-doc-card {
    flex-direction: column;
  }

  .quick-info-card {
    flex-direction: column;
    text-align: center;
  }

  .doc-meta-row {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .doc-category-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .doc-count-badge {
    align-self: flex-start;
  }
}

/* Timeline Section Styles */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.timeline-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  border-color: #0071bc;
  box-shadow: 0 4px 12px rgba(0, 113, 188, 0.1);
}

.task-card {
  border-left: 4px solid #28a745;
}

.timeline-card-header {
  padding: 15px;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.timeline-card-header h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
  flex: 1;
}

.completion-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.completion-0 { background: #f0f0f0; color: #666; }
.completion-25 { background: #fff3cd; color: #856404; }
.completion-50 { background: #cce5ff; color: #004085; }
.completion-75 { background: #d1ecf1; color: #0c5460; }
.completion-100 { background: #d4edda; color: #155724; }

.timeline-card-body {
  padding: 15px;
}

.timeline-card-body p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.timeline-dates,
.timeline-notes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-icon {
  opacity: 0.7;
}

.progress-bar-container {
  height: 6px;
  background: #e9ecef;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  transition: width 0.3s ease;
}

/* Permits List */
.permits-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.permit-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
}

.permit-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.permit-info h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
}

.permit-info p {
  margin: 4px 0;
  color: #666;
  font-size: 14px;
}

/* Risks Grid */
.risks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.risk-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.risk-impact-low {
  border-left: 4px solid #28a745;
}

.risk-impact-medium {
  border-left: 4px solid #ffc107;
}

.risk-impact-high {
  border-left: 4px solid #dc3545;
}

.risk-header {
  padding: 15px;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.risk-header h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
  flex: 1;
}

.risk-type-badge {
  padding: 4px 10px;
  background: #e9ecef;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
}

.risk-body {
  padding: 15px;
}

.risk-body > p {
  margin: 0 0 12px 0;
  color: #666;
  font-size: 14px;
}

.risk-assessment {
  display: flex;
  gap: 15px;
  margin: 12px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  flex-wrap: wrap;
}

.risk-metric {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.badge-low {
  padding: 2px 8px;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
  font-size: 12px;
}

.badge-medium {
  padding: 2px 8px;
  background: #fff3cd;
  color: #856404;
  border-radius: 4px;
  font-size: 12px;
}

.badge-high {
  padding: 2px 8px;
  background: #f8d7da;
  color: #721c24;
  border-radius: 4px;
  font-size: 12px;
}

.risk-mitigation {
  margin-top: 12px;
  padding: 10px;
  background: #e7f3ff;
  border-left: 3px solid #0071bc;
  border-radius: 4px;
}

.risk-mitigation strong {
  display: block;
  margin-bottom: 6px;
  color: #0071bc;
  font-size: 13px;
}

.risk-mitigation p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.empty-state-small {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-state-small p {
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-grid,
  .risks-grid {
    grid-template-columns: 1fr;
  }
}