/*
 * Vzhľad webu podľa pôvodného www.letna.sk (Bootstrap 3 + letna.css), na ktorý sú vlastníci zvyknutí:
 * svetlosivé pozadie, biele panely s jemným tieňom, oranžové nadpisy, pripnuté horné menu.
 */

/*
 * Písmo: Calibri ako na starom webe. Kde nie je (iPad, Mac, Android), Carlito – voľné písmo s rovnakými
 * rozmermi. Bez neho prehliadač siahol po náhradnom písme so zle vykreslenými č, ť.
 */
@font-face {
	font-family: Carlito;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(vendor/carlito-5.3.0/carlito-latin-400-normal.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: Carlito;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(vendor/carlito-5.3.0/carlito-latin-ext-400-normal.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Carlito;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(vendor/carlito-5.3.0/carlito-latin-700-normal.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: Carlito;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(vendor/carlito-5.3.0/carlito-latin-ext-700-normal.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--orange: #f79231;
	--text: #3f3434;
	--text-menu: #525252;
	--text-title: #505050;
	--muted: #777;
	--border: #dedede;
	--bg: #f9f9f9;
	--panel-shadow: 0 0 40px 0 rgba(0, 0, 0, .05);
	--danger: #c9302c;

	/* staré názvy používané v administrácii */
	--color-text: #222;
	--color-muted: #666;
	--color-accent: #1f5f8b;
	--color-border: #ddd;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-width: 290px;
	font: 14px/1.42857 Calibri, Carlito, "Segoe UI", Arial, sans-serif;
	color: #333;
	background: var(--bg);
}

a {
	color: #337ab7;
	text-decoration: none;
}

a:hover,
a:focus {
	color: #23527c;
	text-decoration: underline;
}

h1, h2, h3, h4 {
	font-family: inherit;
	font-weight: 500;
	line-height: 1.1;
	margin: 20px 0 10px;
}

p {
	margin: 0 0 10px;
}

b,
strong {
	font-weight: bold;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }

img {
	max-width: 100%;
	height: auto;
}

.container {
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;
}

@media (min-width: 768px) { .container { width: 750px; } }
@media (min-width: 992px) { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }


/* ---------- horné menu ---------- */

.main-menu-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	background: #fff;
	box-shadow: var(--panel-shadow);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
}

.nav-list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list > li {
	padding: 8px 0;
}

.nav-list > li > a {
	display: block;
	padding: 12px 20px;
	font-size: 20px;
	font-weight: 300;
	line-height: 20px;
	color: var(--text-menu);
	border-right: 1px solid #f1f1f1;
	text-decoration: none;
}

.nav-list > li:first-child > a {
	padding-left: 0;
}

.nav-list > li:last-child > a {
	border-width: 0;
}

.nav-list > li > a .fa {
	margin-right: 4px;
	color: var(--orange);
}

.nav-list > li.active > a,
.nav-list > li > a:hover {
	color: var(--orange);
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-family: inherit;
	font-size: 22px;
	font-weight: bold;
	line-height: 1;
	color: var(--text-menu);
	background: none;
	border: 0;
	cursor: pointer;
}

.nav-toggle-bars {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
}

.nav-toggle-bars span {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: #888;
}

.user-menu {
	position: relative;
}

.user-button {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 300;
	line-height: 40px;
	color: var(--text-menu);
	background: none;
	border: 0;
	cursor: pointer;
}

.user-button .fa {
	font-size: 35px;
	color: #6fa8e8;
}

.dropdown-menu {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	min-width: 220px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #f1f1f1;
	box-shadow: var(--panel-shadow);
}

.dropdown-menu.open {
	display: block;
}

.dropdown-menu > li:not(:last-child) {
	border-bottom: 1px solid #dcdcdc;
}

.dropdown-menu > li > a {
	display: block;
	padding: 10px 15px;
	font-size: 16px;
	font-weight: 300;
	color: var(--text-menu);
	text-decoration: none;
}

.dropdown-menu > li > a:hover {
	color: #fff;
	background: var(--orange);
}

@media (max-width: 1199px) {
	.nav-toggle {
		display: inline-flex;
	}

	.nav-list {
		display: none;
		position: fixed;
		top: 60px;
		left: 0;
		right: 0;
		bottom: 0;
		flex-direction: column;
		overflow-y: auto;
		background: var(--bg);
		border-top: 1px solid #ddd;
	}

	.nav-list.open {
		display: flex;
	}

	.nav-list > li {
		padding: 0;
	}

	.nav-list > li > a,
	.nav-list > li:first-child > a {
		padding: 12px 35px;
		border-right: 0;
		border-bottom: 1px solid #ddd;
	}
}

@media (max-width: 450px) {
	.user-name {
		display: none;
	}
}


/* ---------- obsah ---------- */

.index-content {
	margin-top: 90px;
	margin-bottom: 100px;
}

/* biely panel (v starom webe .homepage-content > .module) */
.module {
	margin-bottom: 30px;
	background: #fff;
	box-shadow: var(--panel-shadow);
}

.module-padded {
	padding: 30px;
}

.section-title {
	margin: 5px 0 30px;
	font-size: 23px;
	font-weight: bold;
	line-height: 34px;
	text-transform: uppercase;
	color: var(--text-title);
}

/* text článku, stránky a zoznamov (v starom webe .widget) */
.widget {
	font-size: 19px;
	font-weight: 300;
	line-height: 28px;
	color: var(--text);
	text-align: justify;
}

.widget h2 {
	font-size: 30px;
	font-weight: 500;
	color: #333;
}

.widget ul,
.widget ol {
	margin: 0 0 10px;
}

.widget table {
	border-collapse: collapse;
}

.widget td,
.widget th {
	padding: 4px 8px;
	border: 1px solid var(--border);
}

.alert {
	margin-bottom: 20px;
	padding: 12px 15px 8px;
	font-size: 17px;
	border: 1px solid transparent;
}

.alert-info {
	color: #31708f;
	background: #d9edf7;
	border-color: #bce8f1;
}

.alert-danger {
	color: #a94442;
	background: #f2dede;
	border-color: #ebccd1;
}

.muted {
	color: var(--muted);
}

.small {
	font-size: .875em;
}

.nowrap {
	white-space: nowrap;
}

@media (max-width: 767px) {
	.section-title {
		text-align: center;
	}

	.module-padded {
		padding: 15px;
	}

	.widget {
		font-size: 15px;
		line-height: 22px;
	}
}


/* ---------- baner ---------- */

.banner {
	position: relative;
	overflow: hidden;
}

.banner img {
	display: block;
	width: 100%;
	height: auto;
}

.banner-title {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	padding: 0 15%;
	font-size: 50px;
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

@media (max-width: 767px) {
	.banner-title {
		top: auto;
		bottom: 5px;
		transform: none;
		padding: 15px;
		font-size: 20px;
		background: rgba(0, 0, 0, .7);
		text-shadow: none;
	}
}


/* ---------- novinky ---------- */

.article-row {
	display: flex;
}

.listing-image {
	flex: 0 0 33.333%;
	padding: 35px 0 35px 35px;
}

.listing-image img {
	display: block;
	width: 100%;
}

.listing-image-empty {
	display: block;
	aspect-ratio: 16 / 11;
	background: #f1f1f1;
}

.listing-body {
	flex: 1;
	padding: 15px 35px;
}

.article-heading {
	font-size: 32px;
	font-weight: bold;
	line-height: 34px;
}

.article-heading a {
	color: var(--orange);
}

.perex {
	padding-top: 10px;
	font-size: 19px;
	font-weight: 300;
	line-height: 28px;
	color: var(--text);
	text-align: justify;
}

.article-date {
	font-size: 15px;
	color: var(--muted);
}

.article-module {
	padding: 20px 35px;
}

.article-module .section-title {
	font-size: 32px;
	text-transform: none;
	color: var(--orange);
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	font-size: 18px;
}

@media (min-width: 768px) and (max-width: 991px) {
	.listing-image { flex-basis: 30%; }
	.article-heading { font-size: 26px; line-height: 32px; }
	.perex { font-size: 16px; line-height: 22px; }
	.article-module .section-title { font-size: 26px; line-height: 32px; }
}

@media (max-width: 767px) {
	.article-row { flex-direction: column; }
	.listing-image { padding: 10px 15px 0; text-align: center; }
	.listing-image a { display: inline-block; max-width: 320px; }
	.listing-body { padding: 0 15px 15px; }
	.article-module { padding: 15px; }
}


/* ---------- kontakty ---------- */

.contact-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.contact-columns > .module {
	margin-bottom: 30px;
}

.map iframe {
	display: block;
	width: 100%;
	height: 385px;
	border: 0;
}

.contact-list {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 0 30px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}

.contact-list > * {
	padding: 0 15px;
}

.contact-list:first-child {
	padding-top: 0;
}

.contact-list:last-child {
	border-bottom: 0;
}

.contact-list a {
	color: #000;
}

@media (max-width: 767px) {
	.contact-columns { grid-template-columns: 1fr; }
	.contact-columns .map { display: none; }
	.contact-list { grid-template-columns: 1fr; }
}


/* ---------- dokumenty (v starom webe .category-list) ---------- */

.category-list .category-header,
.module .category-header {
	margin: 0 0 5px;
	font-size: 32px;
	font-weight: bold;
	line-height: 34px;
	color: var(--orange);
}

.category-list + .category-list {
	margin-top: 50px;
}

.category-items {
	padding: 15px 0 0;
}

.category-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 10px 15px;
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	color: #000;
	text-align: left;
	border-bottom: 1px solid #e6e6e6;
}

.category-item .actions {
	display: flex;
	gap: 20px;
}

.category-item .actions a {
	font-size: 14px;
	white-space: nowrap;
	color: var(--orange);
}

.category-item .actions .fa {
	margin-right: 3px;
	font-size: 20px;
	vertical-align: -2px;
}

@media (max-width: 767px) {
	.category-items { padding: 0; }
	.category-item { flex-direction: column; align-items: flex-start; }
}


/* ---------- odpisy (v starom webe komponent Depreciation) ---------- */

.widget .flat-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.flat-tabs li {
	flex: 1 1 0;
	min-width: 160px;
}

.flat-tabs a {
	display: block;
	padding: 10px 15px;
	text-align: center;
	color: var(--orange);
	border-radius: 4px;
}

.flat-tabs a:hover {
	background: #eee;
}

.flat-tabs a.active {
	color: #fff;
	background: var(--orange);
}

.flat-name {
	margin: 0 0 30px;
	font-weight: 600;
}

.reading-list + .reading-list {
	margin-top: 50px;
}

.category-header-description {
	font-size: 16px;
	line-height: 24px;
	text-align: left;
	color: var(--muted);
}

.category-header-description p {
	margin: 0 0 5px;
}

.category-header-description a {
	color: var(--orange);
}

.widget .reading-table {
	width: 100%;
	margin-top: 15px;
	font-size: 18px;
	font-weight: 400;
	color: #000;
	text-align: left;
}

.widget .reading-table th,
.widget .reading-table td {
	padding: 10px 15px;
	border: 0;
	border-bottom: 1px solid #e6e6e6;
}

.widget .reading-table th {
	font-weight: 600;
}

.reading-table th:first-child { width: 25%; }
.reading-table th.read-on { width: 25%; }

.reading-table small {
	margin-left: 4px;
	font-size: 15px;
}

.year-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 20px;
}

.year-tabs button {
	padding: 4px 12px;
	font: inherit;
	font-size: 16px;
	color: var(--orange);
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
}

.year-tabs button:hover {
	background: #eee;
}

.year-tabs button[aria-pressed="true"] {
	color: #fff;
	background: var(--orange);
	border-color: var(--orange);
}

@media (max-width: 767px) {
	.flat-tabs { flex-direction: column; }
	.widget .reading-table { font-size: 15px; }
	.widget .reading-table th,
	.widget .reading-table td { padding: 8px 5px; }
	.reading-table .read-on { display: none; }
	.reading-table small { display: block; margin: 0; }
}


/* ---------- formuláre (FormFactory) ---------- */

.form-row {
	margin-bottom: 15px;
}

.form-label label {
	font-weight: 600;
}

.form-control input:not([type=checkbox], [type=radio], [type=submit]),
.form-control select,
.form-control textarea,
.contact-form input,
.contact-form textarea {
	display: block;
	width: 100%;
	max-width: 480px;
	padding: 10px 15px;
	font: inherit;
	font-size: 16px;
	color: #333;
	background: #fff;
	border: 1px solid var(--border);
}

.contact-form input,
.contact-form textarea {
	max-width: none;
	margin-bottom: 15px;
	font-size: 17px;
}

.contact-form textarea {
	min-height: 78px;
}

/* pole, v ktorom je kurzor, musí byť zreteľne vidieť – aj pri prechode klávesom TAB */
.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
	border-color: var(--orange);
	outline: 2px solid var(--orange);
	outline-offset: -1px;
}

input[type=submit]:focus-visible,
button:focus-visible,
.button:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 2px;
}

