/* ==========================================================================
   general2.css - responzivni vzhled pro default.master
   Pouzivaji ho vsechny stranky v korenu webu s default.master.
   Barvy: zluta, cerna, seda, bila
   Nahrazuje general1.css (ten se s default.master nenacita).

   Obsah:
     1. Promenne a zaklad
     2. Pomocne tridy
     3. Layout master stranky (.rm-*)
     4. Obecne komponenty obsahu (.reg-*)
     5. Specificke casti stranek (startovni listina, platba)
     6. Responzivita
   ========================================================================== */


/* ==========================================================================
   1. Promenne a zaklad
   ========================================================================== */
:root {
	--yellow: #ffbf00;
	--yellow-dark: #e0a800;
	--yellow-soft: #fff6d6;
	--black: #1a1a1a;
	--grey-900: #333333;
	--grey-700: #5c5c5c;
	--grey-500: #8a8a8a;
	--grey-400: #b5b5b5;
	--grey-200: #e4e4e4;
	--grey-100: #f4f4f4;
	--white: #ffffff;
	--error: #d62828;
	--error-soft: #fff1f1;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
	--focus: 0 0 0 3px rgba(255, 191, 0, 0.45);
	--gap: 18px;          /* mezera mezi bloky */
	--max: 880px;         /* sirka obsahu */
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body.rm {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--black);
	background: var(--grey-100);
	text-align: left; /* general1.css (nacitaji ho mdefault/sdefault.master.cs) centruje body */
}
.rm img {
	max-width: 100%;
	border: 0;
}
.rm a {
	color: var(--black);
}
.rm a:hover {
	color: var(--grey-700);
}


/* ==========================================================================
   2. Pomocne tridy
   ========================================================================== */

/* tridy pouzivane obsahem stranek (drive v general1.css) */
.rm .skryj { display: none; }
.rm .cisti { clear: both; }
.rm .maly { font-size: .9em; }
.rm .tucny { font-weight: 700; }
.rm .nastred { text-align: center !important; }
.rm .doleva { text-align: left !important; }
.rm .doprava { text-align: right !important; }
.rm .plavatvlevo { float: left; }
.rm .plavatvpravo { float: right; }
.rm .error { color: var(--error); }

/* stav platby - stitek */
.rm .zaplaceno,
.rm .nezaplaceno {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: .85em;
	font-weight: 700;
}
.rm .zaplaceno { color: #1e7b34; background: #e3f5e8; }
.rm .nezaplaceno { color: var(--error); background: #fdeaea; }

/* skryti prazdnych bloku:
   .autohide         - blok s asp:Label, ktery je prazdny nebo neni vykreslen
   .autohide-control - blok bez vstupniho prvku (napr. prazdny RadioButtonList) */
.autohide:not(:has(> :not(:empty))),
.autohide-control:not(:has(input)) {
	display: none !important;
}


/* ==========================================================================
   3. Layout master stranky
   ========================================================================== */
/* rozlozeni stranky (hlavicka, obsah, paticka dole) drzi body.rm - serverovy formular muze obalovat
   celou stranku, jen hlavicku (platebni stranky s vlastnim formularem brany) nebo chybet uplne */
body.rm > form {
	display: contents;
}
.rm-wrap {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------------------------------------------------------------- hlavicka */
.rm-header {
	background: var(--black);
	color: var(--white);
	border-bottom: 4px solid var(--yellow);
}
.rm-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 20px;
	padding-bottom: 20px;
}
.rm-title {
	min-width: 0;
}
.rm-title h1 {
	margin: 0;
	font-size: 1.75em;
	font-weight: 800;
	line-height: 1.15;
	color: var(--white);
	overflow-wrap: anywhere;
}
.rm-info {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 8px 0 0;
	padding: 0;
	color: var(--yellow);
	font-weight: 600;
}
.rm-info li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rm-info li::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-color: var(--yellow);
	-webkit-mask: var(--icon) no-repeat center / contain;
	mask: var(--icon) no-repeat center / contain;
}
.rm-info-datum {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm-2 8h14v10H5V10z'/%3E%3C/svg%3E");
}
.rm-info-misto {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

/* jazyky */
.rm-lang {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	flex: 0 1 auto;
	max-width: 50%;
}
.rm-lang input[type="image"] {
	display: block;
	width: 32px;
	height: 24px;
	margin: 0;
	padding: 3px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
}
.rm-lang input[type="image"]:hover,
.rm-lang input[type="image"]:focus {
	outline: none;
	border-color: var(--yellow);
	background: rgba(255, 191, 0, 0.18);
}

/* ---------------------------------------------------------------- partneri */
.rm-partners {
	background: var(--white);
	border-bottom: 1px solid var(--grey-200);
}
.rm-partners .rm-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 18px;
	padding-top: 12px;
	padding-bottom: 12px;
}
.rm-partners .rm-wrap:not(:has(a, span)) {
	display: none;
}
.rm-partners a {
	display: inline-flex;
	align-items: center;
}
.rm-partners img {
	max-width: 100% !important;
	height: auto !important;
}
.rm-partners .titulek {
	flex-basis: 100%;
	text-align: center;
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--grey-500);
}

