:root {
	--navy: #0b0d12;
	--panel: #11141c;
	--gold: #c9a227;
	--gold-2: #e4c56a;
	--paper: #f7f4ee;
	--line: #e7e1d6;
	--muted: #6f6c66;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	font-family: "Manrope", sans-serif;
	background: var(--paper);
	color: #1b1c20;
}
a {
	color: inherit;
	text-decoration: none;
}
button,
input,
select,
textarea {
	font: inherit;
}
.login-wrap {
	min-height: 100vh;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at top, #1c2030, var(--navy));
	padding: 24px;
}
.login-card {
	width: min(420px, 100%);
	background: #0e1016;
	border: 1px solid #2a2418;
	border-radius: 24px;
	padding: 36px 28px;
	text-align: center;
	color: #f4ead2;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.login-card img {
	width: 92px;
	margin: 0 auto 16px;
}
.login-card .kicker {
	letter-spacing: 0.28em;
	color: var(--gold-2);
	font-size: 11px;
}
.login-card h1 {
	font-family: "Cormorant Garamond", serif;
	font-size: 48px;
	font-weight: 400;
	margin: 8px 0 24px;
}
.login-card input {
	width: 100%;
	margin: 8px 0;
	padding: 13px 14px;
	border-radius: 999px;
	border: 1px solid #3a3428;
	background: #171a22;
	color: #fff;
}
.login-card button {
	width: 100%;
	margin-top: 14px;
	border: 0;
	border-radius: 999px;
	padding: 13px;
	background: linear-gradient(180deg, var(--gold-2), var(--gold));
	color: var(--navy);
	font-weight: 700;
	letter-spacing: 0.16em;
	cursor: pointer;
}
.err {
	color: #ffb4b4;
	font-size: 13px;
	min-height: 18px;
}

.app {
	display: grid;
	grid-template-columns: 250px 1fr;
	min-height: 100vh;
}
.side {
	background: var(--panel);
	color: #efe6d2;
	padding: 22px 16px;
}
.side img {
	width: 58px;
}
.back-site {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--gold);
	color: var(--gold-2);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	white-space: nowrap;
}
.side .back-site {
	margin: 14px 0 4px;
	width: 100%;
}
.toolbar-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
.toolbar .back-site {
	background: #111;
	color: #fff;
	border-color: #111;
}
.login-card .back-site {
	margin-top: 16px;
	width: 100%;
	color: var(--gold-2);
}
.modal .back-site {
	justify-self: start;
}
.side nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 24px;
}
.side a,
.side button.link {
	background: transparent;
	border: 0;
	color: inherit;
	text-align: left;
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
}
.side a.active,
.side a:hover {
	background: #1c2130;
	color: var(--gold-2);
}
.main {
	padding: 28px;
}
.kpis {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.kpi {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 16px;
}
.kpi b {
	display: block;
	font-size: 28px;
	margin-top: 6px;
}
.toolbar {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	margin: 8px 0 18px;
}
table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
}
th,
td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	font-size: 14px;
}
.badge {
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 11px;
	background: #eee;
}
.ok {
	background: #dcefe4;
}
.warn {
	background: #f7ead0;
}
.bad {
	background: #f6dcdc;
}
.hidden {
	display: none !important;
}
.modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: grid;
	place-items: center;
	padding: 20px;
}
.modal form,
.panel-card {
	background: #fff;
	width: min(680px, 100%);
	border-radius: 18px;
	padding: 20px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.modal .full,
.panel-card .full {
	grid-column: 1 / -1;
}
.modal input,
.modal select,
.modal textarea,
.panel-card input,
.panel-card select,
.panel-card textarea {
	width: 100%;
	padding: 10px;
	border-radius: 10px;
	border: 1px solid var(--line);
}
@media (max-width: 900px) {
	.app {
		grid-template-columns: 1fr;
	}
	.kpis {
		grid-template-columns: 1fr 1fr;
	}
	.side nav {
		flex-direction: row;
		overflow: auto;
	}
}
