/* =====================================================================
   portal.css – styl „Portal Pracownika” (SPZOZ RM-Meditrans Siedlce)
   Kolory jak ekran logowania: granat #0f172a, czerwień #dc2626, biel.
   Arkusz tylko dla stylu „Portal Pracownika” – Default go nie widzi.
   ===================================================================== */

/* ---------- Podstawy ---------- */
body {
	background: #f1f5f9;
	color: #1e293b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
}
body #container {
	font-family: inherit;
	font-size: 14px;
	color: #1e293b;
}
body #container #content {
	background: transparent;
	padding: 22px 10px 10px;
}
body #container a:link,
body #container a:visited {
	color: #0f172a;
}
body #container a:hover,
body #container a:active {
	color: #dc2626;
	text-decoration: none;
}
table, input.textbox, textarea, select, button, input.button {
	font-family: inherit;
}

/* ---------- Górny pasek aplikacji ---------- */
body #container #header {
	padding: 0;
}
body #container #logo {
	display: none;
}
body #container #panel .upper {
	background: #0f172a;
	border: 0;
	padding: 0;
	color: #cbd5e1;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
}
body #container #panel .upper .wrapper {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 62px;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0 6px;
	box-sizing: border-box;
	overflow: visible;
}
body #container .pp-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #ffffff !important;
	font-weight: 800;
	font-size: 16px;
	white-space: nowrap;
}
body #container .pp-brand-logo {
	width: 40px;
	height: 40px;
	object-fit: cover;
	object-position: 2% 50%;
	border-radius: 50%;
	background: #ffffff;
}
body #container .pp-brand-txt small {
	display: block;
	font-weight: 500;
	font-size: 10.5px;
	color: #94a3b8;
	letter-spacing: 0.4px;
}
body #container ul.pp-nav {
	display: flex;
	flex: 1;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body #container ul.pp-nav li {
	display: block;
	margin: 0;
}
body #container ul.pp-nav li a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	background: none;
	color: #cbd5e1 !important;
	font-weight: 600;
	font-size: 13.5px;
	line-height: 1.2;
}
body #container ul.pp-nav li a:hover {
	background: #1e293b;
	color: #ffffff !important;
}
body.pp-index #container ul.pp-nav a.pp-home {
	background: #1e293b;
	color: #ffffff !important;
}
/* wyszukiwarka w pasku */
body #container #panel #search {
	float: none;
	display: flex;
	gap: 6px;
	margin: 0;
}
body #container #panel #search input {
	margin: 0;
}
body #container #panel #search input.textbox {
	width: 170px;
	border: 0;
	border-radius: 8px;
	padding: 7px 10px;
	background: #1e293b;
	color: #ffffff;
}
body #container #panel #search input.button {
	background: #dc2626;
	border: 0;
	border-radius: 8px;
	color: #ffffff;
	padding: 7px 12px;
	font-weight: 700;
}
body.pp-index #container #panel #search {
	display: none;
}
/* powitanie i wyloguj */
body #container #panel .upper .welcome {
	font-size: 12.5px;
	color: #94a3b8;
	white-space: nowrap;
}
body #container #panel .upper .welcome strong,
body #container #panel .upper .welcome a {
	color: #ffffff !important;
}
body #container #panel .upper a.logout {
	background: #dc2626;
	padding: 6px 12px;
	border-radius: 8px;
	margin-left: 8px;
	font-weight: 700;
}
body #container #panel .upper a.logout:hover {
	background: #b91c1c;
}

/* ---------- Drugi pasek (panel, nowe posty, PW) ---------- */
body #container #panel .lower {
	background: #ffffff;
	border: 0;
	border-bottom: 1px solid #e2e8f0;
	padding: 0;
}
body #container #panel .lower .wrapper {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 8px 6px;
	box-shadow: none;
	box-sizing: border-box;
	overflow: hidden;
}
body #container #panel .lower a:link,
body #container #panel .lower a:visited {
	color: #475569;
	font-weight: 600;
	font-size: 13px;
}
body #container #panel .lower a:hover {
	color: #dc2626;
}

