/* Zalando 2.0 — A19.3 design system: stonowana paleta, kolor = działanie/ryzyko, duża hierarchia liczby, zwięzłe etykiety. */
:root {
  --z20-bg: #ffffff; --z20-surface: #f7f8fa; --z20-border: #e3e6eb; --z20-text: #1d2330; --z20-muted: #5f6b7a;
  --z20-accent: #c2410c; --z20-accent-soft: #fff1e8;
  --z20-ok: #15803d; --z20-ok-soft: #e8f6ee; --z20-warn: #a16207; --z20-warn-soft: #fdf6e3; --z20-risk: #b42318; --z20-risk-soft: #fdecea;
  --z20-info: #1d4ed8; --z20-info-soft: #eaf0fe; --z20-radius: 10px;
}
.dark { --z20-bg: #161a21; --z20-surface: #1d222b; --z20-border: #2c333f; --z20-text: #e8ebf0; --z20-muted: #a3adbb;
  --z20-accent: #fb923c; --z20-accent-soft: #2b1d14; --z20-ok: #4ade80; --z20-ok-soft: #13261b; --z20-warn: #facc15; --z20-warn-soft: #29240f;
  --z20-risk: #f87171; --z20-risk-soft: #2b1615; --z20-info: #93b4fd; --z20-info-soft: #172036; }

.z20 { color: var(--z20-text); font-variant-numeric: tabular-nums; }
.z20 * { box-sizing: border-box; }
.z20-stack > * + * { margin-top: 1.25rem; }
.z20-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.z20-spacer { flex: 1 1 auto; }
.z20-muted { color: var(--z20-muted); font-size: .8125rem; }
.z20-h2 { font-size: 1rem; font-weight: 600; margin: 0 0 .5rem; }
.z20-link { color: var(--z20-info); text-decoration: none; font-size: .8125rem; }
.z20-link:hover, .z20-link:focus-visible { text-decoration: underline; }

/* filtry okresu / zakładki */
.z20-seg { display: inline-flex; border: 1px solid var(--z20-border); border-radius: 8px; overflow: hidden; background: var(--z20-bg); }
.z20-seg button, .z20-seg a { padding: .375rem .75rem; font-size: .8125rem; color: var(--z20-muted); background: none; border: 0; cursor: pointer; text-decoration: none; }
.z20-seg button + button, .z20-seg a + a { border-left: 1px solid var(--z20-border); }
.z20-seg .is-active { background: var(--z20-accent-soft); color: var(--z20-accent); font-weight: 600; }
.z20-seg button:focus-visible, .z20-seg a:focus-visible { outline: 2px solid var(--z20-info); outline-offset: -2px; }
.z20-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--z20-border); flex-wrap: wrap; }
.z20-tabs a, .z20-tabs button { padding: .5rem .75rem; font-size: .875rem; color: var(--z20-muted); border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; text-decoration: none; }
.z20-tabs .is-active { color: var(--z20-text); border-bottom-color: var(--z20-accent); font-weight: 600; }
.z20-count { display: inline-block; min-width: 1.4rem; padding: 0 .35rem; margin-left: .25rem; border-radius: 999px; background: var(--z20-surface); font-size: .75rem; text-align: center; }

/* KPI */
.z20-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.z20-kpi { background: var(--z20-bg); border: 1px solid var(--z20-border); border-radius: var(--z20-radius); padding: .875rem 1rem; min-width: 0; }
.z20-kpi__label { font-size: .75rem; color: var(--z20-muted); text-transform: none; }
.z20-kpi__value { font-size: 1.625rem; font-weight: 650; line-height: 1.15; margin-top: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z20-kpi__delta { font-size: .75rem; margin-top: .25rem; }
.z20-up { color: var(--z20-ok); } .z20-down { color: var(--z20-risk); } .z20-flat { color: var(--z20-muted); }
.z20-kpi__note { font-size: .6875rem; color: var(--z20-warn); margin-top: .25rem; }

/* karty działań */
.z20-cards { display: grid; gap: .625rem; }
.z20-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .875rem; align-items: center; background: var(--z20-bg);
  border: 1px solid var(--z20-border); border-left: 3px solid var(--z20-border); border-radius: var(--z20-radius); padding: .75rem .875rem; }
