/* Vizuálne nadväzuje na podporatss.eu (css.css): Montserrat, modrý gradient #0079c1/#689edc,
   šedé pozadie, ostré rohy s box-shadow. Upravené pre formuláre a tabuľky namiesto veľkých dlaždíc. */

body {
	background: #e0e0e0;
	font-family: 'Montserrat', sans-serif;
	color: #3a3a3a;
	margin: 0;
}

a {
	text-decoration: none;
	color: #0079c1;
}
a:hover {
	color: #028cde;
}

#pagewrap {
	max-width: 1100px;
	margin: 20px auto;
	padding: 5px;
}

#header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 10px;
}
#header img#logo {
	width: 260px;
	height: auto;
}
#header .user-box {
	color: #585858;
	font-size: 15px;
	text-align: right;
}
#header .user-box a {
	font-weight: bold;
}

#layout {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

#sidebar-menu {
	flex: 0 0 170px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 4px;
}
.menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	color: #6b6b6b;
	font-size: 14px;
	font-weight: bold;
	border-left: 3px solid transparent;
}
.menu-icon {
	display: inline-flex;
	color: #9a9a9a;
}
.menu-item:hover {
	background: #ececec;
	color: #3a3a3a;
}
.menu-item:hover .menu-icon {
	color: #0079c1;
}
.menu-item.active {
	background: #eaf4fc;
	color: #0079c1;
	border-left: 3px solid #0079c1;
}
.menu-item.active .menu-icon {
	color: #0079c1;
}

#main-content {
	flex: 1 1 auto;
	min-width: 0;
}

.card {
	background-color: #0079c1;
	background: radial-gradient(#689edc, #0079c1);
	color: #fff;
	box-shadow: 2px 2px 2px #888888;
	padding: 40px;
	margin: 2px;
}

.panel {
	background: #fff;
	box-shadow: 2px 2px 2px #888888;
	padding: 30px;
	margin: 2px 2px 20px 2px;
}

.single-action {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60vh;
}
.search-launcher {
	width: 100%;
	max-width: 620px;
	background-color: #0079c1;
	background: linear-gradient(155deg, #7fb0e3 0%, #0079c1 55%, #005f9c 100%);
	box-shadow: 0 14px 34px rgba(0, 60, 100, 0.32);
	position: relative;
	overflow: hidden;
}
.search-launcher::before {
	content: "";
	position: absolute;
	top: -60%;
	right: -20%;
	width: 70%;
	height: 220%;
	background: rgba(255, 255, 255, 0.06);
	transform: rotate(18deg);
	pointer-events: none;
}
.search-toggle {
	display: flex;
	align-items: center;
	gap: 22px;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
	padding: 46px 40px;
	margin: 0;
	border: none;
	background: transparent;
	color: #fff;
	cursor: pointer;
	position: relative;
	z-index: 1;
}
.search-toggle-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: background .18s ease, transform .3s ease;
}
.search-launcher.open .search-toggle-icon {
	transform: rotate(-90deg);
}
.search-toggle:hover .search-toggle-icon {
	background: rgba(255, 255, 255, 0.22);
}
.search-toggle-text {
	flex: 1 1 auto;
}
.search-toggle-text .eyebrow {
	display: block;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 6px;
}
.search-toggle h2 {
	margin: 0 0 8px 0;
	text-shadow: none;
	font-size: 28px;
}
.search-toggle p {
	margin: 0;
	color: #eaf4fc;
	font-size: 14px;
}
.search-toggle-chevron {
	flex: 0 0 auto;
	display: flex;
	color: rgba(255, 255, 255, 0.75);
	transition: transform .3s ease;
}
.search-launcher.open .search-toggle-chevron {
	transform: rotate(180deg);
}
.search-expand {
	max-height: 0;
	overflow: hidden;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.search-expand-inner {
	margin: 0 40px;
	padding: 0 0 40px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.search-expand label {
	margin: 22px 0 8px 0;
	color: #eaf4fc;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.search-expand input[type="text"] {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: none;
	color: #fff;
}
.search-expand input[type="text"]::placeholder {
	color: rgba(255, 255, 255, 0.6);
}
.search-expand input[type="text"]:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.22);
	border-color: #fff;
}
.search-expand .search-row button {
	margin-top: 0;
	background: #fff;
	background-color: #fff;
	color: #0079c1;
	box-shadow: none;
}
.search-expand .search-row button:hover {
	background: #eaf4fc;
	background-color: #eaf4fc;
	color: #005f9c;
}

.search-results {
	margin-top: 24px;
}
.search-loading,
.search-empty {
	margin: 0;
	color: #eaf4fc;
	font-size: 14px;
}
.search-device-group + .search-device-group {
	margin-top: 22px;
}
.search-device-heading {
	color: #eaf4fc;
	font-size: 13px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 10px;
}
.search-version-tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.search-version-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 130px;
	box-sizing: border-box;
	padding: 10px 14px;
	margin: 0;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.search-version-tile:hover {
	background: rgba(255, 255, 255, 0.22);
}
.search-version-tile.selected {
	background: #fff;
	border-color: #fff;
	color: #0079c1;
}
.search-version-tile .version-label {
	font-weight: bold;
	font-size: 14px;
}
.search-version-tile .version-note {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.75);
}
.search-version-tile.selected .version-note {
	color: #5a5a5a;
}

