/* =========================================================================
   Serbest Meslek Makbuzu Hesaplama — Apple-style tasarım
   "Binek Oto Kira Gider Kısıtlaması" hesaplayıcısıyla aynı tasarım dili
   (bokh- tasarım tokenları temel alınarak smmh- olarak uygulanmıştır).
   ========================================================================= */

.smmh-wrap {
	--smmh-bg: #f5f5f7;
	--smmh-card: #ffffff;
	--smmh-text: #1d1d1f;
	--smmh-secondary: #6e6e73;
	--smmh-accent: #0071e3;
	--smmh-accent-dark: #0058b9;
	--smmh-net: #0071e3;
	--smmh-kesinti: #ff9500;
	--smmh-success: #34c759;
	--smmh-danger: #ff3b30;
	--smmh-divider: #d2d2d7;
	--smmh-radius: 18px;
	--smmh-radius-sm: 12px;
	--smmh-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);

	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
		"Helvetica Neue", Arial, sans-serif;
	background: var(--smmh-bg);
	color: var(--smmh-text);
	padding: 56px 20px;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	border-radius: var(--smmh-radius);
}

.smmh-wrap * {
	box-sizing: border-box;
}

.smmh-container {
	max-width: 680px;
	margin: 0 auto;
}

/* ---------- Header ---------- */

.smmh-header {
	text-align: center;
	margin-bottom: 36px;
}

.smmh-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--smmh-accent);
	margin: 0 0 12px;
}

.smmh-title {
	font-size: 34px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 14px;
	color: var(--smmh-text);
}

.smmh-subtitle {
	font-size: 16px;
	line-height: 1.5;
	color: var(--smmh-secondary);
	max-width: 480px;
	margin: 0 auto;
}

/* ---------- Cards ---------- */

.smmh-card {
	background: var(--smmh-card);
	border-radius: var(--smmh-radius);
	box-shadow: var(--smmh-shadow);
	padding: 28px;
	margin-bottom: 20px;
}

.smmh-card-title {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 4px;
}

.smmh-card-subtitle {
	font-size: 13px;
	color: var(--smmh-secondary);
	margin: 0 0 20px;
}

/* ---------- Hesap Türü segmented control ---------- */

.smmh-segment {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	background: var(--smmh-bg);
	border-radius: var(--smmh-radius-sm);
	padding: 5px;
}

.smmh-seg-btn {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--smmh-secondary);
	background: transparent;
	border: 0;
	border-radius: 9px;
	padding: 11px 6px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.smmh-seg-btn.is-active {
	background: var(--smmh-accent);
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

/* ---------- Inputs ---------- */

.smmh-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.smmh-field {
	display: flex;
	flex-direction: column;
}

.smmh-field.smmh-full {
	grid-column: 1 / -1;
}

.smmh-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--smmh-text);
	margin-bottom: 7px;
}

.smmh-field-hint {
	font-weight: 400;
	color: var(--smmh-secondary);
}

.smmh-field input,
.smmh-field select {
	font-family: inherit;
	font-size: 16px;
	color: var(--smmh-text);
	background: var(--smmh-bg);
	border: 1px solid transparent;
	border-radius: var(--smmh-radius-sm);
	padding: 12px 14px;
	width: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.smmh-field select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236e6e73' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.smmh-field input::placeholder {
	color: #aeaeb2;
}

.smmh-field input:focus,
.smmh-field select:focus {
	outline: none;
	border-color: var(--smmh-accent);
	box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
	background: #ffffff;
}

.smmh-amount-wrap {
	position: relative;
}

.smmh-amount-wrap input {
	padding-right: 46px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.smmh-amount-suffix {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	color: var(--smmh-secondary);
	font-weight: 600;
	pointer-events: none;
}

.smmh-hint {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: var(--smmh-secondary);
	line-height: 1.5;
}

/* ---------- Genç girişimci toggle + info ---------- */

.smmh-toggle-row {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	background: rgba(0, 113, 227, 0.07);
	border-radius: var(--smmh-radius-sm);
	padding: 14px;
	cursor: pointer;
	margin-top: 22px;
}

.smmh-toggle-row input {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	accent-color: var(--smmh-accent);
	flex-shrink: 0;
}

.smmh-t-label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--smmh-text);
	display: block;
}

.smmh-t-sub {
	font-size: 12px;
	color: var(--smmh-secondary);
	margin-top: 2px;
	line-height: 1.45;
	display: block;
}

.smmh-banner {
	display: none;
	margin: 14px 0 0;
	padding: 12px 16px;
	border-radius: var(--smmh-radius-sm);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.5;
}

.smmh-banner.is-visible {
	display: block;
}

.smmh-banner-warning {
	background: rgba(255, 149, 0, 0.12);
	color: #9a5b00;
}

.smmh-banner-warning strong {
	color: #7a4700;
}

/* ---------- Result card ---------- */

.smmh-result-card {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.smmh-result-card.smmh-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.smmh-result-card {
		transition: none;
		transform: none;
	}
}

.smmh-bar {
	display: flex;
	width: 100%;
	height: 14px;
	border-radius: 7px;
	overflow: hidden;
	background: #e8e8ed;
}

.smmh-bar-seg {
	height: 100%;
	transition: width 0.4s ease;
}

.smmh-bar-net {
	background: var(--smmh-net);
}

.smmh-bar-kesinti {
	background: var(--smmh-kesinti);
}

.smmh-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 16px;
}

.smmh-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--smmh-secondary);
}

.smmh-legend-item strong {
	color: var(--smmh-text);
	font-weight: 600;
	margin-left: 2px;
	font-variant-numeric: tabular-nums;
}

.smmh-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.smmh-dot-net {
	background: var(--smmh-net);
}

.smmh-dot-kesinti {
	background: var(--smmh-kesinti);
}