/* ---------- Strona główna: powitanie ---------- */
.pp-hero {
	position: relative;
	height: 190px;
	border-radius: 16px;
	overflow: hidden;
	background: #0f172a;
	margin-bottom: 6px;
}
.pp-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 45%;
	opacity: 0.55;
	display: block;
}
.pp-hero-in {
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	padding: 34px 36px;
	background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0.1) 100%);
	color: #ffffff;
}
.pp-hero h1 {
	margin: 0 0 6px;
	font-size: 28px;
	font-weight: 800;
}
.pp-hero p {
	margin: 0 0 18px;
	color: #cbd5e1;
	font-size: 14px;
}
.pp-hero p strong {
	color: #ffffff;
}
.pp-search {
	display: flex;
	gap: 8px;
	max-width: 540px;
}
body #container .pp-search input.textbox {
	flex: 1;
	border: 0;
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 14px;
}
body #container .pp-search button.button {
	background: #dc2626;
	color: #ffffff;
	border: 0;
	border-radius: 10px;
	padding: 0 20px;
	font-weight: 700;
	font-size: 14px;
}
body #container .pp-search button.button:hover {
	background: #b91c1c;
}

/* ---------- Kafelki „Na skróty” ---------- */
.pp-sec {
	margin: 24px 0 12px;
}
.pp-sec h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	border-left: 5px solid #dc2626;
	padding-left: 12px;
}
.pp-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 26px;
}
body #container a.pp-tile,
body #container summary.pp-tile {
	display: grid;
	grid-template-columns: 48px 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: center;
	padding: 16px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
body #container a.pp-tile:hover,
body #container summary.pp-tile:hover,
body #container .pp-drop[open] summary.pp-tile {
	border-color: #cbd5e1;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.pp-ico {
	grid-row: 1 / 3;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background-color: #0f172a;
	background-position: center;
	background-size: 24px;
	background-repeat: no-repeat;
}
.pp-red .pp-ico {
	background-color: #dc2626;
}
.pp-t {
	font-weight: 700;
	color: #0f172a;
	font-size: 14.5px;
}
.pp-s {
	font-size: 12px;
	color: #64748b;
}
.pp-ico.pp-i-mega { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E"); }
.pp-ico.pp-i-pill { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 20.5 3.5 13.5a5 5 0 0 1 7-7l7 7a5 5 0 0 1-7 7z'/%3E%3Cpath d='m8.5 8.5 7 7'/%3E%3C/svg%3E"); }
.pp-ico.pp-i-doc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8'/%3E%3C/svg%3E"); }
.pp-ico.pp-i-cal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.pp-ico.pp-i-radio { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14'/%3E%3C/svg%3E"); }
.pp-ico.pp-i-shield { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.pp-ico.pp-i-hard { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 18h20M4 18v-3a8 8 0 0 1 16 0v3M12 7V4M9 7.5 8 5M15 7.5l1-2.5'/%3E%3C/svg%3E"); }
.pp-ico.pp-i-news { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8M15 18h-5M10 6h8v4h-8z'/%3E%3C/svg%3E"); }
.pp-ico.pp-i-stamp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 22h14M7 18h10a2 2 0 0 0 2-2v-1a2 2 0 0 0-2-2h-2.5l.5-5a3 3 0 1 0-6 0l.5 5H7a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2z'/%3E%3C/svg%3E"); }
.pp-ico.pp-i-swap { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4 3 8l4 4M3 8h14M17 20l4-4-4-4M21 16H7'/%3E%3C/svg%3E"); }

/* ---------- Shoutbox ---------- */
body #container #shoutbox {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
	margin-top: 6px;
}
body #container #shoutbox .head {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #ffffff;
	border-bottom: 3px solid #dc2626;
	padding: 11px 16px;
}
body #container #shoutbox .head a {
	color: #cbd5e1;
}

/* ---------- Układ: działy + panel boczny ---------- */
.pp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 22px;
	align-items: start;
}
.pp-side table.tborder {
	margin-bottom: 12px;
}
.pp-side .forum_legend {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 8px 10px;
	align-items: center;
	padding: 4px 6px;
}
.pp-side .forum_legend dt,
.pp-side .forum_legend dd {
	float: none;
	margin: 0;
}

/* ---------- Ścieżka nawigacji ---------- */
body #container .navigation {
	color: #64748b;
	font-weight: 600;
	padding: 0 2px 6px;
}
body #container .navigation .active {
	color: #0f172a;
	font-size: 15px;
}
body.pp-index #container .navigation {
	display: none;
}

