/* MK Maaş Hesaplama - ön yüz stilleri
   Renk ve yazı tipi değerleri kasıtlı olarak temadan miras alınır (inherit /
   currentColor), böylece eklenti hangi WordPress temasında kullanılırsa
   kullanılsın site tasarımına uyum sağlar. Yalnızca yerleşim (layout),
   boşluk ve kenarlık gibi tema-bağımsız özellikler burada tanımlanır. */

.mk-maas-eklenti {
	font-family: inherit;
	color: inherit;
	max-width: 100%;
	box-sizing: border-box;
}

.mk-maas-eklenti *,
.mk-maas-eklenti *::before,
.mk-maas-eklenti *::after {
	box-sizing: inherit;
}

.mk-maas-form {
	display: flex;
	flex-direction: column;
	gap: 1.25em;
	padding: 1.5em;
	border: 1px solid rgba(127, 127, 127, 0.25);
	border-radius: 10px;
	margin-bottom: 2em;
}

.mk-maas-satir {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25em;
}

.mk-maas-alan {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	flex: 1 1 220px;
	min-width: 180px;
}

.mk-maas-alan label {
	font-size: 0.9em;
	font-weight: 600;
	opacity: 0.85;
}

.mk-maas-eklenti input[type="text"],
.mk-maas-eklenti input[type="date"],
.mk-maas-eklenti select {
	font-family: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid rgba(127, 127, 127, 0.4);
	border-radius: 6px;
	padding: 0.55em 0.7em;
	font-size: 1em;
	width: 100%;
}

.mk-maas-secmeli-alanlar {
	flex-direction: column;
	gap: 0.6em;
	padding: 0.75em 0;
	border-top: 1px dashed rgba(127, 127, 127, 0.3);
	border-bottom: 1px dashed rgba(127, 127, 127, 0.3);
}

.mk-maas-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 500;
	cursor: pointer;
}

.mk-maas-checkbox input[type="checkbox"] {
	width: 1.1em;
	height: 1.1em;
}

.mk-maas-btn {
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	padding: 0.7em 1.6em;
	border-radius: 6px;
	border: 1px solid currentColor;
	cursor: pointer;
	align-self: flex-start;
	background: rgba(127, 127, 127, 0.12);
	color: inherit;
}

.mk-maas-btn:hover {
	background: rgba(127, 127, 127, 0.22);
}

.mk-maas-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mk-maas-hata {
	color: #c0392b;
	font-weight: 600;
}

.mk-maas-sonuc h3 {
	margin-top: 0;
	margin-bottom: 0.75em;
}

/* Sabit (sticky) ilk sütunun kaydırmada arkadaki hücrelerle içiçe
   görünmesini önlemek için: border-collapse yerine ayrı hücre kenarlıkları
   kullanılır (sticky + collapsed border kombinasyonu bazı tarayıcılarda
   arka plandaki hücrenin görünür kalmasına, yani metinlerin üst üste
   binmesine yol açar) ve sabit sütuna OPAK bir arka plan + daha yüksek
   z-index verilir. */
.mk-maas-tablo-kapsayici {
	overflow-x: auto;
	border: 1px solid rgba(127, 127, 127, 0.25);
	border-radius: 10px;
}

.mk-maas-detay-tablo {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	min-width: 720px;
	font-size: 0.92em;
}

.mk-maas-detay-tablo th,
.mk-maas-detay-tablo td {
	padding: 0.6em 0.9em;
	text-align: right;
	white-space: nowrap;
	border-bottom: 1px solid rgba(127, 127, 127, 0.15);
	background: Canvas;
}

.mk-maas-detay-tablo th {
	text-align: right;
	font-weight: 700;
	border-bottom: 2px solid rgba(127, 127, 127, 0.35);
	position: sticky;
	top: 0;
	z-index: 1;
}

.mk-maas-detay-tablo .mk-maas-kalem-basligi {
	text-align: left;
	font-weight: 600;
	position: sticky;
	left: 0;
	z-index: 2;
	white-space: nowrap;
	box-shadow: 1px 0 0 rgba(127, 127, 127, 0.25);
}

.mk-maas-detay-tablo thead .mk-maas-kalem-basligi {
	z-index: 3;
}

@media (max-width: 640px) {
	.mk-maas-satir {
		flex-direction: column;
	}
}

/* Çalışan durumu bağlı olarak devre dışı bırakılan indirim seçenekleri */
.mk-maas-devre-disi {
	opacity: 0.45;
}

.mk-maas-indirim-not {
	font-size: 0.85em;
	font-style: italic;
	opacity: 0.8;
	margin: 0;
}

/* Ek ödeme / fazla mesai açma butonları */
.mk-maas-ek-butonlar {
	gap: 1em;
}

.mk-maas-btn-ikincil {
	background: transparent;
	position: relative;
}

.mk-maas-rozet {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.4em;
	height: 1.4em;
	padding: 0 0.35em;
	margin-left: 0.4em;
	border-radius: 999px;
	background: rgba(127, 127, 127, 0.25);
	border: 1px solid currentColor;
	color: inherit;
	font-size: 0.8em;
	font-weight: 700;
	vertical-align: middle;
}

/* Modal (pop-up) */
.mk-maas-modal-arkaplan {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 1em;
}

.mk-maas-modal {
	background: Canvas;
	color: CanvasText;
	border-radius: 12px;
	max-width: 700px;
	width: 100%;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mk-maas-modal-baslik {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1em 1.25em;
	border-bottom: 1px solid rgba(127, 127, 127, 0.25);
}

.mk-maas-modal-baslik h3 {
	margin: 0;
}

.mk-maas-modal-kapat {
	background: transparent;
	border: none;
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	padding: 0 0.25em;
}

.mk-maas-modal-icerik {
	padding: 1.25em;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.mk-maas-modal-alt {
	padding: 1em 1.25em;
	border-top: 1px solid rgba(127, 127, 127, 0.25);
	display: flex;
	justify-content: flex-end;
}

.mk-maas-modal-tablo {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
}

.mk-maas-modal-tablo th,
.mk-maas-modal-tablo td {
	padding: 0.5em;
	text-align: left;
}

.mk-maas-modal-tablo select,
.mk-maas-modal-tablo input[type="text"] {
	font-family: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid rgba(127, 127, 127, 0.4);
	border-radius: 6px;
	padding: 0.4em 0.5em;
	width: 100%;
}

.mk-maas-satir-sil {
	background: transparent;
	border: 1px solid rgba(192, 57, 43, 0.6);
	color: #c0392b;
	border-radius: 6px;
	padding: 0.3em 0.6em;
	cursor: pointer;
	white-space: nowrap;
}

.mk-maas-satir-sil:hover {
	background: rgba(192, 57, 43, 0.1);
}

/* Sonuç tablosundaki düzenlenebilir satırlar (Brüt/Net Ücret ve Gün) */
.mk-maas-duzenlenebilir-satir td:not(.mk-maas-kalem-basligi) {
	background: rgba(127, 127, 127, 0.06);
}

.mk-maas-hucre-duzenle {
	font-family: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid rgba(127, 127, 127, 0.4);
	border-radius: 4px;
	padding: 0.3em 0.4em;
	width: 90px;
	text-align: right;
	font-size: 1em;
}

.mk-maas-hucre-duzenle:focus {
	border-color: currentColor;
	outline: none;
}
