/* Wiersze rejestru tematów prowadzą do tematu lub zadania (obsługa w app.js). */
tr[data-href] {
  cursor: pointer;
}

/* Rejestr tematów: zaokrąglona karta z lekkim cieniem, jasny nagłówek, miękkie linie.
   Tło komórek przez --bs-table-bg, żeby podświetlenie table-hover dalej działało. */
.registry-wrap {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
}

.topic-registry {
  --bs-table-hover-bg: #f5f8ff;
  border-collapse: separate;
  border-spacing: 0;
}

.topic-registry > :not(caption) > * > * {
  border-bottom-width: 0;
}

.topic-registry .registry-head > th {
  --bs-table-bg: #f6f8fb;
  --bs-table-color: #5b6778;
  border-bottom: 1px solid #e3e8ef;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.85rem 1rem;
}

.topic-registry .registry-head > th:first-child {
  border-top-left-radius: 0.75rem;
}

.topic-registry .registry-head > th:last-child {
  border-top-right-radius: 0.75rem;
}

.topic-registry .registry-head a {
  color: #5b6778;
  text-decoration: none;
}

.topic-registry .registry-head a:hover,
.topic-registry .registry-head a:focus-visible,
.topic-registry .registry-head th[aria-sort="ascending"] a,
.topic-registry .registry-head th[aria-sort="descending"] a {
  color: var(--bs-primary);
}

.topic-registry .registry-head th[aria-sort="ascending"],
.topic-registry .registry-head th[aria-sort="descending"] {
  --bs-table-bg: #eaf1fe;
  box-shadow: inset 0 -2px 0 var(--bs-primary);
}

/* Podpowiedź, że nieaktywną kolumnę można sortować (aktywna ma ▲ / ▼ w tekście). */


/* Szerokości kolumn: wąski kod (do 7 cyfr) i właściciel, najszersza nazwa tematu. */
.topic-registry {
  table-layout: fixed;
  min-width: 64rem;
}

.topic-registry .col-code {
  width: 9.5rem;
}

.topic-registry .col-type {
  width: 12rem;
}

.topic-registry .col-status {
  width: 11rem;
}

.topic-registry .col-progress {
  width: 11rem;
}

.topic-registry .col-owner {
  width: 12rem;
}

.topic-registry td {
  overflow-wrap: anywhere;
  padding: 0.8rem 1rem;
}

.topic-registry .registry-topic > td:first-child {
  white-space: nowrap;
}

/* Okno „Filtry” (natywny <dialog>, bez JS Bootstrapa). Padding na formularzu, żeby
   kliknięcie poza formularzem trafiało w tło i zamykało okno. */
.filter-dialog {
  width: min(44rem, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--bs-box-shadow-lg);
}

.filter-dialog::backdrop {
  background: rgba(33, 37, 41, 0.45);
}

.filter-dialog > form {
  padding: 1.25rem 1.5rem;
}

.filter-chip {
  font-weight: 500;
}

.filter-chip:hover {
  background-color: var(--bs-secondary-bg) !important;
}

/* Temat: biały wiersz z cienką linią nad nim i akcentem z lewej; nazwa pogrubiona. */
.topic-registry .registry-topic > td {
  --bs-table-bg: #fff;
  border-top: 1px solid #e3e8ef;
  vertical-align: middle;
}

/* Akcent jako tło, bo box-shadow komórki zajmuje podświetlenie table-hover. */
.topic-registry .registry-topic > td:first-child {
  background-image: linear-gradient(var(--bs-primary), var(--bs-primary));
  background-repeat: no-repeat;
  background-size: 3px 100%;
  font-variant-numeric: tabular-nums;
  color: #5b6778;
}

.topic-registry .registry-topic > td.topic-name {
  padding-left: 1.5rem;
  font-weight: 600;
  color: #1d2735;
}

.topic-registry tbody > .registry-topic:first-child > td {
  border-top: 0;
}

/* Zadanie: lekko przyciemnione tło, mniejszy i spokojniejszy tekst. */
.topic-registry .registry-task > td {
  --bs-table-bg: #fafbfd;
  --bs-table-color: var(--bs-secondary-color);
  font-size: 0.875em;
  border-top: 1px solid #eef1f6;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.topic-registry .registry-task .task-name {
  color: var(--bs-body-color);
  padding-left: 2.5rem;
}