.has-error .form-control input:not([type=checkbox], [type=radio], [type=submit]),
.has-error .form-control select,
.has-error .form-control textarea {
	border-color: var(--danger);
}

.form-error {
	max-width: 480px;
	margin-top: 4px;
	font-size: 15px;
	line-height: 20px;
}

/* pole s heslom a oko na jeho zobrazenie (site.js) */
.password-field {
	position: relative;
	display: block;
	max-width: 480px;
}

.form-control .password-field input {
	padding-right: 48px;
}

.password-toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 46px;
	height: 100%;
	padding: 0;
	font-size: 20px;
	color: var(--muted);
	background: none;
	border: 0;
	cursor: pointer;
}

.password-toggle:hover {
	color: var(--orange);
}

.button-success {
	background: #5cb85c !important;
}

.button-success:hover {
	background: #449d44 !important;
}

/* zaškrtávacie a prepínacie zoznamy: položky vedľa seba, Nette za ne dáva <br> */
.form-control label {
	display: inline-block;
	margin: 0 16px 4px 0;
}

.form-control br {
	display: none;
}

/* výber viacerých položiek zaškrtávaním (FormFactory::addPickList, site.js) */
.form-control .pick-search {
	margin-bottom: 6px;
}

.pick-list {
	max-width: 480px;
	max-height: 300px;
	padding: 6px 10px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 4px;
}