/* ---------- Tabele jako karty (wszystkie strony) ---------- */
body #container table.tborder {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	border-collapse: separate;
	border-spacing: 0;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
body #container table.tborder td.thead {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #ffffff;
	border: 0;
	border-bottom: 3px solid #dc2626;
	padding: 12px 18px;
	font-size: 15px;
	border-radius: 0;
}
body #container table.tborder td.thead a:link,
body #container table.tborder td.thead a:visited {
	color: #ffffff;
}
body #container table.tborder td.thead .smalltext {
	color: #cbd5e1;
}
body #container table.tborder td.tcat {
	background: #f8fafc;
	color: #64748b;
	border: 0;
	border-bottom: 1px solid #e2e8f0;
	padding: 8px 18px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}
body #container table.tborder td.tcat a:link,
body #container table.tborder td.tcat a:visited,
body #container table.tborder td.tcat strong {
	color: #64748b;
}
body #container table.tborder td.trow1,
body #container table.tborder td.trow2 {
	background: #ffffff;
	border: 0;
	border-bottom: 1px solid #f1f5f9;
	padding: 11px 18px;
}
body #container table.tborder td.tfoot {
	background: #f8fafc;
	border: 0;
	border-top: 1px solid #e2e8f0;
	color: #64748b;
	padding: 9px 18px;
}
body #container .smalltext {
	color: #64748b;
}
body #container .smalltext a:link,
body #container .smalltext a:visited {
	color: #b91c1c;
}
body #container .smalltext a strong {
	color: #0f172a;
}
body #container .smalltext a:hover,
body #container .smalltext a:hover strong {
	color: #dc2626;
}

/* ---------- Lista działów jako karty ---------- */
body #container table.tborder:has(tbody[id^="cat_"]) {
	background: transparent;
	border: 0;
	box-shadow: none;
	border-spacing: 0 10px;
	overflow: visible;
	margin-bottom: 10px;
}
body #container table.tborder:has(tbody[id^="cat_"]) td.thead {
	background: transparent;
	color: #0f172a;
	border: 0;
	border-left: 5px solid #dc2626;
	padding: 2px 0 2px 12px;
	font-size: 18px;
	font-weight: 800;
}
body #container table.tborder:has(tbody[id^="cat_"]) td.thead a:link,
body #container table.tborder:has(tbody[id^="cat_"]) td.thead a:visited {
	color: #0f172a;
}
body #container table.tborder:has(tbody[id^="cat_"]) td.thead .expcolimage {
	filter: invert(1) opacity(0.5);
}
body #container tbody[id^="cat_"] td.tcat {
	display: none;
}
body #container tbody[id^="cat_"] td.trow1,
body #container tbody[id^="cat_"] td.trow2 {
	background: #ffffff;
	border: 0;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	padding: 14px 16px;
	vertical-align: middle;
}
body #container tbody[id^="cat_"] tr > td:first-child {
	border-left: 1px solid #e2e8f0;
	border-radius: 14px 0 0 14px;
	padding-right: 4px;
}
body #container tbody[id^="cat_"] tr > td:last-child {
	border-right: 1px solid #e2e8f0;
	border-radius: 0 14px 14px 0;
}
body #container tbody[id^="cat_"] tr:hover > td {
	background: #f8fafc;
	border-color: #cbd5e1;
}
body #container tbody[id^="cat_"] tr > td:nth-child(2) > strong > a {
	font-size: 15px;
	font-weight: 700;
}
body #container tbody[id^="cat_"] tr > td:nth-child(3),
body #container tbody[id^="cat_"] tr > td:nth-child(4) {
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.1;
	width: 70px;
}
body #container tbody[id^="cat_"] tr > td:nth-child(3)::after,
body #container tbody[id^="cat_"] tr > td:nth-child(4)::after {
	display: block;
	font-size: 10px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-top: 3px;
}
body #container tbody[id^="cat_"] tr > td:nth-child(3)::after { content: "wątków"; }
body #container tbody[id^="cat_"] tr > td:nth-child(4)::after { content: "postów"; }
body #container tbody[id^="cat_"] tr > td:last-child {
	text-align: left;
	width: 210px;
}
body #container tbody[id^="cat_"] tr > td:last-child .smalltext {
	display: block;
	border-left: 3px solid #e2e8f0;
	padding-left: 12px;
	line-height: 1.6;
}

