/* Parlo Szkoły - front w designie „Parlo Reports” (jak Raporty HR / BHPdesk).
 * Paleta: granat #101828, treść #344054, muted #667085, ok #0a7a44, bad #b42318,
 * blue #2a78d6, warn #8a5a00; karty białe, ramki #e4e7ec, nagłówek tabeli #f9fafb. */
.psz, .psz-form {
	--psz-ink: #101828;
	--psz-text: #344054;
	--psz-soft: #475467;
	--psz-faint: #5b6475;
	--psz-line: #e4e7ec;
	--psz-line-soft: #f0f1f3;
	--psz-field: #d0d5dd;
	--psz-bg: #f9fafb;
	--psz-hover: #f7f9fc;
	--psz-accent: #2a78d6;
	--psz-accent-dark: #1f66bd;
	--psz-ok: #0a7a44;
	--psz-warn: #8a5a00;
	--psz-bad: #b42318;
	--psz-shadow: 0 1px 3px rgba(16, 24, 40, .06);
	color: var(--psz-text);
	font-size: 15px;
}
.psz *, .psz-form * { box-sizing: border-box; }
.psz-h { font-size: 21px; font-weight: 600; color: var(--psz-ink); letter-spacing: -.01em; margin: 0 0 .75rem; }
.psz-h3 { font-size: 17px; font-weight: 600; color: var(--psz-ink); margin: 1.5rem 0 .75rem; }
.psz-help, .psz-muted { color: var(--psz-faint); font-size: 13px; }
.psz-lead { color: var(--psz-faint); max-width: 760px; }
.psz-hp { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Komunikaty */
.psz-notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 1rem; border: 1px solid #b7e1c8; background: #e6f4ea; color: var(--psz-ok); font-weight: 500; }
.psz-notice--error { border-color: #f0c2bd; background: #fdecea; color: var(--psz-bad); }
.psz-notice--info { border-color: #cfe0f6; background: #eaf1fb; color: #1a4f9c; }

/* Przyciski */
.psz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 15px; border-radius: 8px; border: 1px solid var(--psz-field); background: #fff; color: var(--psz-text); font-weight: 600; font-size: 14px; line-height: 1.4; cursor: pointer; text-decoration: none !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: background .12s, border-color .12s, color .12s; }
.psz-btn:hover { background: var(--psz-hover); border-color: #c3cad3; color: var(--psz-ink); }
.psz-btn:focus-visible { outline: none; border-color: var(--psz-accent); box-shadow: 0 0 0 3px rgba(42, 120, 214, .2); }
.psz-btn--primary { background: var(--psz-accent); border-color: var(--psz-accent); color: #fff; box-shadow: 0 1px 2px rgba(42, 120, 214, .25); }
.psz-btn--primary:hover { background: var(--psz-accent-dark); border-color: var(--psz-accent-dark); color: #fff; }
.psz-btn:disabled { opacity: .55; cursor: not-allowed; }
.psz-link { font-size: 13px; margin-left: .75rem; color: var(--psz-accent); font-weight: 600; }

/* Formularze */
.psz-form fieldset { background: #fff; border: 1px solid var(--psz-line); border-radius: 12px; box-shadow: var(--psz-shadow); padding: 18px 22px 20px; margin: 0 0 18px; }
.psz-form legend { float: left; width: 100%; font-size: 16px; font-weight: 600; color: var(--psz-ink); padding: 0; margin: 0 0 14px; }
.psz-form legend + * { clear: both; }
.psz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; margin-bottom: 14px; }
.psz-wide { grid-column: 1 / -1; }
.psz-form label { display: block; font-size: 13px; font-weight: 600; color: var(--psz-text); }
.psz-form input[type=text], .psz-form input[type=email], .psz-form input[type=tel], .psz-form input[type=number], .psz-form input[type=date], .psz-form input[type=time], .psz-form input[type=search], .psz-form select, .psz-form textarea, .psz-filters input, .psz-filters select, .psz-filter {
	display: block; width: 100%; min-height: 38px; margin-top: 6px; padding: 8px 12px; border: 1px solid var(--psz-field); border-radius: 8px; font: inherit; font-size: 14px; font-weight: 400; color: var(--psz-ink); background-color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .12s, box-shadow .12s;
}
.psz-form input:focus, .psz-form select:focus, .psz-form textarea:focus, .psz-filters input:focus, .psz-filters select:focus, .psz-filter:focus { border-color: var(--psz-accent); box-shadow: 0 0 0 3px rgba(42, 120, 214, .15); outline: none; }
.psz-form input::placeholder, .psz-form textarea::placeholder, .psz-filters input::placeholder { color: #98a2b3; }
.psz-req { color: var(--psz-bad); }
.psz-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--psz-text) !important; font-size: 14px !important; margin: 6px 0; }
.psz-check input { margin-top: 3px; flex: none; accent-color: var(--psz-accent); width: 16px; height: 16px; }
.psz-check--big { padding: 12px 14px; border: 1px solid var(--psz-line); border-radius: 10px; margin: 10px 0; background: #fff; transition: border-color .12s, background .12s; }
.psz-check--big:has(input:checked) { border-color: var(--psz-accent); background: #f5f9ff; }
.psz-sub { padding: 4px 0 8px 28px; }
.psz-label { font-weight: 600; color: var(--psz-text); margin: 12px 0 4px; font-size: 13px; }
.psz-courselist { max-height: 300px; overflow: auto; border: 1px solid var(--psz-line); border-radius: 10px; padding: 6px 12px; margin: 8px 0; background: #fff; }
.psz-courselist label[hidden] { display: none !important; }
.psz-estimate { margin: 12px 0; padding: 12px 16px; background: #eaf1fb; border: 1px solid #cfe0f6; border-radius: 10px; color: #1a4f9c; }
.psz-estimate:empty { display: none; }

/* Zakładki = segment Parlo */
.psz-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 20px; background: #eef0f2; border-radius: 10px; border: 0; }
.psz-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; color: var(--psz-soft); font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none !important; border: 0; transition: background .12s, color .12s; }
.psz-tabs a:hover { color: var(--psz-ink); background: rgba(255, 255, 255, .6); }
.psz-tabs a.is-active { background: #fff; color: var(--psz-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.psz-panel__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
.psz-inline { display: inline-flex; gap: 8px; align-items: center; }

/* Kafle = egp-card */
.psz-tiles { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 20px; }
.psz-tile { flex: 1 1 150px; min-width: 150px; background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 14px 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.psz-tile b { display: block; font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--psz-ink); font-variant-numeric: tabular-nums; }
.psz-tile span { display: block; color: var(--psz-faint); font-size: 12px; margin-top: 4px; }

.psz-panel__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.psz-panel__grid:has(> :only-child) { grid-template-columns: 1fr; }
@media (max-width: 900px) { .psz-panel__grid { grid-template-columns: 1fr; } }
.psz-box { background: #fff; border: 1px solid var(--psz-line); border-radius: 12px; box-shadow: var(--psz-shadow); padding: 18px 20px; margin-bottom: 18px; }
.psz-box .psz-h3 { margin-top: 0; font-size: 15px; }
.psz-promo img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 10px; }
.psz-code strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--psz-ink); background: var(--psz-bg); border: 1px dashed var(--psz-field); padding: 3px 9px; border-radius: 6px; letter-spacing: .06em; }
.psz-events { list-style: none; margin: 0; padding: 0; }
.psz-events li { padding: 10px 0; border-bottom: 1px solid var(--psz-line-soft); }
.psz-events li:last-child { border-bottom: 0; padding-bottom: 0; }
.psz-date { display: block; font-size: 12px; color: var(--psz-accent); font-weight: 700; margin-bottom: 2px; }

/* Filtry = biała karta nad tabelą */
.psz-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--psz-line); border-radius: 12px; box-shadow: var(--psz-shadow); }
.psz-filters label { font-size: 12px; font-weight: 600; color: var(--psz-soft); flex: 1 1 170px; max-width: 300px; }
.psz-filters select { text-overflow: ellipsis; }

/* Tabele = egp-tablecard + egp-list */
.psz-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--psz-line); border-radius: 12px; box-shadow: var(--psz-shadow); }
.psz-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; border: 0; }
.psz-tablewrap > .psz-table { border: 0; }
.psz-table th { text-align: left; background: var(--psz-bg); color: #667085; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--psz-line); }
.psz-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--psz-line-soft); color: var(--psz-text); vertical-align: middle; }
.psz-table tbody tr:last-child td { border-bottom: 0; }
.psz-table tbody tr { transition: background .12s; }
.psz-table tbody tr:hover td { background: var(--psz-hover); }
.psz-table td:first-child { font-weight: 600; color: var(--psz-ink); }
.psz-table tfoot td, .psz-table tfoot th { background: var(--psz-bg); font-weight: 700; color: var(--psz-ink); border-top: 1px solid var(--psz-line); border-bottom: 0;  text-transform: none; font-size: 14px; letter-spacing: 0; padding: 12px 16px; }
.psz-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.psz-table tr[hidden] { display: none; }
.psz-table tr.is-nochoice td { background: #fffaf0; }
.psz-table tr.is-nochoice:hover td { background: #fef4e5; }
.psz-table tr.is-nochoice em { color: var(--psz-warn); font-style: normal; font-weight: 600; }

/* Pill statusu z kropką */
.psz-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; line-height: 1.5; background: #f2f3f5; color: #4f5868; white-space: nowrap; }
.psz-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c0c4cc; flex: none; }
.psz-pill--go, .psz-pill--w_realizacji { background: #eaf1fb; color: #1a4f9c; }
.psz-pill--go::before, .psz-pill--w_realizacji::before { background: #2a78d6; }
.psz-pill--done, .psz-pill--zrealizowane { background: #e6f4ea; color: var(--psz-ok); }
.psz-pill--done::before, .psz-pill--zrealizowane::before { background: #0ca30c; }
.psz-pill--nowe { background: #fef4e5; color: #7a4f00; }
.psz-pill--nowe::before { background: #eda100; }
.psz-pill--anulowane, .psz-pill--odrzucone { background: #fdecea; color: var(--psz-bad); }
.psz-pill--anulowane::before, .psz-pill--odrzucone::before { background: #d03b3b; }
.psz-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

/* Katalog kursów */
.psz-cards { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.psz-card { background: #fff; border: 1px solid var(--psz-line); border-radius: 12px; box-shadow: var(--psz-shadow); overflow: hidden; display: flex; flex-direction: column; transition: border-color .12s, box-shadow .12s; }
.psz-card:hover { border-color: #c3cad3; box-shadow: 0 4px 12px rgba(16, 24, 40, .08); }
.psz-card[hidden] { display: none; }
.psz-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.psz-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.psz-card h4 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--psz-ink); }
.psz-meta { margin: 0; color: var(--psz-faint); font-size: 13px; }
.psz-card__actions { margin-top: auto; padding-top: 8px; }
.psz-card__actions form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }

/* Rada, głosowanie */
.psz-details { margin-bottom: 16px; }
.psz-details > summary { list-style: none; cursor: pointer; }
.psz-details > summary::-webkit-details-marker { display: none; }
.psz-details[open] > summary { margin-bottom: 16px; }
.psz-rada-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--psz-line); border-radius: 12px; box-shadow: var(--psz-shadow); padding: 16px 20px; margin-bottom: 12px; }
.psz-rada-card h4 { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--psz-ink); }
.psz-results { padding-left: 20px; }
.psz-results li { margin: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr) 140px 2rem; gap: 10px; align-items: center; }
.psz-results li .psz-link { grid-column: 1 / -1; margin: 0; }
.psz-results li.is-top .psz-results__label { font-weight: 700; color: var(--psz-ink); }
.psz-bar { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--psz-accent) var(--w), #eef0f2 var(--w)); }
.psz-results li.is-top .psz-bar { background: linear-gradient(90deg, #00875a var(--w), #eef0f2 var(--w)); }
.psz-results__n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Wydruk raportu */
@media print {
	body * { visibility: hidden; }
	.psz-report, .psz-report *, .psz-thanks, .psz-thanks * { visibility: visible; }
	.psz-report, .psz-thanks { position: absolute; left: 0; top: 0; width: 100%; }
	.psz-thanks .psz-tile, .psz-thanks .psz-box { box-shadow: none; break-inside: avoid; }
	.psz-noprint { display: none !important; }
	.psz-tablewrap { border: 0; box-shadow: none; }
	.psz-table th { background: none; }
	.psz-table th, .psz-table td { border-bottom: 1px solid #999; }
}

/* ---------- 1.1: formularz zamówienia szkoły ---------- */
.psz-order fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.psz-order legend { font-size: 19px; font-weight: 600; color: var(--psz-ink); margin-bottom: 8px; padding: 0; }
.psz-order .psz-label { font-weight: 600; color: var(--psz-ink); margin: 18px 0 8px; }
.psz-order .psz-field label { display: block; font-weight: 500; color: var(--psz-ink); margin-bottom: 4px; }
.psz-order .psz-field small.psz-help { display: block; margin-top: 4px; }
.psz-order select.psz-item { width: 100%; max-width: 100%; }
.psz-tiers { background: #fff8e8; border-color: #f4dca0; }
.psz-tiers ul { margin: 0 0 8px 1.1em; padding: 0; }
.psz-tiers li { margin: 2px 0; font-weight: 500; color: var(--psz-ink); }
.psz-rows td { vertical-align: middle; }
.psz-rows td:first-child { min-width: 260px; }
.psz-rows input[type="number"] { width: 110px; }
.psz-rows .psz-del-row { background: none; border: 0; color: var(--psz-bad); cursor: pointer; padding: 6px; font: inherit; text-decoration: underline; }
.psz-sum { margin: 14px 0 22px 28px; padding: 14px 18px; background: #eaf1fb; border: 1px solid #cfe0f6; border-radius: 10px; }
.psz-sum[hidden] { display: none; }
.psz-sum .psz-help { margin: 8px 0 0; color: #1a4f9c; font-weight: 500; }
.psz-example { margin-top: 10px; padding: 12px 16px; background: var(--psz-bg); border: 1px solid var(--psz-line); border-radius: 10px; }
.psz-example:empty { display: none; }
.psz-example p { margin: 0 0 4px; }
.psz-dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; margin: 10px 0; }
.psz-dl dt { color: var(--psz-soft); margin: 0; }
.psz-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--psz-ink); }
.psz-dl .psz-dl__total { font-weight: 700; font-size: 17px; color: var(--psz-ink); border-top: 1px solid var(--psz-line); padding-top: 8px; }
.psz-dl--data { grid-template-columns: minmax(120px, 40%) minmax(0, 1fr); }
.psz-dl--data dd { text-align: left; overflow-wrap: anywhere; }
.psz-cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px; margin-top: 12px; }
.psz-review { margin: 0 0 22px; }
.psz-review .psz-h3 { margin-top: 0; }
.psz-btn--lg { font-size: 17px; padding: 14px 28px; }
.psz-thanks__msg h2 { font-size: 26px; color: var(--psz-ink); margin: 0 0 10px; }
.psz-thanks__msg ol { margin: 14px 0 14px 1.2em; }
.psz-thanks__msg li { margin: 8px 0; }
.psz-thanks .psz-tile b.psz-break { font-size: 17px; overflow-wrap: anywhere; }
.psz-panel__head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) {
	.psz-sum { margin-left: 0; }
	.psz-rows td:first-child { min-width: 200px; }
	.psz-dl--data { grid-template-columns: 1fr; }
}

/* ---------- 1.1: strona kursu z puli szkoły ---------- */
.psz-hidden { display: none !important; }
.bb-button-wrap.psz-has-cta > :not(.psz-course-cta):not(.psz-course-cta__note) { display: none !important; }
.psz-course-cta { margin: 0; }
.psz-course-cta__btn { display: block; width: 100%; text-align: center; border: 0; cursor: pointer; }
.psz-course-cta__note { font-size: 13px; color: #5b6475; margin: 10px 0 0; text-align: center; }
.psz-course-cta__note--err { color: #b42318; font-weight: 500; }

/* ---------- 1.2.1: audyt mobile 19.11 + kolory platformy ---------- */
.psz, .psz-form { --psz-accent: #49A6CD; --psz-accent-dark: #2F86AA; }
.psz-btn--primary { box-shadow: none; }
.psz-course-cta__btn { background: #49A6CD !important; border-color: #49A6CD !important; color: #fff !important; }
.psz-course-cta__btn:hover { background: #2F86AA !important; }
.psz-check a { display: inline-block; padding: 6px 4px; margin: -6px 0; font-weight: 600; }
.psz-tile { min-width: 0; }
.psz-tile b { overflow-wrap: anywhere; }
@media (max-width: 600px) {
	.psz-tiles { gap: 10px; }
	.psz-tile { flex: 1 1 calc(50% - 5px); padding: 12px 14px; }
	.psz-tile b { font-size: 21px; }
	.psz-filters { padding: 12px; gap: 10px; }
	.psz-filters label { flex: 1 1 100%; max-width: none; }
	.psz-filters select, .psz-filters input { width: 100%; max-width: none; }
	.psz-tabs { display: flex; }
	.psz-tabs a { flex: 1 1 auto; justify-content: center; padding: 8px 10px; }
	/* Tabele panelu jako karty: bez ucinania kolumn z prawej. */
	.psz-panel .psz-tablewrap { overflow: visible; background: transparent; border: 0; box-shadow: none; }
	.psz-panel .psz-table:not(.psz-rows), .psz-panel .psz-table:not(.psz-rows) tbody { display: block; width: 100%; border: 0; }
	.psz-panel .psz-table:not(.psz-rows) thead { display: none; }
	.psz-panel .psz-table:not(.psz-rows) tr { display: block; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--psz-line); border-radius: 12px; background: #fff; box-shadow: var(--psz-shadow); }
	.psz-panel .psz-table:not(.psz-rows) td { display: block; width: auto !important; min-width: 0 !important; padding: 3px 0 !important; border: 0 !important; text-align: left !important; background: transparent; }
	.psz-panel .psz-table:not(.psz-rows) td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--psz-faint); margin-top: 6px; }
	.psz-panel .psz-table:not(.psz-rows) tr.is-nochoice { background: #fffaf0; border-color: #f5d9a8; }
	.psz-panel .psz-table:not(.psz-rows) td.psz-td-empty { display: none !important; }
	.psz-panel .psz-table:not(.psz-rows) tr.psz-tr-cd { margin-top: -10px; border-top: 1px dashed var(--psz-line); border-radius: 0 0 12px 12px; box-shadow: none; }
	.psz-panel .psz-table:not(.psz-rows) tr.psz-tr-cd > td.psz-td-empty + td::before { margin-top: 0; }
}

/* 1.2.4: dane dyrekcji i kontaktu w dwóch wierszach po 3 kolumny, wyjaśnienie o koncie panelu */
.psz-order .psz-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.psz-order .psz-note { background: #f4f7fb; border-left: 4px solid #F4B32F; border-radius: 6px; padding: 10px 14px; font-size: .9em; line-height: 1.45; }
.psz-order .psz-note p { margin: 0 0 6px; }
.psz-order .psz-note p:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .psz-order .psz-grid3 { grid-template-columns: 1fr; } }
.psz-filters--cards { margin-bottom: 16px; }
.psz-filters--cards input[type=search] { width: 100%; padding-left: 40px !important; }
.psz-card[hidden] { display: none; }