/* ---------------------------------------------------------------- obsah */
.rm-main {
	flex: 1 0 auto;
	padding: 24px 0 32px;
}
.rm-main .obsah {
	position: relative;
	margin: 0;
	padding: 0;
	text-align: left;
}
.rm-main .obsah::after {
	content: "";
	display: table;
	clear: both;
}

/* ---------------------------------------------------------------- paticka */
.rm-footer {
	background: var(--black);
	color: #cfcfcf;
	font-size: .88em;
	border-top: 4px solid var(--yellow);
}
.rm-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 24px;
	padding-top: 18px;
	padding-bottom: 18px;
}
.rm-footer a,
.rm-footer a:visited {
	color: var(--white);
	text-decoration: none;
}
.rm-footer a:hover {
	color: var(--yellow);
	text-decoration: underline;
}
.rm-timing img {
	display: block;
	width: 140px;
	height: auto;
	padding: 6px 8px;
	background: var(--white);
	border-radius: var(--radius-sm);
}


/* ==========================================================================
   4. Obecne komponenty obsahu (.reg)
   ========================================================================== */
.reg {
	text-align: left;
}

/* ---------------------------------------------------------------- bloky
   .reg-header  - nadpis stranky
   .reg-message - zprava (bila, zluty pruh vlevo)
   .reg-card    - karta s obsahem
   .reg-notice  - zvyrazneny zluty ramecek */
.reg-header,
.reg-message,
.reg-card {
	margin: 0 0 var(--gap);
	padding: 16px 20px;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.reg-header,
.reg-message {
	border-left: 6px solid var(--yellow);
}
.reg-card {
	border: 1px solid var(--grey-200);
}
.reg-card-rows {
	padding-top: 4px;
	padding-bottom: 4px;
}
.reg-card-rows > .reg-title {
	margin-top: 12px;
}
.reg-message {
	font-weight: 600;
}
.reg-notice {
	margin: 0 0 var(--gap);
	padding: 12px 16px;
	background: var(--yellow-soft);
	border: 1px solid var(--yellow);
	border-radius: var(--radius-sm);
}
.reg-notice a {
	font-weight: 700;
}
.reg-card > :last-child {
	margin-bottom: 0;
}

/* nadpisy */
.reg-header h2 {
	margin: 0;
	color: var(--black);
	font-size: 1.35em;
	font-weight: 700;
	line-height: 1.25;
}
.reg-header h2 + h2 {
	margin-top: 4px;
	color: var(--grey-700);
	font-size: 1.05em;
	font-weight: 600;
}
.reg-title {
	display: block;
	margin: 0 0 12px;
	font-size: 1.05em;
	font-weight: 700;
	color: var(--black);
}

/* ---------------------------------------------------------------- odkaz jako tlacitko (tandem) */
.reg-tandem {
	margin: 0 0 14px;
	text-align: right;
}
.reg-tandem a,
.reg-tandem a:visited {
	display: inline-block;
	padding: 8px 14px;
	border: 2px solid var(--black);
	border-radius: 999px;
	color: var(--black);
	font-weight: 600;
	text-decoration: none;
}
.reg-tandem a:hover,
.reg-tandem a:focus {
	background: var(--yellow);
	color: var(--black);
	outline: none;
}

/* ---------------------------------------------------------------- radky popisek / hodnota
   Tabulka s tridou .reg-rows se zobrazuje jako grid (registrace, kontrola udaju).
   .reg-form ma navic treti sloupec pro validatory. */
.reg table.reg-rows,
.reg table.reg-rows > tbody {
	display: block;
	width: 100%;
	border: 0;
	border-collapse: collapse;
}
.reg table.reg-rows tr {
	display: grid;
	grid-template-columns: minmax(150px, 34%) 1fr;
	align-items: center;
	column-gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--grey-200);
}
.reg table.reg-form tr {
	grid-template-columns: minmax(150px, 34%) 1fr 34px;
}
.reg table.reg-rows tr:last-child {
	border-bottom: 0;
}
.reg table.reg-rows td {
	display: block;
	width: auto !important;
	height: auto !important;
	min-width: 0;
	padding: 0;
	border: 0;
	text-align: left;
	overflow-wrap: break-word;
}
.reg table.reg-rows td[colspan] {
	grid-column: 1 / -1;
}
/* zvyrazneny radek (kategorie v kontrole udaju) */
.reg tr.reg-row-highlight {
	background: var(--yellow-soft);
	font-size: 1.05em;
}
.reg table.reg-rows tr.reg-row-highlight {
	margin: 6px -12px;
	padding: 14px 12px;
	border: 1px solid var(--yellow);
	border-radius: var(--radius-sm);
}

