/* ===== INSTRUCTION PAGE ===== */

.page-content {
  background: #f8faf7;
}

.instruction-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 28px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.instruction-article {
  min-width: 0;
}

.instruction-sidebar {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== BACK ===== */

.instruction-back {
  display: inline-flex;
  margin-bottom: 26px;
  color: #2f7d3b;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.instruction-back:hover {
  text-decoration: underline;
}

/* ===== HERO ===== */

.instruction-hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 30px;
}

.instruction-icon {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 14px;
  background: linear-gradient(135deg, #edf5ea, #f8fbf5);
  color: #17833a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instruction-icon-symbol {
  font-size: 4.8rem;
  line-height: 1;
  font-weight: 800;
}

.instruction-icon-check {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #16833a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 4px solid #edf5ea;
}

.instruction-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.instruction-title-row h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #111827;
}

.instruction-intro {
  margin: 22px 0 0;
  max-width: 760px;
  color: #344054;
  font-size: 1.02rem;
  line-height: 1.75;
}

.instruction-print {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid #9cc7a4;
  background: #ffffff;
  color: #1f5130;
  font-weight: 700;
  cursor: pointer;
}

.instruction-print:hover,
.instruction-print:focus {
  background: #eef7ef;
}

/* ===== META ===== */

.instruction-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 42px 0 0;
}

.instruction-meta div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.instruction-meta dt {
  color: #344054;
  font-size: 0.95rem;
}

.instruction-meta dd {
  margin: 0;
  color: #147a35;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ===== INFO BOX ===== */

.instruction-info-box {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 34px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid #dce9dd;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.instruction-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #18833b;
  color: #18833b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

.instruction-info-content h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #122033;
}

.instruction-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 22px;
  border-radius: 8px;
  background: #0f7d38;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.instruction-info-button:hover {
  background: #0b6530;
}

/* ===== CARDS ===== */

.instruction-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.instruction-card {
  background: #ffffff;
  border: 1px solid #e1e9e1;
  border-radius: 12px;
  padding: 22px;
}

.instruction-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #122033;
}

.instruction-card p {
  margin: 0 0 16px;
  color: #475467;
}

.instruction-card a {
  color: #147a35;
  font-weight: 700;
  text-decoration: none;
}

/* ===== MAIN STEPS ===== */

.instruction-main {
  margin-top: 24px;
}

.instruction-main > h2 {
  margin: 0 0 24px;
  font-size: 1.55rem;
  color: #111827;
}

.instruction-timeline {
  position: relative;
}

.instruction-timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 36px;
  bottom: 36px;
  width: 1px;
  background: #d9e4d7;
}

.instruction-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(220px, 320px);
  gap: 24px;
  padding: 0 0 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e6ece5;
}

.instruction-step-number {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #16833a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.instruction-step-content h3 {
  margin: 4px 0 10px;
  font-size: 1.08rem;
  color: #122033;
}

.instruction-step-image {
  margin: 0;
  align-self: start;
}

.instruction-step-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dce5dc;
  border-radius: 14px;
  background: #ffffff;
}

.instruction-step-image figcaption {
  margin-top: 8px;
  color: #667085;
  font-size: 0.85rem;
}

/* ===== RICHTEXT ===== */

.instruction-richtext p {
  margin: 0 0 12px;
  color: #344054;
  line-height: 1.7;
}

.instruction-richtext ul,
.instruction-richtext ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.instruction-richtext li {
  margin-bottom: 8px;
  color: #344054;
}

.instruction-richtext strong {
  color: #122033;
}

.instruction-richtext a {
  color: #147a35;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 122, 53, 0.3);
}

/* ===== ALERTS ===== */

.instruction-alert {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 10px;
}

.instruction-alert h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.instruction-alert-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.instruction-alert--info {
  background: #f2f8f3;
  border: 1px solid #d6e9d8;
}

.instruction-alert--info .instruction-alert-icon {
  color: #147a35;
  border: 2px solid #147a35;
}

