/**
 * NACE Kodu Sorgulama - Ön yüz stilleri
 *
 * @package NACE_Kodu_Hesaplama
 */

.nkh-nace-calculator {
	max-width: 640px;
	margin: 1.5em 0;
}

/* Sorgulama kutusu - mavi başlık */
.nkh-query-box {
	margin-bottom: 1.5em;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nkh-query-title {
	margin: 0;
	padding: 4rem 1rem 1rem 1rem;
	background: #2271b1;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	/* line-height: 4rem; */
	padding-top: 1rem !important;
}

.nkh-form {
	padding: 1.25em;
	background: #fff;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 8px 8px;
}

.nkh-form .nkh-field {
	margin-bottom: 1em;
}

.nkh-form label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
	font-size: 0.95rem;
}

.nkh-input {
	width: 100%;
	max-width: 100%;
	padding: 0.5em 0.75em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.nkh-input:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

.nkh-hint {
	margin: 0.35em 0 0;
	font-size: 0.85rem;
	color: #646970;
}

.nkh-button {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin-top: 0.5em;
	padding: 0.6em 1.2em;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.nkh-button:hover {
	background: #135e96;
}

.nkh-button:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* Sonuç kutusu - turkuaz başlık */
.nkh-results-box {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nkh-results-title {
	margin: 0;
	padding: 4rem 1rem 1rem 1rem;
	background: #0d9488;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	display: block;
	padding-top: 1rem !important;
}

.nkh-results {
	padding: 1em;
	background: #fff;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 8px 8px;
	min-height: 80px;
}

.nkh-results.nkh-loading {
	opacity: 0.8;
}

.nkh-results .nkh-placeholder,
.nkh-results .nkh-message {
	color: #646970;
	font-style: italic;
}



/* Sonuç tablosu */
.nkh-results-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.nkh-results-table th,
.nkh-results-table td {
    padding: 0.65em 0.85em;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding: clamp(0.3rem, 0.8vw, 0.5rem);
    vertical-align: middle;
    border: 1px solid #dee2e6;
	text-align: center;
}

.nkh-results-table th {
	background: #f6f7f7;
	font-weight: 600;
}

.nkh-results-table td:first-child {
	font-weight: 700;
	font-family: ui-monospace, monospace;
}

/* Risk durumu badge */
.nkh-risk-badge {
	display: inline-block;
	padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
	padding: clamp(0.3rem, 0.8vw, 0.5rem) clamp(0.4rem, 1vw, 0.6rem);
	font-size: var(--bs-badge-font-size);
	font-size: clamp(0.6rem, 1vw, 0.75rem);
	font-weight: var(--bs-badge-font-weight);
	line-height: 1;
	color: var(--bs-badge-color);
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: var(--bs-badge-border-radius);
	border-radius: 999px;
	border: none;
}

/* Az Tehlikeli: açık yeşil zemin, yeşil yazı */
.nkh-risk-az-tehlikeli {
	background: #e6ffe6;
	color: #339933;
}

/* Tehlikeli: açık sarı zemin, turuncu-sarı yazı */
.nkh-risk-tehlikeli {
	background: #fffacd;
	color: #cc9900;
}

/* Çok Tehlikeli: kırmızı zemin, beyaz yazı */
.nkh-risk-cok-tehlikeli {
	background: #cc3333;
	color: #fff;
}