.reg .reg-label {
	font-weight: 600;
	color: var(--grey-900);
}
.reg .reg-label-top {
	align-self: start;
	padding-top: 10px;
}
.reg .reg-label img {
	display: block;
	margin-bottom: 4px;
	height: auto;
}
.reg .reg-value {
	font-weight: 700;
	color: var(--black);
}

/* pole (vstup + povinna hvezdicka, pripadne tlacitko) */
.reg .reg-field {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.reg .reg-field > :is(input[type="text"], input[type="email"], input[type="tel"], textarea, select) {
	flex: 1 1 200px;
	width: auto;
	min-width: 0;
}
.reg .reg-field > .btn {
	flex: 0 0 auto;
}
.reg .reg-caption {
	display: block;
	margin-bottom: 8px;
	color: var(--grey-900);
}
.reg .povinny {
	color: var(--yellow-dark);
	font-weight: 700;
	font-size: 1.2em;
	line-height: 1;
}

/* ---------------------------------------------------------------- vstupni prvky */
.reg :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea) {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	font: inherit;
	font-size: 16px; /* zabrani zoomu na iOS */
	font-weight: 400;
	color: var(--black);
	background-color: var(--white);
	border: 1px solid var(--grey-400);
	border-radius: var(--radius-sm);
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.reg textarea {
	min-height: 90px;
	resize: vertical;
}
.reg select {
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c5c5c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
}
.reg :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea):hover {
	border-color: var(--grey-700);
}
.reg :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea):focus {
	outline: none;
	border-color: var(--yellow);
	box-shadow: var(--focus);
}
.reg :is(input, select, textarea)[disabled] {
	background-color: var(--grey-100);
	color: var(--grey-700);
	cursor: not-allowed;
}
.reg input[type="file"] {
	max-width: 100%;
	padding: 8px 0;
	font: inherit;
}
/* nevalidni pole (trida doplnovana skriptem) */
.reg :is(input, select, textarea, span).reg-invalid {
	border-color: var(--error);
	background-color: #fff5f5;
}

/* datum narozeni */
.reg .reg-date {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}
.reg .reg-date-part {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 70px;
	max-width: 130px;
}
.reg .reg-date-part.reg-date-year {
	flex: 1.4 1 95px;
	max-width: 160px;
}
.reg .reg-date-part > span:first-child {
	font-size: .85em;
	color: var(--grey-700);
}
.reg .reg-date-input {
	display: flex;
	align-items: center;
	gap: 6px;
}
.reg .reg-date-input input[type="text"] {
	width: 100% !important; /* prebiji Width="2em" z asp:TextBox */
	text-align: center;
}

/* telefon: predvolba + cislo */
.reg .reg-phone {
	display: flex;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}