.instruction-alert--warning {
  background: #fffaf0;
  border: 1px solid #f1d9a4;
}

.instruction-alert--warning .instruction-alert-icon {
  color: #b7791f;
  border: 2px solid #b7791f;
}

.instruction-alert--danger {
  background: #fff5f5;
  border: 1px solid #f0b8b8;
}

.instruction-alert--danger .instruction-alert-icon {
  color: #b42318;
  border: 2px solid #b42318;
}

/* ===== FEEDBACK ===== */

.instruction-feedback {
  margin-top: 34px;
  padding: 22px 26px;
  background: #ffffff;
  border: 1px solid #dce7dc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.instruction-feedback h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #344054;
}

.instruction-feedback-actions {
  display: flex;
  gap: 16px;
}

.instruction-feedback button {
  min-width: 130px;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid #b8d4bc;
  background: #ffffff;
  color: #1f5130;
  font-weight: 700;
  cursor: pointer;
}

.instruction-feedback button:hover,
.instruction-feedback button:focus {
  background: #eef7ef;
}

/* ===== SIDEBAR ===== */

.instruction-side-card {
  background: #ffffff;
  border: 1px solid #e1e7df;
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.instruction-side-card h2 {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1ed;
  font-size: 1.2rem;
  color: #122033;
}

.instruction-side-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.instruction-side-list div {
  display: grid;
  gap: 4px;
}

.instruction-side-list dt {
  color: #667085;
  font-size: 0.92rem;
}

.instruction-side-list dd {
  margin: 0;
  color: #147a35;
  font-size: 0.95rem;
  font-weight: 700;
}

.access-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-option {
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #f7faf7;
}

.access-option strong {
  display: block;
  color: #122033;
  font-size: 0.92rem;
}

.access-option span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.5;
}

.access-option.is-active {
  border-color: #9cc7a4;
  background: #f0f8f1;
}

.access-option.is-active strong {
  color: #147a35;
}

.instruction-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.instruction-link-list li + li {
  margin-top: 14px;
}

.instruction-link-list a {
  color: #147a35;
  font-weight: 700;
  text-decoration: none;
}

.instruction-link-list a:hover {
  text-decoration: underline;
}

