
/* MFAE DASHBOARD COMPACT V1 */
/* Scoped to dashboard content only. */

/* Dashboard page header */
.mfae-shell .content:has(.grid) > .row.between:first-child {
  margin-bottom: 12px;
  gap: 12px;
}

.mfae-shell .content:has(.grid) > .row.between:first-child h1 {
  margin-bottom: 4px;
}

/* Compact summary cards */
.mfae-shell .content .grid {
  gap: 10px;
}

.mfae-shell .content .grid > .card {
  min-height: 108px;
  padding: 15px 16px;
  border-radius: 12px;
}

.mfae-shell .content .grid > .card b {
  display: block;
  font-size: 25px;
  line-height: 1.15;
  margin: 7px 0 5px;
}

.mfae-shell .content .grid > .card .muted {
  font-size: 12px;
  line-height: 1.4;
}

/* Tighter panel spacing */
.mfae-shell .content .panel {
  border-radius: 12px;
}

/* Compact panel headings */
.mfae-shell .content .panel h2,
.mfae-shell .content .panel h3 {
  margin-top: 0;
}

/* Buttons remain comfortably clickable */
.mfae-shell .content button {
  min-height: 35px;
}

/* Keep desktop dashboard cards in four columns */
@media (min-width: 1100px) {
  .mfae-shell .content .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tablet layout */
@media (min-width: 600px) and (max-width: 1099px) {
  .mfae-shell .content .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile layout */
@media (max-width: 599px) {
  .mfae-shell .content .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mfae-shell .content .grid > .card {
    padding: 12px;
    min-height: 95px;
  }

  .mfae-shell .content .grid > .card b {
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .mfae-shell .content .grid {
    grid-template-columns: 1fr;
  }
}
