body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #f6f7fb;
  color: #1f2937;
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 16px;
}

h1 {
  text-align: center;
}

select,
button {
  padding: 8px;
  margin: 8px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  table-layout: auto;
}

th,
td {
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
  white-space: normal;
  word-break: break-word;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.view-toggle button {
  margin-right: 8px;
}

#calendarView {
  display: none;
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 8px;
  }

  .container h1 {
    font-size: 20px;
    line-height: 1.2;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  th {
    background: #1b5299;
    color: white;
    padding: 8px;
  }

  td {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
  }

  td .mobile-date-time {
    display: flex;
    justify-content: flex-start;
    font-weight: bold;
    font-size: 15px;
    gap: 8px;
  }

  td .mobile-location-activity {
    display: flex;
    justify-content: flex-start;
    font-size: 14px;
    gap: 8px;
  }

  .mobile-date-time span:last-child,
  .mobile-location-activity span:last-child {
    text-align: left;
  }

  td .mobile-person {
    font-style: italic;
    font-size: 14px;
    padding-top: 4px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
  }

  td:nth-child(2),
  th:nth-child(2),
  td:nth-child(6),
  th:nth-child(6) {
    display: none !important;
  }

  td .row-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .row-group p {
    margin: 0;
  }
}

th:last-child,
td:last-child {
  white-space: nowrap;
  text-align: left;
}