.instruction-help-card {
  background: linear-gradient(180deg, #f5f8f4, #ffffff);
}

.instruction-help-card p {
  margin: 0 0 18px;
  color: #475467;
  line-height: 1.6;
}

.instruction-help-card a {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #087d35;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1180px) {
  .instruction-layout {
    grid-template-columns: 1fr;
  }

  .instruction-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .instruction-hero {
    grid-template-columns: 1fr;
  }

  .instruction-title-row {
    flex-direction: column;
  }

  .instruction-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .instruction-info-box {
    grid-template-columns: 1fr;
  }

  .instruction-step {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .instruction-step-image {
    grid-column: 2;
  }

  .instruction-cards {
    grid-template-columns: 1fr;
  }

  .instruction-feedback {
    flex-direction: column;
    align-items: stretch;
  }

  .instruction-feedback-actions {
    flex-direction: column;
  }

  .instruction-feedback button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .instruction-layout {
    padding: 24px 16px 52px;
  }

  .instruction-icon {
    width: 110px;
    height: 110px;
  }

  .instruction-icon-symbol {
    font-size: 3.4rem;
  }

  .instruction-title-row h1 {
    font-size: 2rem;
  }
}


@media print {
@page {
  size: A4 portrait;
  margin: 20mm !important;
}
html,
body {
  width: 210mm !important;
  min-height: 297mm !important;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

#main-content,
.page-content {
  margin: 0 !important;
  padding: 0 !important;
}

.instruction-layout {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.45 !important;
  }

  .site-header,
  .site-footer,
  .recommended-tools,
  .instruction-back,
  .instruction-sidebar,
  .instruction-feedback,
  .instruction-actions,
  .instruction-side-actions,
  .kb-hero-actions {
    display: none !important;
  }

  .page-content {
    background: #ffffff !important;
    padding: 0 !important;
  }

  .instruction-layout {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .instruction-article {
    width: 100% !important;
  }

  .instruction-hero {
    display: block !important;
    margin: 0 0 18mm !important;
    padding: 0 0 8mm !important;
    border-bottom: 1px solid #cccccc !important;
  }

  .instruction-title-row h1 {
    margin: 0 0 6mm !important;
    max-width: none !important;
    font-size: 22pt !important;
    line-height: 1.15 !important;
    color: #000000 !important;
  }

  .instruction-intro {
    margin: 0 !important;
    max-width: none !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
    color: #000000 !important;
  }

  .instruction-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8mm !important;
    margin: 8mm 0 0 !important;
  }

  .instruction-meta div {
    display: block !important;
  }

  .instruction-meta dt,
  .instruction-meta dd {
    display: inline !important;
    margin: 0 !important;
    font-size: 9.5pt !important;
    color: #000000 !important;
  }

  .instruction-meta dt::after {
    content: ": ";
  }

  .instruction-info-box,
  .instruction-cards {
    display: none !important;
  }

  .instruction-main {
    margin: 0 !important;
    padding: 0 !important;
  }

  .instruction-main > h2 {
    margin: 0 0 8mm !important;
    font-size: 17pt !important;
    line-height: 1.2 !important;
    color: #000000 !important;
  }

  .instruction-timeline::before {
    display: none !important;
  }

  .instruction-step {
    display: block !important;
    margin: 0 0 10mm !important;
    padding: 0 0 8mm !important;
    border-bottom: 1px solid #dddddd !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .instruction-step-number {
    display: inline-flex !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 0 4mm !important;
    border-radius: 50% !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 10pt !important;
    font-weight: 700 !important;
  }

  .instruction-step-content h3 {
    margin: 0 0 4mm !important;
    font-size: 13pt !important;
    line-height: 1.25 !important;
    color: #000000 !important;
  }

  .instruction-richtext p,
  .instruction-richtext li {
    font-size: 10.5pt !important;
    line-height: 1.45 !important;
    color: #000000 !important;
  }

  .instruction-richtext p {
    margin: 0 0 4mm !important;
  }

  .instruction-richtext ul,
  .instruction-richtext ol {
    margin: 0 0 4mm 5mm !important;
    padding-left: 5mm !important;
  }

  .instruction-alert {
    display: block !important;
    margin: 6mm 0 8mm !important;
    padding: 5mm !important;
    border: 1px solid #999999 !important;
    background: #ffffff !important;
    color: #000000 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .instruction-alert-icon {
    display: none !important;
  }

  .instruction-alert h3 {
    margin: 0 0 3mm !important;
    font-size: 12pt !important;
    color: #000000 !important;
  }

  .instruction-step-image {
    margin: 5mm 0 0 !important;
    max-width: 110mm !important;
  }

  .instruction-step-image img {
    display: block !important;
    max-width: 110mm !important;
    max-height: 70mm !important;
    width: auto !important;
    height: auto !important;
    border: 1px solid #999999 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
  }

  .instruction-step-image figcaption {
    margin-top: 2mm !important;
    font-size: 8.5pt !important;
    color: #444444 !important;
  }

  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }

  a[href]::after {
    content: "";
  }
}



















/* ===== INSTRUCTION ACTIONS ===== */

.instruction-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 360px;
}

.instruction-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.instruction-action--primary {
  background: #087d35;
  color: #ffffff;
  border-color: #087d35;
}

.instruction-action--primary:hover,
.instruction-action--primary:focus {
  background: #06662b;
  color: #ffffff;
}

.instruction-action--secondary {
  background: #ffffff;
  color: #1f5130;
  border-color: #9cc7a4;
}

.instruction-action--secondary:hover,
.instruction-action--secondary:focus {
  background: #eef7ef;
}

.instruction-action:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .instruction-actions {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .instruction-action {
    width: 100%;
  }
}

@media print {
  .instruction-actions {
    display: none !important;
  }
}

/* ===== SIDEBAR ACTIONS ===== */

.instruction-side-actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf1ed;
  display: grid;
  gap: 10px;
}