.form-control .pick-list label {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	padding: 5px 0;
	cursor: pointer;
}

.form-control .pick-list label[hidden],
.pick-group[hidden] {
	display: none;
}

.pick-list input[type=checkbox] {
	flex: none;
	width: 18px;
	height: 18px;
}

/* byty: krátke „byt 2“ vedľa seba pod nadpisom vchodu */
.pick-list-grouped {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	column-gap: 4px;
}

.form-control .pick-list-grouped label {
	width: 88px;
}

.pick-group {
	flex-basis: 100%;
	margin-top: 8px;
	font-weight: 600;
}

.pick-group:first-child {
	margin-top: 0;
}

.pick-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	max-width: 480px;
	margin-top: 6px;
	font-size: 14px;
	color: var(--muted);
}

/* .pick-summary pred .pick-chip – inak by vyhral štýl tlačidiel adminu (.admin button) */
.pick-summary .pick-chip {
	padding: 2px 8px;
	font: inherit;
	font-size: 14px;
	color: #333;
	background: #f1f1f1;
	border: 1px solid var(--border);
	border-radius: 12px;
	cursor: pointer;
}

.pick-summary .pick-chip:hover {
	color: #333;
	background: #f1f1f1;
	border-color: var(--orange);
}

.pick-chip span {
	margin-left: 2px;
	color: var(--muted);
}