.reg .reg-phone select {
	flex: 0 1 42%;
	width: auto;
	min-width: 0;
}
.reg .reg-phone input[type="text"] {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

/* ---------------------------------------------------------------- volby (RadioButtonList, CheckBoxList)
   .reg-choice          - tlacitka vedle sebe (pohlavi)
   .reg-choice-vertical - pod sebou
   .reg-options         - velke polozky s koleckem / ctverecek u CheckBoxList (kategorie, platba, zavody)
   Funguje pro RepeatLayout="Flow" (span) i vychozi tabulku. */
.reg .reg-choice {
	width: 100%;
}
.reg .reg-choice > span,
.reg .reg-choice > table,
.reg .reg-choice > table > tbody {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	margin: 0;
	border: 0;
}
/* bunky tabulek prevedenych na flex (RadioButtonList, strankovani GridView) */
.reg .reg-choice > table tr,
.reg .reg-choice > table td,
.reg tr.strankovani table td {
	display: block;
	padding: 0;
	border: 0;
}
.reg .reg-choice br {
	display: none;
}
.reg .reg-choice-vertical > span,
.reg .reg-choice-vertical > table,
.reg .reg-choice-vertical > table > tbody {
	flex-direction: column;
	flex-wrap: nowrap;
}
.reg .reg-choice input:is([type="radio"], [type="checkbox"]) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
}
.reg .reg-choice label {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 9px 18px;
	background: var(--grey-100);
	border: 1px solid var(--grey-200);
	border-radius: 999px;
	color: var(--grey-900);
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	transition: background-color .15s, border-color .15s, color .15s;
}
.reg .reg-choice-vertical label {
	display: flex;
	border-radius: var(--radius-sm);
}
.reg .reg-choice label:hover {
	border-color: var(--grey-700);
}
.reg .reg-choice input:is([type="radio"], [type="checkbox"]):checked + label {
	background: var(--yellow);
	border-color: var(--yellow);
	color: var(--black);
}
.reg .reg-choice input:is([type="radio"], [type="checkbox"]):focus + label {
	box-shadow: var(--focus);
}
.reg .reg-choice input:is([type="radio"], [type="checkbox"]):disabled + label {
	opacity: .5;
	cursor: not-allowed;
}

/* velke polozky s koleckem (radio) nebo ctvereckem (checkbox) */
.reg .reg-options label {
	position: relative;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px 12px 52px;
	background: var(--white);
	border-width: 2px;
	line-height: 1.3;
}
.reg .reg-options label::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 16px;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	background: var(--white);
	border: 2px solid var(--grey-400);
	border-radius: 50%;
}
.reg .reg-options input[type="checkbox"] + label::before {
	border-radius: 5px;
}
.reg .reg-options input:is([type="radio"], [type="checkbox"]):checked + label {
	background: var(--yellow-soft);
}
.reg .reg-options input:is([type="radio"], [type="checkbox"]):checked + label::before {
	border-color: var(--black);
	background: var(--black);
	box-shadow: inset 0 0 0 5px var(--yellow);
}

/* ---------------------------------------------------------------- zaskrtavaci policko
   .reg-check      - checkbox + popisek
   .reg-check-card - v ramecku, po zaskrtnuti zluty (souhlasy) */
.reg .reg-check,
.reg .reg-check > span {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.reg .reg-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--yellow);
	cursor: pointer;
}
.reg .reg-check label {
	cursor: pointer;
}
.reg .reg-check-card {
	padding: 12px 14px;
	background: var(--white);
	border: 2px solid var(--grey-200);
	border-radius: var(--radius-sm);
	font-weight: 600;
	transition: border-color .15s, background-color .15s;
}
.reg > .reg-check-card {
	margin: 0 0 var(--gap);
}
.reg .reg-check-card:hover {
	border-color: var(--grey-700);
}
.reg .reg-check-card:has(input:checked) {
	background: var(--yellow-soft);
	border-color: var(--yellow);
}
.reg .reg-check-card:has(input:focus-visible) {
	box-shadow: var(--focus);
}

/* ---------------------------------------------------------------- souhlas s textem podminek */
.reg .reg-consent > .tucny {
	display: block;
	margin: 0 0 10px;
	font-size: 1.05em;
}
.reg .reg-consent .ujednani {
	max-height: 240px;
	overflow-y: auto;
	margin: 0 0 12px;
	padding: 12px 14px;
	background: var(--grey-100);
	border: 1px solid var(--grey-200);
	border-radius: var(--radius-sm);
	font-size: .9em;
	line-height: 1.5;
	color: var(--grey-900);
}
.reg .reg-consent .ujednani a {
	font-weight: 600;
}
.reg .reg-consent .ujednani p:first-child {
	margin-top: 0;
}
.reg .reg-consent .ujednani p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------- validatory */
/* skryte validatory nezabiraji misto */
.reg span[style*="visibility:hidden"],
.reg span[style*="visibility: hidden"] {
	display: none !important;
}
/* "!" v kolecku */
.reg .reg-valid {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}
.reg .reg-valid > span {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--error);
	color: var(--white) !important;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
}
/* textova chyba u pole */
.reg .reg-field > .error,
.reg .reg-field-error > .error:not(:empty) {
	display: block;
	flex-basis: 100%;
	margin-top: 8px;
	font-weight: 600;
}

