body {
	margin: 0;
	color: #122030;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background:
		radial-gradient(circle at top left, rgba(19, 88, 219, 0.12), transparent 26%),
		linear-gradient(180deg, #f7f9fc 0%, #eef3fb 100%);
}

#app {
	max-width: 1440px;
	margin: 0 auto;
	padding: 24px;
}

.topbar {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 18px;
}

.eyebrow {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #5b6c85;
	margin-bottom: 6px;
}

h1 {
	margin: 0;
	font-size: 34px;
	line-height: 1;
}

.lede {
	margin: 10px 0 0;
	max-width: 720px;
	color: #5b6c85;
}

.auth-card,
.panel {
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(187, 199, 219, 0.72);
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(18, 32, 48, 0.08);
	backdrop-filter: blur(16px);
}

.auth-card {
	padding: 16px;
	min-width: 300px;
}

.auth-card label {
	display: grid;
	gap: 8px;
	font-size: 13px;
	color: #4d5c73;
}

.auth-card input,
.panel-head input {
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid #cad4e4;
	background: #fff;
	color: #122030;
}

.auth-actions,
.detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.nav-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.nav-tabs button.active {
	background: #1358db;
	color: #fff;
}

.kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 16px 0 20px;
}

.kpi {
	padding: 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(187, 199, 219, 0.7);
}

.kpi span {
	display: block;
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 6px;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr);
	gap: 16px;
	align-items: start;
}

.panel {
	padding: 18px;
}

.panel-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}

.panel-head h2 {
	margin: 0;
	font-size: 20px;
}

.panel-head p {
	margin: 6px 0 0;
	color: #5b6c85;
}

.table-wrap {
	overflow: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 860px;
}

th,
td {
	padding: 12px 10px;
	border-bottom: 1px solid #e4eaf3;
	text-align: left;
	vertical-align: top;
}

th {
	position: sticky;
	top: 0;
	background: rgba(247, 250, 255, 0.96);
	backdrop-filter: blur(10px);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #65748a;
}

.detail {
	position: sticky;
	top: 16px;
}

.detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.detail-grid div {
	padding: 12px;
	border-radius: 16px;
	background: #f7f9fc;
	border: 1px solid #e2e9f3;
}

.detail-grid span {
	display: block;
	font-size: 12px;
	color: #65748a;
	margin-bottom: 6px;
}

.detail-grid strong {
	display: block;
	font-size: 14px;
	word-break: break-word;
}

.detail-json {
	margin-top: 14px;
	max-height: 320px;
	overflow: auto;
	padding: 14px;
	border-radius: 16px;
	background: #0f1720;
	color: #d6e4ff;
}

button {
	appearance: none;
	border: 0;
	padding: 11px 14px;
	border-radius: 12px;
	background: #1358db;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

button.secondary {
	background: #e8eef8;
	color: #122030;
}

button.danger {
	background: #b42318;
}

.hard-delete {
	margin-top: 14px;
	padding: 14px;
	border-radius: 16px;
	border: 1px solid rgba(180, 35, 24, 0.2);
	background: rgba(255, 241, 240, 0.92);
}

.hard-delete h3 {
	margin: 0 0 8px;
	font-size: 16px;
}

.hard-delete p {
	margin: 0 0 12px;
	color: #6d2d27;
}

.hard-delete label {
	display: grid;
	gap: 6px;
	margin-top: 10px;
	font-size: 13px;
	color: #4d5c73;
}

.hard-delete input {
	width: 100%;
	margin-top: 0;
	padding: 11px 12px;
	border-radius: 12px;
	border: 1px solid #f0b6b0;
	background: #fff;
}

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

.hidden {
	display: none;
}

@media (max-width: 1080px) {
	.topbar,
	.layout {
		grid-template-columns: 1fr;
		display: grid;
	}

	.kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.detail {
		position: static;
	}
}

@media (max-width: 720px) {
	#app {
		padding: 16px;
	}

	.kpis,
	.detail-grid {
		grid-template-columns: 1fr;
	}

	h1 {
		font-size: 28px;
	}
}
