/* Music Coast Admin — custom styles */

/* Force list table cells onto a single line (no wrapped ObjectIds / text). */
table td,
table th {
  white-space: nowrap !important;
}

/* Truncate long values with an ellipsis instead of wrapping. */
table td span,
table td a,
table td p,
table td > div {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* Keep wide tables INSIDE their white card: the Box that directly wraps the <table>
   becomes a horizontal scroll container, so the table never spills past the card. */
.adminjs_Box:has(> table) {
  overflow-x: auto;
  max-width: 100%;
}
table {
  width: 100%;
}

/* Boolean/status badges, action menus and reference links must not be truncated. */
table td [class*="Badge"],
table td button,
table td a[href],
table td [class*="DropDown"] {
  max-width: none;
  overflow: visible;
}