/* ---------------------------------------------------------------- chybove hlasky nahore
   ValidationSummary (zobrazuje/skryva ASP.NET) a chybove Labely. */
.reg .reg-alerts {
	scroll-margin-top: 16px;
}
.reg .reg-alerts > :not(:empty) {
	position: relative;
	display: block;
	margin: 0 0 var(--gap);
	padding: 16px 18px 16px 62px;
	background: var(--error-soft);
	border: 2px solid var(--error);
	border-radius: var(--radius);
	box-shadow: 0 6px 18px rgba(214, 40, 40, 0.18);
	color: var(--black) !important;
	font-weight: 700;
	line-height: 1.4;
}
.reg .reg-alerts > :not(:empty)::before {
	content: "!";
	position: absolute;
	top: 14px;
	left: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--error);
	color: var(--white);
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
}
/* chyba ze serveru nekdy zacina <br /> */
.reg .reg-alerts > span > br:first-child {
	display: none;
}
.reg .reg-alerts ul {
	margin: 8px 0 0;
	padding-left: 18px;
	font-weight: 500;
	color: var(--grey-900);
}
.reg .reg-alerts li {
	padding: 2px 0;
	list-style-type: disc;
}
.reg .reg-alerts li::marker {
	color: var(--error);
}
.reg .reg-alerts-flash > :not(:empty) {
	animation: reg-alert-in .45s ease-out;
}
@keyframes reg-alert-in {
	0%   { transform: translateX(0); box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.55); }
	20%  { transform: translateX(-6px); }
	40%  { transform: translateX(6px); }
	60%  { transform: translateX(-3px); }
	80%  { transform: translateX(3px); }
	100% { transform: translateX(0); box-shadow: 0 6px 18px rgba(214, 40, 40, 0.18); }
}

/* ---------------------------------------------------------------- tlacitka */
.reg .btn,
.reg .btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 22px;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	color: var(--white) !important;
	background-color: var(--grey-700);
	border: 0;
	border-radius: var(--radius-sm);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s, color .15s, transform .05s;
	-webkit-appearance: none;
	appearance: none;
}
.reg .btn:hover {
	background-color: var(--black);
	color: var(--yellow) !important;
}
.reg .btn:focus {
	outline: none;
	box-shadow: var(--focus);
}
.reg .btn:active {
	transform: translateY(1px);
}
.reg .btn[disabled] {
	opacity: .55;
	cursor: not-allowed;
}
/* hlavni tlacitko (Pokracovat, filtr ...) - uvnitr bloku .reg-primary */
.reg .reg-primary .btn {
	width: 100%;
	max-width: 360px;
	min-height: 52px;
	font-size: 17px;
	color: var(--black) !important;
	background-color: var(--yellow);
	box-shadow: 0 3px 0 var(--yellow-dark);
}
.reg .reg-primary .btn:hover {
	background-color: var(--black);
	color: var(--yellow) !important;
	box-shadow: 0 3px 0 #000;
}
/* radek tlacitek: hlavni tlacitko v .reg-primary (cely blok nebo jen obal tlacitka),
   ostatni tlacitka jsou sede ve stejne velikosti */
.reg .reg-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 var(--gap);
}
.reg .reg-actions .btn {
	min-height: 52px;
	font-size: 17px;
}

/* ---------------------------------------------------------------- filtr (tabulka N radku x 2 bunky)
   Trida .sl-filter na tabulce nebo na jejim obalu. Na PC dva sloupce, na mobilu nejdriv
   cely prvni sloupec, pak druhy. Bunka skryta code-behindem (Visible=false) = radek pres celou sirku. */
.reg :is(table.sl-filter, .sl-filter > table) {
	display: block;
	width: 100% !important;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}
.reg :is(table.sl-filter, .sl-filter > table) > tbody {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 8px;
	align-items: end;
}
.reg :is(table.sl-filter, .sl-filter > table) tr {
	display: contents;
}
.reg :is(table.sl-filter, .sl-filter > table) td {
	display: block;
	width: auto !important;
	padding: 0;
	border: 0;
}
.reg :is(table.sl-filter, .sl-filter > table) td:nth-child(1) { grid-column: 1; }
.reg :is(table.sl-filter, .sl-filter > table) td:nth-child(2) { grid-column: 2; }
.reg :is(table.sl-filter, .sl-filter > table) td:only-child { grid-column: 1 / -1; }
.reg :is(table.sl-filter, .sl-filter > table) h4 {
	margin: 0;
	font-size: .9em;
	font-weight: 600;
	color: var(--grey-700);
}