.instruction-side-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.instruction-side-button--primary {
  background: #087d35;
  color: #ffffff;
  border-color: #087d35;
}

.instruction-side-button--primary:hover,
.instruction-side-button--primary:focus {
  background: #06662b;
  color: #ffffff;
}

.instruction-side-button--secondary {
  background: #ffffff;
  color: #1f5130;
  border-color: #9cc7a4;
}

.instruction-side-button--secondary:hover,
.instruction-side-button--secondary:focus {
  background: #eef7ef;
}

.instruction-side-button:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

@media print {
  .instruction-side-actions {
    display: none !important;
  }
}

/* ===== SIDEBAR – wersja spokojna jak security ===== */

.instruction-side-card {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.instruction-side-card h2 {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8edf3;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #12203b;
}

.instruction-side-list {
  gap: 12px;
}

.instruction-side-list dt {
  color: #7a8494;
  font-size: 0.82rem;
  font-weight: 500;
}

.instruction-side-list dd {
  color: #344054;
  font-size: 0.9rem;
  font-weight: 650;
}

/* lżejsze przyciski w Informacje */

.instruction-side-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf1f5;
}

.instruction-side-button {
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 650;
  box-shadow: none;
}

.instruction-side-button--primary {
  background: #f8fafc;
  color: #1f2a44;
  border: 1px solid #d8e0e8;
}

.instruction-side-button--primary:hover,
.instruction-side-button--primary:focus {
  background: #eef2f6;
  color: #12203b;
}

.instruction-side-button--secondary {
  background: #ffffff;
  color: #344054;
  border: 1px solid #d8e0e8;
}

.instruction-side-button--secondary:hover,
.instruction-side-button--secondary:focus {
  background: #f8fafc;
  color: #12203b;
}

/* Przydatne linki – mniej zielone, bardziej jak sidebar KB */

.instruction-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.instruction-link-list li {
  border-top: 1px solid #eef2f6;
}

.instruction-link-list li:first-child {
  border-top: 0;
}

.instruction-link-list li + li {
  margin-top: 0;
}

.instruction-link-list a {
  position: relative;
  display: block;
  padding: 13px 22px 13px 0;
  color: #344054;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
  border-bottom: 0;
}

.instruction-link-list a::after {
  content: "›";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 1.25rem;
  line-height: 1;
}

.instruction-link-list a:hover,
.instruction-link-list a:focus {
  color: #12203b;
  text-decoration: none;
}


.kb-sidebar-security {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8faf8;
  border: 1px solid #e4ebe4;
  box-shadow: none;
}

.kb-sidebar-security-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: #f1f3f5;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kb-sidebar-security-icon svg {
  width: 23px;
  height: 23px;
}

.kb-sidebar-security h3 {
  margin: 0 0 3px;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 700;
  color: #12203b;
}

.kb-sidebar-security p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #667085;
}

.kb-sidebar-security a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #667085;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
}

.kb-sidebar-security a:hover {
  color: #12203b;
  text-decoration: underline;
  text-underline-offset: 3px;
}


.kb-sidebar-help {
  margin-top: 20px;
  padding: 24px 26px;
}

.kb-sidebar-help-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
  color: #12203b;
}

.kb-sidebar-help-text {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #667085;
}

.kb-sidebar-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d7e2dd;
  color: #16723a;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: none;
}

.kb-sidebar-help-button::after {
  content: "→";
  font-size: 1rem;
}

.kb-sidebar-help-button:hover {
  background: #f6fbf8;
  color: #0f5f2f;
  transform: none;
}
/* ===== POPRAWKA: hero bez rozsypanego tytułu ===== */

