/* Estes-style shipment tracking results */
.track-page {
  background: #f5f5f5;
  min-height: 70vh;
  padding: 28px 0 64px;
}
.track-page .page-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 3px solid #d81e05;
  display: inline-block;
}
.track-search-card,
.track-results-card,
.track-empty {
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.track-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.track-search-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.track-search-row select,
.track-search-row input {
  min-height: 44px;
  min-width: 220px;
  border: 1px solid #cfcfcf;
  padding: 8px 12px;
}
.track-search-row .btn-search {
  background: #fcd116;
  color: #000;
  font-weight: 700;
  border: 0;
  min-height: 44px;
  padding: 0 22px;
  letter-spacing: .04em;
}
.track-search-row .clear-link {
  color: #0052e0;
  font-weight: 600;
  padding-bottom: 10px;
}
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.results-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.results-actions {
  display: flex;
  gap: 8px;
}
.results-actions button {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
.track-table {
  width: 100%;
  border-collapse: collapse;
}
.track-table thead th {
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
}
.summary-row td {
  padding: 14px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  font-size: 14px;
  cursor: pointer;
}
.summary-row:hover td { background: #fafafa; }
.summary-row.is-open td { background: #fff; border-bottom: 0; }
.status-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.status-cell .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4eb807;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.chevron {
  margin-left: auto;
  transition: transform .2s ease;
}
.summary-row.is-open .chevron { transform: rotate(180deg); }
.detail-wrap td {
  padding: 0 14px 24px;
  background: #fff;
}
.status-banner {
  background: #4eb807;
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.status-banner svg { fill: currentColor; }
.detail-block { margin-bottom: 22px; }
.detail-block h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}
.mini-table {
  width: 100%;
  border-collapse: collapse;
}
.mini-table th, .mini-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
}
.mini-table th {
  background: #f3f3f3;
  font-weight: 600;
  width: 20%;
}
.history {
  display: flex;
  gap: 16px;
}
.history-date {
  background: #fcd116;
  color: #000;
  font-weight: 700;
  padding: 8px 10px;
  min-width: 92px;
  text-align: center;
  height: fit-content;
}
.history-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  border-left: 2px solid #e5e5e5;
}
.history-list li {
  position: relative;
  padding: 0 0 16px 18px;
}
.history-list li:before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #4eb807;
  border-radius: 50%;
}
.history-list .time { color: #666; font-size: 13px; }
.extra-links a { color: #0052e0; display: inline-block; margin-right: 18px; }
.track-contact-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-left: 4px solid #fcd116;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.track-contact-inner h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.track-contact-inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}
.track-contact-inner a {
  color: #0052e0;
  font-weight: 600;
}
.hidden { display: none !important; }
@media (max-width: 800px) {
  .track-search-row select, .track-search-row input { min-width: 100%; }
  .mini-table, .mini-table tbody, .mini-table tr, .mini-table th, .mini-table td {
    display: block;
    width: 100%;
  }
}
