/* Takvim ve Kayıt — herkese açık form ve oturum listesi (platform varsayılanı; her temada çalışır).
   Tema renkleri değişkenlerle ezilir: --tkf-ana (vurgu), --tkf-yazi, --tkf-zemin, --tkf-kenar, --tkf-soluk. */
.tkf, .tkf-liste, .tkf-dialog { --tkf-ana-d: var(--tkf-ana, #1a6fa3); --tkf-yazi-d: var(--tkf-yazi, #1f2933); --tkf-zemin-d: var(--tkf-zemin, #ffffff);
    --tkf-kenar-d: var(--tkf-kenar, #d9e0e7); --tkf-soluk-d: var(--tkf-soluk, #5f6b7a); font: inherit; color: var(--tkf-yazi-d); }
.tkf { display: flex; flex-direction: column; gap: 16px; }
.tkf * { box-sizing: border-box; }
.tkf-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 14px; }
.tkf-alan { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tkf-alan label { font-size: .9rem; font-weight: 600; }
.tkf-alan small, .tkf-not { color: var(--tkf-soluk-d); font-size: .8rem; }
.tkf-z { color: #c62828; }
.tkf input[type=text], .tkf input[type=tel], .tkf input[type=email], .tkf input[type=number], .tkf input[type=date], .tkf select, .tkf textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--tkf-kenar-d); border-radius: 10px; background: var(--tkf-zemin-d); color: var(--tkf-yazi-d);
    font: inherit; font-size: .95rem; min-height: 44px; }
.tkf input:disabled, .tkf select:disabled, .tkf textarea:disabled { background: color-mix(in srgb, var(--tkf-kenar-d) 30%, var(--tkf-zemin-d)); color: var(--tkf-soluk-d); cursor: not-allowed; }
.tkf input:focus, .tkf select:focus, .tkf textarea:focus { outline: 2px solid var(--tkf-ana-d); outline-offset: 1px; border-color: transparent; }
.tkf-grup { border: 1px solid var(--tkf-kenar-d); border-radius: 14px; padding: 14px 16px 16px; margin: 0; min-width: 0; }
.tkf-grup legend { padding: 0 6px; font-weight: 700; font-size: 1rem; }
.tkf-sec { display: flex; flex-wrap: wrap; gap: 10px; }
.tkf-sec label { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--tkf-kenar-d); border-radius: 12px; cursor: pointer; font-weight: 600; }
.tkf-sec label:has(input:checked) { border-color: var(--tkf-ana-d); box-shadow: inset 0 0 0 1px var(--tkf-ana-d); }
.tkf-onay { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.45; cursor: pointer; }
.tkf-onay input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--tkf-ana-d); }
.tkf-onay a { color: var(--tkf-ana-d); text-decoration: underline; }
.tkf-kisi { border: 1px dashed var(--tkf-kenar-d); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.tkf-kisi-ust { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tkf-sil { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--tkf-soluk-d); cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.tkf-sil:hover { color: #c62828; background: rgba(198,40,40,.08); }
.tkf-satir { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.tkf-kisa { max-width: 220px; }
.tkf-excel { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px;
    background: color-mix(in srgb, var(--tkf-ana-d) 8%, transparent); margin-bottom: 12px; font-size: .9rem; }
.tkf-excel small { color: var(--tkf-soluk-d); }
.tkf-excel-dugmeler { display: flex; flex-wrap: wrap; gap: 8px; }
.tkf-excel-sonuc { font-size: .88rem; margin-bottom: 10px; }
.tkf-dugme { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; }
.tkf-ana-dugme { background: var(--tkf-ana-d); color: #fff; width: 100%; }
.tkf-ana-dugme:disabled { opacity: .6; cursor: wait; }
.tkf-ikincil { background: transparent; border-color: var(--tkf-ana-d); color: var(--tkf-ana-d); }
.tkf-tehlike { background: transparent; border-color: #c62828; color: #c62828; }
.tkf-hatalar:empty { display: none; }
.tkf-hatalar { padding: 12px 14px; border-radius: 10px; background: #fdecec; color: #8e1b1b; font-size: .9rem; display: flex; flex-direction: column; gap: 4px; }
.tkf-satir-hata { color: #b42318; font-size: .85rem; margin-top: 6px; }
.tkf-hata-metin { color: #b42318; }
.tkf-basari-metin { color: #1b6e3a; font-weight: 600; }
.tkf-bilgi { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--tkf-ana-d) 8%, transparent); font-size: .95rem; line-height: 1.5; }
.tkf-gizli { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.tkf-alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tkf-tamam { text-align: center; padding: 18px 8px; }
.tkf-tamam-ikon { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: #1b6e3a; color: #fff; font-size: 30px; line-height: 56px; }
.tkf-tamam h3 { margin: 0 0 8px; font-size: 1.2rem; }
.tkf-uyarilar { text-align: left; color: #8a4b00; font-size: .9rem; }

/* Oturum listesi (platform varsayılanı) */
.tkf-liste { display: flex; flex-direction: column; gap: 12px; }
.tkf-oturum { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--tkf-kenar-d); border-radius: 14px; background: var(--tkf-zemin-d); }
.tkf-tarih { flex: none; width: 72px; text-align: center; border-radius: 12px; padding: 8px 4px; background: color-mix(in srgb, var(--tkf-ana-d) 12%, transparent); color: var(--tkf-ana-d); line-height: 1.1; }
.tkf-tarih b { display: block; font-size: 1.6rem; }
.tkf-tarih span { font-size: .8rem; font-weight: 700; text-transform: uppercase; }
/* Hafta bazında planlanan sınıf: kesin gün yok, "X haftası" + not. */
.tkf-tarih small { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.tkf-plan { color: #92400e; font-style: italic; }
.tkf-govde { flex: 1 1 220px; min-width: 0; }
.tkf-govde h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tkf-meta { color: var(--tkf-soluk-d); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tkf-kalan { font-weight: 700; color: var(--tkf-ana-d); }
.tkf-kalan.az { color: #b45309; }
.tkf-dolu { color: #b42318; font-weight: 700; }
.tkf-oturum .tkf-dugme { flex: none; }
.tkf-bos { padding: 18px; border: 1px dashed var(--tkf-kenar-d); border-radius: 14px; text-align: center; color: var(--tkf-soluk-d); }

/* Form penceresi */
.tkf-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; background: var(--tkf-zemin-d); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.tkf-dialog::backdrop { background: rgba(10, 20, 30, .55); }
.tkf-dialog-ust { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--tkf-zemin-d); border-bottom: 1px solid var(--tkf-kenar-d); }
.tkf-dialog-ust b { font-size: 1.05rem; }
.tkf-dialog-govde { padding: 18px; }
@media (max-width: 560px) {
    .tkf-oturum { gap: 12px; }
    .tkf-oturum .tkf-dugme { width: 100%; }
    .tkf-izgara { grid-template-columns: 1fr; }
    .tkf-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
}
@media (prefers-color-scheme: dark) {
    .tkf-hatalar { background: #3b1414; color: #fecaca; }
}

/* Lokasyon düğmeleri (birden çok şubede oturum varsa listenin üstünde). */
.tkf-lok-suzgec { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 18px; }
.tkf-cip { --tkf-ana-d: var(--tkf-ana, #1a6fa3); border: 1px solid var(--tkf-kenar, #d9e0e7); background: transparent; color: inherit; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.tkf-cip:hover { border-color: var(--tkf-ana-d); }
.tkf-cip.secili { background: var(--tkf-ana-d); border-color: var(--tkf-ana-d); color: #fff; }
.tkf-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