.topic-registry tbody > tr:last-child > td:first-child {
  border-bottom-left-radius: 0.75rem;
}

.topic-registry tbody > tr:last-child > td:last-child {
  border-bottom-right-radius: 0.75rem;
}

/* Status tematu jako plakietka. */
.status-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  background: #eef1f6;
  color: #4a5568;
}

.status-pill.status-in_progress {
  background: #e3efff;
  color: #1a56b8;
}

.status-pill.status-completed {
  background: #def5e5;
  color: #1b7a3d;
}

/* Realizacja: cienki pasek z wartością obok. */
.progress-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mini-progress {
  flex: 1 1 auto;
  height: 0.4rem;
  min-width: 3rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebf2;
}

.mini-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--bs-primary);
}

.progress-value {
  flex: 0 0 2.6rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

/* Karta tematu: trzy sekcje (Temat, Zadania, Workflow zadania) z jednakowym nagłówkiem.
   Nagłówek karty ma ten sam odstęp poziomy co treść, więc tytuły sekcji są w jednej linii. */
.topic-card .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  background-color: var(--bs-tertiary-bg);
}

.topic-card .section-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
}

.topic-edit > summary {
  cursor: pointer;
  color: var(--bs-link-color);
}

/* E05: tabela oferentów z sześcioma kolumnami przewija się poziomo na wąskim ekranie. */
.bidder-table {
  min-width: 56rem;
}

.bidder-table .form-control {
  min-width: 7rem;
}

/* E06: pole wklejania zrzutu ekranu i podgląd obrazu. */
.paste-zone {
  border-style: dashed !important;
  cursor: copy;
}

.paste-zone:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
  color: var(--bs-body-color) !important;
}

.approval-screen {
  max-height: 28rem;
}

.topic-registry .task-toggle {
  min-width: 1.25rem;
  line-height: 1;
}

.topic-card .task-heading {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--bs-body-color);
}

/* Pasek u góry: marka, linki sekcji jako „pigułki” z zaznaczeniem aktywnej, wylogowanie z prawej. */
.topbar {
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #1d2735;
  font-weight: 700;
  text-decoration: none;
}

.topbar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--bs-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
}

.topbar-link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: #4a5568;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.topbar-link:hover,
.topbar-link:focus-visible {
  background: #eef2f8;
  color: #1d2735;
}

.topbar-link.is-active {
  background: #e3efff;
  color: #1a56b8;
  font-weight: 600;
}

.topbar-logout {
  margin-left: auto;
}

@media (max-width: 575.98px) {
  .topbar-title {
    display: none;
  }

  .topbar-links {
    order: 3;
    flex: 1 0 100%;
  }
}

/* Strona główna: powitanie, „Dla mnie na dziś” (makieta) i linki do Jira. */
.home-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: 0.9rem;
  background: linear-gradient(120deg, #0b3d91 0%, #1f6feb 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 111, 235, 0.25);
}

.home-date {
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: capitalize;
}

.home-greeting {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  font-weight: 700;
}

.home-role {
  margin-right: 0.35rem;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 500;
}

.home-cta {
  background: #fff;
  border-color: #fff;
  color: #0b3d91;
  font-weight: 600;
}

.home-cta:hover,
.home-cta:focus-visible {
  background: #eaf1fe;
  border-color: #eaf1fe;
  color: #0b3d91;
}

.home-card {
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
}

.home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.home-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d2735;
}

.home-badge-mock {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #7a8696;
}

.today-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid #eef1f5;
}

.today-item:last-child {
  border-bottom: 0;
}

.today-check {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid #c3ccd9;
  border-radius: 50%;
  color: #fff;
  font-size: 0.8rem;
}

.today-item.is-done .today-check {
  border-color: #2f9e62;
  background: #2f9e62;
}

.today-item.is-done .today-title {
  color: #7a8696;
  text-decoration: line-through;
}

.today-main {
  flex: 1;
  min-width: 0;
}

.today-title {
  font-weight: 600;
  color: #1d2735;
}

.today-meta {
  font-size: 0.8rem;
  color: #7a8696;
}

