/* Utility helpers to replace inline styles used across views */

:root {
  --muted-fallback: #666666;
}

/* Spacing helpers */
.mb-1 { margin-bottom: 1rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-1-5 { margin-top: 1.5rem; }
.m-0 { margin: 0; }
.m-top-small { margin: 0.5rem 0 0 0; }
/* Small left margin helper */
.ml-1 { margin-left: 0.75rem; }

/* Text helpers */
.muted-text { color: var(--text-muted); }
.muted-light { color: var(--muted-fallback); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.9rem; }

/* Link helpers */
.link-muted { text-decoration: none; color: inherit; }

/* Inline code */
.code-inline { background: var(--gray-100); padding: 0.25rem 0.5rem; border-radius: 3px; }

/* Form helpers */
.block-label { display: block; }

/* Tables used by admin-style views */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table--spaced { margin-top: 1.5rem; }
.admin-table th, .admin-table td { padding: 0.75rem; }
.admin-table th { font-weight: 600; }
.admin-table thead tr { border-bottom: 2px solid var(--border-subtle, #E5E7EB); }
.admin-table tbody tr { border-bottom: 1px solid var(--border-subtle, #E5E7EB); }
.row-clickable { cursor: pointer; }

/* Alignment helpers */
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* Small status badges */
.badge { padding: 0.25rem 0.75rem; border-radius: 3px; color: white; font-size: 0.875rem; display: inline-block; }
.badge--status-balanced { background: var(--status-balanced); }
.badge--status-overload { background: var(--status-overload); }
.badge--muted { background: var(--gray-200); color: var(--text); text-transform: capitalize; padding: 0.25rem 0.75rem; border-radius: 3px; font-size: 0.875rem; }

/* Divider */
.hr-divider { margin: 1.5rem 0; border: none; border-top: 1px solid var(--border-subtle); }

/* Flex helpers */
.flex-between-center { display: flex; justify-content: space-between; align-items: center; }
.flex-gap-md { display: flex; gap: 0.75rem; }

/* Heading helpers */
.h-sub { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.font-semibold { font-weight: 600; }

/* Simple card used for muted info blocks */
.card-muted { background: var(--gray-100); padding: 1.5rem; border-radius: 6px; }

/* Organisation name in navbar */
.org-name { margin-left: 0.5rem; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }

/* Small top margin (used for tight text blocks) */
.mt-0-5 { margin-top: 0.5rem; }