/* ikony działów */
body #container .forum_status {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #e2e8f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
body #container .forum_status.forum_on {
	background-color: #dc2626;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
body #container .forum_status.forum_offlock {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}
body #container .forum_status.forum_offlink {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}
body #container .forum_legend .forum_status {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background-size: 13px;
	box-shadow: none;
}

/* ---------- Przyciski i pola ---------- */
body #container input.button,
body #container button.button {
	background: #0f172a;
	color: #ffffff;
	border: 0;
	border-radius: 8px;
	padding: 7px 14px;
	font-weight: 600;
	cursor: pointer;
}
body #container input.button:hover,
body #container button.button:hover {
	background: #dc2626;
}
body #container a.button:link,
body #container a.button:visited {
	background: #0f172a;
	color: #ffffff;
	border: 0;
	border-radius: 8px;
	padding: 7px 14px;
	font-weight: 600;
}
body #container a.button:hover {
	background: #dc2626;
	color: #ffffff;
}
body #container input.textbox,
body #container select,
body #container textarea {
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 6px 10px;
	background: #ffffff;
}
body #container input.textbox:focus,
body #container select:focus,
body #container textarea:focus {
	outline: none;
	border-color: #0f172a;
}
body #container .pagination a {
	border-radius: 6px;
	border-color: #e2e8f0;
	background: #ffffff;
}
body #container .pagination a:hover {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
}

/* ---------- Posty ---------- */
body #container .post {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	margin-bottom: 14px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
body #container .post .post_author {
	background: #f8fafc;
	border-top: 0;
	border-bottom: 1px solid #e2e8f0;
	padding: 10px 14px;
}
body #container .post_controls {
	background: #f8fafc;
	border-bottom: 0;
	border-top: 1px solid #e2e8f0;
	padding: 8px 12px;
}
body #container .postbit_buttons > a:link,
body #container .postbit_buttons > a:visited {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	color: #334155;
}
body #container .postbit_buttons > a:hover {
	border-color: #0f172a;
}

/* ---------- Stopka ---------- */
body #container #footer {
	padding: 10px 10px 20px;
}
body #container #footer .upper {
	background: transparent;
	border: 0;
	padding: 0;
}
body #container #footer .upper .wrapper {
	box-sizing: border-box;
	overflow: hidden;
	background: #0f172a;
	border-top: 3px solid #dc2626;
	border-radius: 14px;
	padding: 10px 16px;
	color: #cbd5e1;
}
body #container #footer .upper a:link,
body #container #footer .upper a:visited {
	color: #ffffff;
}
body #container #footer .lower {
	color: #94a3b8;
}
body #container #footer .lower a:link,
body #container #footer .lower a:visited {
	color: #64748b;
}
body #container #footer .upper select {
	width: auto;
	padding: 4px 8px;
}
body #container #footer .upper input.button {
	background: #dc2626;
	padding: 5px 10px;
}
body #container .subforumicon {
	vertical-align: middle;
}