.today-tag {
  flex: none;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.today-tag-warn { background: #fff4d6; color: #8a5a00; }
.today-tag-info { background: #e3efff; color: #0b4fb3; }
.today-tag-danger { background: #fde6e6; color: #a31d1d; }
.today-tag-ok { background: #e1f6ea; color: #1d7a45; }

.jira-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e3e8ef;
  border-radius: 0.6rem;
  color: #1d2735;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

.jira-link:hover,
.jira-link:focus-visible {
  border-color: var(--bs-primary);
  background: #f5f8ff;
  transform: translateY(-1px);
}

.jira-link-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.55rem;
  background: #eaf1fe;
  color: var(--bs-primary);
  font-weight: 700;
}

.jira-link-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.jira-link-name {
  font-weight: 600;
}

.jira-link-desc {
  font-size: 0.8rem;
  color: #7a8696;
}

.jira-link-arrow {
  color: #98a3b3;
}

/* Plan tygodnia 50/30/20 i „Dla mnie na dziś” z planu. */
.home-count,
.plan-total {
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: #eaf1fe;
  color: #0b4fb3;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-total.is-over {
  background: #fde6e6;
  color: #a31d1d;
}

.today-empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
}

.today-hours {
  flex: none;
  min-width: 2.6rem;
  text-align: right;
  font-weight: 600;
  color: #1d2735;
}

.today-title {
  color: #1d2735;
  text-decoration: none;
}

.today-title:hover,
.today-title:focus-visible {
  color: var(--bs-primary);
  text-decoration: underline;
}

.today-cat-strategic { background: #e8defa; color: #5a2fa8; }
.today-cat-development { background: #dff3f0; color: #136b5f; }
.today-cat-operational { background: #fff0dc; color: #96560a; }

.plan-item-check {
  margin: 0;
  flex: none;
}

.plan-item-check .today-check {
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.plan-item-check .today-check:hover,
.plan-item-check .today-check:focus-visible {
  border-color: var(--bs-primary);
}

.today-item.is-done .plan-item-check .today-check,
.plan-item.is-done .plan-item-check .today-check {
  border-color: #2f9e62;
  background: #2f9e62;
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.plan-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.split-card {
  padding: 0.9rem 1rem;
  border: 1px solid #e3e8ef;
  border-left: 4px solid #98a3b3;
  border-radius: 0.6rem;
  background: #fafbfd;
}

.split-strategic { border-left-color: #7c4dd6; }
.split-development { border-left-color: #1f9d8a; }
.split-operational { border-left-color: #e08a1e; }

.split-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.split-name {
  font-weight: 700;
  color: #1d2735;
}

.split-pct {
  font-weight: 700;
  color: #5b6778;
}

.split-hours {
  margin-bottom: 0.5rem;
  color: #1d2735;
}

.split-card .mini-progress {
  display: block;
  width: 100%;
}

.mini-progress-bar.is-over {
  background: #d64545;
}

.split-note {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #7a8696;
}

.split-note.is-over {
  color: #a31d1d;
  font-weight: 600;
}

.plan-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 1439px) {
  .plan-days {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .plan-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .plan-days {
    grid-template-columns: minmax(0, 1fr);
  }
}

.plan-day {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.plan-day.is-today {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.18);
}

.plan-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eef1f5;
}

.plan-day-name {
  font-weight: 700;
  color: #1d2735;
}

.plan-day-date {
  font-size: 0.8rem;
  color: #7a8696;
}

.plan-day-hours {
  flex: none;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #eef1f5;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3d4958;
}

.plan-day-hours.is-over {
  background: #fde6e6;
  color: #a31d1d;
}

.plan-items {
  flex: 1;
}

.plan-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f3f7;
}

.plan-item:last-child {
  border-bottom: 0;
}

.plan-item-main {
  flex: 1;
  min-width: 0;
}

.plan-item > form {
  flex: none;
}

.plan-item-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1d2735;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.plan-item.is-done .plan-item-title {
  color: #7a8696;
  text-decoration: line-through;
}

.plan-item-meta {
  font-size: 0.75rem;
  color: #7a8696;
}

.cat-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.3rem;
  border-radius: 50%;
}

.cat-dot.cat-strategic { background: #7c4dd6; }
.cat-dot.cat-development { background: #1f9d8a; }
.cat-dot.cat-operational { background: #e08a1e; }

.plan-remove {
  padding: 0 0.3rem;
  border: 0;
  background: none;
  color: #98a3b3;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.plan-remove:hover,
.plan-remove:focus-visible {
  color: #d64545;
}

.plan-empty {
  padding: 0.75rem 0;
  font-size: 0.82rem;
  color: #98a3b3;
  text-align: center;
}

/* Godziny operacyjne w karcie dnia. */
.plan-op {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #dfe5ee;
}

.plan-op-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5b6778;
}

.plan-op-row {
  display: flex;
  gap: 0.4rem;
}

.plan-op-row .form-control {
  flex: 1 1 5rem;
}

.plan-op-note {
  margin-top: 0.35rem;
}

.plan-op-help {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: #98a3b3;
}

.today-check-static {
  border-color: #e08a1e;
}

/* Przeciąganie pozycji planu między dniami i edytor szablonu tygodnia. */
.plan-item[draggable="true"] {
  cursor: grab;
}

.plan-item.is-dragging {
  opacity: 0.45;
}

.plan-day.is-drop {
  border-color: var(--bs-primary);
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.25);
}

.tpl-table > :not(caption) > * > * {
  padding: 0.6rem 0.75rem;
}

.tpl-table thead th {
  font-size: 0.82rem;
  color: #5b6778;
  white-space: nowrap;
}

.tpl-table input {
  min-width: 5rem;
}

/* Plan tygodnia: czytelny układ pozycji w karcie dnia. */
.plan-day {
  min-width: 0;
}

.plan-item {
  align-items: flex-start;
  min-width: 0;
}

.plan-item[draggable="true"] {
  user-select: none;
}

.plan-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.45rem;
  margin-top: 0.15rem;
}

.plan-item-meta .cat-dot {
  margin-right: 0;
}

.plan-item-hours {
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #eef1f5;
  font-weight: 600;
  color: #3d4958;
}

.plan-item-tag {
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #eaf1fe;
  color: #0b4fb3;
}

.plan-remove {
  flex: none;
  align-self: flex-start;
}

.plan-op-row .form-control {
  min-width: 0;
}

/* Szablon tygodnia: sumy kategorii wobec zatwierdzonego podziału. */
.tpl-total {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e3e8ef;
  border-radius: 0.6rem;
  background: #fafbfd;
}

.tpl-total-name {
  font-weight: 700;
  color: #1d2735;
}

.tpl-total-value {
  color: #1d2735;
}

.tpl-total-msg {
  min-height: 1.1em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a31d1d;
}

.tpl-total.is-over {
  border-color: #d64545;
  background: #fde6e6;
}

.tpl-total.is-over .tpl-total-value {
  color: #a31d1d;
}

.tpl-input {
  text-align: right;
}

.tpl-input:focus {
  border-color: var(--bs-primary);
}

.tpl-table.is-invalid .tpl-input {
  border-color: #d64545;
}


/* Wersja 1.0: spokojna identyfikacja, czytelna nawigacja i zwarty proces. */
:root { --hdc-ink:#142c3c; --hdc-teal:#146f64; --hdc-muted:#62717f; --hdc-line:#dfe6e9; --bs-primary:#146f64; --bs-primary-rgb:20,111,100; --bs-link-color:#146f64; --bs-link-hover-color:#0c5048; }
.app-shell { background:#f4f6f7; color:var(--hdc-ink); font-family:Inter,"Segoe UI",Arial,sans-serif; -webkit-font-smoothing:antialiased; }
.btn-primary { --bs-btn-bg:#146f64; --bs-btn-border-color:#146f64; --bs-btn-hover-bg:#0e574e; --bs-btn-hover-border-color:#0e574e; --bs-btn-active-bg:#0b4942; --bs-btn-active-border-color:#0b4942; --bs-btn-disabled-bg:#146f64; --bs-btn-disabled-border-color:#146f64; }
.btn-outline-primary { --bs-btn-color:#146f64; --bs-btn-border-color:#146f64; --bs-btn-hover-bg:#146f64; --bs-btn-hover-border-color:#146f64; --bs-btn-active-bg:#0e574e; --bs-btn-active-border-color:#0e574e; }
.btn { font-weight:600; border-radius:.5rem; }
.ui-icon { flex-shrink:0; vertical-align:middle; }
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:3px solid #2b8e7e; outline-offset:4px; }
.form-control:focus,.form-select:focus { border-color:#2b8e7e; box-shadow:0 0 0 .2rem rgb(20 111 100 / 15%); }
.skip-link { position:fixed; top:-5rem; left:1rem; z-index:1000; padding:.8rem 1rem; background:#142c3c; color:white; border-radius:.5rem; }
.skip-link:focus { top:.8rem; color:white; }
.topbar { background:white; border-bottom:1px solid var(--hdc-line); box-shadow:none; }
.topbar-inner { min-height:84px; gap:1.5rem; }
.brand-mark { flex:0 0 auto; }
.brand-wordmark { display:flex; flex-direction:column; line-height:1.15; gap:5px; }
.topbar-title { font-size:.96rem; letter-spacing:-.025em; }
.brand-caption { color:var(--hdc-muted); font-size:.58rem; font-weight:600; letter-spacing:.15em; }
.topbar-link { border-radius:.4rem; padding:.55rem .8rem; font-size:.85rem; }
.topbar-link.is-active { color:#105b52; background:#e6f2ee; }
.topbar-logout { display:flex; gap:1rem; align-items:center; }
.topbar-user { color:var(--hdc-muted); font-size:.76rem; max-width:10rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.public-shell { background:#f5f6f3; }
.public-shell .topbar { background:transparent; border-bottom-color:#dde3df; }
.public-shell .topbar-inner { min-height:98px; }
.public-nav-link { margin-left:auto; display:flex; align-items:center; gap:.8rem; color:var(--hdc-ink); font-size:.8rem; font-weight:600; text-decoration:none; }
.welcome-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.85fr); gap:6rem; align-items:center; min-height:calc(100vh - 210px); padding:3rem 0 4rem; }
.eyebrow { font-size:.67rem; font-weight:750; letter-spacing:.14em; color:var(--hdc-teal); margin:0; }
.welcome-story > .eyebrow { display:flex; align-items:center; gap:1rem; margin-bottom:1.8rem; }
.version-label { display:inline-block; border:1px solid #c9d5ce; border-radius:3px; padding:3px 6px; letter-spacing:0; color:#5a6e62; }
.welcome-story h1 { font-size:clamp(3rem,5.4vw,5.5rem); letter-spacing:-.065em; line-height:1.04; font-weight:750; margin-bottom:1.5rem; }
.welcome-story h1 span { color:var(--hdc-teal); }
.welcome-lead { font-size:1.06rem; color:#5c6a73; line-height:1.8; margin-bottom:2.2rem; }
.welcome-features { display:grid; gap:1.2rem; margin:0 0 2.5rem; }
.welcome-features li { display:flex; gap:1rem; align-items:flex-start; }
.feature-number { color:var(--hdc-teal); font-size:.7rem; font-weight:700; padding-top:3px; font-variant-numeric:tabular-nums; }
.welcome-features h2 { font-size:.92rem; font-weight:700; margin:0 0 .3rem; }
.welcome-features p { color:var(--hdc-muted); font-size:.8rem; margin:0; }
.welcome-signoff { display:flex; align-items:center; gap:.8rem; color:#69766d; font-size:.6rem; font-weight:650; letter-spacing:.1em; }
.signoff-rule { width:35px; height:2px; background:#146f64; }
.login-panel { border:1px solid #dce4df; border-radius:1rem; background:white; padding:2.5rem; box-shadow:0 20px 55px -25px rgb(20 44 60 / 17%); }
.login-panel-heading { display:flex; align-items:center; gap:.65rem; margin-bottom:2rem; }
.login-icon { display:grid; place-items:center; width:36px; height:36px; color:#146f64; background:#eaf4ef; border-radius:.5rem; }
.login-panel h2 { font-size:1.85rem; font-weight:700; letter-spacing:-.045em; margin-bottom:.6rem; }
.login-intro { font-size:.85rem; line-height:1.6; margin-bottom:1.8rem; }
.login-panel .form-label { font-size:.8rem; font-weight:650; margin-bottom:.5rem; }
.login-panel .form-control { min-height:48px; border-color:#d5dfe0; background:#fbfcfc; border-radius:.45rem; }
.login-submit { width:100%; display:flex; justify-content:space-between; align-items:center; min-height:49px; padding:.75rem 1rem; font-size:.86rem; }
.login-access-note { border-top:1px solid #edf0ee; padding-top:1.25rem; margin:1.6rem 0 0; font-size:.72rem; color:#6a7880; line-height:1.8; }
.public-footer { border-top:1px solid #dde3df; display:flex; justify-content:space-between; gap:1rem; padding:1.5rem 0; color:#69766d; font-size:.7rem; }
.field-error { font-size:.8rem; color:#aa2e35; margin-top:.4rem; }
.home-hero { background:var(--hdc-ink); color:white; padding:1.75rem 2rem; border-radius:.85rem; margin-bottom:1.5rem; gap:1.5rem; }
.home-greeting { color:white; font-size:1.8rem; letter-spacing:-.04em; }
.home-date { color:#c0d0d8; font-size:.76rem; }
.home-role { background:rgb(255 255 255 / 9%); color:#d9e8e5; font-size:.65rem; }
.home-actions { display:flex; flex-wrap:wrap; gap:.65rem; align-items:center; }
.home-actions > .btn { display:inline-flex; align-items:center; gap:.6rem; min-height:44px; padding:.7rem .95rem; font-size:.8rem; }
.home-actions .home-cta { background:#bce9d9; border-color:#bce9d9; color:#123e35; box-shadow:none; }
.home-actions .home-cta:hover { background:#d2f2e6; border-color:#d2f2e6; color:#123e35; transform:none; }
.home-actions > .btn-outline-secondary { color:#e2e9ee; border-color:#526573; }
.home-actions > .btn-outline-secondary:hover { background:#2a4353; }
.home-card { box-shadow:none; border-color:var(--hdc-line); padding:1.25rem; }
.home-card-title { color:var(--hdc-ink); font-size:.96rem; letter-spacing:-.015em; }
.home-card-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.8rem; border-top:1px solid #edf0f2; margin-top:1rem; padding-top:1rem; }
.dashboard-text-link { display:inline-flex; align-items:center; gap:.5rem; font-size:.76rem; font-weight:650; text-decoration:none; }
.today-task-name { color:#334858; font-size:.8rem; margin-top:.2rem; }
.jira-links { display:grid; gap:.6rem; }
.jira-link { border:1px solid #dde5e9; padding:.85rem 1rem; border-radius:.55rem; margin:0; gap:1rem; background:white; }
.jira-link:hover { background:#f0f7f4; border-color:#92b5a9; transform:none; }
.jira-link-name { font-size:.85rem; }
.jira-link-desc { margin-top:.2rem; font-size:.72rem; }
.jira-link > .ui-icon { color:#607684; width:17px; height:17px; }
.compact-split { padding:1rem 1.2rem; }
.compact-split .home-card-head { margin-bottom:.65rem; gap:1rem; }
.compact-split .home-card-title { font-size:.8rem; }
.compact-split .plan-total { font-size:.75rem; }
.compact-split .split-card { padding:.55rem .75rem; border-radius:.4rem; }
.compact-split .split-top { margin-bottom:.15rem; }
.compact-split .split-name,.compact-split .split-pct { font-size:.72rem; }
.compact-split .split-hours { font-size:.75rem; margin-bottom:.35rem; }
.compact-split .split-note { font-size:.65rem; margin-top:.3rem; }
.compact-split .mini-progress { height:3px; }
.compact-split form { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem; }
.compact-split form span { font-size:.7rem; margin-left:0!important; flex:1 1 20rem; }
.compact-split .row { --bs-gutter-y:.4rem; --bs-gutter-x:.65rem; }
.plan-item-task { font-size:.75rem; color:#526576; margin-top:.2rem; overflow-wrap:anywhere; }
.plan-item-title { font-size:.78rem; line-height:1.45; }
.topic-create-card { max-width:68rem; border-color:var(--hdc-line); }
.task-input-row { display:grid; grid-template-columns:1.5rem minmax(0,1fr) 2.5rem; gap:.7rem; align-items:center; margin-bottom:.6rem; }
.task-row-number { font-size:.75rem; color:#6b7c87; font-variant-numeric:tabular-nums; text-align:center; }
.task-row-remove { background:white; color:#6b7c87; border:1px solid #dfe6e9; border-radius:.4rem; height:38px; font-size:1.25rem; }
.task-row-remove:hover { color:#a72e38; border-color:#d4a0a6; background:#fff6f7; }
.topic-registry .task-toggle { font-size:.65rem; border:1px solid #cbd8d9; border-radius:4px; padding:2px 5px!important; color:#315c55; }
.topic-registry .col-code { width:11rem; }
.workflow-scroll { position:relative; overflow-x:auto; padding:4px 4px 10px; margin-bottom:1rem; }
.workflow-track { display:grid; grid-template-columns:repeat(12,minmax(min-content,1fr)); gap:5px; min-width:58rem; margin:0; padding:0; }
.workflow-step { display:flex; min-height:48px; height:100%; align-items:flex-start; flex-direction:column; justify-content:center; gap:0; padding:.4rem .45rem; border:1px solid #dbe3e7; border-radius:.4rem; background:#f6f8f9; color:#536572; text-decoration:none; transition:background-color .15s,border-color .15s; }
.workflow-number { font-size:.73rem; font-weight:750; font-variant-numeric:tabular-nums; line-height:1; }
.workflow-title { font-size:.68rem; line-height:1.3; font-weight:700; letter-spacing:0; overflow-wrap:normal; word-break:normal; hyphens:none; }
.workflow-step:hover { color:#142c3c; background:#e7f0ec; border-color:#8eb4a6; }
.workflow-step.is-complete { background:#197447; border-color:#197447; color:white; }
.workflow-step.is-selected { outline:2px solid #183e4b; outline-offset:1px; }
.workflow-step.is-active { color:#115f54; background:#e5f3eb; border-color:#9ac8b4; }
.workflow-step.is-skipped,.workflow-step.is-disabled { background:#f6f7f8; color:#829099; border-style:dashed; }
@media (min-width:1440px) { .plan-days { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media (max-width:1199px) { .topbar-inner { gap:.75rem; } .topbar-user { display:none; } .welcome-layout { gap:3rem; } }
@media (max-width:991px) { .welcome-layout { gap:2rem; } .login-panel { padding:1.8rem; } .topbar-links { order:3; flex:1 0 100%; padding-bottom:.6rem; } .topbar-inner { padding-top:.7rem; } .topbar-logout { margin-left:auto; } }
@media (max-width:767px) { .welcome-layout { grid-template-columns:1fr; min-height:0; padding:1.5rem 0 2rem; gap:2rem; } .welcome-story h1 { font-size:3.4rem; } .welcome-features { margin-bottom:1.5rem; gap:.85rem; } .welcome-signoff { display:none; } .welcome-lead { font-size:.95rem; margin-bottom:1.5rem; } .welcome-story > .eyebrow { margin-bottom:1rem; } .login-panel { padding:1.6rem; } .login-panel-heading { margin-bottom:1.2rem; } .public-footer { flex-direction:column; gap:.4rem; } .home-hero { padding:1.4rem; } .home-greeting { font-size:1.5rem; } .home-actions { width:100%; } .home-actions .home-cta { width:100%; justify-content:space-between; } .compact-split .home-card-head { flex-wrap:wrap; gap:.35rem; } .public-nav-link { font-size:.7rem; gap:.4rem; } }
@media (max-width:575px) { .topbar-title { display:block; font-size:.8rem; } .brand-caption { font-size:.5rem; } .topbar-link { padding:.5rem .65rem; font-size:.76rem; } .public-shell .topbar-inner { min-height:80px; } .public-nav-link .ui-icon { display:none; } .brand-mark { width:30px; height:30px; } .task-input-row { gap:.4rem; grid-template-columns:1.2rem minmax(0,1fr) 2rem; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }

/* Wersja 1.1: tabela procesu przewija się we własnej ramce. */
.process-table { min-width: 880px; }
.process-table td { min-width: 120px; }
.process-table td:nth-last-child(-n+2) { min-width: 55px; }
.topic-registry .col-priority { width: 8rem; }
