/* Monitor pages (docs/design/workbench-ia.md): the Overview tiles, the Needs attention block, the Activity day picker and type chips, and the Customers panels.
 * Tokens come from design-tokens.css. Status color sits only on the 8px mark beside its word (see .wb-status); nothing here colors text for status. */

/* Overview tiles: a grid that goes from three columns to two to one, never a sideways page scroll. */
.mon-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.mon-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); text-decoration: none; }
.mon-tile:hover { border-color: var(--chip-on-line); background: var(--tint); }
.mon-tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.mon-tile-label { margin: 0; color: var(--muted); font: 600 14px/1.3 var(--font-body, inherit); }
.mon-tile-count { margin: 0; color: var(--navy); font: 700 34px/1.1 var(--font-display); overflow-wrap: anywhere; }
.mon-tile-detail { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.mon-tile .wb-status { white-space: normal; }

.mon-attention, .mon-security { margin: 0 0 24px; min-width: 0; }
.mon-attention h2, .mon-security h2 { margin: 0 0 10px; color: var(--navy); font: 700 20px/1.3 var(--font-display); }
.mon-attention a, .mon-security a { overflow-wrap: anywhere; }
.mon-log { margin: 0 0 24px; }

/* Activity: day picker and the action type chips. */
.mon-day-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.mon-day-bar input[type="date"] { min-height: 40px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; }
.mon-day-bar .hint { margin: 0; }
.mon-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.wb-chip { min-height: 36px; padding: 4px 14px; border-radius: 999px; }
.wb-chip[aria-pressed="true"] { background: var(--tint); border-color: var(--navy); color: var(--navy); font-weight: 700; }

/* Customers: the source space panel and the run log sit above the table and keep to the page width. */
.mon-panel { margin: 0 0 16px; }

@media (max-width: 1023px) {
  .mon-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mon-day-bar button, .wb-chip { min-height: var(--wb-touch, 40px); }
}
@media (max-width: 599px) {
  .mon-tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mon-tile { padding: 14px; }
  .mon-tile-count { font-size: 28px; }
  .mon-day-bar { flex-wrap: nowrap; gap: 6px; }
  .mon-day-bar input[type="date"] { flex: 1 1 0; min-width: 0; }
  .mon-day-bar button { flex: 0 0 auto; padding-inline: 10px; white-space: nowrap; }
  .mon-filters { gap: 10px; }
}
.mon-log:empty, .mon-panel:empty { margin: 0; }

.mon-unchecked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--warn, #b25e00); border-radius: 12px; background: var(--white); }
.mon-unchecked strong { font-size: 1rem; }

/* OVR-05: the sentence that matters is never cut mid word. The next action and the status detail wrap to as many lines as they need; WP1 owns the base rule. */
.mon-security .mon-next, .mon-attention .mon-next { display: block; -webkit-line-clamp: unset; overflow: visible; max-width: 52ch; min-width: 24ch; }
.mon-security .wb-status-detail, .mon-attention .wb-status-detail { display: block; -webkit-line-clamp: unset; overflow: visible; }
.mon-check { margin: 0 0 12px; }

/* ACT-01: one filter row of a select and two checkboxes, and the search note above the table. */
.mon-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 20px; margin: 0 0 14px; }
.mon-filters .field { margin: 0; }
.mon-filters select { min-height: 40px; }
.mon-filters .field:has(input[type="checkbox"]) { display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; min-height: 40px; }
.mon-filters input[type="checkbox"] { width: 20px; height: 20px; margin: 0; }
.mon-notice { margin: 0 0 10px; }
