/* F-56 Akcje: tablica z przeciąganiem (Otwarte, W toku, Parking, Zrobione), oś czasu ze ścieżkami, filtry.
   Only .act-* classes; loaded by views/actions.js on first use. */

/* status colours: --st (line, text) and --st-soft (fill) */
.act .st-open { --st: var(--blue); --st-soft: var(--blue-soft); }
.act .st-in_progress { --st: var(--orange); --st-soft: var(--orange-soft); }
.act .st-parked { --st: var(--ink-3); --st-soft: #EFF2F7; }
.act .st-done { --st: var(--ok); --st-soft: var(--ok-soft); }
.act .overdue { --st: var(--bad); --st-soft: var(--bad-soft); }

/* filters and summary */
.act-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.act-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.act-f select { height: 32px; width: auto; min-width: 150px; max-width: 230px; padding: 0 8px; font-size: 13px; }
.act-f.act-f-check { flex-direction: row; align-items: center; gap: 6px; height: 32px; cursor: pointer; }
.act-f.act-f-check input { width: 16px; height: 16px; margin: 0; }
.act-sum { margin: 0; font-size: 13px; color: var(--ink-2); }

/* layout: the board or the timeline, the Pareto beside it on wide screens and below on narrower ones */
.act-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1500px) { .act-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.act-main { min-width: 0; }

/* board */
.act-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 1100px) { .act-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .act-board { grid-template-columns: minmax(0, 1fr); } }
.act-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; background: var(--line-2); border: 1px solid var(--line); border-top: 3px solid var(--st); border-radius: var(--radius); }
.act-col-h { display: flex; align-items: center; gap: 8px; }
.act-col-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-3); }
.act-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.act-col-add { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--navy); font: 700 17px/1 var(--font); cursor: pointer; }
.act-col-add:hover, .act-col-add:focus-visible { border-color: var(--orange); color: var(--orange-d); }
.act-col-hint { margin: 0; font-size: 11.5px; color: var(--ink-3); }
.act-col-b { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 96px; padding: 3px; border: 2px dashed transparent; border-radius: 9px; transition: background-color .12s, border-color .12s; }
.act-board.act-dnd .act-col-b { border-color: #C9D2E3; }
.act-board .act-col-b.act-over { border-color: var(--orange); background: var(--orange-soft); }
.act-empty { margin: auto 0; padding: 14px 6px; text-align: center; font-size: 12px; color: var(--ink-3); }

.act-card { display: grid; gap: 4px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--st); border-radius: 9px; font-size: 12.5px; cursor: grab; box-shadow: 0 1px 2px rgba(18,37,90,.05); }
.act-card:hover { border-color: #C9D2E3; border-left-color: var(--st); }
.act-card.st-parked { background: repeating-linear-gradient(135deg, #fff 0 8px, #F7F8FB 8px 16px); }
.act-card.st-done { opacity: .72; }
.act-card.act-dragging { opacity: .4; cursor: grabbing; }
.act-card-t { border: 0; background: none; padding: 0; font: 700 13px/1.35 var(--font); color: var(--navy-3); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.act-card-t:hover { color: var(--orange-d); text-decoration: underline; }
.act-card-m { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--ink-2); }
.act-late { color: var(--bad); font-weight: 650; }
.act-card-f { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.act-card-f .act-st { flex: 1; min-width: 0; width: auto; height: 28px; padding: 0 6px; font-size: 12px; }
.act-card-f .act-edit { width: 28px; height: 28px; }

/* timeline */
.act-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-2); }
.act-legend i { display: inline-block; width: 16px; height: 10px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--st); border-radius: 3px; background: var(--st-soft); }
.act-legend .st-parked i { border-style: dashed; background: repeating-linear-gradient(135deg, #F4F6FA 0 3px, #D5DCE7 3px 6px); }
.act-tl { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.act-tl-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
@media (max-width: 600px) { .act-tl-grid { grid-template-columns: 110px minmax(0, 1fr); } }
.act-tl-corner { position: sticky; left: 0; z-index: 4; padding: 9px 10px; background: #F8FAFD; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.act-tl-axis { position: relative; height: 34px; background: #F8FAFD; border-bottom: 1px solid var(--line); overflow: hidden; }
.act-tl-tick { position: absolute; bottom: 0; height: 18px; padding-left: 5px; border-left: 1px solid var(--line); font-size: 11.5px; line-height: 16px; color: var(--ink-2); white-space: nowrap; }
.act-tl-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--orange); z-index: 1; pointer-events: none; }
.act-tl-today-l { position: absolute; top: 1px; transform: translateX(-50%); z-index: 2; padding: 0 4px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 14px; }
.act-tl-lane-h { position: sticky; left: 0; z-index: 3; display: flex; align-items: flex-start; gap: 6px; padding: 9px 10px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line-2); font-size: 12.5px; font-weight: 650; color: var(--navy-3); overflow-wrap: anywhere; }
.act-tl-lane-h > span:first-child { flex: 1; min-width: 0; }
.act-tl-lane-h.none { color: var(--ink-3); font-style: italic; }
.act-tl-track { position: relative; min-height: 36px; border-bottom: 1px solid var(--line-2); }
.act-tl-gl { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--line-2); }
.act-bar { position: absolute; z-index: 2; height: 22px; min-width: 10px; padding: 0 6px; overflow: hidden; border: 1px solid var(--st); border-radius: 6px; background: var(--st-soft); color: var(--navy-3); font: 600 11.5px/20px var(--font); text-align: left; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.act-bar:hover, .act-bar:focus-visible { z-index: 3; box-shadow: 0 2px 8px rgba(14,28,69,.18); outline: none; }
.act-bar.st-parked { border-style: dashed; color: var(--ink-2); background: repeating-linear-gradient(135deg, #F4F6FA 0 5px, #E3E8F0 5px 10px); }
.act-bar.st-done { color: #145C33; }
.act-bar.overdue { color: #8A2414; }
.act-bar.overdue b { font-weight: 750; }
.act-bar.nodue { border-right-style: dashed; }

/* Pareto of causes with "+ akcja" */
.pareto-row.act-par-row { grid-template-columns: minmax(0, 1.3fr) minmax(40px, 1fr) auto auto; gap: 8px; }
.act-par-row .act-par-add { height: 24px; padding: 0 7px; font-size: 12px; }
