/* Mitigation actions: the Actions tab, the hazard workbench panel and the
   Results prompt. Loads after application.css (alphabetical). */
.act-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; }
.act-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid #c3d0e0; background: #fff; color: var(--ink); font-size: 0.8125rem; font-weight: 600; text-decoration: none; }
.act-filter .num { color: var(--muted); font-weight: 700; }
.act-filter:hover { border-color: var(--blue); color: var(--blue-700); }
.act-filter[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.act-filter[aria-current="page"] .num { color: #fff; }
.act-filter--overdue:not([aria-current]) .num { color: var(--danger); }
.act-group + .act-group, .act-group + .act-unplanned { margin-top: 16px; }
.act-group__title { font-size: 1rem; }
.act-group__title a { color: var(--ink); text-decoration: none; }
.act-group__title a:hover { color: var(--blue-700); text-decoration: underline; }
.act-list { list-style: none; margin: 0; padding: 0; }
.act-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 8px 20px; align-items: start; padding: 14px 22px; border-top: 1px solid var(--line-soft); }
.act-row:first-child { border-top: 0; }
.act-row:target { background: #fff8e6; }
.act-row__title { font-size: 0.9375rem; font-weight: 700; }
.act-row__title a { color: var(--ink); text-decoration: none; }
.act-row__title a:hover { color: var(--blue-700); text-decoration: underline; }
.act-row.is-done .act-row__title a { color: var(--muted); }
.act-row__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 3px; color: var(--ink-2); }
.act-row__details { margin-top: 4px; color: var(--muted); max-width: 70ch; }
.act-row__update { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.act-row__note { color: var(--ink); }
.act-overdue { display: inline-flex; align-items: center; gap: 4px; color: var(--danger); font-weight: 700; }
.act-select { min-height: 36px; padding: 5px 30px 5px 10px; font-size: 0.875rem; font-weight: 600; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b2238' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; transition: box-shadow .4s, border-color .2s; }
.act-select.is-saved { border-color: var(--ok); box-shadow: 0 0 0 3px rgb(44 122 75 / .15); }
.act-select.is-error { border-color: var(--danger); }
.act-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.8125rem; }
.act-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.act-status--not_started { color: var(--muted); }
.act-status--not_started::before { background: transparent; border: 1.5px solid currentColor; }
.act-status--in_progress { color: var(--warn); }
.act-status--done { color: var(--ok); }
.act-status--deferred { color: var(--ink-2); }
.act-status--deferred::before { background: transparent; border: 1.5px dashed currentColor; }
.act-unplanned__list { list-style: none; margin: 10px 0 0; padding: 0; }
.act-unplanned__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 0.875rem; }
.act-unplanned__list li:first-child { border-top: 0; }
.act-unplanned__list b { display: inline-block; min-width: 2ch; color: var(--muted); }
.act-unplanned h2 { font-size: 1rem; margin-bottom: 4px; }
.act-hazard { margin-top: 20px; }
.act-quickadd { flex-wrap: wrap; align-items: flex-end; }
.act-quickadd__field { display: grid; gap: 4px; }
.act-quickadd__field label { font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.act-quickadd__title { flex: 1 1 240px; }
.act-quickadd .btn { min-height: 36px; }
.no-action { display: block; color: var(--muted); margin-top: 2px; }
.empty h2 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 720px) {
  .act-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .act-row__status { max-width: 200px; }
  .act-quickadd__field:not(.act-quickadd__title) { flex: 1 1 140px; }
}
@media print {
  .report .table td .muted { color: #4c5c70; }
}