/* ---------- Kafelki z rozwijaną listą ---------- */
.pp-drop {
	position: relative;
}
body #container summary.pp-tile {
	list-style: none;
	cursor: pointer;
	position: relative;
}
body #container summary.pp-tile::-webkit-details-marker {
	display: none;
}
.pp-caret {
	position: absolute;
	right: 16px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid #94a3b8;
	border-bottom: 2px solid #94a3b8;
	transform: rotate(45deg);
	transition: transform 0.15s;
}
.pp-drop[open] .pp-caret {
	transform: rotate(225deg);
	margin-top: -2px;
	border-color: #dc2626;
}
.pp-menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 40;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
	padding: 6px;
}
body #container .pp-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: #1e293b;
}
body #container .pp-menu a:hover {
	background: #f1f5f9;
	color: #dc2626;
}

/* =====================================================================
   WERSJA MOBILNA (telefon / tablet)
   ===================================================================== */
@media (max-width: 1024px) {
	body #container,
	body #container .wrapper {
		min-width: 0;
		width: auto;
		max-width: none;
	}
	body #container .wrapper {
		padding-left: 12px;
		padding-right: 12px;
		box-sizing: border-box;
	}
	body #container #content {
		padding: 14px 0 10px;
	}
	.pp-tiles {
		grid-template-columns: repeat(2, 1fr);
	}
	.pp-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	body #container #panel #search {
		display: none;
	}
}

@media (max-width: 700px) {
	body,
	body #container {
		font-size: 15px;
	}
	/* górny pasek: logo + Wyloguj, menu przewijane w poziomie */
	body #container #panel .upper .wrapper {
		flex-wrap: wrap;
		gap: 0;
		padding-top: 8px;
		padding-bottom: 0;
	}
	body #container .pp-brand {
		flex: 1;
		font-size: 15px;
	}
	body #container .pp-brand-logo {
		width: 34px;
		height: 34px;
	}
	body #container #panel .upper .welcome {
		font-size: 0;
	}
	body #container #panel .upper .welcome a.logout {
		font-size: 13px;
		margin-left: 0;
	}
	body #container ul.pp-nav {
		order: 3;
		flex: 0 0 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding: 8px 0;
		scrollbar-width: none;
	}
	body #container ul.pp-nav::-webkit-scrollbar {
		display: none;
	}
	body #container ul.pp-nav li a {
		white-space: nowrap;
		padding: 7px 11px;
	}
	/* drugi pasek: linki w jednej przewijanej linii */
	body #container #panel .lower .wrapper {
		display: flex;
		overflow-x: auto;
		white-space: nowrap;
		gap: 4px;
		scrollbar-width: none;
	}
	body #container #panel .lower ul.panel_links,
	body #container #panel .lower ul.user_links {
		float: none;
		display: flex;
		margin: 0;
		padding: 0;
	}
	body #container #panel .lower br.clear {
		display: none;
	}
	/* powitanie */
	.pp-hero {
		height: auto;
		min-height: 170px;
	}
	.pp-hero-img {
		position: absolute;
		inset: 0;
	}
	.pp-hero-in {
		position: relative;
		padding: 22px 18px;
		background: rgba(15, 23, 42, 0.82);
	}
	.pp-hero h1 {
		font-size: 22px;
	}
	.pp-hero p {
		font-size: 13px;
	}
	/* kafelki */
	.pp-tiles {
		gap: 10px;
	}
	body #container a.pp-tile,
	body #container summary.pp-tile {
		grid-template-columns: 40px 1fr;
		padding: 12px;
		column-gap: 10px;
	}
	.pp-ico {
		width: 40px;
		height: 40px;
		background-size: 20px;
	}
	.pp-t {
		font-size: 13.5px;
		padding-right: 14px;
	}
	.pp-s {
		display: none;
	}
	body #container a.pp-tile,
	body #container summary.pp-tile {
		grid-template-rows: auto;
		min-height: 64px;
		box-sizing: border-box;
	}
	.pp-ico {
		grid-row: auto;
	}
	.pp-caret {
		right: 10px;
	}
	.pp-menu {
		position: fixed;
		left: 12px;
		right: 12px;
		top: auto;
		bottom: 12px;
		max-height: 60vh;
		overflow-y: auto;
	}
	body #container .pp-menu a {
		padding: 13px 14px;
		font-size: 15px;
	}
	/* karty działów: bez kolumn z liczbami i ostatnim postem */
	body #container tbody[id^="cat_"] tr > td:nth-child(3),
	body #container tbody[id^="cat_"] tr > td:nth-child(4),
	body #container tbody[id^="cat_"] tr > td:nth-child(5) {
		display: none;
	}
	body #container tbody[id^="cat_"] tr > td:nth-child(2) {
		border-right: 1px solid #e2e8f0;
		border-radius: 0 14px 14px 0;
	}
	body #container .forum_status {
		width: 38px;
		height: 38px;
	}
	/* posty */
	body #container .post .post_author div.author_statistics {
		float: none;
		padding: 4px 0 0;
	}
	body #container .post.classic .post_author,
	body #container .post.classic .post_content {
		float: none;
		width: auto;
		margin: 0;
	}
	body #container .post_body img {
		max-width: 100%;
		height: auto;
	}
	/* szerokie tabele (listy wątków, panel) przewijane w poziomie */
	body #container #content table.tborder:not(:has(tbody[id^="cat_"])) {
		display: block;
		overflow-x: auto;
	}
	body #container #content table.tborder.pp-noscroll {
		display: table;
	}
	/* stopka */
	body #container #footer .upper .language,
	body #container #footer .upper .theme {
		float: none;
		margin: 0 0 8px;
	}
	body #container #footer .lower #current_time {
		float: none;
		display: block;
		margin-bottom: 4px;
	}
	body #container #debug {
		display: none;
	}
}

