/* Ortak stiller. Renkler, yazı tipi ve oda ekranı temada: tema-cizelge.css, tema-asansor.css */
/* Yazı boyu sabittir: büyük ekranda yazılar büyümez, daha çok içerik sığar */
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--zemin); color: var(--yazi); font: 400 1rem/1.45 var(--yazitipi), 'Segoe UI', -apple-system, system-ui, Roboto, sans-serif; font-variant-numeric: tabular-nums; }
h1, h2, h3, p, dl, dd, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1 { font-size: 1.3rem; line-height: 1.3; font-weight: 600; }
h2 { font-size: 1rem; line-height: 1.4; font-weight: 600; }
h3 { font-size: 1rem; line-height: 1.3; font-weight: 650; }
a { color: inherit; text-underline-offset: .2em; text-decoration-color: #b4b6bd; }
:focus-visible { outline: 3px solid var(--odak); outline-offset: 2px; }
.soluk, small { color: var(--soluk); }
small { font-weight: 400; font-size: .86em; }
.uyari { color: var(--yazi); font-weight: 600; }
.ikon { width: 18px; height: 18px; flex: none; }

main { min-width: 0; }
[data-canli] main { overflow: auto; padding: 12px 40px 24px; background: var(--yan); }
.bant { padding: 9px 14px; border-radius: var(--r); font-weight: 500; background: var(--yazi); color: #fff; }
[data-canli] .bant { position: fixed; z-index: 5; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px #0003; }
.bant.kotu { background: var(--kotu); }
.form-hata { padding: 8px 12px; border-radius: var(--r); background: var(--kotu-acik); color: var(--kotu); }

/* Düğmeler */
button, .dugme { font: inherit; font-weight: 550; border: 1px solid var(--ana); border-radius: var(--r); background: var(--ana); color: #fff; padding: 0 14px; min-height: 34px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
button:hover, .dugme:hover { background: var(--ana-koyu); }
button:disabled { opacity: .5; cursor: default; }
.ikincil { background: #fff; color: var(--yazi); border-color: var(--kenar); }
.ikincil:hover { background: var(--ustu); }
.kucuk { min-height: 28px; padding: 0 10px; font-size: 13px; }
.tehlike { background: #fff; color: var(--kotu); border-color: var(--kotu-kenar); }
.tehlike:hover { background: var(--kotu-acik); }
.tehlike.dolu { background: var(--kotu); color: #fff; border-color: var(--kotu); }
.genis { width: 100%; }
.dugmeler { display: flex; flex-wrap: wrap; gap: .5rem; }
.dugmeler.son { justify-content: flex-end; }
.dugmeler.son .tehlike:first-child:not(:only-child) { margin-right: auto; }

/* Tüm gün / belirli saatler seçimi */
.ikisec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.ikisec label { position: relative; font-weight: 500; }
.ikisec input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.ikisec span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--kenar); border-radius: var(--r); line-height: 1.3; }
.ikisec small { margin: 0; }
.ikisec input:checked + span { border-color: var(--ana); box-shadow: inset 0 0 0 1px var(--ana); color: var(--ana); background: var(--ana-acik); }
.ikisec input:focus-visible + span { outline: 3px solid var(--odak); }
.ikisec input:disabled { cursor: not-allowed; }
.ikisec input:disabled + span { color: #a4a6ad; background: var(--yan); border-style: dashed; }
.ikisec input:disabled + span small { color: inherit; text-decoration: line-through; }
.saat-sec, .ozel-saat { margin-top: 10px; }
fieldset:has([value=gun]:checked) .ozel-saat { display: none; }
fieldset .secim { margin-top: 10px; }
.dolu-not { font-size: 13px; margin-top: 8px; }
.dolu-not:empty { display: none; }
option:disabled { color: #a4a6ad; }

/* Yönetim sayfaları */
.baslik { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 2rem; margin-bottom: 1.1rem; }
.baslik p { color: var(--soluk); margin-top: .3rem; }
.bolum-ust { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 34px; margin-bottom: .8rem; }
.ikili { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 2rem; align-items: start; }
.tablo { background: #fff; border: 1px solid var(--cizgi); border-radius: 8px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; letter-spacing: -.01em; }
th { text-align: left; font-size: .88rem; font-weight: 500; color: var(--soluk); }
th, td { padding: .42rem 1rem; }
th { padding-block: .7rem; }
td { border-top: 1px solid var(--cizgi); }
td small { display: block; }
td:last-child { text-align: right; }
.pasif { color: var(--soluk); }
.sade li { border-top: 1px solid var(--cizgi); }
.sade button { width: 100%; border: 0; background: none; border-radius: 0; color: inherit; font-weight: 400; justify-content: space-between; padding: .4rem .3rem; gap: .8rem; white-space: normal; text-align: left; }
.sade button:hover { background: #fff; }
.sade button span { color: var(--soluk); font-size: .9rem; }
.sade a { display: block; padding: .6rem .3rem; }
.kural, .kutu, .kayitlar > li { border: 1px solid var(--cizgi); }
.kural { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 2rem; background: #fff; border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.durum { font-size: .86rem; font-weight: 600; white-space: nowrap; padding: .12rem .65rem; border-radius: 1rem; background: var(--ustu); color: var(--soluk); }
.durum.approved, .durum.g-acik { background: var(--ana); color: #fff; }
.durum.pending { background: var(--bekler-zemin); color: var(--bekler); }
.durum.rejected { background: var(--kotu-acik); color: var(--kotu); }
.kayitlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 1rem; align-items: start; }
.kayitlar > li { background: #fff; border-radius: 8px; padding: 1.1rem 1.3rem; }
.kayitlar .eski { opacity: .75; }
.kayit-ust { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.kayitlar h2 { font-size: 1.07rem; }
.kayitlar form { margin-top: .9rem; }
.gecmis { margin-top: .8rem; display: grid; gap: .45rem; font-size: .93rem; }
.gecmis li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .8rem; }
.gecmis time, .bildirim time { color: var(--soluk); }
.gecmis em { display: block; font-style: normal; color: var(--yazi); }
.bildirim time { float: right; margin-left: 1rem; font-size: .86rem; }
.bildirim h2 { font-size: 1.05rem; }
.bildirim .yeni { box-shadow: inset 0 0 0 2px var(--yazi); }
.bos { color: var(--soluk); padding: 1rem 1.2rem; }
.bos-durum { max-width: 34rem; margin: auto; padding: 2rem; min-height: 100%; display: grid; gap: 1rem; align-content: center; }
.davet { background: #fff; box-shadow: inset 0 0 0 2px var(--yazi); border-radius: 8px; padding: 1.2rem; margin-bottom: 1.5rem; max-width: 42rem; display: grid; gap: .8rem; justify-items: start; }
.davet pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border-radius: var(--r); padding: .8rem 1rem; width: 100%; }
summary { cursor: pointer; padding: .6rem 0; font-weight: 600; }
.gecmis-gunler { margin-top: 1.2rem; }

.satir-islem { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.satir-islem small { margin-right: 4px; white-space: nowrap; }
.sade .kat-satir { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.kat-satir small { white-space: nowrap; }
.kat-satir .satir-islem { flex-wrap: nowrap; margin-left: auto; }
.sade .kat-satir button { width: auto; border: 1px solid var(--kenar); border-radius: var(--r); background: #fff; padding: 0 10px; min-height: 28px; justify-content: center; }
.sade .kat-satir .tehlike { border-color: var(--kotu-kenar); color: var(--kotu); }
.sade .kat-satir .ikincil:hover { background: var(--ustu); }
.sade .kat-satir .tehlike:hover { background: var(--kotu-acik); }
.kat-not { font-size: 13px; margin-top: 10px; }

/* Formlar ve pencereler */
form { display: grid; gap: 1rem; margin: 0; }
form:has(> button:only-of-type):not(:has(label)) { display: inline-grid; }
label { display: block; font-weight: 600; font-size: .95rem; min-width: 0; }
label small { margin-left: .3rem; }
input, select, textarea { font: inherit; font-weight: 400; color: inherit; width: 100%; min-height: 34px; margin-top: .3rem; padding: .45rem .8rem; border: 1px solid var(--kenar); border-radius: var(--r); background: #fff; }
textarea { resize: vertical; display: block; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--ana-golge); border-color: var(--odak); }
.yan { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .9rem; align-items: end; }
.secim { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; }
.secim input { width: 1.25rem; height: 1.25rem; min-height: 0; margin: .1rem 0 0; flex: none; accent-color: var(--ana); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .95rem; padding: 0; }
.cumle { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .3rem; }
.cumle input, .cumle select { width: auto; margin: 0; }
.cumle input[type=number] { width: 4.6rem; }
.onizleme { background: #fff; border-radius: var(--r); padding: .75rem 1rem; font-size: .93rem; min-height: 7.4rem; }
.form-sayfa { max-width: 46rem; }
.kutu { background: #fff; border-radius: 8px; padding: 1.4rem 1.5rem; margin-bottom: 1.1rem; }
.s-ayarlar .form-sayfa { max-width: none; }
.ayar-iki { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1.5rem 4rem; align-items: start; }
.ayar-iki > div { display: grid; gap: 1rem; }
.kutu .soluk { margin: .3rem 0 .8rem; }
.kutu input, .kutu select { background-color: #fff; }
dialog { border: 1px solid var(--cizgi); border-radius: 10px; padding: 16px 20px 20px; width: min(440px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 2rem); color: inherit; background: #fff; box-shadow: 0 16px 48px #0003; }
dialog::backdrop { background: #1c1d1f66; }
.pencere-ust { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.pencere-ust h2 { font-size: 1rem; font-weight: 500; color: var(--soluk); }
.kapat { background: none; color: var(--soluk); font-size: 1.6rem; font-weight: 400; padding: 0; width: 34px; margin-right: -.8rem; }
.kapat:hover { background: var(--ustu); }
dialog h3 { font-size: 1.3rem; line-height: 1.2; }
dialog h3 + .soluk { margin-top: -.6rem; }
dialog dl { display: grid; grid-template-columns: 7rem 1fr; gap: .5rem .8rem; margin-top: .9rem; }
dt { color: var(--soluk); }
dialog > details, .alt-islem { border-top: 1px solid var(--cizgi); margin-top: 1.1rem; padding-top: .5rem; }
.alt-islem { padding-top: 1rem; }
form summary { color: var(--soluk); font-weight: 500; padding: .25rem 0; }
.ic { display: grid; gap: .9rem; padding-top: .5rem; }
.not { background: var(--ustu); border-radius: var(--r); padding: .5rem .8rem; font-size: .94rem; overflow-wrap: anywhere; }

/* Giriş */
.kapi-sayfa { min-height: calc(100dvh - 60px); display: grid; grid-template-columns: minmax(0, 320px); place-content: center; padding: 20px; }
.kapi-sayfa h1 { font-size: 1.7rem; }
.kapi-sayfa form { margin: 20px 0 14px; }
.kucuk-yazi { font-size: 13px; }

/* Yazdırılan liste */
.s-liste { background: #fff; color: #111; color-scheme: light; }
.kagit { max-width: 52rem; margin: 0 auto; padding: 2.5rem; }
.kagit table { margin-top: 1.5rem; font-size: 1.15rem; }
.kagit th { color: #444; }
.kagit td { border-color: #999; }
.kagit td:last-child { text-align: left; }
.kagit th, .kagit td { padding: .6rem .8rem .6rem 0; }
.yazdir { float: right; }

/* Panel üstü: ad ve çıkış */
.panel-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.marka { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yan-panel > .cikis { position: sticky; bottom: -20px; display: block; margin: auto 0 -20px; padding: 10px 0 14px; background: inherit; }
.yan-panel > :is(.gunler, .panel-islem) + .cikis { margin-top: 0; }
.cikis button { width: 100%; justify-content: flex-start; background: none; border: 0; color: inherit; min-height: 38px; padding: 0 10px; gap: 10px; font-weight: 550; }
.cikis-alt { display: none !important; }
.panel-islem { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel-islem > form { display: grid !important; width: 100%; }
.panel-islem > form:has(.tam), .panel-islem > form:only-child { grid-column: 1 / -1; }
.panel-islem button { width: 100%; padding: 0 6px; }
.dar-yazi { display: none; }
.mobil-menu { display: none; }

/* Talepler */
.sekme { display: flex; gap: 22px; }
.sekme a { padding: 7px 0; text-decoration: none; color: var(--soluk); border-bottom: 2px solid transparent; }
.sekme [aria-current] { color: var(--ana); font-weight: 650; border-color: var(--ana); }
.sekme b { font-weight: inherit; margin-left: 3px; }
.talep-gun { margin-bottom: 26px; }
.talep-gun > header { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.talep-gun > header h2 { font-size: 1.14rem; }
.talep-gun > header h2 a { text-decoration: none; }
.talep-gun > header p { color: var(--soluk); font-size: 13px; margin-right: auto; }
.talep-satir { display: grid; grid-template-columns: 1.3fr 1.1fr 1fr 1.8fr auto; gap: 8px 20px; align-items: center; background: #fff; border: 1px solid var(--cizgi); border-radius: 10px; padding: 12px 16px; margin-top: 8px; }
.talep-satir h3, .talep-satir b { font-size: 1rem; font-weight: 600; }
.talep-satir p { color: var(--soluk); font-size: 13px; }
.talep-satir p.uyari { color: var(--kotu); }
.talep-not p { color: var(--yazi); overflow-wrap: anywhere; }
.satir-islem .dugme, .satir-islem button { white-space: nowrap; }

/* Bildirimler */
.bildirimler { display: grid; gap: 8px; }
.bildirimler > li { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border: 1px solid var(--cizgi); border-radius: 10px; padding: 12px 16px; }
.bildirimler > .yeni { border-color: var(--ana); }
.bildirimler h2 a { text-decoration: none; }
.bildirimler h2 a:hover { text-decoration: underline; }
.bildirimler p { overflow-wrap: anywhere; }
.bildirimler time { color: var(--soluk); font-size: 12.5px; }

.s-takvim td:first-child { white-space: nowrap; }
.s-takvim td, .s-takvim th { padding-inline: .8rem; }

/* Seri: kapsam seçimi */
.kapsamlar { display: grid; gap: 8px; }
#p-kapsam h3 + .soluk { margin: 2px 0 16px; }
.kapsamlar button { display: grid; justify-content: start; text-align: left; min-height: 58px; padding: 8px 16px; white-space: normal; }
.kapsamlar b { font-weight: 600; }
.kapsamlar small { margin: 0; font-weight: 400; }
.kapsamlar label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--kenar); border-radius: var(--r); font-weight: 500; cursor: pointer; }
.kapsamlar label:has(:checked) { border-color: var(--ana); box-shadow: inset 0 0 0 1px var(--ana); background: var(--ana-acik); }
.kapsamlar input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--ana); }
[data-hepsini-goster] { margin-top: 10px; }

/* Süre uzatma */
.hizli { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hizli button { padding: 0 4px; font-size: 13px; min-height: 38px; }
.hizli [aria-pressed=true] { border-color: var(--ana); color: var(--ana); background: var(--ana-acik); box-shadow: inset 0 0 0 1px var(--ana); }
.yeni-son { font-weight: 600; }
.yeni-son.olmaz { color: var(--kotu); }

/* Görünüm seçimi */
.tema-sec { padding-bottom: 20px; border-bottom: 1px solid var(--cizgi); }
.tema-sec legend { display: contents; }
.tema-sec > div { display: flex; flex-wrap: wrap; gap: 18px; }
.tema-sec label { position: relative; flex: 0 1 340px; font-weight: 400; }
.tema-sec input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tema-sec label > span { display: block; border: 2px solid var(--cizgi); border-radius: 12px; overflow: hidden; padding-bottom: 12px; }
.tema-sec img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--cizgi); margin-bottom: 10px; }
.tema-sec b, .tema-sec small { display: block; margin: 0 14px; }
.tema-sec input:checked + span { border-color: var(--ana); box-shadow: 0 0 0 1px var(--ana); }
.tema-sec input:checked + span b::after { content: ' (seçili)'; color: var(--ana); }
.tema-sec input:focus-visible + span { outline: 3px solid var(--odak); outline-offset: 2px; }

@media (max-width: 899px) {
  html { font-size: 15px; }
  input, select, textarea { font-size: 16px; min-height: 44px; }
  button, .dugme { min-height: 42px; }
  .kucuk { min-height: 34px; }
  .gizle, .genis-yazi { display: none !important; }
  .dar-yazi { display: inline; }
  .yan-panel > .cikis { display: none; }
  .cikis-alt { display: block !important; flex: 1; min-width: 0; }
  .cikis-alt button { width: 100%; height: 48px; min-height: 0; flex-direction: column; gap: 2px; padding: 0; background: none; border: 0; color: var(--soluk); font-size: 11px; font-weight: 400; }
  .panel-islem button { min-height: 38px; font-size: 13px; }
  .mobil-menu { display: grid; background: #fff; border: 1px solid var(--cizgi); border-radius: 10px; margin-bottom: 16px; }
  .mobil-menu a { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 0 16px; text-decoration: none; font-weight: 550; }
  .mobil-menu a + a { border-top: 1px solid var(--cizgi); }
  .sekme { width: 100%; }
  .talep-gun > header { flex-wrap: wrap; gap: 2px 12px; }
  .talep-satir { grid-template-columns: 1fr 1fr; padding: 13px 14px; }
  .talep-satir > :first-child, .talep-not, .talep-satir .satir-islem { grid-column: 1 / -1; }
  .talep-not:empty { display: none; }
  .talep-satir .satir-islem, .bildirimler .satir-islem { justify-content: flex-start; }
  .bildirimler > li { display: block; }
  .bildirimler .satir-islem { margin-top: 10px; }
  .hizli { grid-template-columns: 1fr 1fr; }
  .s-takvim :is(th, td):is(:nth-child(2), :nth-child(3), :nth-child(5)) { display: none; }
  .s-takvim :is(th, td) { padding: 9px 8px; }
  .s-takvim td:first-child { white-space: normal; }
  .ikili { grid-template-columns: minmax(0, 1fr); }
  th, td { padding: 9px 12px; }
  .gecmis li { grid-template-columns: 1fr; gap: 0; }
  .s-oda-yonetimi :is(th, td):is(:nth-child(3), :nth-child(4), :nth-child(5)) { display: none; }
  .s-kisiler :is(th, td):nth-child(3) { display: none; }
  :is(.s-kisiler, .s-oda-yonetimi) :is(th, td) { padding: 8px; }
  .satir-islem { flex-wrap: wrap; }
  .satir-islem small { width: 100%; margin: 0; }
  .sade .kat-satir button { min-height: 34px; }
  dialog { margin: auto auto 0; width: 100%; max-width: 100%; border: 0; border-radius: 18px 18px 0 0; padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); }
  .kagit { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { html { font-size: 16px; } .yazdir { display: none; } .kagit { padding: 0; max-width: none; } }

/* İki adımlı giriş ve işlem kaydı */
.karekod { display: block; width: 200px; height: 200px; margin: 10px 0; border: 1px solid var(--cizgi); border-radius: 8px; }
ol.adimlar { list-style: decimal; margin: 0 0 14px; padding-left: 1.2rem; display: grid; gap: 10px; }
.anahtar, .davet pre.yedek-kod { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.kayit-tablo td { vertical-align: top; }
.kayit-tablo td:first-child, .kayit-tablo td:last-child { white-space: nowrap; }
.kayit-tablo small { display: block; }
.kayit-tablo .kotu-satir b { color: var(--kotu); }
