#truck-rows {
  text-align: center;
}

.septic-truck-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";

  display: flex;
  flex-direction: column;
}

.truck-grid {
  display: flex;
  width: 90%;
  flex-direction: column;
  gap: 12px;
  margin: 20px auto;
}

.truck-card {
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 12px;
  text-align: left;
  line-height: normal;
  min-width: 290px;
}

.truck-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.truck-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
}

.truck-info {
  flex: 1;
}

.truck-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  color: #036338;
}
.truck-name p {
  font-size: 20px
}

.truck-info p {
  margin: 3px 0;
  font-size: 14px;
  color: #f4891f !important
}

.truck-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0;
}

.truck-rating p {
  margin: 0;
}

.stars {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: #ccc;
}

.stars::before {
  content: "★★★★★";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--percent, 0%);
  overflow: hidden;
  color: #fbc531;
}

.truck-card p {
  margin: 6px 0;
}

.truck-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.truck-btn {
  width: 50%;
  text-align: center;
  display: inline-block;
  padding: 10px 0;
  border-radius: 6px;
  text-decoration: none;
  color: #fff !important;
  font-weight: bold;
  transition: 0.2s ease;
}

.truck-btn:hover {
  opacity: 0.9;
}

.truck-call {
  background: #27ae60;
}

.truck-zalo {
  background: #2980b9;
}

/* =========================
   ADMIN TABLE
========================= */

.widefat input[name*="[name]"] {
  width: 180px;
}

.widefat input[name*="[vehicle_type]"] {
  width: 140px;
}

.widefat input[name*="[years]"],
.widefat input[name*="[point_count]"],
.widefat input[name*="[cases]"] {
  width: 90px;
}

.widefat input[name*="[warranty]"] {
  width: 100px;
}

.widefat thead tr th {
  text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 700px) {

  .truck-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .truck-card {
    width: 320px;
  }

  .truck-image {
    width: 100px;
    height: 100px;
  }

  .truck-buttons {
    flex-direction: row;
  }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 699px) {

  .truck-header {
    align-items: flex-start;
  }

  .truck-image {
    width: 80px;
    height: 80px;
  }

  .truck-name {
    font-size: 18px;
  }

  .truck-btn {
    font-size: 14px;
    padding: 9px 0;
  }

}




/* Desktop chỉ hiện 2 xe */
@media (min-width: 700px) {

  .truck-grid .truck-card:nth-child(n+3) {
    display: none;
  }

}

/* Mobile hiện đầy đủ 5 xe */
@media (max-width: 699px) {

  .truck-grid .truck-card {
    display: block;
  }

}
/* =========================
   MOBILE
========================= */

@media (max-width: 699px) {

  .truck-header {
    align-items: flex-start;
  }

  .truck-image {
    width: 80px;
    height: 80px;
  }

  .truck-name {
    font-size: 18px;
  }

  .truck-btn {
    font-size: 14px;
    padding: 9px 0;
  }

}

/* THÊM ĐOẠN NÀY Ở DƯỚI */
@media (min-width: 700px) {

  .truck-grid .truck-card:nth-child(n+3) {
    display: none;
  }

}

@media (max-width: 699px) {

  .truck-grid .truck-card {
    display: block;
  }

}