@media (max-width: 340px) {
	.pp-tiles {
		grid-template-columns: 1fr;
	}
}
/* Poprawka: przycisk „Szukaj” w powitaniu nie może być obcinany na telefonie */
body #container .pp-search {
	max-width: 540px;
	width: 100%;
	box-sizing: border-box;
}
body #container .pp-search input.textbox {
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}
body #container .pp-search button.button {
	flex: 0 0 auto;
	white-space: nowrap;
}
@media (max-width: 700px) {
	body #container .pp-search button.button {
		padding: 0 14px;
	}
	body #container .pp-search input.textbox {
		font-size: 16px;
	}
}

/* Poprawka: logo w górnym pasku – dokładnie samo okrągłe godło */
body #container .pp-brand-logo {
	width: 243.25px;
	height: 50.00px;
	max-width: none;
	object-fit: fill;
	border-radius: 0;
	background: transparent;
	margin: -4.50px -197.00px -5.50px -6.25px;
	clip-path: circle(20.00px at 26.25px 24.50px);
}
@media (max-width: 700px) {
	body #container .pp-brand-logo {
		width: 206.76px;
		height: 42.50px;
		max-width: none;
		object-fit: fill;
		border-radius: 0;
		background: transparent;
		margin: -3.82px -167.45px -4.68px -5.31px;
		clip-path: circle(17.00px at 22.31px 20.82px);
	}
}
/* =====================================================================
   POPRAWKI TELEFON v2 (26.11.2026): tryb poziomy, formularze, profil
   ===================================================================== */
