/* Global Styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

a {
  color: #003366;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation Bar */
.navbar {
  background-color: #003366;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.navbar h1 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

.navbar li {
  margin: 0;
}

.navbar a {
  color: #fff;
  font-weight: 500;
}

.navbar a.active {
  border-bottom: 2px solid #fff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

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

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 15px;
}

.card h3 {
  margin-top: 0;
  font-size: 16px;
  color: #003366;
}

.card .value {
  font-size: 24px;
  font-weight: bold;
  margin: 5px 0;
}

.card .subtext {
  font-size: 12px;
  color: #666;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th, table td {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: right;
}

table th {
  background-color: #003366;
  color: #fff;
  text-align: left;
}

table td:first-child, table th:first-child {
  text-align: left;
}

/* Form Controls */
.controls {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.controls label {
  margin-right: 5px;
  font-weight: 500;
}

.controls select, .controls input[type="checkbox"] {
  padding: 5px;
  font-size: 14px;
}

.chart-container {
  position: relative;
  width: 100%;
  min-height: 400px;
}

/* Lists for drivers/risks/actions */
.summary-section {
  margin-bottom: 20px;
}

.summary-section h2 {
  color: #003366;
  font-size: 18px;
  margin-bottom: 8px;
}

.summary-section ul {
  list-style: disc;
  padding-left: 20px;
}

.summary-section ul li {
  margin-bottom: 4px;
  line-height: 1.4;
}