/*
 * Staff modul (registrační budka) — společný vzhled.
 *
 * Laděno na ThinkPad X220 (1366 × 768, Firefox na Ubuntu): po odečtení lišty
 * prohlížeče zbývá ~680 px na výšku, proto kompaktní hlavička a žádné velké mezery.
 * Metronic (style.bundle.css) se načítá dál kvůli hledání a statistikám,
 * všechno nové má prefix `st-`, aby se to s ním nepralo.
 */

:root {
	--st-bg: #f2f3f8;
	--st-surface: #fff;
	--st-border: #e4e6ef;
	--st-border-strong: #d3d6e2;
	--st-text: #3f4254;
	--st-muted: #8a8d9a;
	--st-faint: #b5b8c5;

	--st-dark: #262838;
	--st-dark-2: #30324a;

	--st-primary: #5867dd;
	--st-primary-hover: #4553cf;
	--st-primary-soft: #eceefd;
	--st-success: #1fad8a;
	--st-success-soft: #e3f6f0;
	--st-danger: #e5303f;
	--st-danger-soft: #fdeaec;
	--st-warn: #f0a30a;
	--st-warn-soft: #fff4dc;
	--st-info: #2f8fe0;
	--st-info-soft: #e6f2fc;
	--st-violet: #8b3fd9;
	--st-violet-soft: #f2e9fc;

	--st-radius: 8px;
	--st-radius-sm: 6px;
	--st-shadow: 0 1px 2px rgba(38, 40, 56, .05), 0 2px 10px rgba(38, 40, 56, .05);
	--st-h: 38px;
	--st-h-sm: 30px;
	--st-h-lg: 48px;
}

body.st-body {
	background: var(--st-bg);
	color: var(--st-text);
	font-family: Poppins, Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

.st-body a { color: var(--st-primary); }
.st-body h1, .st-body h2, .st-body h3, .st-body h4, .st-body h5, .st-body h6 { color: var(--st-text); }

/* ───────────── Hlavička ───────────── */

.st-header { position: sticky; top: 0; z-index: 1000; }

.st-topbar {
	display: flex; align-items: center; gap: 18px;
	height: 52px; padding: 0 20px;
	background: var(--st-dark); color: #c9cbd9;
}

.st-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex: none; }
.st-brand img { height: 34px; width: auto; display: block; }
.st-brand span { color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .3px; opacity: .9; }

