@font-face {
	font-family: 'Noto Sans Georgian';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/NotoSansGeorgian-georgian-400.woff2') format('woff2');
	unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

@font-face {
	font-family: 'Noto Sans Georgian';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/NotoSansGeorgian-latin-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0 12px 24px;
	font-family: 'Noto Sans Georgian', sans-serif;
	background: #fafafa;
	color: #1a1a1a;
}

header {
	padding: 16px 0 8px;
}

header h1 {
	font-size: 1.25rem;
	margin: 0;
}

main {
	max-width: 480px;
	margin: 0 auto;
}

.field {
	margin-bottom: 12px;
	display: flex;
	flex-direction: column;
}

.field label {
	font-size: 0.85rem;
	margin-bottom: 4px;
	color: #555;
}

.combobox {
	position: relative;
}

.combobox input[type="text"] {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-family: inherit;
}

.combobox input[type="text"]:disabled {
	background: #eee;
	color: #999;
}

.combobox-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 10;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	max-height: 240px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.combobox-list li {
	padding: 10px;
	cursor: pointer;
	min-height: 44px;
	display: flex;
	align-items: center;
}

.combobox-list li.active,
.combobox-list li:hover {
	background: #eef4ff;
}

#search-button {
	width: 100%;
	min-height: 44px;
	font-size: 1rem;
	border: none;
	border-radius: 6px;
	background: #1a73e8;
	color: #fff;
	margin-top: 4px;
}

#search-button:disabled {
	background: #b7b7b7;
}

#results {
	margin-top: 20px;
}

.state-message {
	padding: 12px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #ddd;
	text-align: center;
}

.state-error {
	color: #a30000;
	border-color: #f0b3b3;
	background: #fff5f5;
}

.results-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.results-table th,
.results-table td {
	padding: 8px;
	border-bottom: 1px solid #eee;
	text-align: left;
	font-size: 0.9rem;
	vertical-align: top;
}

.name-ka {
	font-weight: 600;
}

.name-en {
	font-size: 0.8rem;
	color: #777;
}

.stock-in {
	color: #1b7a1b;
	font-weight: 600;
}

.stock-out {
	color: #999;
}

@media (max-width: 360px) {
	.results-table th,
	.results-table td {
		padding: 6px 4px;
		font-size: 0.82rem;
	}
}
