html,
body{
	height:100%;
	margin:0;
	font-family:Arial,sans-serif;
	font-size:13px;
}

#app{
	height:100vh;
	display:flex;
	flex-direction:column;
}

.toolbar{
	display:flex;
	justify-content:space-between;
	align-items:center;
	gap:10px;
	padding:8px 10px;
	border-bottom:1px solid #ddd;
}

.toolbar-left{
	display:flex;
	align-items:center;
	gap:8px;
}

.toolbar #search{
	width:300px;
	height:30px;
	font-size:12px;
}

.tabs{
	display:flex;
	gap:3px;
}

.tab{
	border:none;
	background:#eee;
	padding:5px 10px;
	font-size:12px;
	border-radius:4px;
	cursor:pointer;
}

.tab.active{
	background:#0d6efd;
	color:#fff;
}

.stats{
	display:flex;
	gap:6px;
}

.stat-card{
	min-width:95px;
	padding:6px 10px;
	border:1px solid #ddd;
	border-radius:6px;
	background:#fafafa;
	text-align:center;
}

.stat-label{
	font-size:10px;
	color:#777;
	text-transform:uppercase;
}

.stat-value{
	font-size:18px;
	font-weight:700;
	line-height:20px;
}

.main{
	flex:1;
	display:grid;
	grid-template-columns:300px 350px 1fr;
	overflow:hidden;
}

.results-panel,
.details-panel,
.data-panel{
	display:flex;
	flex-direction:column;
	border-right:1px solid #ddd;
	min-height:0;
}

.data-panel{
	border-right:none;
}

.panel-title{
	padding:8px 10px;
	font-size:12px;
	font-weight:600;
	border-bottom:1px solid #ddd;
	background:#fafafa;
}

#results,
#entityDetails,
#dataViewer{
	flex:1;
	overflow:auto;
	padding:8px;
	overflow-wrap:anywhere;
	word-break:break-word;
}

.result-item{
	border:1px solid #ddd;
	border-radius:6px;
	padding:6px 8px;
	margin-bottom:5px;
	cursor:pointer;
	font-size:12px;
}

.result-item:hover{
	background:#f7f7f7;
}

.result-item strong{
	font-size:12px;
}

.dataset-status{
	border:1px solid #ddd;
	border-radius:6px;
	padding:8px;
	margin-bottom:6px;
	font-size:12px;
}

.pagination{
	padding:6px 8px;
	display:flex;
	justify-content:space-between;
	align-items:center;
	border-top:1px solid #ddd;
	font-size:12px;
}

.pagination .btn{
	padding:2px 8px;
	font-size:11px;
}

#dataViewer{
	font-size:12px;
	margin:0;
	white-space:pre-wrap;
	word-break:break-word;
}

.btn-sm{
	font-size:11px;
	padding:2px 8px;
}
.login-screen{
	position:fixed;
	inset:0;
	display:flex;
	align-items:center;
	justify-content:center;
	background:#f5f5f5;
	z-index:1000;
}

.login-box{
	width:320px;
	padding:20px;
	background:#fff;
	border:1px solid #ddd;
	border-radius:8px;
}