/*
 * ZoomLetter - doplnky k sablone assets/theme/css/app.css (AppStack / Bootstrap 5, stejna jako v CMS8).
 * Sem patri jen veci specificke pro ZL; vzhled komponent ma na starost app.css.
 */

/* --- menu vlevo: logo a popisek ----------------------------------------- */
.sidebar-brand {
	padding: 1.25rem 1.5rem 1rem;
}
.sidebar-brand__logo {
	display: block;
	width: 100%;
	max-width: 180px;
	height: auto;
	margin: 0 auto;
}
.sidebar-nav .sidebar-link i {
	min-width: 18px;
}

/* --- hlavicka stranky: nadpis + tlacitko akce ---------------------------- */
.page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: 1.5rem;
}
.page-head__actions:empty {
	display: none;
}

/* --- bootstrapove upravy shodne s CMS8 ----------------------------------- */
.modal-header {
	background-color: #293042 !important;
	border-radius: 0 !important;
}
.modal-header *:not(input) {
	color: #fff !important;
}
.modal-content,
.modal-footer {
	border-radius: 0 !important;
}
.btn-close {
	filter: brightness(0) contrast(1) invert(1) !important;
	opacity: 1 !important;
}

/* --- vypis uctu ---------------------------------------------------------- */
.account-card .card-header .form-select {
	width: auto;
	max-width: 22rem;
}
.account-config {
	min-width: 16rem;
}

/* --- uvodni strana: aktuality -------------------------------------------- */
.news-card__image {
	width: 36px;
	height: 36px;
	object-fit: cover;
}
.news-card__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}
.news-card.expanded .news-card__text {
	-webkit-line-clamp: unset;
}
.account-config-group .dropdown-toggle::before,
.account-config-group .dropdown-toggle::after {
	display: none;
}

/* --- formulare z Form::field (common/form + views/common/*.tpl) ----------
 * Markup generuje jadro (.field-block > label + input/select/textarea), proto ho tu stylujeme
 * stejne jako .form-control / .form-select / .form-check-input z Bootstrapu.
 */
.content .field-block {
	position: relative;
	margin-bottom: 1rem;
}
.content .field-block > label,
.content .field-block .field-block__label {
	display: block;
	margin-bottom: .5rem;
}
/* pole bez trid Bootstrapu (.form-control / .form-select) - stejny vzhled jako AppStack .form-control;
   pole s temito tridami se ridi primo AppStack CSS */
.content .field-block input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not(.form-control):not(.form-select),
.content .field-block select:not(.form-select),
.content .field-block textarea:not(.form-control) {
	display: block;
	width: 100%;
	padding: .25rem .7rem;
	font-size: .825rem;
	line-height: 1.625;
	color: var(--bs-body-color);
	background-color: var(--bs-secondary-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius);
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.content .field-block input:not(.form-control):focus,
.content .field-block select:not(.form-select):focus,
.content .field-block textarea:not(.form-control):focus {
	border-color: #9fc0f5;
	outline: 0;
	box-shadow: 0 0 0 .25rem rgba(63, 128, 234, .25);
}
.content .field-block input[type="checkbox"],
.content .field-block input[type="radio"] {
	width: 1.1em;
	height: 1.1em;
	margin-right: .4rem;
	vertical-align: middle;
}
.requiredItemsInfo {
	/* jadro (Validate.php) pridava inline top:75px */
	position: static !important;
	top: auto !important;
	margin-top: .25rem;
	font-size: .85rem;
	color: var(--bs-danger);
}
.denied {
	margin-bottom: 1rem;
	padding: .75rem 1rem;
	color: #842029;
	background-color: #f8d7da;
	border: 1px solid #f5c2c7;
	border-radius: var(--bs-border-radius);
}

/* --- menu hotelu: info o aktualnim uctu pod logem + odkaz do vypisu dole ---- */
.sidebar-hotel {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 0 1rem 1rem;
	padding: .75rem;
	background: rgba(255, 255, 255, .06);
	border-radius: .4rem;
}
.sidebar-hotel__icon {
	display: flex;
	flex: 0 0 2.25rem;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	color: #fff;
	background: var(--bs-primary);
	border-radius: .3rem;
}
.sidebar-hotel__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}
.sidebar-hotel__name {
	overflow: hidden;
	font-size: .8rem;
	font-weight: 500;
	color: #fff;
	text-overflow: ellipsis;
	text-transform: uppercase;
}
.sidebar-hotel__id {
	font-size: .7rem;
	color: var(--bs-primary-text-emphasis, #8cb3f2);
	color: #8cb3f2;
}
.sidebar-content .simplebar-content {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}
.sidebar-footer {
	margin-top: auto;
	padding: 1rem 1.625rem;
	font-size: .9rem;
	font-weight: 500;
	color: #e2e8ee;
	text-decoration: none;
}
.sidebar-footer:hover { color: #fff; }
.sidebar-subheader {
	padding: .5rem 1.625rem .25rem 2.5rem;
	font-size: .7rem;
	text-transform: uppercase;
	color: rgba(226, 232, 238, .4);
}

/* prihlaseni (views/login.php, struktura podle AppStack auth-sign-in-cover):
   levy panel bez fotky - jen gradient, text dole */
.auth-cover {
	background:
		radial-gradient(circle at 30% 20%, rgba(63, 128, 234, .18), transparent 55%),
		radial-gradient(circle at 75% 80%, rgba(63, 128, 234, .12), transparent 50%),
		var(--bs-body-bg);
}
.auth-cover .auth-quote blockquote { font-size: 1rem; font-weight: 400; line-height: 1.7; }
.auth-cover .auth-quote strong { font-weight: 600; }
.btn-zim { color: var(--bs-body-color); }
.btn-zim:hover, .btn-zim:focus, .btn-zim:active {
	background-color: rgba(255, 255, 255, .06);
	border-color: var(--bs-primary);
}

/* prihlaseni: obsah vlevo i vpravo vycentrovany, formular vetsi (jako puvodni vzhled) */
.auth-cover .auth-quote {
	position: static;
	max-width: 30rem;
	text-shadow: none;
}
.auth-main .auth-form {
	max-width: 30rem;
}
.auth-logo {
	height: 60px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}
.auth-footer {
	position: absolute;
	right: 0;
	bottom: 1.25rem;
	left: 0;
	font-size: .8rem;
}