/* ---------------------------------------------------------------- tabulka vice zavodniku vedle sebe
   .reg-matrix - prvni sloupec popisek (td.reg-label), dalsi sloupce zavodnici;
   na mobilu je popisek nad hodnotami a sloupce se zuzi (bez posuvniku) */
.reg table.reg-matrix {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}
.reg table.reg-matrix :is(th, td) {
	padding: 10px 8px;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--grey-200);
	overflow-wrap: break-word;
}
.reg table.reg-matrix tr:last-child > * {
	border-bottom: 0;
}
.reg table.reg-matrix th {
	color: var(--grey-700);
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	border-bottom: 3px solid var(--yellow);
}
.reg table.reg-matrix td {
	font-weight: 700;
}
.reg table.reg-matrix td.reg-label {
	width: 30%;
	font-weight: 600;
}

/* ---------------------------------------------------------------- datove tabulky (GridView .prehled)
   .reg-table       - obal tabulky (karta); .sl-table-wrap je alias pro startovni listinu
   .reg-table-cards - na tabletu a mobilu se radky zobrazi jako karty */
.reg :is(.reg-table, .sl-table-wrap) {
	margin: 0 0 var(--gap);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--white);
	border: 1px solid var(--grey-200);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.reg :is(.reg-table, .sl-table-wrap):not(:has(table)) {
	display: none;
}
/* tabulka se musi vejit do sirky (bez vodorovneho posuvniku) */
.reg table.prehled {
	float: none; /* general1.css: .statistika plave */
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: .92em;
}
.reg table.prehled > tbody > tr > :is(th, td) {
	padding: 10px 8px;
	text-align: left;
	vertical-align: middle;
	border: 0;
	border-bottom: 1px solid var(--grey-200);
	overflow-wrap: break-word; /* zalamovat jen mezi slovy, slova a cisla nedelit */
}
.reg table.prehled > tbody > tr > :is(th, td):first-child {
	padding-left: 14px;
}
.reg table.prehled > tbody > tr > :is(th, td):last-child {
	padding-right: 14px;
}
/* startovni cislo (prvni sloupec, pokud je za nim jmeno) se nikdy nezalamuje */
.reg table.prehled > tbody > tr > td.tucny:first-child:has(+ td.tucny),
.reg table.prehled > tbody > tr.zahlavi > th:first-child {
	white-space: nowrap;
}
.reg table.prehled > tbody > tr.zahlavi > th {
	background: var(--black);
	color: var(--white);
	font-size: .78em;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	border-bottom: 3px solid var(--yellow);
}
.reg table.prehled tr.zahlavi a,
.reg table.prehled tr.zahlavi a:visited {
	color: var(--white);
	text-decoration: none;
}
.reg table.prehled tr.zahlavi a:hover,
.reg table.prehled tr.zahlavi a:focus {
	color: var(--yellow);
	outline: none;
}
.reg table.prehled tr.zahlavi a::after {
	content: " \21C5"; /* sipky - razeni */
	opacity: .45;
}
.reg table.prehled > tbody > tr.suda {
	background: #fafafa;
}
.reg table.prehled > tbody > tr:is(.licha, .suda):hover {
	background: var(--yellow-soft);
}
.reg table.prehled td a {
	text-decoration-color: var(--yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}
.reg table.prehled td input[type="image"] {
	display: block;
	max-height: 28px;
	cursor: pointer;
}

/* strankovani */
.reg table.prehled > tbody > tr.strankovani > td {
	padding: 12px 14px;
	color: var(--black); /* general1.css: bily text */
	background: var(--grey-100);
	border-bottom: 0;
	white-space: normal !important; /* PagerStyle Wrap="False" */
}
/* tlacitka stranek se zalamuji, nikdy neroztahuji tabulku */
.reg tr.strankovani table,
.reg tr.strankovani table > tbody,
.reg tr.strankovani table tr {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	border: 0;
}
.reg tr.strankovani :is(a, span) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	color: var(--black);
	background: var(--white);
	border: 1px solid var(--grey-200);
	border-radius: var(--radius-sm);
	font-weight: 700;
	text-decoration: none;
}
.reg tr.strankovani a:hover {
	border-color: var(--black);
}
.reg tr.strankovani span {
	background: var(--yellow);
	border-color: var(--yellow);
}