@media (max-width: 1024px) {
	/* nic nie może poszerzać strony ponad ekran */
	body #container {
		overflow-x: hidden;
	}
	/* górny pasek jak na telefonie (także w poziomie) */
	body #container #panel .upper {
		position: static;
	}
	body #container #panel .upper .wrapper {
		flex-wrap: wrap;
		gap: 0;
		padding-top: 8px;
		padding-bottom: 0;
	}
	body #container .pp-brand {
		flex: 1;
	}
	body #container #panel .upper .welcome {
		font-size: 0;
	}
	body #container #panel .upper .welcome a.logout {
		font-size: 13px;
		margin-left: 0;
	}
	body #container ul.pp-nav {
		order: 3;
		flex: 0 0 100%;
		overflow-x: auto;
		padding: 8px 0;
		scrollbar-width: none;
	}
	body #container ul.pp-nav::-webkit-scrollbar {
		display: none;
	}
	body #container ul.pp-nav li a {
		white-space: nowrap;
	}
	body #container #panel .lower .wrapper {
		display: flex;
		overflow-x: auto;
		white-space: nowrap;
		gap: 4px;
		scrollbar-width: none;
	}
	body #container #panel .lower ul.panel_links,
	body #container #panel .lower ul.user_links {
		float: none;
		display: flex;
		margin: 0;
		padding: 0;
	}
	body #container #panel .lower br.clear {
		display: none;
	}
	/* podpowiedź, że menu przewija się w bok */
	body #container ul.pp-nav,
	body #container #panel .lower .wrapper {
		-webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
		mask-image: linear-gradient(to right, #000 85%, transparent 100%);
	}

	/* układy dwukolumnowe (profil, panel użytkownika, PW) – jedna pod drugą */
	body #container #content table[width="100%"]:not(.tborder) > tbody > tr > td,
	body #container #content table[width="100%"]:not(.tborder) > tr > td {
		display: block;
		width: auto !important;
		padding-left: 0;
		padding-right: 0;
	}
	body #container #content table[width="100%"]:not(.tborder) {
		table-layout: auto;
	}

	/* formularze (odpowiedź, nowy wątek, edycja, panel) – etykieta nad polem */
	body #container #content table.tborder:has(textarea, fieldset) {
		display: table;
		overflow: visible;
		table-layout: fixed;
		width: 100%;
	}
	body #container #content table.tborder:has(textarea, fieldset) > tbody > tr > td,
	body #container #content table.tborder:has(textarea, fieldset) > tr > td {
		display: block;
		width: auto !important;
		box-sizing: border-box;
	}
	body #container #content table.tborder:has(textarea, fieldset) td.trow1:first-child,
	body #container #content table.tborder:has(textarea, fieldset) td.trow2:first-child {
		border-bottom: 0;
		padding-bottom: 2px;
	}
	body #container #content input.textbox,
	body #container #content textarea,
	body #container #content select {
		max-width: 100%;
		box-sizing: border-box;
	}
	body #container #content input.textbox[name="subject"] {
		width: 100% !important;
	}
	/* edytor na całą szerokość, emotikony z boku schowane (są w przycisku edytora) */
	body #container .sceditor-container,
	body #container .sceditor-container iframe,
	body #container .sceditor-container textarea,
	body #container form #message {
		width: 100% !important;
		max-width: 100%;
		box-sizing: border-box;
	}
	body #container #clickable_smilies {
		display: none;
	}
	body #container .sceditor-toolbar {
		white-space: normal;
	}

	/* tabele bez formularzy i bez kart działów – przewijane w bok tylko w środku */
	body #container #content table.tborder:not(:has(tbody[id^="cat_"])):not(:has(textarea, fieldset)) {
		display: block;
		overflow-x: auto;
	}
	/* długie słowa i adresy nie rozpychają strony */
	body #container .post_body {
		overflow-wrap: anywhere;
	}
}

/* Górny pasek: tylko „Witaj, Imię Nazwisko” + Wyloguj (bez długiej daty ostatniej wizyty),
   menu w jednej linii – żeby pasek nie wychodził poza ekran przy węższych oknach */