.search-download-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.search-download-bar[hidden] {
	display: none;
}
.search-download-bar span {
	color: #eaf4fc;
	font-size: 14px;
	font-weight: bold;
}
.search-download-bar button {
	margin: 0;
	background: #fff;
	background-color: #fff;
	color: #0079c1;
	border: none;
	font-family: inherit;
	font-weight: bold;
	font-size: 15px;
	padding: 10px 22px;
	cursor: pointer;
	box-shadow: none;
}
.search-download-bar button:hover {
	background: #eaf4fc;
	background-color: #eaf4fc;
	color: #005f9c;
}

.search-row {
	display: flex;
	gap: 10px;
}
.search-row input {
	flex: 1 1 auto;
}
.results-table {
	margin-top: 24px;
}

h1, h2, h3 {
	text-shadow: 2px 2px 10px rgba(0,0,0,0.15);
	margin: 0 0 20px 0;
}

.login-wrap {
	max-width: 420px;
	margin: 60px auto;
}
.login-wrap h1 {
	font-size: 32px;
	text-align: center;
}
.login-wrap img#logo {
	display: block;
	margin: 0 auto 30px auto;
	width: 260px;
}

label {
	display: block;
	margin: 18px 0 6px 0;
	font-size: 14px;
	font-weight: bold;
}
.card label {
	color: #eaf4fc;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 16px;
	font-family: inherit;
	border: solid 1px #dedede;
	background-color: #fff;
	box-shadow: inset 0 0 8px #d8d8d8;
	color: #3a3a3a;
}

.btn, button, input[type="submit"] {
	display: inline-block;
	margin-top: 22px;
	background-color: #0079c1;
	background: radial-gradient(#689edc, #0079c1);
	border: none;
	color: #fff;
	font-family: inherit;
	font-weight: bold;
	font-size: 16px;
	padding: 12px 24px;
	cursor: pointer;
	box-shadow: 2px 2px 2px #888888;
}
.btn:hover, button:hover, input[type="submit"]:hover {
	background-color: #006fb1;
	background: radial-gradient(#689edc, #006fb1);
}
.btn.secondary {
	background: #ececec;
	color: #838383;
	box-shadow: none;
	border: solid 1px #dedede;
}
.btn.secondary:hover {
	background: #f6f6f6;
}
.btn.danger {
	background: #c0392b;
	color: #fff;
}
.btn.danger:hover {
	background: #a5301f;
}

.error, .warning {
	background: #fdecea;
	color: #a5301f;
	border: solid 1px #f3c6c1;
	padding: 12px 16px;
	margin: 18px 0;
	font-size: 14px;
}
.success {
	background: #eafaf1;
	color: #1e7e46;
	border: solid 1px #b9ecd0;
	padding: 12px 16px;
	margin: 18px 0;
	font-size: 14px;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
thead th {
	text-align: left;
	background-color: #0079c1;
	background: radial-gradient(#689edc, #0079c1);
	color: #fff;
	padding: 12px 14px;
}
tbody td {
	padding: 10px 14px;
	border-bottom: solid 1px #eee;
}
tbody tr:hover {
	background: #f7fbff;
}

.badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: bold;
	color: #fff;
}
.badge.level-1 { background: #8f8f8f; }
.badge.level-2 { background: #0079c1; }
.badge.active { background: #1e7e46; }
.badge.inactive { background: #a5301f; }

.actions a, .actions button {
	margin-right: 10px;
	font-size: 14px;
}

.toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

#footer {
	clear: both;
	padding: 20px 5px;
	color: #878787;
	text-align: right;
	font-size: 13px;
}

@media screen and (max-width: 780px) {
	#layout { flex-direction: column; }
	#sidebar-menu { flex-direction: row; flex-wrap: wrap; width: 100%; gap: 6px; }
	.menu-item { flex: 1 1 auto; justify-content: center; border-left: none; border-bottom: 3px solid transparent; }
	.menu-item.active { border-left: none; border-bottom: 3px solid #0079c1; }
}

@media screen and (max-width: 620px) {
	#header { flex-direction: column; text-align: center; gap: 10px; }
	.toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
	.card, .panel { padding: 20px; }
}
