.cvma-miles-wrap { max-width: 900px; margin: 0 auto; }
.cvma-card { background: #fff; padding: 16px; border: 1px solid #ddd; border-radius: 10px; margin: 16px 0; }
.cvma-card label { display:block; margin-top: 10px; font-weight: 600; }
.cvma-card input, .cvma-card select, .cvma-card textarea { width: 100%; padding: 8px; margin-top: 6px; }
.cvma-card button { margin-top: 12px; padding: 10px 14px; cursor: pointer; }
.cvma-notice { background:#f2f9ff; border:1px solid #b6dcff; padding:10px; border-radius:8px; margin: 10px 0; }

.cvma-report table { border-collapse: collapse; width: 100%; margin-top: 10px; }
.cvma-report th, .cvma-report td { border: 1px solid #ccc; padding: 8px; }

/* CVMA: ensure UM Miles Rode value isn't hidden */
.um-field-miles_rode .um-field-area,
.um-field-miles_rode .um-field-value {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

@media print {
  button, form { display: none !important; }
  .cvma-card { border: none; }
}

/* =========================
   CVMA Miles Dashboard - Mobile Friendly
   ========================= */

/* Make the wrapper breathe */
.cvma-miles-wrap{
  padding: 12px;
}

/* Cards stack nicely */
.cvma-card{
  max-width: 100%;
}

/* Forms: stack + full width */
.cvma-card form{
  display: block;
}

.cvma-card label{
  display: block;
  margin: 10px 0 6px;
}

.cvma-card input[type="text"],
.cvma-card input[type="number"],
.cvma-card input[type="date"],
.cvma-card select,
.cvma-card textarea{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Buttons: easier to tap */
.cvma-card button,
.cvma-card .button,
.cvma-card a.button{
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  font-size: 16px; /* helps prevent iOS zoom */
}

/* Reports table: allow horizontal scroll on small screens */
.cvma-report{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cvma-report table{
  width: 100%;
  min-width: 600px; /* forces scroll instead of squishing columns */
  border-collapse: collapse;
}

/* =========================
   Mobile breakpoint
   ========================= */
@media (max-width: 768px){

  /* Reduce big headings */
  .cvma-miles-wrap h2{
    font-size: 20px;
    margin-bottom: 12px;
  }

  .cvma-card h3{
    font-size: 18px;
    margin-bottom: 10px;
  }

  /* Cards tighter spacing */
  .cvma-card{
    padding: 14px;
    margin: 12px 0;
  }

  /* Stack report buttons */
  #cvma-report-form button,
  #cvma-report-form .button,
  #cvma-report-form a.button{
    width: 100%;
    text-align: center;
  }

  #cvma-report-form button + button,
  #cvma-report-form button + a.button,
  #cvma-report-form a.button + button{
    margin-left: 0 !important;
    margin-top: 10px;
  }

  /* Make selects + inputs bigger tap targets */
  .cvma-card select,
  .cvma-card input,
  .cvma-card textarea{
    padding: 10px;
    font-size: 16px;
  }
}