/* ---------------------------------------------------------------- rozcestnik odkazu
   .reg-menu na seznamu (dl/ul) - kazda polozka je velky odkaz */
.reg .reg-menu {
	display: grid;
	gap: 10px;
	margin: 0 0 var(--gap);
	padding: 0;
}
.reg .reg-menu > * {
	margin: 0;
	padding: 0;
	list-style: none;
}
.reg .reg-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 12px 18px;
	background: var(--white);
	border: 2px solid var(--grey-200);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	font-weight: 700;
	text-decoration: none;
	transition: border-color .15s, background-color .15s;
}
.reg .reg-menu a::after {
	content: "\203A";
	color: var(--yellow-dark);
	font-size: 1.5em;
	line-height: 1;
}
.reg .reg-menu a:hover,
.reg .reg-menu a:focus {
	background: var(--yellow-soft);
	border-color: var(--yellow);
	outline: none;
}

/* ---------------------------------------------------------------- loga vedle sebe */
.reg .reg-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 20px;
	margin: 0 0 var(--gap);
}
.reg .reg-logos img {
	height: auto;
}

/* ---------------------------------------------------------------- mrizka bloku (napr. vice malych tabulek) */
.reg .reg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	align-items: start;
	gap: var(--gap);
	margin: 0 0 var(--gap);
}
.reg .reg-grid > * {
	margin: 0;
}
/* ---------------------------------------------------------------- ostatni */
.reg .reg-note {
	color: var(--grey-700);
	font-size: .9em;
}
.reg .autocomplete_completionListElement {
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}


/* ==========================================================================
   5. Specificke casti stranek
   ========================================================================== */

/* ---------------------------------------------------------------- platba: souhrn */
.pay .pay-zavodnik {
	font-size: 1.2em;
	font-weight: 800;
}
.pay .pay-kategorie {
	margin-top: 4px;
	color: var(--grey-700);
	font-weight: 600;
}
.pay .pay-summary .reg-notice {
	margin-top: 14px;
	font-size: 1.05em;
}
.pay .pay-summary strong {
	font-size: 1.25em;
	font-weight: 800;
	white-space: nowrap;
}


/* ==========================================================================
   6. Responzivita
   ========================================================================== */

/* tablet: siroke datove tabulky (.reg-table-cards) jako karty */
@media (max-width: 900px) {
	.reg :is(.reg-table-cards, .sl-table-wrap) {
		overflow: visible;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled,
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody {
		display: block;
	}

	/* hlavicka = tlacitka pro razeni */
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr.zahlavi {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		margin: 0 0 12px;
	}
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr.zahlavi > th {
		padding: 0;
		background: none;
		border: 0;
		text-transform: none;
		letter-spacing: 0;
		font-size: .85em;
	}
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr.zahlavi > th:not(:has(a)) {
		display: none;
	}
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled tr.zahlavi a,
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled tr.zahlavi a:visited {
		display: inline-flex;
		align-items: center;
		min-height: 36px;
		padding: 6px 12px;
		color: var(--black);
		background: var(--white);
		border: 1px solid var(--grey-200);
		border-radius: 999px;
	}
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled tr.zahlavi a:hover,
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled tr.zahlavi a:focus {
		color: var(--black) !important; /* general1.css: zluta !important */
		background: var(--yellow);
		border-color: var(--yellow);
	}

	/* radek = karta */
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr:is(.licha, .suda),
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr:is(.licha, .suda):hover {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		margin: 0 0 10px;
		padding: 10px 14px 6px;
		background: var(--white);
		border: 1px solid var(--grey-200);
		border-left: 4px solid var(--yellow);
		border-radius: var(--radius-sm);
		box-shadow: var(--shadow);
	}
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr:is(.licha, .suda) > td {
		display: flex;
		flex: 1 1 100%;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 7px 0;
		border: 0;
		border-top: 1px solid var(--grey-100);
		text-align: right;
	}
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr > td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		color: var(--grey-700);
		font-size: .85em;
		font-weight: 600;
		text-align: left;
	}
	/* startovni cislo a jmeno nahore karty, bez popisku */
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr > td.tucny {
		flex: 0 1 auto;
		padding: 2px 10px 8px 0;
		border-top: 0;
		font-size: 1.08em;
		text-align: left;
	}
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr > td.tucny::before {
		content: none;
	}
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr > td.tucny + td:not(.tucny) {
		border-top-color: var(--grey-200);
	}
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr > td.sl-empty {
		display: none;
	}

	/* strankovani */
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr.strankovani {
		display: block;
	}
	.reg :is(.reg-table-cards, .sl-table-wrap) table.prehled > tbody > tr.strankovani > td {
		display: block;
		padding: 10px 0;
		background: none;
	}
}

