/* REDICO document library. Scoped styles; the surrounding page owns the rail. */
@layer redicoReadability {
  html[data-rx-theme="dark"] body:is(.redico-page-dokumenty,.redico-page-licenziya-fstek) {
    background:#191a1d !important; color:#f5f2ed !important;
  }
  html[data-rx-theme="dark"] body.rx-audit-fixes:is(.redico-page-dokumenty,.redico-page-licenziya-fstek) header#rdd-page-header.rx-header {
    background:#191a1d !important; color:#f5f2ed !important;
  }
  html[data-rx-theme="dark"] body.rx-audit-fixes #rdd-page-header :is(#rpm-primary-nav a,#rpm-primary-nav button,.rpm-burger) {
    color:#f5f2ed !important;
  }
  html[data-rx-bento] body:is(.redico-page-dokumenty,.redico-page-licenziya-fstek) :is(#rdd-page-hero,#request) .rd-form-shell :is(.rd-upload-hint,.rd-privacy-note,.rd-privacy-note small) {
    color:#59565d !important;
  }
  html[data-rx-bento] body:is(.redico-page-dokumenty,.redico-page-licenziya-fstek) :is(#rdd-page-hero,#request) .rd-form-shell .rd-privacy-note a {
    color:#a62435 !important;
  }
  html[data-rx-bento] body.rx-audit-fixes #rdd-page-hero #rtd-request .rd-form-shell :is(.rd-upload-hint,.rd-privacy-note,.rd-privacy-note small) { color:#59565d!important; }
  html[data-rx-bento] body.rx-audit-fixes #rdd-page-hero #rtd-request .rd-form-shell .rd-privacy-note a { color:#a62435!important; }
  html body:is(.redico-page-dokumenty,.redico-page-licenziya-fstek) .rd-docs {
    background:transparent !important;
  }
  html[data-rx-bento] body.redico-page-dokumenty main #rdd-page-hero.rx-ux-hero {
    display:block!important; grid-template-columns:1fr!important; min-height:0!important; padding-block:20px 28px!important; margin:0 0 16px!important; background:transparent!important; border:0!important; box-shadow:none!important;
  }
  html[data-rx-bento] body.redico-page-dokumenty main #rdd-page-hero h1 { margin:0 0 18px!important; }
  html[data-rx-bento] body.redico-page-dokumenty main #rdd-page-hero p { margin:0 0 18px!important; }
  html[data-rx-bento] body.redico-page-dokumenty main #rdd-page-hero .rdd-hero-kicker { margin:0 0 12px!important; }
  html[data-rx-bento] body.rx-audit-fixes.redico-page-dokumenty #rdd-page-hero a { color:#a62435!important; text-decoration:underline!important; }
  html[data-rx-theme="dark"][data-rx-bento] body.rx-audit-fixes.redico-page-dokumenty #rdd-page-hero a { color:#ff9b9f!important; }
  html[data-rx-bento] body.rx-audit-fixes.redico-page-dokumenty header#rdd-page-header .rdd-header-contact { display:inline-flex!important; align-items:center; justify-content:center; min-height:44px; padding:12px 20px; border:1px solid #a62435; border-radius:8px; background:#a62435!important; color:#fff!important; text-decoration:none!important; font-weight:650; font-size:14px; }
  body .rd-docs .rdd-catalog-label { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip-path:inset(50%)!important; white-space:nowrap!important; }
  body.redico-page-dokumenty #rdd-page-hero .rdd-hero-copy { max-width:880px; }
  body.redico-page-dokumenty #rdd-page-hero .rdd-hero-copy p { max-width:68ch; }
  body.redico-page-dokumenty :is(.rx-ux-form-wrap,.rd-footer-enquiry,#rx-modal,form[data-redico-lead]) { display:none!important; }
  html[data-rx-bento] body.rx-audit-fixes :is(#rx-ux-blanks,#fstek-import-documents) a {
    color:var(--rdd-red) !important; text-decoration:underline !important;
  }
  html[data-rx-bento] body.rx-audit-fixes :is(#rx-ux-blanks,#fstek-import-documents) a:is(.rdd-file,.rdd-bundle) { text-decoration:none!important; }
  @media(max-width:900px) {
    html[data-rx-bento] body.rx-audit-fixes.redico-page-dokumenty header#rdd-page-header .rdd-header-contact { display:none!important; }
  }
  body .rdd-hero-kicker { display:block; color:#a62435; font-size:12px; font-weight:700; letter-spacing:.1em; margin-bottom:16px; }
  html:is([data-theme="dark"],[data-rx-theme="dark"]) body .rdd-hero-kicker { color:#ff9b9f; }
  body .rdd-hero-copy { align-self:start; }
  body .rd-docs.rdd-compact { margin-block:24px 48px; }
  body .rd-docs .rdd-group-head>.rdd-kicker { font-size:10px; }
  @media(prefers-reduced-motion:no-preference) {
    .rdd-hero-copy>* { animation:rdd-hero-enter .38s ease-out both; }
    .rdd-hero-copy>p { animation-delay:.05s; }
    .rdd-hero-copy>a { animation-delay:.1s; }
    body.page-id-848 .rtd-intro>:is(h1,p,.rtd-cta) { animation:rdd-hero-enter .38s ease-out both; }
    body.page-id-848 .rtd-intro>p { animation-delay:.05s; }
    body.page-id-848 .rtd-intro>.rtd-cta { animation-delay:.1s; }
  }
  @keyframes rdd-hero-enter { from { opacity:.4; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
}
@layer redicoReadability {
  body .rd-docs {
    --rdd-bg: #f6f4ef;
    --rdd-paper: #fffefa;
    --rdd-soft: #eeece6;
    --rdd-ink: #25262a;
    --rdd-muted: #5c5d63;
    --rdd-line: #d7d5cf;
    --rdd-red: #a62435;
    --rdd-red-hover: #811c2a;
    --rdd-tint: #f8e9e8;
    --rdd-focus: #a62435;
    width: 100%; min-width: 0; max-width: none;
    margin: 0; padding: 0;
    color: var(--rdd-ink) !important;
    font-family: var(--rdx-ui-font, Inter, Arial, sans-serif) !important;
    line-height: 1.6;
  }
  html:is([data-theme="dark"], [data-rx-theme="dark"]) body .rd-docs {
    --rdd-bg: #191a1d;
    --rdd-paper: #222428;
    --rdd-soft: #2d3035;
    --rdd-ink: #f5f2ed;
    --rdd-muted: #c3c3c8;
    --rdd-line: #484a50;
    --rdd-red: #ff9b9f;
    --rdd-red-hover: #ffc1c3;
    --rdd-tint: #3c282e;
    --rdd-focus: #ff9b9f;
    color-scheme: dark;
  }
  body .rd-docs *, body .rd-docs *::before, body .rd-docs *::after { box-sizing: border-box; }
  body .rd-docs [hidden] { display: none !important; }
  body .rd-docs :is(h1,h2,h3,h4,p,ul,ol) { color: var(--rdd-ink) !important; }
  body .rd-docs :is(h1,h2,h3,h4) { text-wrap: balance; }
  body .rd-docs a { color: var(--rdd-red) !important; text-decoration: underline !important; text-decoration-thickness: 1px; text-underline-offset: .2em; }
  body .rd-docs a:hover { color: var(--rdd-red-hover) !important; }
  body .rd-docs :is(a,button,input,select,summary):focus-visible { outline: 3px solid var(--rdd-focus) !important; outline-offset: 4px !important; }
  body .rd-docs :is(button,input,select) { font: inherit; }
  body .rd-docs .rdd-wrap { width: min(var(--redico-grid-width,1280px),calc(100% - 2 * var(--redico-grid-gutter,24px))); margin-inline: auto; }
  body .rd-docs .rdd-intro { padding-block: clamp(26px,3.4vw,48px) 24px; }
  body .rd-docs .rdd-intro p { max-width: 70ch; margin: 12px 0 0 !important; color: var(--rdd-muted) !important; }
  body .rd-docs .rdd-kicker { display: block; margin-bottom: 10px; color: var(--rdd-red) !important; font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  body .rd-docs .rdd-heading { max-width: 24ch; margin: 0 !important; font-size: clamp(28px,3.2vw,44px) !important; line-height: 1.12 !important; letter-spacing: -.04em !important; font-weight: 730 !important; }
  body .rd-docs .rdd-toolbar { padding: clamp(18px,2.3vw,28px); border: 1px solid var(--rdd-line); border-radius: 16px; background: var(--rdd-paper); }
  body .rd-docs .rdd-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(200px,.42fr); gap: 18px; }
  body .rd-docs :is(.rdd-search-field,.rdd-type-field) { display: block; min-width: 0; margin: 0; color: var(--rdd-ink) !important; }
  body .rd-docs :is(.rdd-search-field,.rdd-type-field) > :is(span,label) { display: block; margin-bottom: 8px; color: var(--rdd-ink) !important; font-size: 13px; font-weight: 650; }
  body .rd-docs :is(#rdd-search,#rdd-type) { display: block; width: 100%; min-width: 0; height: 52px; padding: 12px 15px; margin: 0; border: 1px solid #8b8b90; border-radius: 8px; background: var(--rdd-paper) !important; color: var(--rdd-ink) !important; font-size: 16px !important; line-height: 1.4; box-shadow: none; }
  body .rd-docs #rdd-type { cursor: pointer; padding-right: 30px; }
  body .rd-docs #rdd-search::placeholder { color: var(--rdd-muted); opacity: 1; }
  body .rd-docs .rdd-filter-label { margin: 23px 0 10px !important; color: var(--rdd-muted) !important; font-size: 12px; font-weight: 650; }
  body .rd-docs .rdd-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
  body .rd-docs [data-rdd-filter] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; margin: 0; padding: 10px 15px; border: 1px solid var(--rdd-line); border-radius: 7px; background: var(--rdd-paper) !important; color: var(--rdd-ink) !important; font-size: 13px !important; font-weight: 600; line-height: 1.35; text-align: left; white-space: normal; cursor: pointer; box-shadow: none; transition: border-color .16s,background-color .16s,color .16s; }
  body .rd-docs [data-rdd-filter]:hover { border-color: var(--rdd-red); background: var(--rdd-tint) !important; }
  body .rd-docs [data-rdd-filter][aria-pressed="true"] { border-color: var(--rdd-red); background: var(--rdd-tint) !important; color: var(--rdd-red) !important; box-shadow: inset 0 -2px 0 var(--rdd-red); }
  body .rd-docs .rdd-filter-count { font-size: 11px; font-variant-numeric: tabular-nums; }
  body .rd-docs .rdd-results-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 24px; padding-block: 18px; min-height: 64px; }
  body .rd-docs #rdd-status { margin: 0 !important; color: var(--rdd-muted) !important; font-size: 13px; font-variant-numeric: tabular-nums; }
  body .rd-docs :is(#rdd-reset,[data-rdd-reset]) { flex-shrink: 0; min-height: 40px; padding: 7px 0; margin: 0; border: 0; background: transparent !important; color: var(--rdd-red) !important; text-decoration: underline; text-underline-offset: .2em; font-size: 13px !important; font-weight: 600; cursor: pointer; box-shadow: none; }
  body .rd-docs #rdd-reset:disabled { color: var(--rdd-muted) !important; cursor: default; text-decoration: none; }
  body .rd-docs .rdd-groups { display: grid; gap: 20px; }
  body .rd-docs .rdd-group { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.65fr); gap: 32px; width: 100%; min-width: 0; padding: clamp(22px,3vw,36px); margin: 0 0 20px; border: 1px solid var(--rdd-line); border-radius: 16px; background: var(--rdd-paper); box-shadow: none; scroll-margin-top: 96px; }
  body .rd-docs .rdd-groups > .rdd-group { margin-bottom: 0; }
  body .rd-docs .rdd-group-head { min-width: 0; }
  body .rd-docs .rdd-group-index { display: inline-block; margin-bottom: 20px; color: var(--rdd-red) !important; font-size: 12px; font-weight: 700; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
  body .rd-docs .rdd-group-head :is(h2,h3) { margin: 0 0 12px !important; font-size: clamp(23px,2.25vw,30px) !important; line-height: 1.15 !important; letter-spacing: -.035em !important; }
  body .rd-docs .rdd-group-head p { max-width: 36ch; margin: 0 0 20px !important; color: var(--rdd-muted) !important; font-size: 14px; line-height: 1.65; }
  body .rd-docs .rdd-group-head > a { display: inline-block; padding-block: 7px; font-size: 13px; font-weight: 600; }
  body .rd-docs .rdd-group-body { min-width: 0; }
  body .rd-docs .rdd-bundle-wrap { grid-column:1/-1; margin-top:20px; }
  body .rd-docs .rdd-bundle { display:inline-flex; flex-direction:column; align-items:flex-start; gap:4px; min-height:48px; max-width:100%; padding:12px 18px; border:1px solid var(--rdd-red); border-radius:8px; background:var(--rdd-tint); font-size:15px; font-weight:700; line-height:1.45; transition:background-color .18s,box-shadow .18s; }
  body .rd-docs .rdd-bundle:hover { background:var(--rdd-soft); box-shadow:inset 0 0 0 1px var(--rdd-red); }
  body .rd-docs .rdd-bundle-meta { font-size:12px; font-weight:500; color:var(--rdd-muted)!important; }
  body .rd-docs .rdd-bundle-note { display:block; margin-top:8px; font-size:11px; line-height:1.5; color:var(--rdd-muted)!important; }
  body .rd-docs .rdd-files { display: grid; gap: 0; margin: 0 !important; padding: 0 !important; list-style: none !important; }
  body .rd-docs .rdd-files > li { margin: 0; padding: 0; list-style: none !important; }
  body .rd-docs .rdd-file { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 14px; width: 100%; min-width: 0; margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--rdd-line); border-radius: 0; background: transparent; text-decoration: none !important; transition: background-color .18s; }
  body .rd-docs .rdd-files > .rdd-file:first-child, body .rd-docs .rdd-files > li:first-child > .rdd-file { padding-top: 0; }
  body .rd-docs .rdd-file:hover { background: var(--rdd-tint); }
  body .rd-docs .rdd-file-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 48px; padding: 4px; border: 1px solid var(--rdd-line); border-radius: 7px 7px 7px 2px; background: var(--rdd-soft); color: var(--rdd-muted) !important; font-size: 10px; font-weight: 750; letter-spacing: .02em; text-transform: uppercase; }
  body .rd-docs .rdd-file-icon svg { width: 22px; height: 22px; }
  body .rd-docs .rdd-file-copy { min-width: 0; }
  body .rd-docs .rdd-file-name { display: block; color: var(--rdd-red) !important; font-size: 15px; font-weight: 650; line-height: 1.45; text-decoration: underline !important; text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
  body .rd-docs .rdd-file-meta { display: block; margin-top: 5px; color: var(--rdd-muted) !important; font-size: 12px; font-weight: 400; line-height: 1.5; }
  body .rd-docs .rdd-file-note { display: block; margin-top: 5px; color: var(--rdd-muted) !important; font-size: 12px; font-weight: 400; line-height: 1.55; }
  body .rd-docs .rdd-file-note:empty { display: none; }
  body .rd-docs .rdd-file-action { color: var(--rdd-red) !important; font-size: 13px; font-weight: 650; white-space: nowrap; }
  body .rd-docs .rdd-file-action svg { width: 20px; height: 20px; vertical-align: middle; }
  body .rd-docs .rdd-note { margin: 18px 0 0 !important; color: var(--rdd-muted) !important; font-size: 12px; line-height: 1.65; }
  body .rd-docs .rdd-checklist { margin: 20px 0 0; padding: 0; border: 1px solid var(--rdd-line); border-radius: 10px; background: var(--rdd-soft); color: var(--rdd-ink) !important; }
  body .rd-docs .rdd-checklist summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; margin: 0; padding: 15px 18px; color: var(--rdd-ink) !important; font-size: 14px !important; font-weight: 650; line-height: 1.4; cursor: pointer; list-style: none; }
  body .rd-docs .rdd-checklist summary::-webkit-details-marker { display: none; }
  body .rd-docs .rdd-checklist summary::after { content: "+"; display: block; flex: 0 0 18px; color: var(--rdd-red); font-size: 22px; line-height: 1; text-align: center; }
  body .rd-docs .rdd-checklist[open] > summary::after { content: "−"; }
  body .rd-docs .rdd-checklist[open] > summary { border-bottom: 1px solid var(--rdd-line); }
  body .rd-docs .rdd-checklist-content { padding: 18px; font-size: 14px; }
  body .rd-docs .rdd-checklist-content > :first-child { margin-top: 0 !important; }
  body .rd-docs .rdd-checklist-content > :last-child { margin-bottom: 0 !important; }
  body .rd-docs .rdd-checklist :is(ol,ul) { padding-left: 22px !important; margin: 0 0 18px !important; }
  body .rd-docs .rdd-checklist li { padding-left: 4px; margin-block: 0 12px; line-height: 1.65; }
  body .rd-docs .rdd-checklist li:last-child { margin-bottom: 0; }
  body .rd-docs .rdd-checklist p { margin-block: 12px; }
  body .rd-docs .rdd-checklist strong { color: var(--rdd-ink) !important; }
  body .rd-docs #rdd-empty { padding: 42px 28px; border: 1px dashed var(--rdd-line); border-radius: 16px; text-align: center; background: var(--rdd-paper); }
  body .rd-docs #rdd-empty h3 { margin: 0 0 10px !important; font-size: 24px !important; }
  body .rd-docs #rdd-empty p { margin: 0 auto 12px !important; max-width: 48ch; color: var(--rdd-muted) !important; font-size: 14px; }
  body .rd-docs .rdd-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 0; padding: 24px 28px; border-left: 3px solid var(--rdd-red); border-radius: 0 12px 12px 0; background: var(--rdd-soft); }
  body .rd-docs .rdd-help h3 { margin: 0 0 6px !important; font-size: 20px !important; line-height: 1.25 !important; }
  body .rd-docs .rdd-help p { max-width: 65ch; margin: 0 !important; color: var(--rdd-muted) !important; font-size: 14px; }
  body .rd-docs .rdd-help > a { flex-shrink: 0; padding-block: 10px; font-size: 14px; font-weight: 650; }
  body .rd-docs.rdd-compact .rdd-group { grid-template-columns: minmax(0,.8fr) minmax(0,1.5fr); }
  @media (max-width: 900px) {
    body .rd-docs .rdd-group, body .rd-docs.rdd-compact .rdd-group { grid-template-columns: minmax(0,1fr); gap: 24px; }
    body .rd-docs .rdd-group-head { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 24px; align-items: start; }
    body .rd-docs .rdd-group-index, body .rd-docs .rdd-group-head > .rdd-kicker { grid-column: 1/-1; margin-bottom: 12px; }
    body .rd-docs .rdd-group-head :is(h2,h3) { grid-column: 1; }
    body .rd-docs .rdd-group-head p { grid-column: 1; max-width: 60ch; margin-bottom: 0 !important; }
    body .rd-docs .rdd-group-head > a { grid-column: 2; grid-row: 2; }
    body .rd-docs .rdd-help { align-items: flex-start; flex-direction: column; gap: 8px; }
  }
  @media (max-width: 600px) {
    body .rd-docs .rdd-wrap { width: calc(100% - 2 * var(--redico-grid-gutter,16px)); }
    body .rd-docs .rdd-fields { grid-template-columns: minmax(0,1fr); gap: 14px; }
    body .rd-docs .rdd-toolbar { padding: 18px 16px; border-radius: 12px; }
    body .rd-docs .rdd-filters { gap: 7px; }
    body .rd-docs [data-rdd-filter] { padding: 10px 12px; }
    body .rd-docs .rdd-results-bar { flex-wrap: wrap; align-items: center; gap: 0 14px; padding-block: 10px; }
    body .rd-docs .rdd-group { padding: 22px 18px; border-radius: 12px; gap: 20px; }
    body .rd-docs .rdd-group-head { display: block; }
    body .rd-docs .rdd-group-head > a { margin-top: 8px; }
    body .rd-docs .rdd-file { grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding-block: 16px; }
    body .rd-docs .rdd-file-icon { width: 34px; height: 42px; font-size: 9px; }
    body .rd-docs .rdd-file-action { grid-column: 2; font-size: 12px; }
    body .rd-docs .rdd-file-name { font-size: 14px; }
    body .rd-docs .rdd-checklist summary { padding: 14px; }
    body .rd-docs .rdd-checklist-content { padding: 16px 14px; }
    body .rd-docs .rdd-help { padding: 22px 18px; }
  }
  @media (prefers-reduced-motion: reduce) {
    body .rd-docs *, body .rd-docs *::before, body .rd-docs *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }
  @media print {
    body .rd-docs { --rdd-paper:#fff; --rdd-soft:#fff; --rdd-ink:#111; --rdd-muted:#333; --rdd-red:#111; --rdd-line:#aaa; }
    body .rd-docs :is(.rdd-toolbar,.rdd-results-bar,.rdd-help,#rdd-empty) { display: none !important; }
    body .rd-docs .rdd-group { break-inside: avoid; display: block; }
  }
}
