/* Main content area */
.calllist-content {
  font-family: 'Inter', sans-serif;
  color: #1b1045;
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto 2rem auto;
  padding: 0 1.5rem;
  line-height: 1.4;
}

/* Page title + subheading (uniform with other page) */
.calllist-content h1 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  color: #1b1045;
}

.calllist-content center {
    margin-bottom: 1.5em;
}

/* Table with rounded corners */
.calllist-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;            /* enables rounded corners */
  border: 1px solid #bbb;
}

/* Header row */
.calllist-content tr.header {
  background-color: #e9f2fb;
}

.calllist-content tr.header th {
  padding: 10px 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  color: #1b1045;
  white-space: nowrap;
}

/* Body cells: uniform background, no hover/striping */
.calllist-content td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  background-color: #ffffff;
}

/* “Days on Reserve” band */
.calllist-content td[colspan="99"] {
  font-weight: 600;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  color: #555;
}

/* Collapse/Expand control buttons */
.calllist-content button.view-control {
  background-color: #6c757d; 
  border: none;
  color: white;
  padding: 6px 12px;
  margin: 5px 5px 15px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
  transition: background-color 0.2s ease-in-out;
}

.calllist-content button.view-control:hover {
  background-color: #5a6268; 
}

/* Column alignment */
.calllist-content td:nth-child(1),
.calllist-content td:nth-child(2),
.calllist-content td:nth-child(3),
.calllist-content td:nth-child(4) {
  white-space: nowrap;
}

.calllist-content td:nth-child(6),
.calllist-content td:nth-child(8) {
  text-align: center;
}

/* CALLED rows: use .found as the highlight */
.calllist-content tr.found td {
  background-color: #ffe5ef;   /* more pronounced pink highlight */
}

.calllist-content tr.found td:last-child {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #b1004e;              /* stronger status color */
}

/* No decorative dot before status */
.calllist-content tr.found td:last-child::before {
  content: none;
}

/* Responsive */
@media (max-width: 768px) {
  .calllist-content {
    padding: 0 1rem;
  }

  .calllist-content h1 {
    font-size: 1.4rem;
  }

  .calllist-content table {
    font-size: 0.8rem;
  }

  .calllist-content tr.header th,
  .calllist-content td {
    padding: 6px 6px;
  }
}
