/* Machine monitoring (AssetMonitoring, M18): the period and the key figures, then one panel per measured family, two a row.
   Charts, key figures and the family hues are the library's (Breckly.UI metrics.css); only the layout lives here. */
/* One column that never grows past the page: the period selector scrolls inside it (.segmented) instead of widening every card. */
.mon { display: grid; grid-template-columns: minmax(0, 1fr); gap: 17px; align-content: start; min-width: 0; }
.mon-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
/* The source, « Données partielles » and « Mise à jour… » share one line of a fixed basis beside the period, whatever they say: the
   head keeps its height when they land or come and go (a longer source ends in an ellipsis, whole in its tooltip). */
.mon-note { display: flex; align-items: center; gap: 4px 16px; flex: 1 1 240px; min-width: 0; min-height: 17.25px; }
.mon-source { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mon-note > :not(.mon-source) { flex: none; }
.mon-live { margin-left: auto; }
/* « Données partielles »: a window of the period could not be read; muted, its icon in the waiting tone, the reason in a tooltip. */
.mon-partial { display: inline-flex; align-items: center; gap: 4px; cursor: default; }
.mon-partial .icon { color: var(--wait-mark); }
.mon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; align-items: start; }
.mon-sub { margin: 15px 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mon-sub.data { font-family: var(--font-data); font-size: 0.86em; font-weight: 500; }
.mon-none { margin: 12px 0 0; }
.mon-foot { margin: 0; }
.mon-install { display: block; margin-top: 10px; }
.mon-compact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
/* « ● En direct » (M18-04): a small toggle whose dot turns to the online mark and breathes while live samples stream. */
.mon-live-toggle { gap: 7px; }
.mon-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: 0.55; flex: none; }
.mon-live-toggle.is-on { border-color: color-mix(in oklab, var(--ok-mark) 45%, var(--line-strong)); background: color-mix(in oklab, var(--ok-mark) 9%, var(--surface)); color: var(--ink); }
.mon-live-toggle.is-on .mon-live-dot { background: var(--ok-mark); opacity: 1; box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok-mark) 22%, transparent); animation: mon-breathe 2s ease-in-out infinite; }
.mon-live-toggle.is-connecting .mon-live-dot { background: var(--wait-mark); box-shadow: none; }
@keyframes mon-breathe { 50% { box-shadow: 0 0 0 5px color-mix(in oklab, var(--ok-mark) 8%, transparent); } }
.mon-procs { grid-column: 1 / -1; }
.mon-procs .dt-table td .data { font-family: var(--font-data); font-size: 0.92em; }
.mon-proc { display: grid; gap: 2px; min-width: 0; }
.mon-proc-sub { display: none; font-size: 11.5px; }
.mon-compact .mon-head { margin-bottom: 4px; }
.mon-compact .mon-sub { margin-top: 10px; }

@media (max-width: 960px) {
  .mon-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) { .mon-proc-sub { display: block; } }
@media (prefers-reduced-motion: reduce) { .mon-live-toggle.is-on .mon-live-dot { animation: none; } }
@media (max-width: 640px) {
  .mon-head .range-wrap, .mon-head .range-sel { width: 100%; }
  .mon-head .range-sel button { flex: 1; }
  /* On a phone the source has its own line under the period, room for two. */
  .mon-note { flex-basis: 100%; align-items: flex-start; min-height: 34.5px; }
  .mon-source { flex: 1 1 auto; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .mon-live { margin-left: 0; }
}

/* « Supervision » of the Endpoint settings (MetricRetentionPanel, M18-03): plain choices that wrap on a phone, the estimated space. */
.mr-soon { margin: 14px 0 4px; }
.mr-choices { flex-wrap: wrap; max-width: 100%; }
.mr-estimate { display: flex; gap: 7px; align-items: flex-start; margin: 4px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.mr-estimate .icon { flex: none; margin-top: 2px; color: var(--ink-3); }