.instruction-hero {
  display: block;
}

.instruction-icon {
  display: none !important;
}

.instruction-hero-content {
  max-width: 760px;
}

.instruction-title-row {
  display: block;
}

.instruction-title-row h1 {
  max-width: 760px;
}

/* ===== POPRAWKA: duży guzik na biały z różowym obramowaniem ===== */

.instruction-info-button {
  background: #ffffff;
  color: #e5007d;
  border: 1px solid #e5007d;
  box-shadow: none;
}

.instruction-info-button:hover,
.instruction-info-button:focus {
  background: #fff5fa;
  color: #c9006d;
  border-color: #c9006d;
}

/* ===== FINAL: styl jak mockup – prawie wszystko białe ===== */

.page-content {
  background: #ffffff;
}

.instruction-layout {
  padding-top: 42px;
}

/* hero bez ikony, czysty układ */

.instruction-hero {
  display: block;
  margin-bottom: 34px;
}

.instruction-icon {
  display: none !important;
}

.instruction-hero-content {
  max-width: 760px;
}

.instruction-title-row {
  display: block;
}

.instruction-title-row h1 {
  max-width: 760px;
  font-size: clamp(2.05rem, 2.7vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  color: #111827;
}

.instruction-intro {
  color: #536174;
}

/* mniej zielone meta */

.instruction-meta {
  margin-top: 34px;
  gap: 22px;
}

.instruction-meta dt {
  color: #667085;
}

.instruction-meta dd {
  color: #344054;
}

/* link powrotu spokojniejszy */

.instruction-back {
  color: #344054;
  font-weight: 500;
}

.instruction-back:hover {
  color: #12203b;
}

/* info box biały, lekki */

.instruction-info-box {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.instruction-info-icon {
  border-color: #d8e0e8;
  color: #667085;
  background: #f8fafc;
}

/* guzik różowy outline */

.instruction-info-button {
  background: #ffffff;
  color: #e5007d;
  border: 1px solid #e5007d;
  border-radius: 10px;
  box-shadow: none;
}

.instruction-info-button:hover,
.instruction-info-button:focus {
  background: #fff5fa;
  color: #c9006d;
  border-color: #c9006d;
}

/* karty białe, szare ramki */

.instruction-card {
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.instruction-card a {
  color: #e5007d;
  border-bottom: 0;
}

/* timeline mniej zielony */

.instruction-timeline::before {
  background: #e6ebf2;
}

.instruction-step {
  border-bottom: 1px solid #eef2f6;
}

.instruction-step-number {
  background: #f1f5f9;
  color: #344054;
  border: 1px solid #d8e0e8;
}

/* richtext linki spokojniej */

.instruction-richtext a {
  color: #1f2a44;
  border-bottom-color: rgba(31, 42, 68, 0.22);
}

.instruction-richtext a:hover {
  color: #e5007d;
  border-bottom-color: #e5007d;
}

/* feedback biały */

.instruction-feedback {
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.instruction-feedback button {
  border: 1px solid #d8e0e8;
  color: #344054;
}

.instruction-feedback button:hover,
.instruction-feedback button:focus {
  background: #f8fafc;
}

/* sidebar biały, bez zielonego ciężaru */

.instruction-side-card {
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.instruction-side-list dd {
  color: #344054;
}

/* przyciski boczne lekkie */

.instruction-side-button--primary,
.instruction-side-button--secondary {
  background: #ffffff;
  color: #344054;
  border: 1px solid #d8e0e8;
  box-shadow: none;
}

.instruction-side-button--primary:hover,
.instruction-side-button--secondary:hover {
  background: #f8fafc;
  color: #12203b;
}

/* przydatne linki lekkie */

.instruction-link-list a {
  color: #344054;
  font-weight: 600;
}

.instruction-link-list a:hover {
  color: #e5007d;
}

/* pomoc jak w mockupie */

.kb-sidebar-help-button {
  color: #344054;
  border-color: #d8e0e8;
}

.kb-sidebar-help-button:hover {
  color: #e5007d;
  background: #fff5fa;
  border-color: #f2b6d4;
}

.instruction-image-zoom {
  position: relative;
  cursor: zoom-in;
}

.instruction-image-zoom-icon {
  position: absolute;
  right: 14px;
  bottom: 42px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(18, 32, 51, 0.88);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.instruction-image-zoom:hover .instruction-image-zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

.instruction-lightbox[hidden] {
  display: none;
}

.instruction-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 18, 32, 0.84);
  cursor: zoom-out;
}

.instruction-lightbox-image {
  max-width: min(1120px, 94vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  cursor: default;
}

.instruction-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #122033;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}


.kb-intro {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1.04rem;
  line-height: 1.8;
  color: #536174;
}

.kb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.kb-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kb-hero-button:hover {
  transform: translateY(-1px);
}

.kb-hero-button--primary {
  background: #e83273;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(232, 50, 115, 0.22);
}

.kb-hero-button--primary:hover {
  background: #cf285f;
}

.kb-hero-button--secondary {
  background: #ffffff;
  color: #17233d;
  border: 1px solid #dfe5ee;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.kb-hero-button--secondary:hover {
  background: #f8fafc;
}
/* ===== INSTRUCTION PAGE FINAL: biało, granat, róż ===== */

.page-content {
  background: #ffffff;
}

/* link powrotu + linki */
.instruction-back,
.instruction-link-list a,
.kb-sidebar-security a {
  color: #1f2a44;
}

.instruction-back:hover,
.instruction-link-list a:hover,
.instruction-link-list a:focus,
.kb-sidebar-security a:hover {
  color: #e5007d;
}

/* print i feedback */
.instruction-print,
.instruction-feedback button {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid rgba(31, 42, 68, 0.24);
}

.instruction-print:hover,
.instruction-print:focus,
.instruction-feedback button:hover,
.instruction-feedback button:focus {
  background: #f8fafc;
  color: #111827;
  border-color: rgba(31, 42, 68, 0.42);
}

/* akcje przy intro */
.instruction-action--primary {
  background: #ffffff;
  color: #e5007d;
  border: 1.5px solid #e5007d;
  box-shadow: 0 10px 24px rgba(229, 0, 125, 0.10);
}

.instruction-action--primary:hover,
.instruction-action--primary:focus {
  background: #fff5fa;
  color: #c9006d;
  border-color: #c9006d;
}

.instruction-action--secondary {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid rgba(31, 42, 68, 0.24);
}

.instruction-action--secondary:hover,
.instruction-action--secondary:focus {
  background: #f8fafc;
  color: #111827;
  border-color: rgba(31, 42, 68, 0.42);
}

/* akcje w sidebarze */
.instruction-side-button--primary {
  background: #ffffff;
  color: #e5007d;
  border: 1.5px solid #e5007d;
}

.instruction-side-button--primary:hover,
.instruction-side-button--primary:focus {
  background: #fff5fa;
  color: #c9006d;
  border-color: #c9006d;
}

.instruction-side-button--secondary {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid rgba(31, 42, 68, 0.24);
}

.instruction-side-button--secondary:hover,
.instruction-side-button--secondary:focus {
  background: #f8fafc;
  color: #111827;
  border-color: rgba(31, 42, 68, 0.42);
}

/* zielone resztki w sidebarze */
.instruction-side-list dd,
.access-option.is-active strong {
  color: #1f2a44;
}

.access-option {
  background: #f8fafc;
}

.access-option.is-active {
  background: #fff5fa;
  border-color: rgba(229, 0, 125, 0.35);
}

/* karta pomocy */
.instruction-help-card {
  background: #ffffff;
}

/* jeżeli gdzieś został help button z knowledge sidebar */
.kb-sidebar-help-button {
  background: linear-gradient(135deg, #1f2a44 0%, #e5007d 100%);
  color: #ffffff;
  border-color: transparent;
}

.kb-sidebar-help-button:hover {
  background: linear-gradient(135deg, #14203a 0%, #c9006d 100%);
  color: #ffffff;
}

/* ===== INSTRUCTION FINAL: mniej różu, spokojniej ===== */

/* tło */
.page-content {
  background: #ffffff;
}

/* zwykłe linki: szaro/granat, nie róż */
.instruction-back,
.instruction-richtext a,
.instruction-card a,
.instruction-link-list a,
.kb-sidebar-security a {
  color: #344054;
  border-bottom-color: rgba(52, 64, 84, 0.26);
  text-decoration: none;
}

/* róż tylko na hover */
.instruction-back:hover,
.instruction-richtext a:hover,
.instruction-card a:hover,
.instruction-link-list a:hover,
.kb-sidebar-security a:hover {
  color: #e5007d;
  border-bottom-color: #e5007d;
}

/* przycisk info: nie różowy, tylko spokojny outline */
.instruction-info-button {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid rgba(31, 42, 68, 0.24);
  box-shadow: none;
}

.instruction-info-button:hover,
.instruction-info-button:focus {
  background: #f8fafc;
  color: #111827;
  border-color: rgba(31, 42, 68, 0.42);
}

/* akcje przy intro: primary lekki, secondary jeszcze spokojniejszy */
.instruction-action--primary {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid rgba(31, 42, 68, 0.28);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.instruction-action--primary:hover,
.instruction-action--primary:focus {
  background: #f8fafc;
  color: #e5007d;
  border-color: rgba(229, 0, 125, 0.45);
}

.instruction-action--secondary {
  background: #ffffff;
  color: #475467;
  border: 1px solid #d8e0e8;
  box-shadow: none;
}

.instruction-action--secondary:hover,
.instruction-action--secondary:focus {
  background: #f8fafc;
  color: #122033;
  border-color: #cfd8e3;
}

/* sidebar buttony bez różu na stałe */
.instruction-side-button--primary,
.instruction-side-button--secondary {
  background: #ffffff;
  color: #344054;
  border: 1px solid #d8e0e8;
  box-shadow: none;
}

.instruction-side-button--primary:hover,
.instruction-side-button--primary:focus,
.instruction-side-button--secondary:hover,
.instruction-side-button--secondary:focus {
  background: #f8fafc;
  color: #122033;
  border-color: #cfd8e3;
}

/* aktywne opcje bez różowego tła */
.access-option.is-active {
  background: #f8fafc;
  border-color: #d8e0e8;
}

.access-option.is-active strong {
  color: #1f2a44;
}

/* alerty / info boxy neutralne */
.instruction-info-box,
.instruction-feedback,
.instruction-side-card {
  border-color: #e6ebf2;
}

.instruction-info-icon {
  border-color: #d8e0e8;
  color: #667085;
  background: #f8fafc;
}

/* ===== INTRO BUTTONS – jak w Knowledge Page ===== */

/* ===== INTRO BUTTONS W INSTRUCTION PAGE ===== */

.instruction-hero .kb-hero-button--primary {
  background: #ffffff;
  color: #e5007d;
  border: 1.5px solid #e5007d;
  box-shadow: 0 10px 24px rgba(229, 0, 125, 0.10);
}

.instruction-hero .kb-hero-button--primary:hover,
.instruction-hero .kb-hero-button--primary:focus {
  background: #fff5fa;
  color: #c9006d;
  border-color: #c9006d;
  box-shadow: 0 12px 28px rgba(229, 0, 125, 0.14);
}

.instruction-hero .kb-hero-button--secondary {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid rgba(31, 42, 68, 0.24);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  font-weight: 500;
}

.instruction-hero .kb-hero-button--secondary:hover,
.instruction-hero .kb-hero-button--secondary:focus {
  background: #f8fafc;
  color: #111827;
  border-color: rgba(31, 42, 68, 0.42);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}
/* ===== TABLE ITEM ===== */

.instruction-table-item {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.instruction-table-item h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  color: #122033;
}

.instruction-table-preview {
  position: relative;
  margin-top: 16px;
  max-height: 280px;
  overflow: hidden;
  border: 1px solid #d8e0e8;
  border-radius: 14px;
  background: #ffffff;
  cursor: zoom-in;
}

.instruction-table-preview-inner {
  transform: scale(0.86);
  transform-origin: top left;
  width: 116%;
  padding: 16px;
}

.instruction-table-preview table,
.instruction-table-lightbox table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.instruction-table-preview th,
.instruction-table-preview td,
.instruction-table-lightbox th,
.instruction-table-lightbox td {
  padding: 10px 12px;
  border: 1px solid #d8e0e8;
  text-align: left;
  vertical-align: top;
}

.instruction-table-preview th,
.instruction-table-lightbox th {
  background: #f8fafc;
  color: #122033;
  font-weight: 700;
}

.instruction-table-preview-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
  text-align: center;
  font-weight: 700;
  color: #1f2a44;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0.95)
  );
}

.instruction-table-lightbox[hidden] {
  display: none;
}

.instruction-table-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 18, 32, 0.84);
}

.instruction-table-lightbox-content {
  width: min(1180px, 94vw);
  max-height: 86vh;
  overflow: auto;
  padding: 26px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.instruction-table-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #122033;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media print {
  .instruction-table-item {
    margin: 0 0 10mm !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .instruction-table-preview {
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    cursor: default !important;
  }

  .instruction-table-preview-inner {
    transform: none !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .instruction-table-preview-overlay,
  .instruction-table-lightbox {
    display: none !important;
  }

  .instruction-table-preview table {
    font-size: 8.5pt !important;
  }

  .instruction-table-preview th,
  .instruction-table-preview td {
    padding: 4px 5px !important;
    border: 1px solid #999999 !important;
  }
}

.instruction-table-print {
  position: fixed;
  top: 22px;
  right: 82px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #122033;
  font-weight: 700;
  cursor: pointer;
}

.sap-colored-table table tbody tr:nth-child(n+1):nth-child(-n+2) td {
  background: #dcfce7;
}

.sap-colored-table table tbody tr:nth-child(n+3):nth-child(-n+16) td {
  background: #dbeafe;
}
.sap-colored-table table tbody tr:nth-child(n+17):nth-child(-n+24) td {
  background: #fef9c3;
}
.sap-colored-table table tbody tr:nth-child(n+25):nth-child(-n+28) td {
  background: #fce7f3;
}
.sap-colored-table table tbody tr:nth-child(n+29):nth-child(-n+32) td {
  background: #ede9fe;
}

.sap-colored-table table tbody tr:nth-child(n+33):nth-child(-n+34) td {
  background: #ffedd5;
}
.sap-colored-table table tbody tr:nth-child(n+35):nth-child(-n+39) td {
  background: #ccfbf1;
}
.sap-colored-table table tbody tr:nth-child(n+40):nth-child(-n+43) td {
  background: #f1f5f9;
}


.instruction-table-download {
  position: fixed;
  top: 22px;
  right: 230px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #122033;
  font-weight: 700;
  cursor: pointer;
}

.instruction-table-download:hover,
.instruction-table-download:focus {
  background: #f8fafc;
}

.instruction-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #667085;
  font-size: 0.9rem;
}

.instruction-breadcrumbs a {
  color: #475467;
  text-decoration: none;
}

.instruction-breadcrumbs a:hover,
.instruction-breadcrumbs a:focus {
  color: #e5007d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.instruction-breadcrumbs span {
  color: #98a2b3;
}

.instruction-breadcrumbs span:last-child {
  color: #667085;
}

@media print {
  .instruction-breadcrumbs {
    display: none !important;
  }
}