/**
 * @file
 * Styles for the [civil_web_tracker] and [family_law_web_tracker] shortcodes.
 */

/* ---- Table ----------------------------------------------------------- */
.web-tracker-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.web-tracker-table thead th {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 12px;
  text-align: left;
  font-weight: bold;
  border: 1px solid #2c3e50;
}

.web-tracker-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  color: #1b1b1b;
  vertical-align: top;
}

.web-tracker-table tbody tr:hover {
  background-color: #f5f5f5;
}

.web-tracker-table tbody tr:nth-child(even) td {
  background-color: #f9f9f9;
}

/* ---- Caption --------------------------------------------------------- */
.web-tracker-caption {
  caption-side: top;
  text-align: left;
  font-weight: bold;
  font-size: 1rem;
  color: #1b2b85;
  padding: 0.75rem 1rem;
  background-color: #f0f4f9;
  border: 1px solid #dfe1e2;
  border-bottom: none;
}

/* ---- No data / error ------------------------------------------------- */
.web-tracker-no-data {
  text-align: center;
  padding: 20px;
  font-style: italic;
  color: #666;
}

.web-tracker-error {
  color: #d9534f;
  padding: 10px;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  border-radius: 4px;
}

/* ---- Update notice --------------------------------------------------- */
.web-tracker-update-notice {
  font-style: italic;
  color: #666;
  margin: 10px 0;
}

/* ---- Responsive ------------------------------------------------------ */
@media screen and (max-width: 640px) {
  .web-tracker-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .web-tracker-table thead th,
  .web-tracker-table tbody td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* ---- High contrast --------------------------------------------------- */
@media (prefers-contrast: high) {
  .web-tracker-table,
  .web-tracker-table thead th,
  .web-tracker-table tbody td {
    border-width: 2px;
  }
}

/* ---- Print ----------------------------------------------------------- */
@media print {
  .web-tracker-table {
    border: 1px solid #000;
  }

  .web-tracker-table thead th {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
  }
}