/* mobil */
@media (max-width: 640px) {
	/* layout */
	.rm-wrap {
		padding: 0 14px;
	}
	.rm-header-inner {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 12px;
		padding-top: 12px;
		padding-bottom: 16px;
	}
	.rm-lang {
		max-width: none;
	}
	.rm-lang input[type="image"] {
		width: 36px;
		height: 28px;
	}
	.rm-title h1 {
		font-size: 1.4em;
	}
	.rm-main {
		padding: 16px 0 24px;
	}
	.rm-footer-inner {
		flex-direction: column;
		text-align: center;
	}

	/* bloky */
	.reg-header,
	.reg-message,
	.reg-card {
		padding: 14px;
	}
	.reg-card-rows {
		padding-top: 4px;
		padding-bottom: 4px;
	}
	.reg-header {
		border-left-width: 5px;
	}
	.reg-header h2 {
		font-size: 1.2em;
	}
	.reg-tandem {
		text-align: left;
	}
	.reg-tandem a {
		display: block;
		text-align: center;
	}

	/* radky: popisek nad hodnotou, validator vpravo */
	.reg table.reg-rows tr,
	.reg table.reg-form tr {
		grid-template-columns: 1fr auto;
		row-gap: 6px;
		column-gap: 8px;
		padding: 10px 0;
	}
	.reg table.reg-rows td.reg-label {
		grid-column: 1 / -1;
		padding-top: 0;
	}
	.reg table.reg-rows tr.reg-row-highlight {
		margin: 6px -8px;
		padding: 12px 8px;
	}
	.reg .reg-valid {
		justify-content: flex-end;
	}
	.reg .reg-date-part,
	.reg .reg-date-part.reg-date-year {
		max-width: none;
	}
	.reg .reg-phone select {
		flex-basis: 45%;
	}
	.reg .reg-field > .btn,
	.reg .reg-actions > *,
	.reg .reg-actions .btn,
	.reg .reg-primary .btn {
		flex: 1 1 100%;
		width: 100%;
		max-width: none;
	}

	/* matice zavodniku: popisek nad hodnotami, sloupce vedle sebe */
	.reg table.reg-matrix,
	.reg table.reg-matrix > tbody {
		display: block;
	}
	.reg table.reg-matrix tr {
		display: flex;
		flex-wrap: wrap;
		column-gap: 12px;
		padding: 8px 0;
		border-bottom: 1px solid var(--grey-200);
	}
	.reg table.reg-matrix tr:last-child {
		border-bottom: 0;
	}
	.reg table.reg-matrix :is(th, td) {
		flex: 1 1 0;
		min-width: 0;
		padding: 2px 0;
		border: 0;
	}
	.reg table.reg-matrix td.reg-label {
		flex-basis: 100%;
		width: auto;
		font-size: .88em;
	}
	.reg table.reg-matrix th:first-child:empty {
		display: none;
	}

	/* volby a souhlasy */
	.reg .reg-options label {
		padding-left: 48px;
	}
	.reg .reg-options label::before {
		left: 14px;
	}
	.reg .reg-consent .ujednani {
		max-height: 200px;
	}

	/* chybove hlasky */
	.reg .reg-alerts > :not(:empty) {
		padding: 14px 14px 14px 54px;
	}
	.reg .reg-alerts > :not(:empty)::before {
		left: 12px;
		width: 30px;
		height: 30px;
	}

	/* filtr pod sebou: nejdriv cely prvni sloupec, pak druhy */
	.reg :is(table.sl-filter, .sl-filter > table) > tbody {
		grid-template-columns: 1fr;
	}
	.reg :is(table.sl-filter, .sl-filter > table) td:nth-child(n) {
		grid-column: 1;
	}
	.reg :is(table.sl-filter, .sl-filter > table) td:nth-child(2) {
		order: 1;
	}
	.reg :is(table.sl-filter, .sl-filter > table) tr:last-child > td:nth-child(1):not(:last-child) {
		margin-bottom: 14px;
		padding-bottom: 16px;
		border-bottom: 1px solid var(--grey-200);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rm * {
		transition: none !important;
		animation: none !important;
	}
}