.form-help {
	display: block;
	max-width: 480px;
	margin-top: 4px;
	font-size: 14px;
	line-height: 20px;
	color: var(--muted);
}

.form-error,
.has-error .form-label label {
	color: var(--danger);
}

.hp-field {
	position: absolute;
	left: -9999px;
}

/* tlačidlo formulára nesmie byť nalepené na predchádzajúce pole či tabuľku */
input[type=submit] {
	margin-top: 12px;
}

input[type=submit],
button.button,
.button {
	display: inline-block;
	padding: 8px 15px;
	font: inherit;
	font-size: 18px;
	color: #fff;
	background: var(--text);
	border: 0;
	text-decoration: none;
	cursor: pointer;
}

input[type=submit]:hover,
.button:hover {
	color: #fff;
	background: #000;
	text-decoration: none;
}

.button-danger {
	background: var(--danger);
}

.button-secondary {
	background: #5b6b78;
}

.button-small {
	padding: 2px 8px;
	font-size: .875rem;
}


/* ---------- dokument – náhľad ---------- */

.viewer {
	max-width: 900px;
}

.viewer-page {
	display: block;
	max-width: 100%;
	height: auto !important;
	margin: 0 auto 16px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}


/* ================= administrácia ================= */

.admin {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	color: var(--color-text);
	background: #fff;
}

.admin a {
	color: var(--color-accent);
}

.admin .site-header {
	padding: 16px;
	border-bottom: 1px solid var(--color-border);
}

.admin .site-title {
	display: block;
	font-size: 1.5rem;
	font-weight: bold;
	text-decoration: none;
}

.admin .site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
}

.admin .site-nav .active {
	font-weight: bold;
}

.nav-spacer {
	flex: 1;
}

.nav-sep {
	width: 1px;
	background: var(--color-border);
}

.admin .site-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px;
}

.admin input[type=submit],
.admin button,
.admin .button,
.admin a.button {
	padding: 6px 14px;
	font-size: 15px;
	color: #fff;
	background: var(--color-accent);
	border-radius: 4px;
}

.admin input[type=submit]:hover,
.admin .button:hover,
.admin a.button:hover {
	color: #fff;
	background: #174a6d;
	text-decoration: none;
}