.z20-card--high { border-left-color: var(--z20-accent); } .z20-card--risk { border-left-color: var(--z20-risk); } .z20-card--info { border-left-color: var(--z20-info); }
.z20-card__title { font-weight: 600; font-size: .9375rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.z20-card__line { font-size: .8125rem; color: var(--z20-muted); margin-top: .15rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.z20-card__meta { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .375rem; }
.z20-card__actions { display: flex; gap: .375rem; flex-wrap: wrap; justify-content: flex-end; max-width: 330px; }
@media (max-width: 760px) { .z20-card { grid-template-columns: 48px minmax(0, 1fr); } .z20-card__actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; } }

/* przyciski */
.z20-btn { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .7rem; border-radius: 8px; font-size: .8125rem; font-weight: 600; border: 1px solid var(--z20-border);
  background: var(--z20-bg); color: var(--z20-text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.z20-btn:hover { background: var(--z20-surface); }
.z20-btn:focus-visible { outline: 2px solid var(--z20-info); outline-offset: 1px; }
.z20-btn--primary { background: var(--z20-accent); border-color: var(--z20-accent); color: #fff; }
.z20-btn--primary:hover { filter: brightness(.95); background: var(--z20-accent); }
.z20-btn--ghost { border-color: transparent; color: var(--z20-muted); }
.z20-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* plakietki */
.z20-badge { display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .5rem; border-radius: 999px; font-size: .6875rem; font-weight: 600; background: var(--z20-surface); color: var(--z20-muted); white-space: nowrap; }
.z20-badge--ok { background: var(--z20-ok-soft); color: var(--z20-ok); } .z20-badge--warn { background: var(--z20-warn-soft); color: var(--z20-warn); }
.z20-badge--risk { background: var(--z20-risk-soft); color: var(--z20-risk); } .z20-badge--info { background: var(--z20-info-soft); color: var(--z20-info); }
.z20-badge--accent { background: var(--z20-accent-soft); color: var(--z20-accent); }

/* miniatury */
.z20-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--z20-surface); border: 1px solid var(--z20-border); display: block; }
.z20-thumb--sm { width: 40px; height: 40px; } .z20-thumb--lg { width: 120px; height: 120px; }

/* panele i sekcje */
.z20-panel { background: var(--z20-bg); border: 1px solid var(--z20-border); border-radius: var(--z20-radius); padding: 1rem; min-width: 0; }
.z20-grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 1100px) { .z20-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.z20-empty { text-align: center; padding: 2rem 1rem; color: var(--z20-muted); }
.z20-empty strong { display: block; color: var(--z20-text); margin-bottom: .25rem; }

/* proste tabele (maks. 5–7 kolumn) */
.z20-table { width: 100%; border-collapse: collapse; font-size: .8125rem; table-layout: auto; }
.z20-table th { text-align: left; font-weight: 600; color: var(--z20-muted); padding: .5rem .5rem; border-bottom: 1px solid var(--z20-border); white-space: nowrap; }
.z20-table td { padding: .5rem .5rem; border-bottom: 1px solid var(--z20-border); vertical-align: middle; }
.z20-table td.num, .z20-table th.num { text-align: right; white-space: nowrap; }
.z20-table tr[data-clickable]:hover td { background: var(--z20-surface); cursor: pointer; }
.z20-clip { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* wykres SVG */
.z20-chart svg { width: 100%; height: auto; display: block; }
.z20-chart .grid { stroke: var(--z20-border); stroke-width: 1; }
.z20-chart .now { stroke: var(--z20-accent); stroke-width: 2.25; fill: none; }
.z20-chart .prev { stroke: var(--z20-muted); stroke-width: 1.5; fill: none; stroke-dasharray: 4 3; }
.z20-chart .bar { fill: var(--z20-accent); } .z20-chart .bar--prev { fill: var(--z20-border); }
.z20-chart text { fill: var(--z20-muted); font-size: 11px; }
.z20-legend { display: flex; gap: 1rem; font-size: .75rem; color: var(--z20-muted); }
.z20-legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: .3rem; background: var(--z20-accent); }
.z20-legend i.prev { background: var(--z20-muted); }

/* szuflada szczegółów (natywny <details> — klawiatura i dotyk) */
.z20-details summary { cursor: pointer; font-size: .8125rem; color: var(--z20-info); list-style: none; }
.z20-details summary::-webkit-details-marker { display: none; }
.z20-details[open] summary { margin-bottom: .5rem; }
.z20-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem .75rem; font-size: .8125rem; }
.z20-kv dt { color: var(--z20-muted); } .z20-kv dd { margin: 0; }
.z20-notice { font-size: .75rem; padding: .375rem .625rem; border-radius: 8px; background: var(--z20-warn-soft); color: var(--z20-warn); display: inline-block; }
.z20-input { width: 5rem; padding: .25rem .4rem; border: 1px solid var(--z20-border); border-radius: 6px; background: var(--z20-bg); color: var(--z20-text); font-size: .8125rem; text-align: right; }
.z20-card--compact { grid-template-columns: 44px minmax(0, 1fr); }
.z20-card--compact .z20-thumb { width: 44px; height: 44px; }
.z20-card--compact .z20-card__actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
[x-cloak] { display: none !important; }
.z20-card__title, .z20-card__line, .z20-clip { overflow-wrap: anywhere; word-break: break-word; }
/* A21.2: kompaktowe pola cen w listach FC / FC LONG / Archiwum (bez poziomego przewijania przy 1366 px) */
.fi-ta-cell-planned-eur .fi-ta-text-input, .fi-ta-cell-planned-promo-eur .fi-ta-text-input { min-width: 5.75rem; width: 5.75rem; }
.fi-ta-cell-gender .fi-ta-select { min-width: 8.5rem; width: 8.5rem; }

/* A25–A30 — pulpit dnia, status systemu, lejek, „Dlaczego?”, karta produktu */
.z20-small { font-size: .75rem; }
.z20-kpis--5 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.z20-kpi--link { display: block; text-decoration: none; color: inherit; }
.z20-kpi--link:hover, .z20-kpi--link:focus-visible { border-color: var(--z20-info); outline: none; box-shadow: 0 0 0 2px var(--z20-info-soft); }
.z20-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 600; padding: .25rem .625rem; border-radius: 999px; text-decoration: none; }
.z20-status.is-ok { background: var(--z20-ok-soft); color: var(--z20-ok); } .z20-status.is-warn { background: var(--z20-warn-soft); color: var(--z20-warn); }
.z20-dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.z20-checks { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .375rem; font-size: .8125rem; }
.z20-checks li { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.z20-checks li.is-ok .z20-dot { color: var(--z20-ok); } .z20-checks li.is-warn .z20-dot { color: var(--z20-warn); }
.z20-bar { display: block; height: .5rem; border-radius: 4px; background: var(--z20-info); opacity: .75; min-width: 2px; }
.z20-funnel { margin-bottom: .75rem; } .z20-funnel .z20-bar { margin: .25rem 0; }
.z20-table-wrap { overflow-x: auto; max-width: 100%; }
.z20-why { margin-top: .375rem; }
.z20-why summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; color: var(--z20-info); }
.z20-why summary::-webkit-details-marker { display: none; }
.z20-why summary:focus-visible { outline: 2px solid var(--z20-info); outline-offset: 2px; border-radius: 4px; }
.z20-why ul { margin: .375rem 0 0; padding-left: 1.1rem; font-size: .8125rem; }
.z20-why .z20-warn-line { color: var(--z20-warn); }
.z20-chart .partial { stroke-dasharray: 3 3; }
.z20-product { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .z20-product { grid-template-columns: minmax(0, 1fr); } }
.z20-product__photo { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--z20-border); border-radius: var(--z20-radius); background: #fff; }
.z20-cand { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.z20-cand figure { margin: 0; border: 1px solid var(--z20-border); border-radius: var(--z20-radius); padding: .5rem; background: var(--z20-bg); }
.z20-cand img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.z20-cand figcaption { font-size: .75rem; color: var(--z20-muted); margin-top: .25rem; word-break: break-word; }
.z20-week { border-left: 3px solid var(--z20-border); padding-left: .75rem; }
.z20-week.is-now { border-left-color: var(--z20-accent); }
.z20-progress { height: .5rem; background: var(--z20-surface); border-radius: 4px; overflow: hidden; } .z20-progress > span { display: block; height: 100%; background: var(--z20-ok); }
@media print { .fi-sidebar, .fi-topbar, .z20-noprint { display: none !important; } }
/* A25 — listy FC / FC LONG / Archiwum: gęsta tabela bez poziomego przewijania przy 1366 px / 125% i otwartym menu (podstawowe akcje zawsze widoczne) */
.z20-pricelist td.fi-ta-cell:not(.fi-ta-selection-cell) { padding-inline: 0 !important; }
.z20-pricelist .fi-ta-header-cell { padding-inline: .375rem !important; }
.z20-pricelist .fi-ta-text, .z20-pricelist .fi-ta-image, .z20-pricelist .fi-ta-text-input { padding-inline: .375rem !important; }
.z20-pricelist .fi-ta-text-input .fi-input { padding-inline: .5rem !important; }
.z20-pricelist .fi-ta-cell-regular-eur { white-space: nowrap; }
.z20-pricelist td.fi-ta-cell:last-child { padding-inline-end: .75rem !important; }
.z20-pricelist .fi-ta-cell-name .fi-ta-text-item, .z20-pricelist .fi-ta-cell-produkt .fi-ta-text-item, .z20-pricelist .fi-ta-text-description { overflow-wrap: anywhere; }
.z20-pricelist .fi-ta-header-cell-label { white-space: normal; }
.z20-cand .z20-btn { white-space: normal; line-height: 1.2; }

/* ===== A31–A36: źródła danych, „Do zrobienia (wg Excela)”, oryginały PDF, zdjęcia do identyfikacji ===== */
.z20-src{display:inline-block;margin-left:.25rem;padding:0 .35rem;border-radius:.375rem;font-size:.6875rem;line-height:1.25rem;font-weight:600;white-space:nowrap;vertical-align:middle;border:1px solid transparent}
.z20-src--zalando{background:#e8f1fd;color:#1d4f91;border-color:#c6dbf7}
.z20-src--legacy{background:#f3eefc;color:#5b3b8c;border-color:#e0d4f5}
.z20-src--excel{background:#e9f6ee;color:#1f6b3a;border-color:#c8e8d3}
.z20-src--hist{background:#f4f4f5;color:#52525b;border-color:#e4e4e7}
.z20-src--warn{background:#fff6e5;color:#8a5a00;border-color:#f6dfae}
.dark .z20-src--zalando{background:#1e2b40;color:#a9c8f3;border-color:#2c4268}
.dark .z20-src--legacy{background:#2b2240;color:#cdb8f2;border-color:#43356a}
.dark .z20-src--excel{background:#1b3226;color:#a7dcb9;border-color:#2b4d3a}
.dark .z20-src--hist{background:#27272a;color:#d4d4d8;border-color:#3f3f46}
.dark .z20-src--warn{background:#3a2c10;color:#f3d08a;border-color:#5c4518}
.z20-na{color:var(--z20-muted,#71717a)}
.z20-na--calc{font-style:italic;font-size:.75rem;cursor:help;text-decoration:underline dotted}
.z20-todo td,.z20-todo th{white-space:nowrap}
.z20-todo th{font-size:.75rem}
.z20-todo__country{font-weight:600}
.z20-todo tfoot td{font-weight:700;border-top:2px solid var(--z20-border,#e4e4e7)}
.z20-todo-grid{display:grid;grid-template-columns:minmax(0,1fr) 17rem;gap:1rem;align-items:start}
@media (max-width:1279px){.z20-todo-grid{grid-template-columns:minmax(0,1fr)}}
.z20-hbar{display:grid;grid-template-columns:2.25rem 1fr 6.5rem;align-items:center;gap:.4rem;font-size:.75rem;margin:.15rem 0}
.z20-hbar svg{width:100%;height:10px}
.z20-hbar .bar--neg{fill:#dc2626}
.z20-hbar__v{text-align:right;font-variant-numeric:tabular-nums}
.z20-xl{overflow-x:auto;max-width:100%;border:1px solid var(--z20-border,#e4e4e7);border-radius:.75rem;background:var(--z20-card,#fff)}
.z20-xl:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.z20-xl__t{border-collapse:separate;border-spacing:0;font-size:.75rem;font-variant-numeric:tabular-nums}
.z20-xl__t th,.z20-xl__t td{padding:.3rem .45rem;border-bottom:1px solid var(--z20-border,#eee);white-space:nowrap;background:var(--z20-card,#fff)}
.z20-xl__t thead th{position:sticky;top:0;z-index:1;font-weight:600;background:var(--z20-surface,#f8fafc)}
.z20-xl__m{text-align:center;border-left:2px solid #94a3b8}
.z20-xl__start{border-left:2px solid #94a3b8}
.z20-xl__pin{position:sticky;left:0;z-index:2;min-width:2.25rem}
.z20-xl__pin2{left:2.25rem;min-width:3rem;box-shadow:2px 0 0 var(--z20-border,#e4e4e7)}
.z20-xl__t thead .z20-xl__pin{z-index:3}
.z20-xl__t tfoot td{font-weight:700;border-top:2px solid var(--z20-border,#e4e4e7)}
.z20-pdf{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}
.z20-pdf__missing{color:#8a5a00;font-size:.8125rem}
.z20-photo-card{display:grid;grid-template-columns:minmax(0,16rem) minmax(0,1fr);gap:1rem;padding:1rem;border:1px solid var(--z20-border,#e4e4e7);border-radius:.75rem;background:var(--z20-card,#fff)}
@media (max-width:1023px){.z20-photo-card{grid-template-columns:minmax(0,1fr)}}
.z20-photo-card.is-postponed{opacity:.75}
.z20-photo-cands{display:grid;grid-template-columns:repeat(auto-fill,minmax(10.5rem,1fr));gap:.75rem}
.z20-photo-cand{border:1px solid var(--z20-border,#e4e4e7);border-radius:.625rem;padding:.5rem;display:flex;flex-direction:column;gap:.35rem}
.z20-photo-cand img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#fff;border-radius:.375rem;cursor:zoom-in}
.z20-photo-cand .z20-btn{white-space:normal}
.z20-zoom{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.75);display:flex;align-items:center;justify-content:center;padding:2rem}
.z20-zoom img{max-width:min(90vw,40rem);max-height:85vh;background:#fff;border-radius:.5rem}

/* ===== „Do zrobienia” (układ arkusza) ===== */
.z20-dz-t td,.z20-dz-t th{white-space:nowrap;font-variant-numeric:tabular-nums}
.z20-dz-t th{font-size:.75rem}
.z20-dz-t td{font-size:.8125rem;padding-top:.3rem;padding-bottom:.3rem}
.z20-dz-green{color:#2f8f46}
.z20-dz-yr td{border-top:1px solid var(--z20-border,#e4e4e7)}
.z20-dz-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:start}
.z20-dz-top td,.z20-dz-top th{padding-left:.3rem!important;padding-right:.3rem!important;font-size:.75rem!important}
@media (max-width:1700px){.z20-dz-top{grid-template-columns:minmax(0,1fr)}}
.z20-dz-years{display:grid;grid-template-columns:repeat(auto-fit,minmax(34rem,1fr));gap:1rem;align-items:start}
.z20-dz-m th,.z20-dz-m td{padding-left:.3rem!important;padding-right:.3rem!important;font-size:.75rem!important}
.z20-dz-m td:first-child,.z20-dz-m th:first-child{padding-left:.6rem!important}
.z20-dz-bottom{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:1rem;align-items:start}
@media (max-width:1279px){.z20-dz-top,.z20-dz-bottom{grid-template-columns:minmax(0,1fr)}.z20-dz-years{grid-template-columns:minmax(0,1fr)}}
.z20-dz-yh{text-align:center;font-size:.875rem!important}
.z20-dz-m tfoot td{font-weight:700;border-top:2px solid var(--z20-border,#e4e4e7)}
.z20-dz-scroll{max-height:24rem;overflow:auto}
.z20-dz-scroll thead th{position:sticky;top:0;background:var(--z20-card,#fff);z-index:1}
.z20-dz-cal dd{font-variant-numeric:tabular-nums}

/* ===== Edycja cen (układ starego panelu) ===== */
.z20-pg{overflow:auto;max-height:calc(100vh - 14rem);border:1px solid var(--z20-border,#e4e4e7);border-radius:.75rem;background:var(--z20-card,#fff)}
.z20-pg:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.z20-pg__t{border-collapse:separate;border-spacing:0;font-size:.8125rem}
.z20-pg__t th,.z20-pg__t td{padding:.4rem .45rem;border-bottom:1px solid var(--z20-border,#eee);border-right:1px solid var(--z20-border,#f1f1f1);vertical-align:middle;background:var(--z20-card,#fff)}
.z20-pg__t thead th{position:sticky;top:0;z-index:3;background:var(--z20-surface,#f2f2f2);font-weight:600;white-space:nowrap;text-align:left}
.z20-pg__cc{text-align:center!important;min-width:12.5rem}
.z20-pg__c{min-width:6.25rem}
.z20-pg__t input:not([type=checkbox]){width:5.75rem;padding:.2rem .35rem;border:1px solid #c9ccd1;border-radius:.25rem;font-size:.8125rem;background:#fff;color:#111}
.z20-pg__t input[readonly],.z20-pg__t input:disabled{background:#f6f6f7;color:#444}
.z20-pg__t textarea{width:13rem;font-family:ui-monospace,monospace;font-size:.75rem;border:1px solid #c9ccd1;border-radius:.25rem;resize:vertical;background:#fff;color:#111}
.z20-pg__hint{font-size:.6875rem;line-height:1.15;color:#444;margin-top:.15rem;font-variant-numeric:tabular-nums}
.z20-pg__name{font-size:.6875rem;color:#666;max-width:7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.z20-pg__l0{position:sticky;left:0;z-index:2;min-width:3.75rem;width:3.75rem;padding:.25rem!important}
.z20-pg__ph{width:3.25rem;height:3.25rem;object-fit:contain;background:#fff;border-radius:.25rem;display:block}
.z20-pg__l1{position:sticky;left:3.75rem;z-index:2;min-width:2.5rem}
.z20-pg__l2{position:sticky;left:6.25rem;z-index:2;min-width:9.25rem;box-shadow:2px 0 0 var(--z20-border,#e4e4e7)}
.z20-pg__lim{font-size:.65rem;line-height:1.2;margin-top:.15rem;color:#b42318;white-space:nowrap}
.z20-pg__lim--min{color:#8a5a00}
.z20-pg__t input.is-over{border-color:#dc2626!important;box-shadow:0 0 0 1px #dc2626}
.z20-pg__t input.is-under{border-color:#d97706!important;box-shadow:0 0 0 1px #d97706}
.z20-pg__l2 input{width:8.25rem!important;font-variant-numeric:tabular-nums}
.z20-pg__r0{position:sticky;right:0;z-index:2;min-width:5.5rem}
.z20-pg__r1{position:sticky;right:5.5rem;z-index:2}
.z20-pg__r2{position:sticky;right:19.6rem;z-index:2;min-width:3rem;text-align:center;box-shadow:-2px 0 0 var(--z20-border,#e4e4e7)}
.z20-pg__t thead .z20-pg__l0,.z20-pg__t thead .z20-pg__l1,.z20-pg__t thead .z20-pg__l2,.z20-pg__t thead .z20-pg__r0,.z20-pg__t thead .z20-pg__r1,.z20-pg__t thead .z20-pg__r2{z-index:4}
.z20-pg__add td{background:#fafafa}
.z20-pg__btn{display:block;width:100%;margin:.15rem 0;padding:.3rem .5rem;background:#4caf50;color:#fff;border:0;border-radius:.25rem;font-size:.8125rem;cursor:pointer}
.z20-pg__btn:hover{background:#45a049}
.z20-pg__btn:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}
.z20-pg__btn--del{background:#9ca3af}
.z20-pg__btn--del:hover{background:#6b7280}
.dark .z20-pg__t input:not([type=checkbox]),.dark .z20-pg__t textarea{background:#18181b;color:#f4f4f5;border-color:#3f3f46}
.dark .z20-pg__hint{color:#d4d4d8}
.dark .z20-pg__add td{background:#1f1f23}

/* ===== INVOICE EDIT (układ zalando.send.edit.php) ===== */
.z20-ie__row{display:grid;grid-template-columns:2.5rem minmax(8rem,1.2fr) 1fr 1.3fr 1fr .8fr 1fr 5.5rem minmax(11rem,1.3fr);gap:.4rem;align-items:center;text-align:center;font-size:.8125rem;padding:.2rem 0;border-bottom:1px solid var(--z20-border,#f0f0f0)}
.z20-ie__head{font-weight:600;font-size:.75rem;border-bottom:2px solid var(--z20-border,#e4e4e7)}
.z20-ie__n{text-align:left}
.z20-ie__row .z20-input{width:100%;text-align:center;padding:.15rem .3rem}
.z20-ie__row input[readonly]{background:#f6f6f7;color:#444}
.z20-ie__s{display:flex;gap:.4rem;justify-content:flex-start;align-items:center;flex-wrap:wrap}
.z20-ie__list{max-height:32rem;overflow:auto}
@media (max-width:1279px){.z20-ie__row{grid-template-columns:2rem 1fr 1fr 1fr .8fr .6fr 1fr 4.5rem 1fr;font-size:.75rem}}
/* A37 — Edycja cen: filtry, akcje hurtowe, stan wiersza, panel rekomendacji per kraj */
.z20-sr-only,.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.z20-num{font-variant-numeric:tabular-nums;white-space:nowrap}
.z20-callout{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;padding:.5rem .75rem;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:.5rem;font-size:.8125rem}
.z20-callout--warn{border-color:#fde68a;background:#fffbeb}
.z20-callout details{flex-basis:100%}
.dark .z20-callout{background:#052e16;border-color:#14532d}.dark .z20-callout--warn{background:#422006;border-color:#713f12}
.z20-pg-filters{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.z20-pg-filters .z20-input{width:auto;min-width:9rem;max-width:16rem}
.z20-pg-filters input[type=search]{min-width:14rem}
.z20-pg-bulk{position:sticky;top:3.5rem;z-index:6;display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;padding:.5rem .75rem;border:1px solid #93c5fd;background:#eff6ff;border-radius:.5rem;font-size:.8125rem}
.dark .z20-pg-bulk{background:#172554;border-color:#1e3a8a}
.z20-pg-bulk__ccs{display:grid;grid-template-columns:repeat(10,auto);gap:.15rem .6rem;margin:.35rem 0}
.z20-pg__btn--inline{display:inline-block;width:auto;margin:0}
.z20-pg__btn--reco{background:#2563eb}.z20-pg__btn--reco:hover{background:#1d4ed8}
.z20-pg__state{font-size:.6875rem;min-height:.9rem}
.z20-pg__state .is-ok{color:#15803d;font-weight:600}.z20-pg__state .is-err{color:#b42318;font-weight:600}.z20-pg__state .is-busy{color:#a16207;font-weight:600}
.z20-pg__err{display:block;color:#b42318;max-width:9rem;white-space:normal}
.z20-pg__meta{font-size:.65rem;color:#666}
.z20-pg__t tr.is-sel td{background:#eff6ff}
.z20-pg__t tr.is-dirty td.z20-pg__l2{box-shadow:inset 3px 0 0 #d97706,2px 0 0 var(--z20-border,#e4e4e7)}
.z20-pg__t tr.is-err td.z20-pg__l2{box-shadow:inset 3px 0 0 #dc2626,2px 0 0 var(--z20-border,#e4e4e7)}
.z20-pg__cc.is-off{color:#888}
.z20-drawer{position:fixed;top:4rem;right:0;bottom:0;z-index:40;width:min(78rem,100vw);overflow:auto;padding:1rem;background:var(--z20-card,#fff);border-left:1px solid var(--z20-border,#e4e4e7);box-shadow:-8px 0 24px rgba(0,0,0,.15)}
.z20-drawer__head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;position:sticky;top:-1rem;background:inherit;padding:.25rem 0;z-index:1}
.z20-reco td{vertical-align:top}
.z20-table tr.is-off td,.z20-reco tr.is-off td{color:#888}
.dark .z20-pg__t tr.is-sel td{background:#172554}
/* A39 — kolumna faktur w zamówieniach */
.z20-invcol{display:flex;flex-direction:column;gap:.2rem;font-size:.75rem;white-space:normal;min-width:16rem}
.z20-invcol__doc{line-height:1.35}
.z20-table tr.is-diff td{background:#fffbeb}.dark .z20-table tr.is-diff td{background:#422006}
/* A40 — Do zrobienia: widok nowoczesny */
.z20-dz-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(13rem,1fr));gap:.6rem}
.z20-dz-tile{border:1px solid var(--z20-border,#e4e4e7);border-radius:.6rem;padding:.6rem .75rem;background:var(--z20-card,#fff)}
.z20-dz-tile__v{font-size:1.25rem;font-weight:700;font-variant-numeric:tabular-nums}
/* A41 — wymaga uwagi */
.z20-att{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.75rem}
.z20-att__tile{display:flex;flex-direction:column;gap:.25rem;padding:.9rem 1rem;border:1px solid var(--z20-border,#e4e4e7);border-left-width:4px;border-radius:.6rem;background:var(--z20-card,#fff);text-decoration:none;color:inherit}
.z20-att__tile:hover,.z20-att__tile:focus-visible{box-shadow:0 2px 8px rgba(0,0,0,.08);outline:2px solid transparent}
.z20-att__tile:focus-visible{outline:2px solid #2563eb}
.z20-att__tile.is-risk{border-left-color:#dc2626}.z20-att__tile.is-warn{border-left-color:#d97706}.z20-att__tile.is-ok{border-left-color:#16a34a}
.z20-att__n{font-size:1.75rem;font-weight:700;font-variant-numeric:tabular-nums}
.z20-att__t{font-weight:600}.z20-att__h{font-size:.75rem;color:#666}
/* A44 — decyzje cenowe */
.z20-chip{padding:.25rem .6rem;border:1px solid var(--z20-border,#d4d4d8);border-radius:999px;background:var(--z20-card,#fff);font-size:.75rem;cursor:pointer;color:inherit}
.z20-chip.is-on{background:#fff7ed;border-color:#fb923c;color:#9a3412}
.dark .z20-chip.is-on{background:#431407;color:#fed7aa}
.z20-chip:focus-visible{outline:2px solid #2563eb;outline-offset:1px}
.z20-cases td{vertical-align:top}
.z20-cases .z20-pg__ph{width:2.75rem;height:2.75rem}
.z20-cases__more td{background:var(--z20-surface,#fafafa)}
/* A45 — konflikty: A i B obok siebie */
.z20-cf th[scope=row]{width:14rem;font-weight:500;color:#555}
.z20-cf td{width:calc(50% - 7rem)}
.z20-cf__view{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.4rem}
.z20-cf__view iframe{width:100%;height:32rem;border:1px solid var(--z20-border,#e4e4e7);border-radius:.4rem;background:#fff}
@media (max-width:1100px){.z20-cf__view{grid-template-columns:1fr}}
.z20-photo-cand.is-ref{opacity:.75;border-style:dashed}
.z20-dz-chart{width:100%;max-width:48rem;height:auto}
.z20-dz-chart__s{fill:#93c5fd}.z20-dz-chart__p{fill:#1d4ed8}.z20-dz-chart__l{font-size:10px;fill:currentColor}
.dark .z20-dz-chart__s{fill:#1e3a8a}.dark .z20-dz-chart__p{fill:#60a5fa}
.z20-card__facts{display:flex;flex-wrap:wrap;gap:.15rem .6rem;color:#555;margin:.2rem 0}.dark .z20-card__facts{color:#bbb}
