/* =========================
   Engineer Select Dark Fix
========================= */

.page-mileage select,
.page-ot select,
.page-mileage select option,
.page-ot select option {
  background-color: #020617 !important;
  color: #e5e7eb !important;
}

/* Hover */
.page-mileage select option:hover,
.page-ot select option:hover {
  background-color: #0f172a !important;
  color: #38bdf8 !important;
}

/* Selected */
.page-mileage select option:checked,
.page-ot select option:checked {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
}

/* =========================
   Engineer Layout FIX
========================= */

.page-ot .dashboard-wrapper,
.page-mileage .dashboard-wrapper {
  max-width: 1100px;   /* ใช้ค่าที่คุณเคยพอใจ */
  margin: 30px auto;
  padding: 20px;
}


/* =========================
   Mileage Responsive Switch
========================= */

/* ===== Desktop (default) ===== */
.mileage-table-desktop {
  display: block;
}

.mileage-cards {
  display: none;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

  .mileage-table-desktop {
    display: none;
  }

  .mileage-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
}

/* =========================
   Mileage Card Style
========================= */

.mileage-card {
  background: radial-gradient(circle at top, #0b1220, #020617);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow:
    inset 0 0 0 1px rgba(56,189,248,.05),
    0 10px 25px rgba(0,0,0,.35);
}

.mileage-card .row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.mileage-card .row span {
  color: #94a3b8;
}

.mileage-card .row strong {
  color: #e5e7eb;
  font-weight: 600;
  word-break: break-word;
}

.mileage-card .actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #1e293b;
  display: flex;
  justify-content: center;
}