.admin .button-danger,
.admin a.button-danger,
.admin a.button-danger:hover { background: var(--danger); }
.admin .button-secondary,
.admin a.button-secondary,
.admin a.button-secondary:hover { background: #5b6b78; }
.admin .button-small { padding: 2px 8px; font-size: .875rem; }

.admin .form-control input:not([type=checkbox], [type=radio]),
.admin .form-control select,
.admin .form-control textarea {
	max-width: 420px;
	padding: 6px 8px;
	font-size: 15px;
	border-color: #bbb;
	border-radius: 4px;
}

.flash {
	margin-bottom: 16px;
	padding: 12px 16px;
	background: #eef5fb;
	border-radius: 4px;
}

.flash-error {
	background: #fdecea;
}

.flash p {
	margin: 0;
}

.table {
	width: 100%;
	border-collapse: collapse;
}

.table th,
.table td {
	padding: 6px 8px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--color-border);
}

.badge {
	display: inline-block;
	padding: 0 6px;
	font-size: .8rem;
	color: var(--color-text);
	background: #e8eef3;
	border-radius: 3px;
}

.badge-warning { background: #fff1c2; }
.badge-danger { color: var(--danger); background: #fdecea; }

.page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* byty vlastníka v administrácii: každý súčasný vzťah ako blok, ukončené pod ním */
.ownership {
	margin-bottom: 12px;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: 4px;
}

.ownership-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.ownership-flat {
	margin-right: 8px;
	font-weight: 600;
}

.ownership-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px 12px;
}

.ownership-fields label {
	display: block;
	font-size: .875rem;
	color: var(--muted);
}

.ownership-fields select,
.ownership-fields input {
	width: 100%;
	padding: 4px 6px;
	font: inherit;
	font-size: 15px;
	border: 1px solid #bbb;
	border-radius: 4px;
}

.ownership-note {
	grid-column: 1 / -1;
}

.ownership-ended {
	color: var(--muted);
}

.columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 32px;
}

.search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 0;
}

.search input {
	flex: 1;
	max-width: 420px;
	padding: 6px 8px;
	font: inherit;
}

.stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.stat {
	padding: 16px;
	color: var(--color-text) !important;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	text-decoration: none;
}

.stat {
	min-width: 180px;
}

.stat strong {
	display: block;
	font-size: 2rem;
}

.stat span {
	display: block;
}

.dashboard-columns {
	margin-top: 24px;
}

.entrances {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.drag-handle {
	width: 1em;
	color: var(--color-muted);
	cursor: grab;
	user-select: none;
}

tr.dragging { opacity: .4; }
tbody.saved { outline: 2px solid #3c9a5f; }

.upload {
	margin-bottom: 16px;
	padding: 16px;
	text-align: center;
	border: 2px dashed #bbb;
	border-radius: 6px;
}

.upload.over {
	background: #eef5fb;
	border-color: var(--color-accent);
}

.upload-progress {
	text-align: left;
}

.upload-progress .error,
a.danger {
	color: var(--danger) !important;
}

.link {
	color: var(--color-accent);
	text-decoration: underline;
	cursor: pointer;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

.gallery-item {
	margin: 0;
}

.gallery-item img {
	display: block;
	width: 100%;
	border-radius: 4px;
}

.gallery-item figcaption {
	display: flex;
	flex-direction: column;
}

.image-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
	max-height: 360px;
	overflow-y: auto;
	padding: 4px;
	border: 1px solid var(--color-border);
	border-radius: 4px;
}

.pick {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 4px;
	border: 2px solid transparent;
	border-radius: 4px;
	cursor: pointer;
}

.pick:has(input:checked) {
	background: #eef5fb;
	border-color: var(--color-accent);
}

.pick-none {
	justify-content: center;
	align-items: center;
	min-height: 100px;
	background: #f4f6f8;
}

.thumb-cell {
	width: 90px;
}

.thumb-cell img {
	display: block;
	border-radius: 3px;
}

.input-wide {
	max-width: 760px !important;
}

.crop-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 24px;
}

.crop-area img {
	display: block;
	max-width: 100%;
}

.crop-preview {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: #f1f1f1;
}

.crop-preview-row {
	margin-bottom: 16px;
	font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
	background: #fff;
	box-shadow: var(--panel-shadow);
	border: 1px solid #eee;
}

.crop-preview-row .listing-image {
	padding: 15px 0 15px 15px;
}

.crop-preview-row .listing-body {
	padding: 10px 15px;
}

.crop-preview-row .article-heading {
	margin: 0;
	font-size: 18px;
	line-height: 22px;
}

.crop-preview-row .perex {
	font-size: 13px;
	line-height: 18px;
}

@media (max-width: 700px) {
	.crop-layout { grid-template-columns: 1fr; }
}
