/* attention.css — ATT GÖRA (attention.js): samma lista i Hem (datorn) och i mobilens hem.
 * Färgerna lånas av sidan: datorns text-, border- och bg-variabler, eller mobilens ink, soft, line och surface.
 * Mobilens omslag heter m-todo (m-att är bilagorna i mobilen). */
.att { --att-text: var(--text-primary, var(--ink, #14171a)); --att-muted: var(--text-muted, var(--faint, #6b7280)); --att-soft: var(--text-secondary, var(--soft, #4b5563));
  --att-line: var(--border-subtle, var(--line, #e8ebef)); --att-line2: var(--border-default, var(--line-strong, #d6dae0)); --att-bg: var(--bg-surface, var(--surface, #fff));
  --att-hover: var(--bg-hover, var(--accent-soft, rgba(37, 99, 235, .08))); --att-accent: var(--accent, #2563eb); --att-late: var(--error, #c2410c); --att-warn: var(--warning, var(--warn, #b45309));
  display: flex; flex-direction: column; gap: 18px; color: var(--att-text); }
.att-grp { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.att-gh { display: flex; align-items: baseline; gap: 6px; margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--att-muted); }
.att-n { font-size: 11.5px; font-weight: 600; letter-spacing: 0; color: var(--att-muted); font-variant-numeric: tabular-nums; }
.att-grp.is-approval .att-gh, .att-grp.is-confirm .att-gh { color: var(--att-warn); }
.att-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.att-row { display: flex; align-items: center; gap: 8px; min-width: 0; border-radius: 8px; transition: opacity .25s, transform .25s; }
.att-row:hover { background: var(--att-hover); }
.att-row.is-done { opacity: .35; transform: translateX(6px); pointer-events: none; }
.att-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent;
  color: inherit; font: inherit; text-align: start; cursor: pointer; }
.att-main:disabled { cursor: default; }
.att-main:focus-visible, .att-act:focus-visible, .att-all:focus-visible { outline: 2px solid var(--att-accent); outline-offset: -2px; }
.att-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.att-what { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-sub { font-size: 12px; color: var(--att-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-when { flex: none; font-size: 12px; color: var(--att-muted); white-space: nowrap; }
.att-when.is-late { color: var(--att-late); font-weight: 500; }
.att-tag { flex: none; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.att-tag.is-us { color: var(--att-warn); background: color-mix(in srgb, var(--att-warn) 12%, transparent); }
.att-tag.is-them { color: var(--att-accent); background: color-mix(in srgb, var(--att-accent) 12%, transparent); }
.att-acts { flex: none; display: inline-flex; gap: 4px; padding-right: 6px; }
.att-act { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--att-line2); background: var(--att-bg); color: var(--att-text); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.att-act:hover { border-color: var(--att-accent); color: var(--att-accent); }
.att-act.is-primary { background: var(--att-accent); border-color: var(--att-accent); color: #fff; }
.att-act.is-primary:hover { filter: brightness(1.08); color: #fff; }
.att-act:disabled { opacity: .5; cursor: default; }
.att-all { align-self: flex-start; margin: 2px 0 0 10px; padding: 2px 0; border: 0; background: none; color: var(--att-accent); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.att-empty { margin: 0; padding: 6px 10px; font-size: 13px; color: var(--att-muted); }

/* Smalt (och mobilen): handlingarna under texten i stället för bredvid. */
@media (max-width: 560px) {
  .att-row { flex-wrap: wrap; row-gap: 0; }
  .att-main { flex-basis: calc(100% - 90px); }
  .att-acts { flex-basis: 100%; padding: 0 10px 8px; }
  .att-act { height: 36px; padding: 0 14px; }
}
/* Mobilen: större träffytor och kortet som yta. */
.m-todo .att-grp { padding: 10px 6px 8px; border: 1px solid var(--att-line); border-radius: 14px; background: var(--att-bg); }
.m-todo .att-gh { padding: 0 8px; font-size: 13px; }
.m-todo .att-main { min-height: 44px; }
.m-todo .att-what { font-size: 15px; }
.m-todo .att-sub { font-size: 13px; }
.m-todo .att-act { min-height: 40px; height: auto; font-size: 14px; }
.m-todo .att-all { min-height: 36px; margin-left: 8px; font-size: 14px; }
.m-todo .att-empty { padding: 12px 4px; font-size: 15px; }
