/* [TFH-202:TFH_TRANSPORT_RESERVATION_INDEX:CSS-START] */
.tfh-transport-index-filter-grid {
  grid-template-columns: repeat(5,minmax(150px,1fr));
}

.tfh-transport-index-row {
  min-height: 148px;
  grid-template-columns: minmax(0,1fr);
  gap: 9px;
  padding: 12px 14px;
}

.tfh-transport-row-head,
.tfh-transport-row-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tfh-transport-row-head > span:first-child {
  display: grid;
  gap: 3px;
}

.tfh-transport-row-head small { color: #728195; }

.tfh-transport-row-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(160px,1fr));
  gap: 8px;
}

.tfh-transport-row-grid > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(17,49,84,.08);
  border-radius: 9px;
  background: #f8fafc;
}

.tfh-transport-row-grid small {
  color: var(--tfh-blue-600);
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfh-transport-row-grid strong,
.tfh-transport-row-grid em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-transport-row-grid em {
  color: #6c7a8b;
  font-size: .62rem;
  font-style: normal;
}

.tfh-transport-row-address {
  padding: 7px 10px;
  border-left: 3px solid var(--tfh-gold-300);
  background: rgba(185,135,50,.05);
  font-size: .67rem;
}

.tfh-transport-row-footer {
  color: #667589;
  font-size: .63rem;
}

.tfh-transport-row-footer > span:first-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 1050px) {
  .tfh-transport-index-filter-grid { grid-template-columns: repeat(3,minmax(140px,1fr)); }
  .tfh-transport-row-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .tfh-transport-index-filter-grid { grid-template-columns: 1fr; }
  .tfh-transport-row-grid { grid-template-columns: 1fr; }
  .tfh-driver-grid-summary { flex-direction: column; gap: 5px; }
}

/* Transport Index V2: 4D-style fixed headings with records-only scrolling. */
#tfhTransportIndexScreen .tfh-index-panel {
  grid-template-rows: auto auto auto minmax(0,1fr);
  gap: 0;
  padding: 0;
}

#tfhTransportIndexScreen .tfh-index-mode-row {
  min-height: 0;
  padding: 5px 10px;
}

#tfhTransportIndexScreen .tfh-index-filter-grid {
  padding: 7px 10px;
  gap: 6px 8px;
}

#tfhTransportIndexScreen .tfh-index-grid-toolbar {
  min-height: 36px;
  padding: 3px 10px;
  border-bottom: 1px solid rgba(17,49,84,.14);
}

.tfh-transport-index-scroll {
  position: relative;
  min-height: 0;
  overflow: auto;
  padding: 0;
  background: #fff;
  scrollbar-width: thin;
}

.tfh-transport-grid-header,
.tfh-transport-grid-row {
  width: max(100%, 1900px);
  min-width: 1900px;
  grid-template-columns:
    92px 150px 170px 105px 105px 90px 155px 105px
    minmax(190px,1.25fr) minmax(210px,1.35fr) 88px 88px 125px 145px 105px;
}

.tfh-res-grid-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  align-items: stretch;
  min-height: 34px;
  border-bottom: 1px solid #294966;
  background: linear-gradient(#71889c,#405b72);
  box-shadow: 0 2px 5px rgba(7,31,56,.18);
}

.tfh-res-grid-header .tfh-res-sort-button {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 5px 7px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: .60rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.tfh-res-grid-header .tfh-res-sort-button:hover {
  background: rgba(255,255,255,.11);
}

.tfh-res-grid-header .tfh-res-sort-button.is-active {
  color: #fff;
  background: #173f63;
  box-shadow: inset 0 -3px 0 #d8b56e;
}

.tfh-res-grid-header .tfh-res-sort-button span {
  margin-left: auto;
  color: #f2d99e;
  font-size: .60rem;
}

#tfhTransportIndexList {
  width: max(100%, 1900px);
  min-width: 1900px;
  gap: 0;
  padding: 0;
}

#tfhTransportIndexList .tfh-index-empty {
  width: min(720px, calc(100vw - 80px));
  min-height: 84px;
  margin: 18px auto;
  padding: 14px;
}

#tfhTransportIndexList .tfh-date-group {
  width: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

#tfhTransportIndexList .tfh-date-group + .tfh-date-group {
  border-top: 1px solid rgba(17,49,84,.14);
}

#tfhTransportIndexList .tfh-date-group-header {
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 0;
  background: linear-gradient(90deg,#174b78,#24689e);
}

#tfhTransportIndexList .tfh-date-group-header strong {
  font-size: .66rem;
}

#tfhTransportIndexList .tfh-date-group-rows {
  gap: 0;
}

.tfh-transport-grid-row {
  min-height: 34px;
  display: grid;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(17,49,84,.09);
  border-radius: 0;
  background: #fff;
}

.tfh-transport-grid-row:hover {
  background: #f2f7fb;
}

.tfh-transport-grid-row.is-selected {
  background: #e2eef8;
  box-shadow: inset 4px 0 0 #1d5f9f;
}

.tfh-transport-grid-row .tfh-grid-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5px 7px;
  border-right: 1px solid rgba(17,49,84,.07);
  color: #21374c;
  font-size: .64rem;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-transport-grid-row .tfh-grid-ref {
  color: #173f63;
  font-weight: 850;
}

.tfh-transport-grid-row .tfh-grid-number {
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.tfh-transport-grid-row .tfh-index-status {
  min-width: 78px;
  padding: 3px 6px;
  text-align: center;
}

/* [TFH-202:TFH_TRANSPORT_RESERVATION_INDEX:CSS-END] */
