/* ARMA UI Custom Styles */

/* Navigation active state */
nav a.active {
  font-weight: bold;
  text-decoration: underline;
}

/* Action bar */
.action-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem 0;
}

/* Status badges */
.badge-success {
  background-color: var(--pico-color-green-550);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.badge-disabled {
  background-color: var(--pico-color-grey-500);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Small buttons */
button.small {
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
}

/* Dialog styling */
dialog article {
  max-width: 600px;
  width: 90vw;
}

dialog article header {
  margin-bottom: 1rem;
}

dialog article footer {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pico-muted-border-color);
}

/* Filter grid */
details .grid {
  margin-bottom: 1rem;
}

/* Table improvements */
table th, table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

table td:last-child {
  display: flex;
  gap: 0.25rem;
}

/* Loading state */
[aria-busy="true"] {
  text-align: center;
  padding: 2rem !important;
}