body #container #panel .upper .welcome {
	font-size: 0;
}
body #container #panel .upper .welcome strong {
	font-size: 12.5px;
	font-weight: 600;
	color: #cbd5e1;
}
body #container #panel .upper .welcome a.logout {
	font-size: 13px;
}
body #container ul.pp-nav li a {
	white-space: nowrap;
}
@media (max-width: 700px) {
	body #container #panel .upper .welcome strong {
		display: none;
	}
}
/* =====================================================================
   Stopka: podpis autora wdrożenia Portalu Pracownika (26.11.2026)
   Wyświetla notkę „Projekt i wdrożenie…” pod informacją o MyBB.
   Nazwisko i rok w tym samym kolorze i grubości co linki „MyBB”.
   Treść napisu jest w szablonie footer (Portal Pracownika Templates),
   w <span class="pp-credit">…</span> pod linijką <!-- End powered by -->.
   Usunięcie: skasuj ten blok i linijkę ze <span> w szablonie footer.
   ===================================================================== */
body #container #footer .pp-credit {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	color: #94a3b8;
}
body #container #footer .pp-credit strong {
	color: #64748b;
	font-weight: bold;
}
/* =====================================================================
   POPRAWKI TELEFON v3 (26.11.2026) – po teście na żywo
   ===================================================================== */
/* odstęp między „Witaj, …” a przyciskiem Wyloguj */
body #container #panel .upper .welcome a.logout {
	margin-left: 10px;
}

@media (max-width: 1024px) {
	/* układy z kolumnami (panel użytkownika, profil, PW) – jedna pod drugą */
	body #container #content table:not(.tborder):has(table.tborder) > tbody > tr > td,
	body #container #content table:not(.tborder):has(table.tborder) > tr > td {
		display: block;
		width: auto !important;
		padding-left: 0;
		padding-right: 0;
	}
	/* tabele wewnątrz takich układów – na całą szerokość, bez przewijania */
	body #container #content table:not(.tborder) table.tborder {
		display: table;
		width: 100%;
		overflow: visible;
	}
	body #container #content table:not(.tborder) table.tborder td {
		overflow-wrap: anywhere;
	}

	/* emotikony z boku edytora – cała ramka schowana (są w przycisku edytora) */
	body #container #content div[style*="170px"]:has(#clickable_smilies),
	body #container #content td > div:has(> table.tborder #clickable_smilies) {
		display: none;
	}

	/* lista wątków w dziale i wyniki wyszukiwania – tylko temat i autor */
	body #container #content table.tborder:has(a[href*="sortby=lastpost"]) {
		display: table;
		width: 100%;
		overflow: visible;
	}
	body #container #content table.tborder:has(a[href*="sortby=lastpost"]) tr > td.tcat:nth-child(n+2),
	body #container #content table.tborder:has(a[href*="sortby=lastpost"]) tr > td:not(.tcat):nth-child(n+4),
	body #container #content table.tborder:has(a[href*="sortby=lastpost"]) tr > td:not(.tcat):nth-child(2) {
		display: none;
	}
	body #container #content table.tborder:has(a[href*="sortby=lastpost"]) tr > td:not(.tcat):nth-child(1) {
		width: 28px;
		padding-right: 4px;
	}
}
/* POPRAWKA v3b (26.11.2026) – tabele w panelu użytkownika i profilu na pełną szerokość */
@media (max-width: 1024px) {
	body #container #content table:not(.tborder) table.tborder {
		display: table !important;
		width: 100% !important;
	}
}

/* lista wątków – „Oznacz jako przeczytany | Subskrybuj” w nagłówku nie mieści się na telefonie */
@media (max-width: 700px) {
	body #container #content table.tborder:has(a[href*="sortby=lastpost"]) .thead .float_right {
		display: none;
	}
}
/* =====================================================================
   POPRAWKA TABLET v4 (26.11.2026) – belki tabel na całą szerokość
   (tablet / Surface w pionie: tabela „przewijana” była węższa od karty)
   ===================================================================== */
@media (max-width: 1024px) {
	body #container #content table.tborder:not(:has(tbody[id^="cat_"])):not(:has(textarea, fieldset)) > tbody,
	body #container #content table.tborder:not(:has(tbody[id^="cat_"])):not(:has(textarea, fieldset)) > thead {
		display: table;
		width: 100%;
	}
}