.st-nav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.st-nav a {
	display: flex; align-items: center; gap: 7px;
	height: 36px; padding: 0 13px; border-radius: var(--st-radius-sm);
	color: #aeb1c4; font-size: 13.5px; font-weight: 500; white-space: nowrap;
	text-decoration: none !important; transition: background .15s, color .15s;
}
.st-nav a i { font-size: 18px; }
.st-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.st-nav a.is-active { background: rgba(255, 255, 255, .12); color: #fff; }

.st-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.st-operator {
	display: inline-flex; align-items: center; gap: 9px;
	height: 38px; padding: 0 14px 0 4px; border-radius: 19px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
	color: #fff !important; text-decoration: none !important; cursor: pointer;
	font: inherit; font-size: 13.5px; transition: background .15s;
}
.st-operator:hover { background: rgba(255, 255, 255, .15); }
.st-operator__avatar {
	width: 30px; height: 30px; border-radius: 50%; flex: none;
	display: flex; align-items: center; justify-content: center;
	background: var(--st-success); color: #fff; font-weight: 600; font-size: 12.5px; letter-spacing: .3px;
}
.st-operator__name { font-weight: 600; white-space: nowrap; }
.st-operator__count { color: #aeb1c4; font-size: 12.5px; white-space: nowrap; }
.st-operator__count b { color: #fff; }
.st-operator--empty { background: rgba(240, 163, 10, .16); border-color: rgba(240, 163, 10, .55); padding-left: 12px; }
.st-operator--empty:hover { background: rgba(240, 163, 10, .28); }
.st-operator--empty .st-dot { background: var(--st-warn); animation: stPulseWarn 1.8s ease-out infinite; }

.st-account { color: #7f829a; font-size: 12.5px; white-space: nowrap; }
.st-iconbtn {
	width: 36px; height: 36px; border-radius: var(--st-radius-sm);
	display: inline-flex; align-items: center; justify-content: center;
	color: #aeb1c4 !important; text-decoration: none !important; font-size: 19px;
}
.st-iconbtn:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }

/* Druhý řádek hlavičky: výběr vystavovatele + panel s čísly dne. */
.st-subbar {
	display: flex; align-items: center; gap: 14px;
	height: 56px; padding: 0 20px;
	background: var(--st-surface); border-bottom: 1px solid var(--st-border);
	box-shadow: 0 2px 8px rgba(38, 40, 56, .04);
}

.st-picker { flex: 1 1 auto; min-width: 280px; max-width: 640px; position: relative; }
.st-picker > i {
	position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
	color: var(--st-muted); font-size: 18px; z-index: 2; pointer-events: none;
}
.st-picker .select2-container { width: 100% !important; }
.st-picker .select2-container .select2-selection--single {
	height: 40px !important; border: 1px solid var(--st-border-strong) !important; border-radius: var(--st-radius-sm) !important;
	background: #fafbfd; transition: border-color .15s, box-shadow .15s;
}
.st-picker .select2-container--open .select2-selection--single,
.st-picker .select2-container--focus .select2-selection--single {
	border-color: var(--st-primary) !important; background: #fff; box-shadow: 0 0 0 3px rgba(88, 103, 221, .14);
}
.st-picker .select2-selection__rendered { display: block !important; line-height: 38px !important; padding: 0 40px 0 38px !important; color: var(--st-text) !important; font-size: 14px; }
.st-picker .select2-selection__placeholder, .st-picker .select2-selection__rendered[title="Najít vystavovatele"] { color: var(--st-muted) !important; }
.st-picker .select2-selection__arrow { display: none !important; }
.st-picker kbd {
	position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 2; pointer-events: none;
	background: #eef0f6; color: var(--st-muted); border: 1px solid var(--st-border); border-radius: 4px;
	font: 600 11px/1 Poppins, sans-serif; padding: 3px 6px; box-shadow: none;
}
.select2-container--open .select2-dropdown { border-color: var(--st-border-strong) !important; border-radius: var(--st-radius-sm) !important; box-shadow: 0 10px 30px rgba(38, 40, 56, .15); overflow: hidden; }
.select2-search--dropdown .select2-search__field { height: 36px; border-radius: 5px !important; border: 1px solid var(--st-border-strong) !important; padding: 4px 10px !important; font-size: 14px; }
.select2-results__option { padding: 7px 12px !important; font-size: 13.5px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--st-primary) !important; }
.select2-results > .select2-results__options { max-height: 420px !important; }

.st-subbar__title { font-size: 17px; font-weight: 600; color: var(--st-text); display: flex; align-items: center; gap: 9px; }
.st-subbar__title i { font-size: 22px; color: var(--st-muted); }

/* Panel — stejná řeč jako stavový panel v adminu (šedá = klid, barva = mrkni). */
.st-panel {
	margin-left: auto; flex: none;
	display: inline-flex; align-items: center; gap: 2px; padding: 3px; height: 42px;
	background: #f5f6fa; border: 1px solid var(--st-border); border-radius: 21px;
}
.st-panel__item {
	display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 11px;
	border-radius: 17px; color: #6f7285 !important; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap;
	text-decoration: none !important; transition: background .15s, color .15s, box-shadow .15s;
}
a.st-panel__item:hover { background: #fff; color: var(--st-text) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .07); }
span.st-panel__item { cursor: help; }
.st-panel__item i { font-size: 17px; }
.st-panel__item b { color: var(--st-text); font-weight: 700; font-size: 14px; }
.st-panel__item small { color: var(--st-faint); font-size: 12px; font-weight: 500; }
.st-panel__item.is-day { color: var(--st-text) !important; font-weight: 600; }
.st-panel__item.is-day em { font-style: normal; font-weight: 500; color: var(--st-success); }
.st-panel__item.is-fair { background: var(--st-success-soft); }
.st-panel__sep { width: 1px; height: 18px; background: #dfe1e8; margin: 0 3px; }

.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-faint); flex: none; display: inline-block; }
.st-dot--registration { background: var(--st-success); }
.st-dot--booth { background: var(--st-info); }
.st-dot--guest { background: var(--st-warn); }
.st-dot--party { background: var(--st-violet); }
.st-dot--live { background: var(--st-success); animation: stPulse 1.8s ease-out infinite; }

@keyframes stPulse { 0% { box-shadow: 0 0 0 0 rgba(31, 173, 138, .55); } 100% { box-shadow: 0 0 0 7px rgba(31, 173, 138, 0); } }
@keyframes stPulseWarn { 0% { box-shadow: 0 0 0 0 rgba(240, 163, 10, .6); } 100% { box-shadow: 0 0 0 7px rgba(240, 163, 10, 0); } }
@media (prefers-reduced-motion: reduce) { .st-dot--live, .st-operator--empty .st-dot { animation: none; } }

/* Užší obrazovka než X220: popisky pryč, čísla zůstanou. */
@media (max-width: 1320px) {
	.st-panel__item .st-panel__label { display: none; }
	.st-account { display: none; }
}
@media (max-width: 1180px) {
	.st-nav a span { display: none; }
	.st-brand span { display: none; }
}

/* ───────────── Obsah ───────────── */

.st-main { padding: 16px 20px 24px; max-width: 1600px; margin: 0 auto; width: 100%; box-sizing: border-box; flex: 1 0 auto; }
.st-header, .st-footer { width: 100%; box-sizing: border-box; }
.st-footer { padding: 10px 20px 16px; color: var(--st-faint); font-size: 12px; text-align: center; }

.st-card {
	background: var(--st-surface); border-radius: var(--st-radius);
	box-shadow: var(--st-shadow); border: 1px solid #eceef4;
	margin-bottom: 14px;
}
.st-card__head {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 12px 18px; border-bottom: 1px solid var(--st-border);
}
.st-card__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--st-text); display: flex; align-items: center; gap: 8px; }
.st-card__title i { font-size: 19px; color: var(--st-muted); }
.st-card__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-card__body { padding: 14px 18px; }
.st-card__foot { padding: 12px 18px; border-top: 1px solid var(--st-border); background: #fafbfd; border-radius: 0 0 var(--st-radius) var(--st-radius); }

.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .st-grid { grid-template-columns: 1fr; } }

