:root {
	--ink: #17252a;
	--muted: #718087;
	--paper: #f3f6f4;
	--white: #ffffff;
	--line: #dce6e3;
	--teal: #087f78;
	--teal-dark: #075650;
	--mint: #d8eee7;
	--coral: #ec806c;
	--shadow: 0 14px 34px rgba(20, 66, 61, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Trebuchet MS", Arial, sans-serif; line-height: 1.45; }
a { color: inherit; }
.page-shell { min-height: 100vh; background: radial-gradient(circle at 92% 0%, #e4f2ed 0, transparent 29rem); }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

/* Navigation (shared across all pages) */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.nav-toggle { display: none; }
.brand { color: var(--teal-dark); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.08em; text-decoration: none; }
.brand span { color: var(--coral); }
.nav-links { display: flex; gap: 24px; align-items: center; color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links > a:not(.privacy-pill) { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 10px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; }
.nav-placeholder { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 10px; border: 1px solid transparent; border-radius: 3px; visibility: hidden; }
.nav-links a:hover { color: var(--teal); }
.nav-links a[aria-current="page"] { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid #b8d8cf; border-radius: 3px; background: var(--mint); color: var(--teal-dark); }
.nav-links a[aria-current="page"]:hover { color: var(--teal-dark); }
.privacy-pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid #b8d8cf; border-radius: 99px; color: var(--teal-dark); background: rgba(255, 255, 255, 0.65); text-decoration: none; }
.privacy-pill::before { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); content: ""; }
.account-pill { background: var(--teal); color: var(--white); border-color: var(--teal); }
.account-pill::before { display: none; }
.nav-links .account-pill:hover,
.nav-links .account-pill:focus-visible { color: var(--white); background: var(--teal-dark); border-color: var(--teal-dark); text-decoration: none; }

/* Privacy callout bar (shared across all pages) */
.privacy-bar { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 18px 22px; border: 1px solid #b8d8cf; background: var(--mint); margin: 30px 0; }
.privacy-bar strong { color: var(--teal-dark); font-size: 0.92rem; }
.privacy-bar span { color: #46706d; font-size: 0.82rem; }

/* Footer (shared across all pages) */
footer { padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.7rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--teal); text-decoration: none; }

@media (max-width: 760px) {
	.container { width: min(100% - 32px, 560px); }
	.nav { position: relative; padding: 18px 0; }
	.nav-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--teal-dark); cursor: pointer; }
	.nav-toggle-line { display: block; width: 19px; height: 2px; background: currentColor; transition: transform 220ms ease, opacity 160ms ease; }
	.nav.nav-open .nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav.nav-open .nav-toggle-line:nth-child(2) { opacity: 0; transform: scaleX(0.5); }
	.nav.nav-open .nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.nav-links { position: absolute; z-index: 100; top: calc(100% - 8px); right: 0; left: 0; display: flex; max-height: 0; flex-direction: column; align-items: stretch; gap: 4px; overflow: hidden; padding: 0 14px; border: 1px solid transparent; background: var(--white); box-shadow: 0 16px 30px rgba(20, 66, 61, 0); font-size: 0.75rem; opacity: 0; pointer-events: none; transform: translateY(-8px); visibility: hidden; transition: max-height 260ms ease, opacity 180ms ease, transform 180ms ease, padding 180ms ease, border-color 180ms ease, box-shadow 180ms ease, visibility 180ms; }
	.nav.nav-open .nav-links { max-height: min(80vh, 520px); padding: 12px 14px; border-color: var(--line); box-shadow: var(--shadow); opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
	.nav-links > a:not(.privacy-pill) { display: flex; width: 100%; min-height: 40px; }
	.nav-links .nav-placeholder { display: none; }
	.nav-links .privacy-pill { align-self: flex-start; margin-top: 4px; }
	.privacy-bar { display: block; padding: 16px; }
	.privacy-bar span { display: block; margin-top: 4px; }
	.footer-inner { display: block; }
	.footer-inner p + p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.nav-toggle-line,
	.nav-links { transition: none; }
}

/* ---------- Home page (index.html) ---------- */
.page-home .ad-slot { display: grid; min-height: 74px; place-items: center; border: 1px dashed #c6d4d1; color: #93a2a3; background: rgba(255, 255, 255, 0.4); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.page-home .ad-top { margin: 8px auto 28px; }
.page-home .intro { display: block; padding: 34px 0 42px; }
.page-home .intro h1 { max-width: 630px; margin: 0; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 400; letter-spacing: -0.075em; line-height: 0.92; }
.page-home .intro h1 em { color: var(--coral); font-style: normal; }
.page-home .landing-eyebrow, .page-tools .landing-eyebrow, .page-home .section-eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.page-home .landing-summary, .page-tools .landing-summary { max-width: 500px; margin: 20px 0 14px; color: var(--muted); font-size: 1rem; }
.page-home .landing-link, .page-home .section-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-dark); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.page-home .landing-link:hover, .page-home .section-link:hover { color: var(--coral); }
.page-home .home-tools { padding: 25px 0 12px; }
.page-home .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.page-home .section-eyebrow { margin-bottom: 4px; }
.page-home .section-heading h2, .page-tools .catalog-heading { margin: 0; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 400; }
.tool-page .tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 30px; }
.tool-page .tool-tile { position: relative; display: flex; min-height: 220px; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.tool-page .tool-tile:hover { border-color: var(--teal); box-shadow: 0 18px 38px rgba(20, 66, 61, 0.14); transform: translateY(-4px); }
.tool-page .tool-tile:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.tool-page .tool-tile:nth-child(2) { background: #fff9e7; }
.tool-page .tool-tile:nth-child(3) { background: #f9e9e5; }
.tool-page .tool-tile:nth-child(4) { background: #e4f1ec; }
.tool-page .tile-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.tool-page .tile-arrow { color: var(--teal); font-size: 1.25rem; }
.tool-page .tool-tile h2 { margin: auto 0 8px; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; letter-spacing: -0.05em; }
.tool-page .tool-tile p { max-width: 260px; margin: 0; color: var(--muted); font-size: 0.85rem; }
.tool-page .tool-tile .tile-note { margin: 8px 0 0; color: var(--teal); font-weight: 700; font-size: 0.72rem; }
.tool-page .tool-tile.coming-soon { cursor: default; box-shadow: none; }
.tool-page .tool-tile.coming-soon:hover { border-color: var(--line); transform: none; }
.tool-page .coming-soon .tile-arrow { color: var(--coral); }
.page-tools .intro { padding: 46px 0 34px; }
.page-tools .intro h1 { max-width: 720px; margin: 0; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 400; line-height: 0.96; }
.page-tools .intro h1 em { color: var(--coral); font-style: normal; }
.page-tools .catalog-heading { margin-bottom: 18px; }
.page-tools main { padding-bottom: 30px; }
.page-home .ad-middle { margin: 0 0 58px; }
.page-home .privacy-bar { margin: 0 0 58px; }
.page-home .info-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 82px 0 100px; }
.page-home .info-section h2 { margin: 0 0 14px; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: 2.8rem; font-weight: 400; letter-spacing: -0.06em; line-height: 0.96; }
.page-home .info-section p { max-width: 440px; margin: 0; color: var(--muted); font-size: 0.9rem; }
.page-home .info-list { margin: 0; padding: 0; list-style: none; }
.page-home .info-list li { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.9rem; }
.page-home .info-list li::before { display: inline-block; width: 26px; color: var(--coral); content: "✓"; font-weight: 700; }

@media (max-width: 760px) {
	.page-home .ad-top { margin-top: 4px; }
	.page-home .intro { padding: 42px 0 30px; }
	.page-home .intro h1 { font-size: clamp(3rem, 16vw, 5rem); }
	.page-home .landing-summary, .page-tools .landing-summary { font-size: 0.9rem; }
	.page-home .section-heading { align-items: flex-start; }
	.page-home .section-heading h2 { font-size: 1.5rem; }
	.tool-page .tool-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.tool-page .tool-tile { min-height: 190px; padding: 16px; }
	.tool-page .tool-tile h2 { font-size: 1.55rem; }
	.tool-page .tool-tile p { font-size: 0.76rem; }
	.page-tools .intro { padding-top: 38px; }
	.page-home .info-section { display: block; padding: 68px 0 78px; }
	.page-home .info-list { margin-top: 34px; }
}
@media (max-width: 420px) { .tool-page .tool-grid { grid-template-columns: 1fr; } .tool-page .tool-tile { min-height: 170px; } .page-home .section-heading { display: block; } .page-home .section-link { margin-top: 12px; } }
@media (prefers-reduced-motion: no-preference) { .tool-page .tool-tile, .page-home .intro { animation: rise 500ms both; } .tool-page .tool-tile:nth-child(2) { animation-delay: 60ms; } .tool-page .tool-tile:nth-child(3) { animation-delay: 120ms; } @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } }

/* ---------- Služba page (nastroje/sluzba/index.html) ---------- */
.page-sluzba .intro { display: flex; justify-content: space-between; gap: 32px; align-items: end; padding: 10px 0 28px; flex-wrap: wrap; }
.page-sluzba .intro h1 { max-width: 630px; margin: 0; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; letter-spacing: -0.06em; line-height: 0.95; }
.page-sluzba .intro h1 em { color: var(--coral); font-style: normal; }
.page-sluzba .intro-note { max-width: 260px; margin: 0 0 5px; color: var(--muted); font-size: 0.86rem; }
.page-sluzba [hidden] { display: none !important; }

.page-sluzba .toolbar { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 24px; }
.page-sluzba .layout-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.page-sluzba .layout-switch button { border: 0; border-radius: 0; box-shadow: none; padding: 10px 14px; }
.page-sluzba .layout-switch button + button { border-left: 1px solid var(--line); }
.page-sluzba .layout-switch button[aria-pressed="true"] { background: var(--teal-dark); color: var(--white); }
.page-sluzba .compact-patient-list { overflow-x: hidden; margin-bottom: 24px; }
.page-sluzba .compact-patient-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--white); font-size: 0.84rem; }
.page-sluzba .compact-patient-table th,
.page-sluzba .compact-patient-table td { border: 0; border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.page-sluzba .compact-patient-table th { border: 0; border-bottom: 2px solid var(--teal); padding: 9px 10px; text-align: left; vertical-align: top; background: #e8f1ee; color: var(--teal-dark); font-size: 0.7rem; text-transform: uppercase; }
.page-sluzba .compact-patient-table th:nth-child(1), .page-sluzba .compact-patient-table td:nth-child(1) { width: 7%; text-align: center; }
.page-sluzba .compact-patient-table th:nth-child(2), .page-sluzba .compact-patient-table td:nth-child(2) { width: 17%; }
.page-sluzba .compact-patient-table th:nth-child(3), .page-sluzba .compact-patient-table td:nth-child(3) { width: 11%; }
.page-sluzba .compact-patient-table th:nth-child(4), .page-sluzba .compact-patient-table td:nth-child(4) { width: 12%; }
.page-sluzba .compact-patient-table th:nth-child(5), .page-sluzba .compact-patient-table td:nth-child(5) { width: 29%; }
.page-sluzba .compact-patient-table th:nth-child(6), .page-sluzba .compact-patient-table td:nth-child(6) { width: 13%; }
.page-sluzba .compact-patient-table th:nth-child(7), .page-sluzba .compact-patient-table td:nth-child(7) { width: 10%; }
.page-sluzba .compact-patient-actions { white-space: nowrap; }
.page-sluzba .compact-patient-actions button { display: block; width: 100%; min-width: 0; padding: 2px 1px; margin: 0 0 2px; font-size: 0.62rem; box-shadow: none; }
.page-sluzba .compact-diagnostics-print { display: none; }
.page-sluzba button {
	cursor: pointer;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 11px 18px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	background: var(--white);
	color: var(--teal-dark);
	box-shadow: var(--shadow);
	transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
	font-family: inherit;
}
.page-sluzba button:hover { border-color: var(--teal); transform: translateY(-2px); }
.page-sluzba .btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.page-sluzba .btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.page-sluzba .btn-danger { background: var(--white); color: var(--coral); border-color: #f0c3ba; }
.page-sluzba .btn-danger:hover { background: #f9e9e5; border-color: var(--coral); }
.page-sluzba .btn-secondary { background: var(--white); color: var(--muted); }

.page-sluzba #summaryMeta {
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	padding: 18px 22px;
	margin-bottom: 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.page-sluzba #summaryMeta label {
	display: flex;
	flex-direction: column;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	gap: 6px;
}
.page-sluzba #summaryMeta input {
	padding: 9px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--ink);
}

.page-sluzba .empty-state {
	text-align: center;
	color: var(--muted);
	padding: 46px 20px;
	border: 2px dashed var(--line);
	border-radius: 8px;
	background: var(--white);
	font-size: 0.9rem;
}

.page-sluzba .patient-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-left: 6px solid var(--teal);
	box-shadow: var(--shadow);
	padding: 18px 22px;
	margin-bottom: 18px;
	position: relative;
}
.page-sluzba .patient-card.zmena-stavu { border-left-color: var(--coral); }

.page-sluzba .patient-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.page-sluzba .patient-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--teal-dark);
	letter-spacing: -0.02em;
}
.page-sluzba .patient-badge {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 4px 9px;
	border-radius: 99px;
	background: var(--mint);
	color: var(--teal-dark);
	margin-left: 10px;
	vertical-align: middle;
}
.page-sluzba .patient-badge.zmena { background: #f9e9e5; color: #a1493a; }

.page-sluzba .patient-actions button { padding: 7px 12px; font-size: 0.75rem; box-shadow: none; }

.page-sluzba .patient-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px 24px;
	font-size: 0.9rem;
}
.page-sluzba .patient-grid .field-label {
	font-weight: 700;
	color: var(--muted);
	display: block;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-bottom: 3px;
}
.page-sluzba .patient-grid .field-value { white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.page-sluzba .full-width { grid-column: 1 / -1; }

/* Modal */
.page-sluzba .modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(17, 37, 42, 0.55);
	align-items: center;
	justify-content: center;
	z-index: 300;
	padding: 20px;
}
.page-sluzba .modal-overlay.open { display: flex; }
.page-sluzba .modal {
	background: var(--white);
	border-radius: 10px;
	padding: 26px;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 24px 60px rgba(20, 66, 61, 0.25);
}
.page-sluzba .modal h2 {
	margin-top: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	color: var(--teal-dark);
	letter-spacing: -0.03em;
	font-size: 1.7rem;
}
.page-sluzba .form-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.page-sluzba .form-row label { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.page-sluzba .form-row input[type="text"],
.page-sluzba .form-row input[type="date"],
.page-sluzba .form-row select,
.page-sluzba .form-row textarea {
	padding: 9px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
	width: 100%;
	color: var(--ink);
}
.page-sluzba #fArrivalDetail,
.page-sluzba #fDestinationAmbulance { width: 180px; max-width: 100%; }
.page-sluzba .form-row textarea { resize: vertical; min-height: 60px; }
.page-sluzba .radio-group { display: flex; gap: 16px; }
.page-sluzba .radio-group label { display: flex; align-items: center; gap: 6px; font-weight: normal; text-transform: none; letter-spacing: normal; color: var(--ink); font-size: 0.9rem; }
.page-sluzba .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.page-sluzba .badge-select { display: flex; flex-wrap: wrap; gap: 8px; }
.page-sluzba .badge-option {
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 99px;
	background: var(--white);
	color: var(--ink);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.page-sluzba .badge-option:hover { border-color: var(--teal); transform: none; }
.page-sluzba .badge-option.selected { background: var(--teal); color: var(--white); border-color: var(--teal); }
.page-sluzba .badge-option.custom { display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.page-sluzba .badge-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	color: inherit;
	font-size: 0.85rem;
	line-height: 1;
	box-shadow: none;
}
.page-sluzba .badge-remove:hover { background: rgba(255, 255, 255, 0.45); border-color: transparent; transform: none; }
.page-sluzba .badge-custom-input {
	padding: 8px 12px;
	border: 1px dashed var(--line);
	border-radius: 99px;
	background: var(--white);
	color: var(--ink);
	font-size: 0.82rem;
	font-family: inherit;
	width: 100px;
	transition: border-color 150ms ease, width 150ms ease;
}
.page-sluzba .badge-custom-input:focus { outline: none; border-color: var(--teal); width: 150px; }

.page-sluzba .print-header { display: none; }

/* Public demo banner shown on the unauthenticated version of a tool (e.g. nastroje/sluzba/demo/) */
.page-sluzba .demo-banner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding: 16px 20px;
	border: 1px solid #f0c3ba;
	background: #fff4ef;
	margin-bottom: 24px;
}
.page-sluzba .demo-banner strong { color: #a1493a; font-size: 0.9rem; }
.page-sluzba .demo-banner span { color: var(--muted); font-size: 0.82rem; }
.page-sluzba .demo-banner a { color: var(--coral); font-weight: 700; text-decoration: underline; white-space: nowrap; }

@media (max-width: 760px) {
	.page-sluzba .intro { display: block; padding: 10px 0 20px; }
	.page-sluzba .intro-note { margin-top: 14px; }
	.page-sluzba #summaryMeta { display: block; }
	.page-sluzba #summaryMeta label { margin-bottom: 12px; }
	.page-sluzba .compact-patient-table { width: 100%; min-width: 0; font-size: 0.68rem; }
	.page-sluzba .compact-patient-table th,
	.page-sluzba .compact-patient-table td { padding: 5px 3px; }
	.page-sluzba .compact-patient-table th { font-size: 0.58rem; }
	.page-sluzba .compact-patient-actions { white-space: normal; }
}

@media print {
	.page-sluzba header, .page-sluzba .toolbar, .page-sluzba .patient-actions, .page-sluzba #addBtn, .page-sluzba #clearBtn, .page-sluzba #printBtn, .page-sluzba .modal-overlay, .page-sluzba .privacy-bar, .page-sluzba footer, .page-sluzba .intro, .page-sluzba #summaryMeta, .page-sluzba .empty-state, .page-sluzba .list-view, .page-sluzba .shift-detail-header, .page-sluzba .demo-banner {
		display: none !important;
	}
	.page-sluzba { background: white; font-size: 11px; }
	.page-sluzba .page-shell { background: none; }
	.page-sluzba .container { width: 100%; margin: 0; }
	.page-sluzba .shift-detail-overlay { position: static; opacity: 1; transform: none; overflow: visible; }

	.page-sluzba .print-header {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 12px;
		border-bottom: 2px solid var(--teal);
		padding-bottom: 6px;
		margin-bottom: 10px;
	}
	.page-sluzba .print-logo { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.07em; color: var(--teal-dark); }
	.page-sluzba .print-logo span { color: var(--coral); }
	.page-sluzba .print-title { font-family: Georgia, "Times New Roman", serif; font-size: 0.95rem; color: var(--teal-dark); flex: 1; text-align: center; }
	.page-sluzba .print-info { font-size: 0.68rem; color: var(--muted); white-space: nowrap; }

	.page-sluzba .patient-card {
		break-inside: avoid;
		border: none;
		border-bottom: 1px solid #d4d4d4;
		border-left: 3px solid var(--teal);
		box-shadow: none;
		padding: 4px 8px;
		margin-bottom: 0;
	}
	.page-sluzba .patient-card.zmena-stavu { border-left-color: var(--coral); }
	.page-sluzba .patient-card-header { margin-bottom: 2px; gap: 6px; }
	.page-sluzba .patient-title { font-size: 0.82rem; }
	.page-sluzba .patient-badge { font-size: 0.55rem; padding: 1px 6px; margin-left: 6px; }
	.page-sluzba .patient-grid { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 0.68rem; }
	.page-sluzba .patient-grid > div { display: flex; gap: 4px; align-items: baseline; flex: 0 0 auto; }
	.page-sluzba .patient-grid .full-width { flex: 1 1 100%; }
	.page-sluzba .patient-grid .field-label { margin-bottom: 0; white-space: nowrap; }
	.page-sluzba .patient-grid .field-value { white-space: normal; }
	.page-sluzba .compact-patient-list { overflow: visible; margin: 0; }
	.page-sluzba .compact-diagnostics-print { display: inline; }
	.page-sluzba .compact-patient-table { width: auto; max-width: 100%; min-width: 0; table-layout: auto; font-size: 10px; }
	.page-sluzba .compact-patient-table th,
	.page-sluzba .compact-patient-table td { width: auto !important; padding: 4px 2px; border: 0; border-bottom: 1px solid #999; }
	.page-sluzba .compact-patient-table th { width: auto !important; padding: 4px 2px; border: 0; border-bottom: 2px solid #333; background: #eee !important; color: #111; font-size: 10px; text-transform: none; }
	.page-sluzba .compact-patient-table th:nth-child(5), .page-sluzba .compact-patient-table td:nth-child(5) { white-space: normal; }
	.page-sluzba .compact-patient-table th:not(:nth-child(5)), .page-sluzba .compact-patient-table td:not(:nth-child(5)) { white-space: nowrap; }
	.page-sluzba .compact-patient-table tr { break-inside: avoid; }
	.page-sluzba .compact-patient-actions { display: none; }
}

/* ---------- Zásady ochrany osobních údajů (zasady-soukromi/index.html) ---------- */
.page-privacy .container { width: min(880px, calc(100% - 48px)); }
.page-privacy .intro { padding: 30px 0 28px; }
.page-privacy .intro h1 { max-width: 700px; margin: 0; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; letter-spacing: -0.06em; line-height: 0.98; }
.page-privacy .intro h1 em { color: var(--coral); font-style: normal; }
.page-privacy .intro-note { max-width: 560px; margin: 14px 0 0; color: var(--muted); font-size: 0.92rem; }
.page-privacy .updated { display: inline-block; margin-top: 16px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.page-privacy .section-nav { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 34px; }
.page-privacy .section-nav a {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px;
	background: var(--white); text-decoration: none; color: var(--teal-dark);
	font-size: 0.78rem; font-weight: 700; box-shadow: var(--shadow);
	transition: border-color 150ms ease, transform 150ms ease;
}
.page-privacy .section-nav a:hover { border-color: var(--teal); transform: translateY(-2px); }

.page-privacy .explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 20px; }
.page-privacy .explain-card { padding: 22px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.page-privacy .explain-card:nth-child(2) { background: #fff9e7; }
.page-privacy .explain-card:nth-child(3) { background: #e4f1ec; }
.page-privacy .explain-card .icon { font-size: 1.5rem; }
.page-privacy .explain-card h3 { margin: 12px 0 8px; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 400; letter-spacing: -0.03em; }
.page-privacy .explain-card p { margin: 0; color: var(--muted); font-size: 0.85rem; }

.page-privacy .legal { padding: 20px 0 90px; }
.page-privacy .legal h2 {
	margin: 56px 0 12px; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif;
	font-size: 1.9rem; font-weight: 400; letter-spacing: -0.04em;
}
.page-privacy .legal h2:first-of-type { margin-top: 30px; }
.page-privacy .legal h3 { margin: 24px 0 8px; color: var(--teal-dark); font-size: 1.02rem; font-weight: 700; }
.page-privacy .legal p { margin: 0 0 12px; color: var(--ink); font-size: 0.9rem; max-width: 720px; }
.page-privacy .legal ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink); font-size: 0.9rem; max-width: 720px; }
.page-privacy .legal li { margin-bottom: 6px; }
.page-privacy .legal a { color: var(--teal); text-decoration: underline; }
.page-privacy .legal-card { border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); padding: 22px 26px; }
.page-privacy .section-title { margin: 0 0 16px; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; letter-spacing: -0.05em; }
.page-privacy .section-title-sm { margin: 0 0 12px; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; font-weight: 400; letter-spacing: -0.04em; }
.page-privacy .contact-note { color: var(--muted); font-size: 0.9rem; max-width: 640px; }
.page-privacy .contact-note a { color: var(--teal); }
.page-privacy .explain-extra { color: var(--muted); font-size: 0.85rem; max-width: 720px; margin-top: 4px; }

@media (max-width: 760px) {
	.page-privacy .explain-grid { grid-template-columns: 1fr; }
	.page-privacy .legal-card { padding: 18px; }
}

/* Shared form styling used by both the auth pages and the dashboard (login/register/unlock/notes forms) */
.form-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row textarea {
	padding: 9px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
	width: 100%;
	color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 60px; }
.form-error { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #f0c3ba; border-radius: 6px; background: #f9e9e5; color: #a1493a; font-size: 0.85rem; }

/* Encrypted-content card, used by the dashboard notes demo and by tools that store E2EE data (e.g. sluzba) */
.vault-card {
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	padding: 24px 26px;
	margin: 24px 0;
}
.vault-card h2 { margin: 0 0 8px; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; letter-spacing: -0.03em; }
.vault-actions { display: flex; align-items: center; gap: 14px; }
.save-status { color: var(--muted); font-size: 0.82rem; }

button {
	cursor: pointer;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 11px 18px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	background: var(--white);
	color: var(--teal-dark);
	box-shadow: var(--shadow);
	transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
	font-family: inherit;
}
button:hover { border-color: var(--teal); transform: translateY(-2px); }
button:disabled { cursor: default; opacity: 0.6; transform: none; }
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-secondary { background: var(--white); color: var(--muted); }

/* ---------- Auth pages (registrace/, prihlaseni/) ---------- */
.page-auth .container { width: min(480px, calc(100% - 48px)); }
.page-auth .auth-main { padding: 20px 0 60px; }
.page-auth .auth-card {
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	padding: 32px;
	margin-bottom: 30px;
}
.page-auth .registration-guide { display: none; padding: 30px 32px; margin-bottom: 30px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
html.registration-guide-first .page-auth .registration-guide { display: block; }
html.registration-guide-first .page-auth .registration-form-view { display: none; }
.page-auth .registration-guide-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; color: var(--muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.page-auth .registration-guide-progress-track { height: 4px; flex: 1; overflow: hidden; background: var(--line); }
.page-auth .registration-guide-progress-track span { display: block; width: 20%; height: 100%; background: var(--teal); transition: width 220ms ease; }
.page-auth .registration-guide-slide { min-height: 230px; }
.page-auth .registration-guide-kicker { margin: 0 0 10px; color: var(--coral); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.page-auth .registration-guide-slide h1 { margin-bottom: 16px; }
.page-auth .registration-guide-slide h1:focus { outline: 2px solid var(--teal); outline-offset: 5px; }
.page-auth .registration-guide-slide > p:not(.registration-guide-kicker) { color: var(--muted); font-size: 0.95rem; }
.page-auth .registration-guide-controls { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.page-auth .registration-password-warning { padding: 11px 13px; border-left: 3px solid var(--coral); background: #fff2ee; color: #8f4033; font-size: 0.85rem; font-weight: 700; }
.page-auth .registration-guide-slide.is-entering { animation: registration-slide-in 260ms ease-out both; }
.page-auth .registration-guide-slide.is-entering.from-left { animation-name: registration-slide-in-reverse; }
@keyframes registration-slide-in {
	from { opacity: 0; transform: translateX(22px); }
	to { opacity: 1; transform: translateX(0); }
}
@keyframes registration-slide-in-reverse {
	from { opacity: 0; transform: translateX(-22px); }
	to { opacity: 1; transform: translateX(0); }
}
.page-auth h1 { margin: 0 0 10px; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 400; letter-spacing: -0.05em; }
.page-auth h1 em { color: var(--coral); font-style: normal; }
.page-auth .intro-note { margin: 0 0 24px; color: var(--muted); font-size: 0.86rem; }
.page-auth .auth-switch { margin: 20px 0 0; color: var(--muted); font-size: 0.85rem; }
.page-auth .auth-switch a { color: var(--teal); text-decoration: underline; }
.page-auth button[type="submit"] { width: 100%; padding: 13px 18px; }

/* ---------- Dashboard (nastenka/) ---------- */
.page-dashboard .intro { padding: 34px 0 10px; }
.page-dashboard .intro h1 { max-width: 630px; margin: 0; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; letter-spacing: -0.06em; }
.page-dashboard .intro h1 em { color: var(--coral); font-style: normal; }
.page-dashboard .intro-note { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }
.page-dashboard .recent-section { margin: 28px 0 34px; }
.page-dashboard .recent-heading { display: flex; align-items: end; justify-content: space-between; padding-bottom: 16px; }
.page-dashboard .recent-heading h2 { margin: 0; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 400; }
.page-dashboard .recent-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.page-dashboard .recent-item { display: flex; min-width: 0; min-height: 132px; flex-direction: column; align-items: flex-start; gap: 11px; padding: 18px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.page-dashboard .recent-item:hover { border-color: var(--teal); box-shadow: 0 18px 38px rgba(20, 66, 61, 0.14); transform: translateY(-3px); }
.page-dashboard .recent-item:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.page-dashboard .recent-item-type { padding: 4px 9px; background: var(--mint); color: var(--teal-dark); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.page-dashboard .recent-item-date { margin-top: auto; color: var(--muted); font-size: 0.8rem; }
.page-dashboard .recent-item-title { width: 100%; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.page-dashboard .dashboard-actions { padding: 10px 0 50px; }

@media (max-width: 560px) {
	.page-dashboard .recent-items { grid-template-columns: 1fr; }
	.page-dashboard .recent-item { min-height: 116px; }
}

@media (max-width: 760px) {
	.page-auth .auth-card { padding: 22px; }
	.page-auth .registration-guide { padding: 24px 22px; }
	.page-auth .registration-guide-slide { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
	.page-auth .registration-guide-slide.is-entering,
	.page-auth .registration-guide-progress-track span { animation: none; transition: none; }
}

/* ---------- Sluzba tool: shift list (nastroje/sluzba/) ---------- */
.page-sluzba .list-view .intro { padding: 34px 0 20px; }
.page-sluzba .list-toolbar { display: flex; justify-content: flex-end; padding-bottom: 24px; }
.page-sluzba .shift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding-bottom: 30px; }
.page-sluzba .shift-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px;
	border: 1px solid var(--line);
	background: var(--white);
	box-shadow: var(--shadow);
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.page-sluzba .shift-card:hover { border-color: var(--teal); box-shadow: 0 18px 38px rgba(20, 66, 61, 0.14); transform: translateY(-4px); }
.page-sluzba .shift-card-date { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; color: var(--teal-dark); letter-spacing: -0.03em; }
.page-sluzba .shift-card-doctor { color: var(--muted); font-size: 0.85rem; }
.page-sluzba .shift-card-count { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: var(--mint); color: var(--teal-dark); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.page-sluzba .shift-card-delete {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 5px 9px;
	font-size: 0.7rem;
	box-shadow: none;
	background: var(--white);
	color: var(--coral);
	border-color: #f0c3ba;
}
.page-sluzba .shift-card-delete:hover { background: #f9e9e5; }

/* Fullscreen shift detail, expanding to cover the whole viewport when a card is opened */
.page-sluzba .shift-detail-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: var(--paper);
	overflow-y: auto;
	opacity: 0;
	transform: scale(0.96);
	pointer-events: none;
	transition: opacity 220ms ease, transform 220ms ease;
}
.page-sluzba .shift-detail-overlay.open { opacity: 1; transform: scale(1); pointer-events: auto; }
.page-sluzba .shift-detail-header { display: flex; align-items: center; gap: 16px; padding: 22px 0 6px; }
.page-sluzba .back-btn { box-shadow: none; padding: 9px 14px; }

@media (max-width: 760px) {
	.page-sluzba .shift-grid { grid-template-columns: 1fr; }
	.page-sluzba .list-toolbar { justify-content: stretch; }
	.page-sluzba .list-toolbar button { width: 100%; }
}

/* ---------- Poznamky tool: note list (nastroje/poznamky/) ---------- */
.page-poznamky .list-view .intro { display: flex; justify-content: space-between; gap: 32px; align-items: end; padding: 34px 0 20px; flex-wrap: wrap; }
.page-poznamky .list-view .intro h1 { max-width: 630px; margin: 0; color: var(--teal-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; line-height: 0.95; }
.page-poznamky .list-view .intro h1 em { color: var(--coral); font-style: normal; }
.page-poznamky .list-view .intro-note { max-width: 320px; margin: 0 0 5px; color: var(--muted); font-size: 0.86rem; }
.page-poznamky .list-toolbar { display: flex; justify-content: flex-end; padding-bottom: 24px; }
.page-poznamky .note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding-bottom: 30px; }
.page-poznamky .note-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px;
	border: 1px solid var(--line);
	background: var(--white);
	box-shadow: var(--shadow);
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.page-poznamky .note-card:hover { border-color: var(--teal); box-shadow: 0 18px 38px rgba(20, 66, 61, 0.14); transform: translateY(-4px); }
.page-poznamky .note-card-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; color: var(--teal-dark); letter-spacing: -0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-poznamky .note-card-preview { color: var(--muted); font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.page-poznamky .note-card-date { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: var(--mint); color: var(--teal-dark); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.page-poznamky .note-card-delete {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 5px 9px;
	font-size: 0.7rem;
	box-shadow: none;
	background: var(--white);
	color: var(--coral);
	border-color: #f0c3ba;
}
.page-poznamky .note-card-delete:hover { background: #f9e9e5; }

/* Fullscreen note detail, expanding to cover the whole viewport when a card is opened */
.page-poznamky .note-detail-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: var(--paper);
	overflow-y: auto;
	opacity: 0;
	transform: scale(0.96);
	pointer-events: none;
	transition: opacity 220ms ease, transform 220ms ease;
}
.page-poznamky .note-detail-overlay.open { opacity: 1; transform: scale(1); pointer-events: auto; }
.page-poznamky .note-detail-header { display: flex; align-items: center; gap: 16px; padding: 22px 0 6px; }
.page-poznamky .back-btn { box-shadow: none; padding: 9px 14px; }
.page-poznamky .note-title-input {
	width: 100%;
	margin: 10px 0 20px;
	padding: 10px 0;
	border: none;
	border-bottom: 2px solid var(--line);
	border-radius: 0;
	background: transparent;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 400;
	letter-spacing: -0.03em;
	color: var(--teal-dark);
}
.page-poznamky .note-title-input:focus { outline: none; border-bottom-color: var(--teal); }
.page-poznamky .note-content-textarea {
	width: 100%;
	min-height: 50vh;
	padding: 18px 20px;
	border: 1px solid var(--line);
	background: var(--white);
	box-shadow: var(--shadow);
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--ink);
	line-height: 1.6;
	resize: vertical;
}
.page-poznamky .note-content-textarea:focus { outline: none; border-color: var(--teal); }

@media (max-width: 760px) {
	.page-poznamky .list-view .intro { display: block; padding: 26px 0 20px; }
	.page-poznamky .list-view .intro-note { max-width: 420px; margin: 14px 0 0; }
	.page-poznamky .note-grid { grid-template-columns: 1fr; }
	.page-poznamky .list-toolbar { justify-content: stretch; }
	.page-poznamky .list-toolbar button { width: 100%; }
}