.smmh-divider {
	height: 1px;
	background: var(--smmh-divider);
	margin: 24px 0;
}

.smmh-detail-list {
	margin: 0;
}

.smmh-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f2;
	font-size: 14.5px;
}

.smmh-detail-row:last-child {
	border-bottom: none;
}

.smmh-detail-row dt {
	color: var(--smmh-secondary);
}

.smmh-detail-row dd {
	margin: 0;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.smmh-detail-row.smmh-deduct dd {
	color: var(--smmh-kesinti);
}

.smmh-detail-strong dt {
	color: var(--smmh-text);
	font-weight: 600;
}

.smmh-detail-strong dd {
	font-size: 17px;
	color: var(--smmh-accent);
}

.smmh-print-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
	width: 100%;
	background: var(--smmh-accent);
	color: #fff;
	border: none;
	border-radius: var(--smmh-radius-sm);
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease;
}

.smmh-print-btn:hover {
	background: var(--smmh-accent-dark);
}

/* ---------- Fiş table ---------- */

.smmh-table-scroll {
	overflow-x: auto;
	border-radius: var(--smmh-radius-sm);
	border: 1px solid var(--smmh-divider);
}

.smmh-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
	min-width: 480px;
}

.smmh-table th {
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--smmh-secondary);
	background: #fafafa;
	padding: 10px 14px;
	border-bottom: 1px solid var(--smmh-divider);
}

.smmh-table th.smmh-num-h {
	text-align: right;
}

.smmh-table td {
	padding: 11px 14px;
	border-bottom: 1px solid #f0f0f2;
	vertical-align: top;
}

.smmh-table tbody tr:last-child td {
	border-bottom: none;
}

.smmh-table td.smmh-acct {
	font-weight: 700;
	color: var(--smmh-text);
	white-space: nowrap;
}

.smmh-table td.smmh-name {
	color: var(--smmh-secondary);
	font-size: 13px;
}

.smmh-table td.smmh-indent {
	padding-left: 28px;
}

.smmh-table .smmh-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.smmh-table-total td {
	font-weight: 700;
	background: #fafafa;
	border-top: 1px solid var(--smmh-divider);
	border-bottom: none;
}

.smmh-balance-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 16px 0 0;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

.smmh-balance-ok {
	background: rgba(52, 199, 89, 0.12);
	color: #1d7a35;
}

.smmh-fis-note {
	font-size: 12.5px;
	color: var(--smmh-secondary);
	line-height: 1.5;
	margin: 18px 0 0;
}

/* ---------- Footer ---------- */

.smmh-footer {
	text-align: center;
	padding: 8px 12px 0;
}

.smmh-footer p {
	font-size: 12px;
	line-height: 1.6;
	color: #aeaeb2;
	max-width: 560px;
	margin: 0 auto;
}

/* ---------- Print: tek sayfa, logo + başlık üstte ---------- */

.smmh-print-header {
	display: none;
}

@media print {
	body * {
		visibility: hidden;
	}
	.smmh-wrap, .smmh-wrap * {
		visibility: visible;
	}
	.smmh-wrap {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		background: #fff;
		padding: 0;
		margin: 0;
		box-shadow: none;
	}
	.smmh-header, .smmh-print-btn, .smmh-form-card {
		display: none !important;
	}
	.smmh-container {
		max-width: none;
	}
	.smmh-card, .smmh-table, .smmh-print-header {
		page-break-inside: avoid;
		break-inside: avoid;
	}
	.smmh-print-header {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 0 0 10px;
		margin-bottom: 12px;
		border-bottom: 2px solid var(--smmh-text);
	}
	.smmh-print-logo {
		max-height: 34px;
		width: auto;
		display: block;
	}
	.smmh-print-sitename {
		font-size: 16px;
		font-weight: 700;
		color: var(--smmh-text);
	}
	.smmh-print-title {
		font-size: 13px;
		font-weight: 600;
		color: var(--smmh-secondary);
		padding-left: 12px;
		border-left: 1px solid var(--smmh-divider);
	}
	.smmh-card {
		box-shadow: none;
		border: 1px solid var(--smmh-divider);
		padding: 12px 14px;
		margin-bottom: 10px;
		border-radius: 8px;
	}
	.smmh-card-title {
		font-size: 13px;
		margin-bottom: 2px;
	}
	.smmh-card-subtitle {
		display: none;
	}
	.smmh-bar {
		height: 8px;
	}
	.smmh-legend {
		margin-top: 8px;
		gap: 14px;
	}
	.smmh-legend-item {
		font-size: 11.5px;
	}
	.smmh-divider {
		margin: 10px 0;
	}
	.smmh-detail-row {
		padding: 4px 0;
		font-size: 11.5px;
	}
	.smmh-detail-strong dd {
		font-size: 13px;
	}
	.smmh-table {
		font-size: 10.5px;
	}
	.smmh-table td, .smmh-table th {
		padding: 4px 7px;
	}
	.smmh-balance-badge {
		margin: 8px 0 0;
		padding: 4px 10px;
		font-size: 10.5px;
	}
	.smmh-fis-note {
		font-size: 9.5px;
		margin-top: 8px;
	}
	.smmh-footer {
		text-align: left;
		padding: 0;
		margin-top: 4px;
	}
	.smmh-footer p {
		max-width: none;
		margin: 0;
		font-size: 9px;
		line-height: 1.45;
		color: var(--smmh-secondary);
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
	.smmh-wrap {
		padding: 36px 14px;
	}

	.smmh-title {
		font-size: 27px;
	}

	.smmh-card {
		padding: 20px;
	}

	.smmh-field-grid {
		grid-template-columns: 1fr;
	}

	.smmh-detail-row {
		font-size: 14px;
	}
}