.st-muted { color: var(--st-muted); }
.st-empty { color: var(--st-muted); padding: 22px 18px; text-align: center; }
.st-empty i { display: block; font-size: 32px; color: var(--st-faint); margin-bottom: 6px; }

/* ───────────── Tlačítka ───────────── */

.st-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	height: var(--st-h); padding: 0 16px; border-radius: var(--st-radius-sm);
	border: 1px solid transparent; background: var(--st-primary); color: #fff !important;
	font: 500 13.5px/1 Poppins, sans-serif; white-space: nowrap; cursor: pointer;
	text-decoration: none !important; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, opacity .15s;
	-webkit-appearance: none; appearance: none;
}
.st-btn i { font-size: 17px; }
.st-btn:hover { background: var(--st-primary-hover); }
.st-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(88, 103, 221, .25); }
.st-btn:disabled, .st-btn.is-disabled { opacity: .45; cursor: default; pointer-events: none; }

.st-btn--sm { height: var(--st-h-sm); padding: 0 12px; font-size: 12.5px; }
.st-btn--sm i { font-size: 15px; }
.st-btn--lg { height: var(--st-h-lg); padding: 0 26px; font-size: 16px; font-weight: 600; }
.st-btn--lg i { font-size: 21px; }

.st-btn--success { background: var(--st-success); }
.st-btn--success:hover { background: #189a7a; }
.st-btn--danger { background: var(--st-danger); }
.st-btn--danger:hover { background: #c92533; }
.st-btn--ghost { background: #fff; color: var(--st-text) !important; border-color: var(--st-border-strong); }
.st-btn--ghost:hover { background: #f5f6fa; border-color: #c3c7d6; }
.st-btn--ghost i { color: var(--st-muted); }
.st-btn--soft { background: var(--st-primary-soft); color: var(--st-primary) !important; }
.st-btn--soft:hover { background: #dfe2fb; }
.st-btn--warn { background: var(--st-warn-soft); color: #9a6700 !important; border-color: #f6d589; }
.st-btn--warn:hover { background: #ffeabc; }
.st-btn--link { background: none; color: var(--st-muted) !important; padding: 0 6px; }
.st-btn--link:hover { background: none; color: var(--st-text) !important; }

.st-btngroup { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ───────────── Štítky ───────────── */

.st-badge {
	display: inline-flex; align-items: center; gap: 5px;
	height: 24px; padding: 0 9px; border-radius: 12px;
	font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
	background: #eef0f6; color: #5e6278;
}
.st-badge i { font-size: 14px; }
.st-badge--success { background: var(--st-success-soft); color: #12795f; }
.st-badge--danger { background: var(--st-danger-soft); color: #b61f2c; }
.st-badge--warn { background: var(--st-warn-soft); color: #946200; }
.st-badge--info { background: var(--st-info-soft); color: #1d6aad; }
.st-badge--violet { background: var(--st-violet-soft); color: #6b25b5; }
.st-badge--primary { background: var(--st-primary-soft); color: #3c4ac2; }
.st-badge--solid-warn { background: var(--st-warn); color: #fff; }
.st-badge--lg { height: 28px; padding: 0 12px; font-size: 13px; border-radius: 14px; }

.st-stand {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 64px; height: 38px; padding: 0 10px; border-radius: var(--st-radius-sm);
	background: var(--st-success); color: #fff; font-weight: 700; font-size: 19px; letter-spacing: .5px; flex: none;
}
.st-stand--muted { background: #eef0f6; color: var(--st-muted); font-size: 14px; }

.st-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.st-chip {
	display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 16px;
	background: #f3f4f8; color: var(--st-muted); font-size: 12.5px; white-space: nowrap;
}
.st-chip b { color: var(--st-text); font-size: 14px; }
.st-chip.is-warn { background: var(--st-warn-soft); color: #946200; }
.st-chip.is-warn b { color: #946200; }

/* Karta z minulého ročníku (pastSeason.latte) */
.st-pastyear { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 12px 16px; background: var(--st-warn-soft); border: 2px solid var(--st-warn); border-radius: 8px; color: #7a5300; }
.st-pastyear__year { flex: none; padding: 4px 12px; background: var(--st-warn); border-radius: 6px; color: #fff; font-size: 24px; font-weight: 700; line-height: 1.2; }
.st-pastyear a { color: #7a5300; font-weight: 600; text-decoration: underline; }

/* ───────────── Formuláře ───────────── */

.st-input, .st-body .st-form input[type=text], .st-body .st-form input[type=number], .st-body .st-form textarea, .st-select {
	display: block; box-sizing: border-box; width: 100%; height: var(--st-h); padding: 0 12px;
	border: 1px solid var(--st-border-strong); border-radius: var(--st-radius-sm);
	background: #fff; color: var(--st-text); font: 400 14px/1.3 Poppins, sans-serif;
	transition: border-color .15s, box-shadow .15s, background .3s;
}
.st-body .st-form textarea, textarea.st-input { height: auto; min-height: 76px; padding: 9px 12px; resize: vertical; }
.st-input:focus, .st-body .st-form input:focus, .st-body .st-form textarea:focus, .st-select:focus {
	outline: none; border-color: var(--st-primary); box-shadow: 0 0 0 3px rgba(88, 103, 221, .14);
}
.st-input::placeholder, .st-form input::placeholder, .st-form textarea::placeholder { color: var(--st-faint); }
.st-input--lg { height: var(--st-h-lg); font-size: 17px; padding: 0 16px; }

.st-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--st-muted); margin: 0 0 5px; }
.st-field { margin-bottom: 12px; }

.st-inline { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.st-inline > .st-field { margin: 0; }

.st-check {
	display: inline-flex; align-items: center; gap: 8px; height: var(--st-h); padding: 0 12px;
	border: 1px solid var(--st-border-strong); border-radius: var(--st-radius-sm); background: #fff;
	cursor: pointer; user-select: none; font-size: 13.5px; color: var(--st-text); margin: 0; white-space: nowrap;
}
.st-check:hover { border-color: #c3c7d6; }
.st-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--st-primary); cursor: pointer; }
.st-check:has(input:checked) { border-color: var(--st-primary); background: var(--st-primary-soft); }

input[type=checkbox].st-cb { width: 17px; height: 17px; margin: 0; accent-color: var(--st-primary); cursor: pointer; vertical-align: middle; }

/* Přepínač Ano/Ne (VIP párty u vstupenky). */
.st-toggle {
	display: inline-flex; align-items: center; gap: 7px; height: var(--st-h-sm); padding: 0 11px 0 5px;
	border-radius: 15px; border: 1px solid var(--st-border-strong); background: #fff;
	color: var(--st-muted); font: 500 12.5px/1 Poppins, sans-serif; cursor: pointer; white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
.st-toggle::before {
	content: ""; width: 20px; height: 20px; border-radius: 50%; background: #e3e5ee; flex: none;
	transition: background .15s;
}
.st-toggle:hover { border-color: #c3c7d6; }
.st-toggle.is-on { background: var(--st-violet-soft); border-color: #d9c2f5; color: #6b25b5; }
.st-toggle.is-on::before { background: var(--st-violet); box-shadow: inset 0 0 0 5px var(--st-violet), inset 0 0 0 20px #fff; }
.st-toggle.is-over.is-on { background: var(--st-warn-soft); border-color: #f6d589; color: #946200; }
.st-toggle.is-over.is-on::before { background: var(--st-warn); box-shadow: none; }
.st-toggle:focus { outline: none; box-shadow: 0 0 0 3px rgba(139, 63, 217, .2); }
.st-toggle.is-busy { opacity: .5; }
.st-toggle[disabled] { cursor: default; }

/* Párty páska přímo na kartě vstupenek. */
.st-btn--party { background: var(--st-violet-soft); color: #6b25b5 !important; }
.st-btn--party:hover { background: #e7d8fa; }
.st-btn.is-hidden { display: none; }
.st-partycell > * { vertical-align: middle; }
.st-partyundo { border: 0; background: none; padding: 2px 4px; color: var(--st-muted); cursor: pointer; font-size: 14px; }
.st-partyundo:hover { color: var(--st-danger); }
.st-partyby { font-size: 12px; line-height: 1.35; margin-top: 2px; color: var(--st-muted); white-space: nowrap; }

/* Pole, které se ukládá hned při změně (jména na vstupenkách). */
.st-inplace {
	width: 100%; height: 34px; padding: 0 9px; border-radius: 5px;
	border: 1px solid transparent; background: transparent; color: var(--st-text);
	font: 500 14px/1 Poppins, sans-serif; transition: border-color .15s, background .4s, box-shadow .15s;
}
.st-inplace:hover { border-color: var(--st-border-strong); background: #fff; }
.st-inplace:focus { outline: none; border-color: var(--st-primary); background: #fff; box-shadow: 0 0 0 3px rgba(88, 103, 221, .14); }
.st-inplace.is-saved { background: var(--st-success-soft); border-color: #a9e2d1; }
.st-inplace.is-error { background: var(--st-danger-soft); border-color: #f3a7ae; }

.st-flashsave { animation: stFlashSave .9s ease-out; }
@keyframes stFlashSave { 0% { background: #bff0dd; } 100% { background: transparent; } }

/* ───────────── Tabulky ───────────── */

.st-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.st-table th {
	text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
	color: var(--st-muted); padding: 9px 10px; border-bottom: 1px solid var(--st-border); background: #fafbfd; white-space: nowrap;
}
.st-table td { padding: 5px 10px; border-bottom: 1px solid #f0f1f5; vertical-align: middle; height: 46px; }
.st-table tbody tr:hover td { background: #fafbff; }
.st-table tbody tr:last-child td { border-bottom: 0; }
.st-table .is-narrow { width: 1%; white-space: nowrap; }
.st-table .is-num { color: var(--st-faint); font-variant-numeric: tabular-nums; }
.st-table tr.is-done td { color: var(--st-muted); }
.st-table tr.is-selected td { background: var(--st-primary-soft) !important; }
.st-table tr.st-group td {
	height: auto; padding: 12px 10px 6px; background: #fff !important;
	font-size: 11.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--st-muted);
}
.st-table tr.st-limit td {
	height: auto; padding: 0; border-bottom: 0; background: #fff !important;
}
.st-table tr.st-limit td div {
	display: flex; align-items: center; gap: 10px; padding: 6px 10px;
	color: #946200; font-size: 11.5px; font-weight: 500;
}
.st-table tr.st-limit td div::before, .st-table tr.st-limit td div::after { content: ""; height: 1px; flex: 1; background: repeating-linear-gradient(90deg, #f0c060 0 6px, transparent 6px 11px); }
.st-table tr.is-blacklist td { background: #f1f1f4 !important; }

.st-card > .st-table th:first-child, .st-card > .st-table td:first-child { padding-left: 18px; }
.st-card > .st-table th:last-child, .st-card > .st-table td:last-child { padding-right: 18px; }

.st-done { display: inline-flex; align-items: center; gap: 5px; color: var(--st-success); font-weight: 500; font-size: 13px; white-space: nowrap; }
.st-done i { font-size: 17px; }

/* ───────────── Karta vystavovatele ───────────── */

.st-exh__head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap; }
.st-exh__title { min-width: 0; flex: 1 1 360px; }
.st-exh__name { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--st-text); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-exh__standname { color: var(--st-muted); font-weight: 400; font-size: 17px; }
.st-exh__sub { margin-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--st-muted); }
.st-exh__actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-left: auto; }

.st-pass {
	display: flex; align-items: center; gap: 14px;
	margin: 0 18px 14px; padding: 12px 18px; border-radius: var(--st-radius);
	background: var(--st-success-soft); border: 1px solid #b7e6d6; color: #0f6e56;
}
.st-pass i { font-size: 34px; color: var(--st-success); }
.st-pass b { font-size: 18px; font-weight: 600; }
.st-pass span { color: #3c8c75; font-size: 13px; }
.st-pass--compact { margin: 0; padding: 0 12px; height: 34px; border-radius: 17px; gap: 7px; }
.st-pass--compact i { font-size: 19px; }
.st-pass--compact b { font-size: 13.5px; }

.st-tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--st-border); margin: 0; list-style: none; }
.st-tabs a {
	display: flex; align-items: center; gap: 7px; padding: 10px 14px; margin-bottom: -1px;
	color: var(--st-muted) !important; font-weight: 500; font-size: 13.5px; text-decoration: none !important;
	border-bottom: 2px solid transparent;
}
.st-tabs a i { font-size: 17px; }
.st-tabs a:hover { color: var(--st-text) !important; }
.st-tabs a.active { color: var(--st-primary) !important; border-bottom-color: var(--st-primary); }
.st-tabs a .st-badge { height: 20px; padding: 0 7px; font-size: 11.5px; }
/* Záložka bez objednávek — jde otevřít, ale je vidět, že v ní nic není. */
.st-tabs a.is-empty { opacity: .45; }
.st-tabs a.is-empty.active { opacity: 1; }

.st-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.st-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f1f5; }
.st-facts dt { color: var(--st-muted); font-weight: 500; font-size: 13px; }
.st-facts dd { margin: 0; color: var(--st-text); }
.st-facts .is-wide { grid-column: 1 / -1; }

.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f1f5; }
.st-list li:last-child { border-bottom: 0; }
.st-list .st-qty { min-width: 38px; font-weight: 700; color: var(--st-text); font-variant-numeric: tabular-nums; }

.st-note {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 11px 14px; border-radius: var(--st-radius-sm); margin-top: 10px;
	background: var(--st-info-soft); border: 1px solid #c3e0f7; color: #1d5a91; font-size: 13.5px;
}
.st-note i { font-size: 22px; color: var(--st-info); flex: none; }
.st-note--danger { background: var(--st-danger-soft); border-color: #f3b9bf; color: #9d1c28; }
.st-note--danger i { color: var(--st-danger); }
.st-note--vip { background: #fff6dc; border-color: #e8c869; color: #6d5200; }
.st-note--vip i { color: #b58900; }

.st-h6 { font-size: 11.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--st-muted); margin: 18px 0 6px; }

/* ───────────── STOP ───────────── */

.st-stop {
	position: fixed; left: 0; right: 0; bottom: 0; top: 108px; z-index: 900;
	display: flex; align-items: center; justify-content: center; padding: 20px;
	background:
		repeating-linear-gradient(-45deg, rgba(229, 48, 63, .10) 0 18px, rgba(229, 48, 63, .03) 18px 36px),
		rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	animation: stStopFade .25s ease-out;
}
.st-stop__panel {
	display: flex; align-items: center; gap: 44px; max-width: 1100px; width: 100%;
	background: #fff; border-radius: 16px; padding: 36px 44px;
	border: 6px solid var(--st-danger);
	box-shadow: 0 24px 60px rgba(160, 20, 30, .25);
	animation: stStopIn .35s cubic-bezier(.2, 1.3, .4, 1);
}
.st-stop__sign { width: 230px; height: 230px; flex: none; filter: drop-shadow(0 8px 14px rgba(160, 20, 30, .3)); }
.st-stop__who { display: flex; align-items: center; gap: 10px; color: var(--st-muted); font-size: 16px; margin-bottom: 8px; }
.st-stop__who .st-stand { height: 30px; font-size: 15px; min-width: 52px; }
.st-stop__who b { color: var(--st-text); font-weight: 600; }
.st-stop__title { font-size: 40px; line-height: 1.1; font-weight: 700; color: var(--st-danger); margin: 0 0 18px; letter-spacing: -.5px; }
.st-stop__reason { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; color: var(--st-muted); }
.st-stop__reason-text { font-size: 24px; color: var(--st-text); font-weight: 600; margin: 4px 0 22px; line-height: 1.3; }
.st-stop__reason-text.is-empty { color: var(--st-faint); font-weight: 400; font-style: italic; }
.st-stop__action {
	display: inline-flex; align-items: center; gap: 12px;
	background: #fff4dc; color: #7a5100; border-radius: 10px; padding: 12px 18px; font-size: 20px; font-weight: 600;
}
.st-stop__action i { font-size: 30px; color: var(--st-warn); }

@keyframes stStopFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stStopIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .st-stop, .st-stop__panel { animation: none; } }
@media (max-height: 700px) {
	.st-stop__panel { padding: 26px 34px; gap: 34px; }
	.st-stop__sign { width: 180px; height: 180px; }
	.st-stop__title { font-size: 34px; }
}

/* ───────────── Hlášky (flash) ───────────── */

.st-toasts { position: fixed; top: 118px; right: 20px; z-index: 1100; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.st-toast {
	display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 12px 12px; border-radius: var(--st-radius);
	background: #fff; box-shadow: 0 10px 30px rgba(38, 40, 56, .18); border-left: 4px solid var(--st-success);
	font-size: 13.5px; color: var(--st-text); animation: stToastIn .3s ease-out;
}
.st-toast i { font-size: 21px; color: var(--st-success); flex: none; }
.st-toast--danger { border-left-color: var(--st-danger); }
.st-toast--danger i { color: var(--st-danger); }
.st-toast--info { border-left-color: var(--st-info); }
.st-toast--info i { color: var(--st-info); }
.st-toast.is-hiding { opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .3s; }
@keyframes stToastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ───────────── Podpis u počítače (dialog) ───────────── */

.st-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding-top: 90px; background: rgba(28, 30, 44, .45); }
.st-modal.is-open { display: flex; animation: stStopFade .15s ease-out; }
.st-modal__box { width: 460px; max-width: calc(100% - 32px); background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); overflow: hidden; }
.st-modal__head { padding: 18px 22px 4px; }
.st-modal__head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.st-modal__head p { margin: 6px 0 0; color: var(--st-muted); font-size: 13px; }
.st-modal__body { padding: 14px 22px; }
.st-modal__foot { display: flex; align-items: center; gap: 8px; padding: 12px 22px 18px; }
.st-modal__foot .st-btn:first-child { margin-right: auto; }
.st-people { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.st-people button {
	display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 4px; border-radius: 17px;
	border: 1px solid var(--st-border-strong); background: #fff; color: var(--st-text); font: 500 13px/1 Poppins, sans-serif; cursor: pointer;
}
.st-people button:hover { border-color: var(--st-primary); background: var(--st-primary-soft); }
.st-people button.is-current { border-color: var(--st-success); background: var(--st-success-soft); }
.st-people .st-operator__avatar { width: 26px; height: 26px; font-size: 11px; }

/* ───────────── Párty ───────────── */

.st-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--st-border-strong); border-radius: 10px; overflow: hidden; background: #fff; }
.st-stepper button {
	width: 58px; border: 0; background: #f5f6fa; color: var(--st-text); font-size: 26px; cursor: pointer;
	display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.st-stepper button:hover { background: #e9ebf3; }
.st-stepper input {
	width: 96px; height: 60px; border: 0 !important; border-left: 1px solid var(--st-border) !important; border-right: 1px solid var(--st-border) !important;
	text-align: center; font: 700 30px/1 Poppins, sans-serif; color: var(--st-text); -moz-appearance: textfield; box-shadow: none !important;
}
.st-stepper input:focus { outline: none; background: #fafbff; }
.st-stepper input::-webkit-outer-spin-button, .st-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.st-release { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.st-release .st-btn--lg { height: 62px; font-size: 18px; padding: 0 30px; border-radius: 10px; }

/* ───────────── Přihlášení ─────────────
 * Jedna podoba pro všechny přihlašovací stránky: admin, staff, B2B portál
 * (/partner/signIn/, password, reset) a vystavovatel (/, /signup/, /password/,
 * reset). Vlevo bílý panel s formulářem, vpravo fotka (`st-login__photo`
 * s background-image v šabloně) nebo mandala (`st-login__art`). */

.st-login { display: flex; min-height: 100vh; }
.st-login__side {
	flex: 0 0 440px; display: flex; flex-direction: column; justify-content: center;
	padding: 40px 56px; background: #fff; box-shadow: 4px 0 30px rgba(38, 40, 56, .08); z-index: 1;
}
.st-login__logo { width: 150px; height: auto; margin-bottom: 34px; display: block; }
.st-login__title { font-size: 26px; font-weight: 600; margin: 0 0 6px; color: var(--st-text); }
.st-login__sub { color: var(--st-muted); margin: 0 0 28px; }
.st-login .st-field { margin-bottom: 14px; }
.st-login .st-input { height: 50px; font-size: 16px; padding: 0 16px; background: #fafbfd; }
.st-login .st-input:focus { background: #fff; }
.st-login .st-btn { width: 100%; height: 52px; font-size: 16px; font-weight: 600; margin-top: 8px; }
.st-login .st-btn--ghost { font-weight: 500; }
.st-login__photo { flex: 1; background: #262838 center / cover no-repeat; position: relative; }
.st-login__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38, 40, 56, .25), rgba(38, 40, 56, 0) 40%); }
.st-login__alert { padding: 11px 14px; border-radius: var(--st-radius-sm); margin-bottom: 16px; font-size: 13.5px; background: var(--st-danger-soft); color: #9d1c28; border: 1px solid #f3b9bf; }
.st-login__alert.is-ok { background: var(--st-success-soft); color: #0f6e56; border-color: #b7e6d6; }
.st-login__alert.is-warn { background: var(--st-warn-soft); color: #7a5300; border-color: #f6d589; }
.st-login__alert ul { margin: 0; padding-left: 18px; }
.st-login__foot { margin-top: 40px; color: var(--st-faint); font-size: 12px; }

/* Odkazy pod tlačítkem (zapomenuté heslo, registrace, zpět). */
.st-login__links { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--st-muted); line-height: 1.7; }
.st-login__links a { font-weight: 500; text-decoration: none; }
.st-login__links a:hover { text-decoration: underline; }
.st-login__note { margin-top: 18px; font-size: 12.5px; color: var(--st-muted); line-height: 1.55; }

/* „— nebo —“ mezi heslem a koncovkou vstupenky v B2B portálu */
.st-login__or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--st-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.st-login__or::before, .st-login__or::after { content: ""; flex: 1; height: 1px; background: var(--st-border); }
.st-login__hint { font-size: 12px; color: var(--st-muted); margin-top: 5px; }
.st-login__help { border: 0; background: none; padding: 0; color: var(--st-primary); font: inherit; cursor: pointer; }
.st-login__help:hover { text-decoration: underline; }
.st-login__helpimg { display: none; margin-top: 10px; max-width: 100%; border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); }
.st-login__helpimg.is-open { display: block; }

.st-login__check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 6px; font-size: 13.5px; color: var(--st-text); cursor: pointer; line-height: 1.45; }
.st-login__check input { width: 17px; height: 17px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--st-primary); }

/* Přepínač jazyka vpravo nahoře */
.st-login__lang { position: fixed; top: 18px; right: 20px; z-index: 5; display: flex; gap: 2px; padding: 3px; border-radius: 18px; background: rgba(255, 255, 255, .88); box-shadow: 0 1px 6px rgba(38, 40, 56, .12); }
.st-login__lang a { display: block; padding: 4px 11px; border-radius: 14px; font-size: 12px; font-weight: 600; color: var(--st-muted) !important; text-decoration: none !important; letter-spacing: .04em; }
.st-login__lang a:hover { color: var(--st-text) !important; }
.st-login__lang a.is-current { background: var(--st-primary); color: #fff !important; }

/* Panely na jedné stránce (přihlášení / registrace / zapomenuté heslo) */
.st-login__panel { display: none; }
.st-login__panels.is-signin .st-login__panel--signin,
.st-login__panels.is-signup .st-login__panel--signup,
.st-login__panels.is-forgot .st-login__panel--forgot { display: block; animation: stLoginIn .25s ease-out; }
@keyframes stLoginIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Mandala vystavovatelů: pomalu se otáčí (4 min na otáčku) a lehce „dýchá“.
 * mandala-alpha.png = mandala.png s bílou převedenou na průhlednost, aby šla
 * na tónovaný panel. Střed spirály je v obrázku o kousek výš než střed
 * plátna, odtud 49.3 %. */
.st-login__art {
	flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
	background: radial-gradient(circle at 50% 50%, #fffdf6 0%, #f7f4ea 55%, #efeadb 100%);
}
.st-login__mandala { width: min(78%, 80vh); aspect-ratio: 1; animation: stMandalaIn 1.6s cubic-bezier(.2, .7, .2, 1) both, stMandalaBreathe 14s ease-in-out 1.6s infinite; }
.st-login__mandala img { display: block; width: 100%; height: 100%; object-fit: contain; will-change: transform; transform-origin: 50% 49.3%; animation: stMandalaSpin 240s linear infinite; }
@keyframes stMandalaIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes stMandalaBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes stMandalaSpin { to { transform: rotate(360deg); } }
/* Obchodní podmínky v okně (registrace vystavovatele) */
.st-modal--terms { padding: 40px 16px; align-items: center; }
.st-modal--terms .st-modal__box { width: 820px; max-height: calc(100vh - 80px); display: flex; flex-direction: column; }
.st-modal--terms .st-modal__body { overflow-y: auto; font-size: 13.5px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
	.st-login__mandala, .st-login__mandala img, .st-login__panel { animation: none !important; }
}

/* Nízké okno (X220 ~680 px po odečtení lišty): B2B přihlášení se třemi poli
 * a registrace by jinak přetekly o 50–90 px a stránka by se drobně scrollovala. */
@media (max-height: 820px) {
	.st-login__side { padding-top: 24px; padding-bottom: 24px; }
	.st-login__logo { width: 120px; margin-bottom: 20px; }
	.st-login__sub { margin-bottom: 18px; }
	.st-login .st-field { margin-bottom: 10px; }
	.st-login .st-input { height: 44px; }
	.st-login .st-btn { height: 46px; }
	.st-login__or { margin: 10px 0 8px; }
	.st-login__links { margin-top: 12px; }
	.st-login__foot { margin-top: 20px; }
}

@media (max-width: 900px) {
	.st-login__photo, .st-login__art { display: none; }
	.st-login__side { flex: 1; padding: 64px 24px 32px; justify-content: flex-start; }
}

/* Úprava starších stránek (hledání, statistiky) na novou hlavičku. */
.st-body .m-portlet { border-radius: var(--st-radius); }
.st-body .m-body, .st-body .m-wrapper { padding: 0 !important; margin: 0 !important; }

/* Sklad nábytku na doobjednávky (Checkin:stock) */
.st-stock__item { font-weight: 500; }
.st-stock__num { text-align: right; white-space: nowrap; }
.st-stock__stockhead { width: 620px; }
.st-stock__view { display: flex; align-items: center; gap: 10px; }
.st-stock__count { font-size: 22px; font-weight: 700; min-width: 48px; text-align: right; }
.st-stock tr.is-empty .st-stock__count { color: var(--st-danger); }
.st-stock__lock { margin-left: auto; }
.st-stock__edit { display: none; align-items: center; gap: 8px; margin: 0; }
.st-stock__edit > i { font-size: 20px; color: var(--st-warn); }
.st-stock tr.is-open .st-stock__view { display: none; }
.st-stock tr.is-open .st-stock__edit { display: flex; }
.st-stock tr.is-open { background: var(--st-warn-soft); }
.st-stock__input { width: 90px; font-weight: 700; }
.st-stock__note { flex: 1; min-width: 150px; }

/* X220 (1366 px): s položkou Sklad by se odhlášení nevešlo na lištu. */
@media (max-width: 1400px) {
	.st-account { display: none; }
	.st-nav a { padding: 0 10px; }
}

@media print {
	.st-header, .st-toasts, .st-footer, .noprint { display: none !important; }
	body.st-body { background: #fff; }
}

/* Vpuštění otevřené firmy se změnilo a pracovník má rozdělanou práci (hlídání v @layout.latte). */
.st-letin-bar {
	position: fixed; left: 0; right: 0; top: 0; z-index: 1100;
	display: flex; align-items: center; justify-content: center; gap: 14px;
	padding: 14px 20px; background: var(--st-danger); color: #fff; font-size: 18px;
}
.st-letin-bar[hidden] { display: none; }
.st-letin-bar.is-ok { background: var(--st-success); }
.st-letin-bar i { font-size: 26px; }

/* ─── Obchůzka párty (Party:round): seznam vlevo, plánek se drží na očích ─── */
.st-round__entry { margin-bottom: 12px; }
.st-round__intro { display: flex; flex-direction: column; gap: 10px; }
.st-round__jump { display: flex; flex-wrap: wrap; gap: 8px; }
.st-round__jump small { margin-left: 6px; color: var(--st-muted); font-weight: 400; }
.st-round__hall { display: grid; grid-template-columns: minmax(420px, 5fr) minmax(0, 8fr); gap: 14px; align-items: start; scroll-margin-top: 12px; }
.st-round__hall--plain { max-width: 620px; scroll-margin-top: 12px; }
.st-round__plan { position: sticky; top: 12px; padding: 8px; }
.st-round__plan svg { display: block; width: 100%; height: auto; }
.st-round__table tbody tr { scroll-margin-top: 12px; }
.st-round__table tr:target td { background: var(--st-warn-soft); }
.st-round__no { font-size: 17px; font-weight: 700; color: var(--st-violet); text-align: right; }
.st-round__stand { font-weight: 600; white-space: nowrap; }
.st-round__firm { font-size: 15px; font-weight: 600; color: var(--st-text); }
.st-round__names { margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--st-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.st-round__left b { font-size: 17px; color: var(--st-text); }
.st-round__left small { color: var(--st-muted); white-space: nowrap; }

.st-round__plan text { text-anchor: middle; dominant-baseline: central; font-family: inherit; }
.st-round__floor { fill: #f5f6fa; stroke: var(--st-border-strong); stroke-width: .12; }
.st-round__zone { fill: #fbf6e3; stroke: #eadfb4; stroke-width: .08; }
.st-round__object { fill: #eceef4; stroke: var(--st-border-strong); stroke-width: .08; }
.st-round__objlabel { fill: var(--st-muted); }
.st-round__booth polygon, .st-round__booth rect { fill: #fff; stroke: var(--st-border-strong); stroke-width: .1; }
.st-round__booth text { fill: var(--st-faint); }
.st-round__stop polygon, .st-round__stop rect { fill: var(--st-violet); stroke: #fff; stroke-width: .15; }
.st-round__stop text { fill: #fff; font-weight: 700; }
.st-round__stop:hover polygon, .st-round__stop:hover rect { fill: var(--st-dark); }
.st-round__door { fill: var(--st-dark); }
.st-round__doorlabel { fill: var(--st-dark); font-weight: 600; }

@media (max-width: 900px) {
	.st-round__hall { grid-template-columns: minmax(0, 1fr); }
	.st-round__plan { position: static; order: -1; }
}
