.project-header {
  border: 1px solid #cccccc;
  padding: 20px 24px;
  margin-bottom: 28px;
  background-color: #f9f9f9;
}

.project-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.project-header h1 {
  font-size: 1.6rem;
  color: #2c6e49;
  margin-bottom: 4px;
}

.project-dates {
  font-size: 0.8rem;
  color: #444444;
}

#description-block {
  display: none;
  margin-bottom: 12px;
}

#project-description {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.6;
}

.budget-bar-wrapper {
  margin-top: 10px;
}

.dashboard-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.dashboard-main { flex: 2 1 420px; }
.dashboard-side  { flex: 1 1 260px; }

.panel {
  border: 1px solid #cccccc;
  padding: 20px;
  margin-bottom: 24px;
  background-color: #ffffff;
}

.todo-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.todo-input-row input {
  flex: 1 1 180px;
  padding: 8px 10px;
  border: 1px solid #cccccc;
  font-size: 0.875rem;
  font-family: Georgia, serif;
}

.panel-subheading {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 8px;
}

.panel-subheading-spaced {
  font-size: 0.875rem;
  color: #666666;
  margin: 16px 0 8px;
}

.todo-list {
  list-style: none;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #cccccc;
  margin-bottom: 6px;
}

.todo-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.todo-item label {
  flex: 1;
  font-size: 0.875rem;
  cursor: pointer;
  font-weight: normal;
  margin: 0;
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 4px;
}

.completed-list {
  list-style: none;
  margin-top: 6px;
}

.completed-list li {
  padding: 8px 10px;
  border: 1px solid #b7dbc8;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: #444444;
  text-decoration: line-through;
  background-color: #f0f7f3;
}

.empty-msg {
  font-size: 0.85rem;
  color: #666666;
  font-style: italic;
  margin-top: 8px;
}

.mat-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 14px;
}

.mat-input-row input {
  flex: 1 1 120px;
  padding: 8px 10px;
  border: 1px solid #cccccc;
  font-size: 0.875rem;
  font-family: Georgia, serif;
}

.mat-label {
  font-size: 0.8rem;
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

#new-mat-qty  { width: 70px; }
#new-mat-unit { width: 90px; }

.input-row-btn {
  margin-top: 20px;
}

.mat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.mat-table th,
.mat-table td {
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #cccccc;
}

.mat-table th {
  background-color: #f0f7f3;
  color: #2c6e49;
}

.mat-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.mat-row.purchased td {
  color: #888888;
  text-decoration: line-through;
}

.budget-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #eeeeee;
}

.budget-row:last-child {
  border-bottom: none;
}

#remaining-display {
  font-weight: bold;
}

.expense-heading {
  font-size: 0.875rem;
  margin: 16px 0 8px;
}

.expense-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 10px;
}

.expense-input-row input {
  flex: 1 1 100px;
  padding: 8px 10px;
  border: 1px solid #cccccc;
  font-size: 0.875rem;
  font-family: Georgia, serif;
}

.expense-label {
  font-size: 0.78rem;
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

#exp-amt { width: 90px; }

.expense-list {
  list-style: none;
  margin-top: 6px;
}

.expense-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px solid #eeeeee;
}

@media (max-width: 600px) {
  .dashboard-layout {
    flex-direction: column;
  }
}