/* MundaApp · Backhaul — verified return trips and the loads that ride them. */

.hl-wrap { max-width: 720px; margin: 0 auto; padding: 4px 0 40px; }

.hl-head { padding: 6px 0 12px; }
.hl-head h1 {
  font-family: var(--display, Georgia, serif);
  font-size: 26px; line-height: 1.15; margin: 0 0 6px; color: var(--ink, #14231c);
}
.hl-head p { margin: 0; color: var(--muted, #5d6b64); font-size: 14px; line-height: 1.5; }

/* trust panel */
.hl-trust {
  border: 1px solid var(--line, #e7e1d6);
  border-radius: var(--r-card, 14px);
  background: var(--card, #fff);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.hl-trust summary {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink, #14231c);
  cursor: pointer; list-style: none;
}
.hl-trust summary::-webkit-details-marker { display: none; }
.hl-trust summary svg { width: 16px; height: 16px; color: var(--green-700, #0e5a3a); flex: none; }
.hl-trust ol { margin: 10px 0 0; padding-left: 18px; }
.hl-trust li { font-size: 12.5px; line-height: 1.5; color: var(--ink, #14231c); margin-bottom: 6px; }
.hl-small { font-size: 11.5px; line-height: 1.5; color: var(--muted, #5d6b64); margin: 8px 0 0; }

.hl-status { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.hl-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px;
  border: 1px solid var(--line, #e7e1d6); color: var(--muted, #5d6b64);
}
.hl-badge svg { width: 12px; height: 12px; }
.hl-badge.is-ok { background: var(--green-50, #eaf4ec); border-color: #cfe3d5; color: var(--green-800, #0b4630); }
.hl-badge.is-part { background: #fdf6e6; border-color: #ecd9a8; color: #7a5b12; }
.hl-link {
  background: none; border: 0; padding: 0; font-size: 12.5px; font-weight: 600;
  color: var(--green-700, #0e5a3a); text-decoration: underline; cursor: pointer;
}

/* tabs + filter */
.hl-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.hl-tab {
  flex: 1; padding: 9px 10px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line, #e7e1d6); background: transparent;
  border-radius: 10px; color: var(--muted, #5d6b64); cursor: pointer;
}
.hl-tab.on { background: var(--green-700, #0e5a3a); border-color: var(--green-700, #0e5a3a); color: #fff; }

.hl-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hl-check { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink, #14231c); }
.hl-check input { width: 16px; height: 16px; accent-color: var(--green-700, #0e5a3a); }

/* buttons */
.hl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 13px; font-size: 12.5px; font-weight: 700;
  border-radius: 10px; border: 1px solid var(--line, #e7e1d6);
  background: transparent; color: var(--ink, #14231c); cursor: pointer;
}
.hl-btn.is-go { background: var(--green-700, #0e5a3a); border-color: var(--green-700, #0e5a3a); color: #fff; }
.hl-btn:disabled { opacity: .55; cursor: default; }

/* cards */
.hl-list { display: grid; gap: 10px; }
.hl-card {
  border: 1px solid var(--line, #e7e1d6); border-radius: var(--r-card, 14px);
  background: var(--card, #fff); padding: 14px;
}
.hl-card.is-sample { border-style: dashed; }
.hl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hl-route { display: flex; align-items: baseline; gap: 7px; font-size: 15px; }
.hl-route b { font-weight: 700; color: var(--ink, #14231c); }
.hl-arrow { font-size: 11px; color: var(--muted, #5d6b64); }
.hl-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px; background: var(--paper-2, #f4f1e8); color: var(--muted, #5d6b64);
}
.hl-line { font-size: 13px; color: var(--ink, #14231c); line-height: 1.45; }
.hl-dim { color: var(--muted, #5d6b64); font-size: 12px; margin-top: 2px; }
.hl-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted, #5d6b64); }
.hl-who { margin-top: 8px; font-size: 12.5px; color: var(--ink, #14231c); }
.hl-stars { color: #b8860b; letter-spacing: 1px; }
.hl-flag {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 11.5px; color: #8a4b12; background: #fdf1e3; border-radius: 8px; padding: 7px 9px;
}
.hl-flag svg { width: 14px; height: 14px; flex: none; }
.hl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* forms */
.hl-panel {
  border: 1px solid var(--line, #e7e1d6); border-radius: var(--r-card, 14px);
  background: var(--card, #fff); padding: 14px; margin-bottom: 12px;
}
.hl-panel h2 { margin: 0 0 8px; font-size: 15px; color: var(--ink, #14231c); }
.hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.hl-grid label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted, #5d6b64); }
.hl-grid input, .hl-grid select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 10px;
  font-size: 13px; border: 1px solid var(--line, #e7e1d6); border-radius: 9px;
  background: var(--paper, #fbfaf6); color: var(--ink, #14231c);
}
.hl-docs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.hl-doc {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px;
  padding: 5px 9px; border-radius: 99px; border: 1px dashed var(--line, #e7e1d6); color: var(--muted, #5d6b64);
}
.hl-doc.is-on { border-style: solid; border-color: #cfe3d5; background: var(--green-50, #eaf4ec); color: var(--green-800, #0b4630); }
.hl-doc svg { width: 12px; height: 12px; }

/* empty */
.hl-empty {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 30px 18px; border: 1px dashed var(--line, #e7e1d6); border-radius: var(--r-card, 14px);
  color: var(--muted, #5d6b64);
}
.hl-empty svg { width: 26px; height: 26px; opacity: .6; }
.hl-empty b { color: var(--ink, #14231c); font-size: 14px; }
.hl-empty span { font-size: 12.5px; line-height: 1.5; max-width: 34ch; }

/* trip sheet */
.hl-sheet {
  position: fixed; inset: 0; z-index: 90; background: rgba(12, 24, 18, .55);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.hl-sheet-inner {
  width: 100%; max-width: 620px; max-height: 88vh; overflow: auto;
  background: var(--card, #fff); border-radius: 18px 18px 0 0; padding: 14px 14px 20px;
}
.hl-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hl-sheet-head b { font-size: 15px; }
.hl-x { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted, #5d6b64); cursor: pointer; }
.hl-paper {
  margin: 0 0 12px; padding: 14px; background: #fff; border: 1px solid var(--line, #e7e1d6);
  border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; line-height: 1.55; white-space: pre-wrap; color: #1b2a22;
}
.hl-rate { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted, #5d6b64); }
.hl-star {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line, #e7e1d6);
  background: transparent; font-weight: 700; color: var(--ink, #14231c); cursor: pointer;
}
.hl-rate em { font-style: normal; color: var(--ink, #14231c); }

@media (max-width: 380px) {
  .hl-grid { grid-template-columns: 1fr; }
}
