.ehh-calculator {
	--ehh-navy: #14243d;
	--ehh-blue: #2f80ed;
	--ehh-pale: #eef5ff;
	--ehh-green: #24a06b;
	--ehh-border: #d9e1ec;
	--ehh-muted: #667085;
	--ehh-bg: #f5f7fa;
	color: var(--ehh-navy);
	font-family: inherit;
	margin: 30px auto;
	max-width: 1380px;
}

.ehh-calculator *,
.ehh-calculator *::before,
.ehh-calculator *::after { box-sizing: border-box; }

.ehh-header {
	background: linear-gradient(135deg, var(--ehh-navy), #203c65);
	border-radius: 24px 24px 0 0;
	color: #fff;
	padding: 42px 48px;
}

.ehh-header h2 { color: #fff; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; margin: 8px 0 12px; }
.ehh-header p { color: rgba(255,255,255,.78); font-size: 16px; margin: 0; max-width: 780px; }
.ehh-eyebrow { color: #8dc0ff; font-size: 12px; font-weight: 800; letter-spacing: .14em; }

.ehh-layout {
	background: #fff;
	border: 1px solid var(--ehh-border);
	border-radius: 0 0 24px 24px;
	display: grid;
	gap: 26px;
	grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
	padding: 30px;
}

.ehh-form, .ehh-results { min-width: 0; }
.ehh-form { display: grid; gap: 22px; }
.ehh-results { display: grid; gap: 18px; align-content: start; }

.ehh-panel {
	background: #fff;
	border: 1px solid var(--ehh-border);
	border-radius: 18px;
	margin: 0;
	min-width: 0;
	padding: 22px;
}

.ehh-panel legend, .ehh-panel h3 { color: var(--ehh-navy); font-size: 17px; font-weight: 800; margin: 0; padding: 0; }
.ehh-panel-heading { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 16px; }
.ehh-field-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ehh-field-grid label { display: grid; gap: 7px; }
.ehh-field-grid label span { color: var(--ehh-muted); font-size: 12px; font-weight: 700; }

.ehh-calculator input {
	appearance: none;
	background: #fff;
	border: 1px solid var(--ehh-border);
	border-radius: 10px;
	box-shadow: none;
	color: var(--ehh-navy);
	font: inherit;
	font-size: 14px;
	height: 44px;
	margin: 0;
	max-width: none;
	outline: 0;
	padding: 0 12px;
	width: 100%;
}

.ehh-calculator input:focus { border-color: var(--ehh-blue); box-shadow: 0 0 0 3px rgba(47,128,237,.12); }
.ehh-calculator input.ehh-invalid { border-color: #d92d20; }
.ehh-timezone { background: var(--ehh-bg); border-radius: 10px; color: var(--ehh-muted); font-size: 12px; margin-top: 14px; padding: 10px 12px; }

.ehh-group-table-wrap { overflow-x: auto; }
.ehh-group-table { border: 0; border-collapse: separate; border-spacing: 0 8px; margin: 0; min-width: 650px; width: 100%; }
.ehh-group-table th { border: 0; color: var(--ehh-muted); font-size: 11px; font-weight: 800; padding: 0 8px 4px; text-align: left; }
.ehh-group-table td { background: var(--ehh-bg); border: 0; padding: 8px; vertical-align: middle; }
.ehh-group-table td:first-child { border-radius: 10px 0 0 10px; width: 30%; }
.ehh-group-table td:nth-child(2) { width: 18%; }
.ehh-group-table td:nth-child(3) { width: 22%; }
.ehh-group-table td:nth-child(4) { color: var(--ehh-navy); font-size: 13px; text-align: right; white-space: nowrap; width: 24%; }
.ehh-group-table td:last-child { border-radius: 0 10px 10px 0; text-align: center; width: 40px; }
.ehh-group-table input { background: #fff; height: 40px; }

.ehh-remove-group { background: transparent; border: 0; border-radius: 50%; color: #d92d20; cursor: pointer; font-size: 25px; height: 34px; line-height: 1; padding: 0; width: 34px; }
.ehh-remove-group:hover { background: #fee4e2; }
.ehh-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 15px; }
.ehh-button { background: #fff; border: 1px solid var(--ehh-border); border-radius: 10px; color: var(--ehh-navy); cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; line-height: 1; min-height: 42px; padding: 0 16px; }
.ehh-button:hover { border-color: var(--ehh-blue); color: var(--ehh-blue); }
.ehh-button-secondary { color: var(--ehh-blue); }
.ehh-button-dark { background: var(--ehh-navy); border-color: var(--ehh-navy); color: #fff; }
.ehh-button-dark:hover { background: var(--ehh-blue); color: #fff; }

.ehh-total-card { background: linear-gradient(135deg, var(--ehh-blue), #1765c9); border-radius: 20px; color: #fff; padding: 30px; }
.ehh-total-card span { color: rgba(255,255,255,.78); display: block; font-size: 13px; font-weight: 700; }
.ehh-total-card strong { color: #fff; display: block; font-size: clamp(31px, 4vw, 48px); line-height: 1.05; margin: 9px 0; overflow-wrap: anywhere; }
.ehh-total-card small { color: rgba(255,255,255,.78); font-size: 12px; }

.ehh-stat-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ehh-stat-grid > div, .ehh-live-grid > div { background: var(--ehh-bg); border-radius: 13px; padding: 16px; }
.ehh-stat-grid span, .ehh-live-grid span { color: var(--ehh-muted); display: block; font-size: 11px; font-weight: 700; margin-bottom: 5px; }
.ehh-stat-grid strong, .ehh-live-grid strong { color: var(--ehh-navy); font-size: 17px; }

.ehh-live-panel { background: var(--ehh-pale); border-color: #cfe2ff; }
.ehh-live-dot { color: var(--ehh-green); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.ehh-live-dot::before { animation: ehhPulse 1.5s infinite; background: var(--ehh-green); border-radius: 50%; content: ''; display: inline-block; height: 7px; margin-right: 6px; width: 7px; }
@keyframes ehhPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.ehh-progress { background: #dbe8fa; border-radius: 999px; height: 9px; margin: 4px 0 16px; overflow: hidden; }
.ehh-progress-bar { background: linear-gradient(90deg, var(--ehh-blue), var(--ehh-green)); border-radius: inherit; display: block; height: 100%; transition: width .3s ease; width: 0; }
.ehh-live-grid { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ehh-live-grid > div { background: rgba(255,255,255,.8); }

.ehh-breakdown { display: grid; gap: 15px; margin-top: 17px; }
.ehh-breakdown-item > div { display: flex; gap: 10px; justify-content: space-between; }
.ehh-breakdown-item span { font-size: 13px; font-weight: 800; }
.ehh-breakdown-item strong { font-size: 13px; }
.ehh-breakdown-item small { color: var(--ehh-muted); display: block; font-size: 11px; margin: 3px 0 8px; }
.ehh-breakdown-item i { background: #e6ebf2; border-radius: 999px; display: block; height: 6px; overflow: hidden; }
.ehh-breakdown-item b { background: var(--ehh-blue); border-radius: inherit; display: block; height: 100%; }
.ehh-note { color: var(--ehh-muted); font-size: 11px; line-height: 1.55; margin: 0; padding: 0 6px; }

@media (max-width: 980px) {
	.ehh-layout { grid-template-columns: 1fr; }
	.ehh-header { padding: 34px 30px; }
}

@media (max-width: 640px) {
	.ehh-calculator { margin: 18px auto; }
	.ehh-header { border-radius: 16px 16px 0 0; padding: 28px 20px; }
	.ehh-layout { border-radius: 0 0 16px 16px; padding: 14px; }
	.ehh-panel { border-radius: 14px; padding: 16px; }
	.ehh-field-grid, .ehh-stat-grid, .ehh-live-grid { grid-template-columns: 1fr; }
	.ehh-panel-heading { align-items: flex-start; flex-direction: column; }
	.ehh-group-table { border-spacing: 0; min-width: 0; }
	.ehh-group-table thead { display: none; }
	.ehh-group-table tr { background: var(--ehh-bg); border-radius: 13px; display: block; margin-bottom: 12px; padding: 8px; }
	.ehh-group-table td { align-items: center; background: transparent; border-radius: 0 !important; display: grid; gap: 9px; grid-template-columns: 110px minmax(0,1fr); padding: 5px; text-align: left !important; width: 100% !important; }
	.ehh-group-table td::before { color: var(--ehh-muted); font-size: 10px; font-weight: 800; }
	.ehh-group-table td:nth-child(1)::before { content: 'GRUP'; }
	.ehh-group-table td:nth-child(2)::before { content: 'KİŞİ'; }
	.ehh-group-table td:nth-child(3)::before { content: 'KİŞİ BAŞI / GÜN'; }
	.ehh-group-table td:nth-child(4)::before { content: 'GÜNLÜK TOPLAM'; }
	.ehh-group-table td:last-child { display: flex; justify-content: flex-end; }
	.ehh-total-card { padding: 24px 20px; }
}

