/* ===========================================================================
   Bilgi Toplumu Hizmetleri — Accordion ön yüz stili
   Renkleri temanıza göre değiştirmek için aşağıdaki değişkenleri düzenleyin.
   =========================================================================== */
.bts-accordion {
	--bts-border: #e2e5e9;
	--bts-header-bg: #ffffff;
	--bts-header-bg-hover: #f5f7fa;
	--bts-header-bg-active: #1e4f8a;
	--bts-header-color: #1a1a1a;
	--bts-header-color-active: #ffffff;
	--bts-accent: #1e4f8a;
	--bts-radius: 8px;

	max-width: 100%;
	margin: 24px 0;
}

.bts-accordion * {
	box-sizing: border-box;
}

.bts-item {
	border: 1px solid var(--bts-border);
	border-radius: var(--bts-radius);
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--bts-header-bg);
}

/* Başlık butonu */
.bts-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 18px 20px;
	margin: 0;
	border: 0;
	background: var(--bts-header-bg);
	color: var(--bts-header-color);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.bts-header:hover {
	background: var(--bts-header-bg-hover);
}

.bts-header[aria-expanded="true"] {
	background: var(--bts-header-bg-active);
	color: var(--bts-header-color-active);
}

.bts-header:focus-visible {
	outline: 2px solid var(--bts-accent);
	outline-offset: -2px;
}

.bts-header-title {
	flex: 1;
}

/* Artı/eksi ikonu */
.bts-header-icon {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.bts-header-icon::before,
.bts-header-icon::after {
	content: '';
	position: absolute;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.bts-header-icon::before {
	top: 8px;
	left: 0;
	width: 18px;
	height: 2px;
}

.bts-header-icon::after {
	top: 0;
	left: 8px;
	width: 2px;
	height: 18px;
}

.bts-header[aria-expanded="true"] .bts-header-icon::after {
	transform: rotate(90deg);
	opacity: 0;
}

/* Açılan panel */
.bts-panel[hidden] {
	display: none;
}

.bts-panel-inner {
	padding: 4px 20px 20px;
	color: #333;
	font-size: 15px;
	line-height: 1.7;
}

.bts-content > *:first-child {
	margin-top: 0;
}

.bts-content > *:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   Alt başlıklar (iç içe accordion)
   --------------------------------------------------------------------------- */
.bts-accordion.bts-nested {
	margin: 12px 0 0;
}

/* Alt başlık kutusu daha sade */
.bts-nested .bts-item {
	border-color: #e8ebef;
	margin-bottom: 8px;
}

.bts-nested .bts-item:last-child {
	margin-bottom: 0;
}

/* Alt başlık butonu: daha küçük, açıkken dolu değil çizgili vurgu */
.bts-nested .bts-header {
	padding: 13px 16px;
	font-size: 15px;
	font-weight: 600;
	background: #f5f7fa;
	color: #1a1a1a;
}

.bts-nested .bts-header:hover {
	background: #eef1f6;
}

.bts-nested .bts-header[aria-expanded="true"] {
	background: #eef3fb;
	color: var(--bts-accent);
	box-shadow: inset 3px 0 0 var(--bts-accent);
}

.bts-nested .bts-header-icon {
	width: 14px;
	height: 14px;
}

.bts-nested .bts-header-icon::before {
	top: 6px;
	width: 14px;
}

.bts-nested .bts-header-icon::after {
	left: 6px;
	height: 14px;
}

.bts-nested .bts-panel-inner {
	padding: 4px 16px 16px;
}

/* İçerik içindeki bilgi tabloları (Ticaret Sicil, Ortaklık Yapısı vb.) */
.bts-content .bts-info-table {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0 16px;
	font-size: 14px;
}

.bts-content .bts-info-table th,
.bts-content .bts-info-table td {
	padding: 10px 14px;
	border: 1px solid var(--bts-border);
	text-align: left;
	vertical-align: top;
}

/* thead başlık satırı (çok sütunlu tablolar) */
.bts-content .bts-info-table thead th {
	background: var(--bts-accent);
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

/* Satır başlığı (iki sütunlu Alan | Bilgi tabloları) */
.bts-content .bts-info-table tbody th[scope="row"] {
	background: #f5f7fa;
	font-weight: 600;
	color: #1a1a1a;
	width: 34%;
}

.bts-content .bts-info-table tbody tr:nth-child(even) td {
	background: #fafbfc;
}

/* Belge tablosu */
.bts-table-wrap {
	margin-top: 16px;
	overflow-x: auto;
}

.bts-doc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.bts-doc-table thead th {
	background: var(--bts-accent);
	color: #fff;
	text-align: left;
	font-weight: 600;
	padding: 10px 14px;
	white-space: nowrap;
}

.bts-doc-table tbody td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--bts-border);
	vertical-align: middle;
}

.bts-doc-table tbody tr:nth-child(even) {
	background: #f7f9fc;
}

.bts-doc-table .bts-td-title {
	font-weight: 600;
	color: #1a1a1a;
}

.bts-doc-table .bts-td-date {
	white-space: nowrap;
	color: #50575e;
}

.bts-pdf-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: #f7f9fc;
	border: 1px solid var(--bts-border);
	border-radius: 6px;
	color: var(--bts-accent);
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.bts-pdf-link:hover {
	background: #eef3fb;
	border-color: var(--bts-accent);
}

/* Henüz dosya yüklenmemiş satır */
.bts-pdf-soon {
	display: inline-block;
	padding: 4px 10px;
	background: #f0f0f1;
	border-radius: 4px;
	color: #8a8f94;
	font-size: 13px;
	font-style: italic;
	white-space: nowrap;
}

/* Mobilde tabloyu kart görünümüne çevir */
@media ( max-width: 600px ) {
	.bts-doc-table thead {
		display: none;
	}
	.bts-doc-table,
	.bts-doc-table tbody,
	.bts-doc-table tr,
	.bts-doc-table td {
		display: block;
		width: 100%;
	}
	.bts-doc-table tr {
		margin-bottom: 12px;
		border: 1px solid var(--bts-border);
		border-radius: 6px;
		overflow: hidden;
	}
	.bts-doc-table tbody td {
		border-bottom: 1px solid var(--bts-border);
		padding: 8px 14px;
	}
	.bts-doc-table tbody td::before {
		content: attr(data-label);
		display: block;
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		color: #8a8f94;
		margin-bottom: 2px;
	}
	.bts-doc-table td:empty {
		display: none;
	}
}

/* PDF ikonu (saf CSS) */
.bts-pdf-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 24px;
	position: relative;
	background: #e2453c;
	border-radius: 3px;
}

.bts-pdf-icon::after {
	content: 'PDF';
	position: absolute;
	bottom: 2px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 7px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.5px;
}

/* Mobil */
@media ( max-width: 600px ) {
	.bts-header {
		padding: 14px 16px;
		font-size: 15px;
	}
	.bts-panel-inner {
		padding: 4px 16px 16px;
	}
}
