/* Biletleme paneli görünümü. Eski programa benzer düzen: koyu yan menü, beyaz kutular. */
:root {
  --lacivert: #2a3f54;
  --lacivert-koyu: #1f3042;
  --zemin: #f3f5f7;
  --cizgi: #e1e5ea;
  --yazi: #34495e;
  --soluk: #7b8a99;
  --yesil: #1abb9c;
  --yesil-koyu: #138a72;
  --mavi: #337ab7;
  --kirmizi: #d9534f;
  --sari: #f0ad4e;
  --mor: #8e44ad;
  --satir-yesil: #e3f6e8;
  --satir-yesil-cizgi: #a5dcb4;
  --satir-mavi: #eaf2fb;
  --satir-mavi-cizgi: #b9d3ef;
  --satir-kirmizi: #fbeaea;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--yazi); background: var(--zemin); }
a { color: var(--mavi); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 600; color: var(--yazi); }
h2 { font-size: 19px; margin: 0; font-weight: 500; }
h3 { font-size: 15px; margin: 18px 0 6px; }
h4 { font-size: 13px; margin: 10px 0 6px; color: var(--soluk); text-transform: uppercase; letter-spacing: .03em; }
code { font-family: Consolas, monospace; font-size: 13px; }
small { font-size: 11px; }
.ince { color: var(--soluk); }
.gizli { display: none !important; }
.nowrap { white-space: nowrap; }
.sag { text-align: right; }
.yazi-yesil { color: #1e9e57; }
.yazi-kirmizi { color: var(--kirmizi); }

/* Yan menü */
.yan { position: fixed; inset: 0 auto 0 0; width: 230px; background: var(--lacivert); color: #e8eef3; overflow-y: auto; z-index: 20; }
.yan .logo { padding: 18px 18px 14px; font-size: 20px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.yan nav { padding: 8px 0 30px; }
.yan a, .yan summary { display: block; color: #e8eef3; padding: 11px 18px; cursor: pointer; text-decoration: none; font-size: 14px; }
.yan summary { list-style: none; position: relative; }
.yan summary::-webkit-details-marker { display: none; }
.yan summary::after { content: "▾"; position: absolute; right: 16px; opacity: .7; }
.yan details[open] summary::after { content: "▴"; }
.yan a:hover, .yan summary:hover { background: rgba(255,255,255,.06); }
.yan a.sec { background: var(--lacivert-koyu); box-shadow: inset 4px 0 0 var(--yesil); }
.yan a.alt { padding: 8px 18px 8px 40px; font-size: 13px; color: #c9d4de; }
.yan a.alt.sec { color: #fff; }
.yan .ik { display: inline-block; width: 22px; opacity: .8; }
.ik-bilet::before { content: "✎"; } .ik-acenta::before { content: "◎"; } .ik-tur::before { content: "⚓"; }
.ik-muhasebe::before { content: "▥"; } .ik-ayar::before { content: "▦"; } .ik-supplier::before { content: "$"; }
.ik-brosur::before { content: "▤"; } .ik-log::before { content: "↺"; } .ik-gyg::before { content: "✈"; }
.ik-viator::before { content: "◍"; } .ik-sistem::before { content: "⚙"; }
.govde { margin-left: 230px; min-height: 100vh; }
.ust { display: flex; justify-content: space-between; align-items: center; background: #ededed; border-bottom: 1px solid #d9dee4; padding: 8px 18px; }
.ust .kul { font-size: 13px; }
.ust .kul a { margin-left: 10px; }
.menu-ac { background: none; border: 0; font-size: 22px; color: var(--yazi); cursor: pointer; }
body.menu-kapali .yan { display: none; }
body.menu-kapali .govde { margin-left: 0; }
main { padding: 16px 18px 40px; }

/* Kutular */
.kutu { background: #fff; border: 1px solid var(--cizgi); border-radius: 4px; padding: 14px 18px; margin-bottom: 14px; }
.kutu-bas { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--cizgi); padding-bottom: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sag-grup { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Düğmeler */
.btn { display: inline-block; border: 1px solid #ccd3da; background: #f7f9fa; color: var(--yazi); border-radius: 3px; padding: 7px 14px; font: inherit; cursor: pointer; text-decoration: none !important; line-height: 1.2; }
.btn:hover { filter: brightness(.96); }
.btn.yesil { background: var(--yesil); border-color: var(--yesil); color: #fff; }
.btn.yesil.koyu { background: var(--yesil-koyu); border-color: var(--yesil-koyu); }
.btn.koyu { background: #dfe5ea; }
.btn.mavi { background: var(--mavi); border-color: var(--mavi); color: #fff; }
.btn.kirmizi { background: var(--kirmizi); border-color: var(--kirmizi); color: #fff; }
.btn.kucuk { padding: 4px 9px; font-size: 12px; }
.btn.mini { padding: 1px 6px; font-size: 11px; }
form.satir-ici { display: inline; }

/* Bildirimler */
.bildirim { padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; border: 1px solid; }
.bildirim.ok { background: #e6f7ee; border-color: #a8dfc0; color: #1c6b43; }
.bildirim.hata { background: #fdecea; border-color: #f2b8b5; color: #a12622; }
.bildirim.uyari { background: #fff7e1; border-color: #f0d68a; color: #8a6100; }
.bildirim.bilgi { background: #eaf2fb; border-color: #bcd5f0; color: #245a91; }
.bildirim.buyuk { font-size: 16px; }

/* Formlar */
.form { max-width: 820px; }
.form.genis { max-width: 1100px; }
.form > label, .form fieldset label, .form .iki-sutun > label { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 4px 14px; margin: 0 0 10px; }
.form > label > span, .form fieldset label > span, .form .iki-sutun > label > span { text-align: right; font-weight: 600; color: #5d6d7e; font-size: 13px; }
.form label small { grid-column: 2; color: var(--soluk); }
input, select, textarea { font: inherit; color: inherit; border: 1px solid #c8d0d8; border-radius: 3px; padding: 7px 9px; background: #fff; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9cc3ea; outline-offset: -1px; border-color: #7fb0e0; }
input[disabled] { background: #eef1f4; color: var(--soluk); }
input.kisa { max-width: 240px; }
textarea { min-height: 64px; resize: vertical; }
.form hr { border: 0; border-top: 1px solid var(--cizgi); margin: 16px 0; }
.dugmeler { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--cizgi); }
fieldset { border: 1px solid var(--cizgi); border-radius: 4px; padding: 10px 16px 14px; margin: 16px 0; background: #fafbfc; }
fieldset.gri { background: #f1f4f7; }
legend { font-weight: 600; padding: 0 6px; color: #5d6d7e; }
.iki-sutun { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.izgara-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; }
.izgara-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; }
.izgara-4 label { display: block !important; }
.izgara-4 label span { display: block; text-align: left !important; }
.satir-grup { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 12px 204px; }

/* Anahtar (aç/kapa) */
label.anahtar { display: inline-flex !important; grid-template-columns: none !important; align-items: center; gap: 8px; cursor: pointer; margin: 4px 0; }
label.anahtar input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.anahtar i { width: 38px; height: 22px; border-radius: 11px; background: #c9d0d6; position: relative; flex: none; transition: background .15s; }
label.anahtar i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
label.anahtar input:checked + i { background: var(--yesil); }
label.anahtar input:checked + i::after { left: 19px; }
label.anahtar input:focus-visible + i { outline: 2px solid #9cc3ea; }
label.anahtar span { text-align: left !important; font-weight: 500 !important; color: var(--yazi) !important; }
.gun-satir, .kalem-satir { display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: center; margin-bottom: 4px; }
.kalem-satir { grid-template-columns: 1fr 90px; }

/* Fiyat tabloları */
.fiyat-tablo { border-collapse: collapse; margin-bottom: 10px; }
.fiyat-tablo th, .fiyat-tablo td { padding: 3px 8px; text-align: left; }
.fiyat-tablo input { width: 110px; }
.fiyat-tablo input.pas, input.pas { color: var(--kirmizi); }
.fiyat-tablo tr.kapali { display: none; }
.donem { border: 1px dashed #c8d0d8; border-radius: 4px; padding: 8px 12px; margin-bottom: 10px; background: #fff; }
.donem-bas { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 6px; }
.donem-bas label { display: block !important; }
.donem-bas label span { display: block; text-align: left !important; }

/* Kişi sayıları */
.kisiler { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 6px 0 12px 204px; }
.kisiler label.kisi { display: flex; flex-direction: column; width: 96px; }
.kisiler label.kisi span { font-weight: 600; font-size: 13px; color: #5d6d7e; }
.kisiler label.kisi small { color: var(--soluk); min-height: 14px; }

/* Tablolar */
.tablo { width: 100%; border-collapse: collapse; }
.tablo th { text-align: left; font-size: 11px; letter-spacing: .04em; color: #6b7a89; font-weight: 600; padding: 8px 8px; border-bottom: 2px solid var(--cizgi); }
.tablo td { padding: 8px 8px; border-bottom: 1px solid #eef1f4; vertical-align: middle; }
.tablo tr.soluk td { opacity: .5; }
.tablo td.bos { text-align: center; color: var(--soluk); padding: 26px; font-size: 16px; }
.tablo td.fiyatlar { font-size: 12px; }
.tablo-sar { overflow-x: auto; }
.ara-form { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 10px; }
.ara-form input { max-width: 260px; }
.ara-mini { display: flex; gap: 4px; }
.ara-mini input { width: 240px; }
.filtre-satir { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.filtre-satir label { display: flex; flex-direction: column; min-width: 220px; }
.filtre-satir label span { font-size: 12px; font-weight: 600; color: #6b7a89; }

/* Bilet listesi */
.hizli-filtre { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hizli-filtre .ince { font-size: 11px; letter-spacing: .05em; margin-right: 6px; }
.ozet-satir { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-bottom: 14px; }
.ozet-satir .bosluk { flex: 1; }
.sayi-kutu { display: flex; background: #fff; border: 1px solid; border-radius: 4px; padding: 6px 4px; }
.sayi-kutu > div { padding: 0 12px; text-align: center; border-right: 1px solid var(--cizgi); }
.sayi-kutu > div:last-child { border-right: 0; }
.sayi-kutu b { display: block; font-size: 18px; font-weight: 500; }
.sayi-kutu small { color: var(--soluk); font-size: 9px; letter-spacing: .05em; }
.sayi-kutu.yesil { border-color: var(--satir-yesil-cizgi); background: #f3fbf5; }
.sayi-kutu.kirmizi { border-color: #f1b5b3; background: #fdf3f3; }
.para-kutu { border-radius: 4px; padding: 10px 14px; font-size: 15px; border: 1px solid; min-width: 120px; }
.para-kutu small { font-size: 10px; margin-right: 6px; }
.para-kutu.gelir { background: #f1faf4; border-color: #bfe5cb; color: #1e7d48; }
.para-kutu.pas { background: #eef4fb; border-color: #bfd5ee; color: #245a91; }
.para-kutu.kalan { background: #fdf1f1; border-color: #f1c0bf; color: #b2302c; }
.filtre { display: flex; gap: 10px 12px; flex-wrap: wrap; align-items: end; }
.filtre label { display: flex; flex-direction: column; min-width: 180px; flex: 1; }
.filtre label > span { font-size: 11px; font-weight: 600; letter-spacing: .05em; color: #6b7a89; margin-bottom: 3px; }
.filtre .tarih-aralik { flex-direction: row; flex-wrap: wrap; min-width: 280px; }
.filtre .tarih-aralik > span { width: 100%; }
.filtre .tarih-aralik input { width: 50%; }
.filtre-dugme { display: flex; gap: 6px; }

.biletler-tablo { border-collapse: separate; border-spacing: 0 5px; }
.biletler-tablo tbody tr:not(.detay) td { border-top: 1px solid; border-bottom: 1px solid; }
.biletler-tablo tbody tr:not(.detay) td:first-child { border-left: 1px solid; border-radius: 5px 0 0 5px; }
.biletler-tablo tbody tr:not(.detay) td:last-child { border-right: 1px solid; border-radius: 0 5px 5px 0; }
.biletler-tablo tr.paslandi td { background: var(--satir-yesil); border-color: var(--satir-yesil-cizgi) !important; }
.biletler-tablo tr.bekliyor td { background: var(--satir-mavi); border-color: var(--satir-mavi-cizgi) !important; }
.biletler-tablo tr.silindi td { background: var(--satir-kirmizi); border-color: #f1c9c8 !important; color: #c8938f; }
.biletler-tablo tr.detay td { background: #fff; border: 1px solid var(--cizgi); border-top: 0; }
.detay-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 18px; font-size: 13px; }
.biletler-tablo .ac { border: 0; background: none; color: #8aa0b3; font-size: 18px; cursor: pointer; width: 18px; padding: 0; }
.biletler-tablo a.voucher { color: #1c4b70; font-weight: 600; border-bottom: 1px dashed #8bb0d0; }
.biletler-tablo tr.silindi a.voucher { color: #c8938f; }
.pickup { border: 1px solid #9fd5a8; background: #f7fdf8; border-radius: 4px; padding: 6px 8px; cursor: pointer; font: inherit; min-width: 54px; }
.bekliyor .pickup { border-color: #a9c7e8; background: #f6faff; }
.pickup.bos { color: var(--kirmizi); }
.pickup[disabled] { opacity: .5; cursor: default; }
input.pickup-giris { width: 90px; }
.kopyala { border: 1px solid #c8d0d8; background: #fff; border-radius: 3px; cursor: pointer; font-size: 12px; padding: 0 4px; }
.rozet { display: inline-block; border-radius: 3px; padding: 3px 7px; font-size: 12px; color: #fff; border: 0; }
.rozet.yesil { background: #1f9e70; }
.rozet.kirmizi { background: var(--kirmizi); }
.rozet.mavi { background: var(--mavi); }
.rozet.mor { background: var(--mor); }
.rozet.sari { background: var(--sari); cursor: pointer; }
.pas-dugme { border: 0; border-radius: 4px; padding: 7px 12px; font: inherit; font-size: 12px; cursor: pointer; min-width: 120px; background: #1d3557; color: #fff; }
.pas-dugme.adim1 { background: #d7f0df; color: #23643a; }
.pas-dugme.paslandi { background: #d4efdc; color: #1d5a32; font-weight: 600; }
.pas-dugme small { font-weight: 400; opacity: .7; }
.log-tablo .eski { color: var(--kirmizi); text-decoration: line-through; }
.log-tablo .yeni { color: #1e9e57; }
.sayfalar { margin-top: 12px; display: flex; gap: 6px; }

/* Kanal (GYG/Viator) */
.bildirim.turuncu { background: #fff0e0; border-color: #f5b56b; color: #8a4500; }
.biletler-tablo tr.uyarili td { background: #fff0e0 !important; border-color: #f5b56b !important; }
.uyari-yazi { margin-top: 4px; font-size: 12px; color: #8a4500; font-weight: 600; }
.rozet.koyu { background: #3d4b59; }
a.rozet { text-decoration: none; }
.tablo td.kisalt { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tablo tr.mail-basarili td { background: #f1faf4; }
.tablo tr.mail-hatali td { background: #fdecea; }
.tablo tr.mail-iptal td { background: #fbeaea; }
.tablo tr.mail-degisiklik td { background: #eaf2fb; }
.tablo tr.sari-satir td { background: #fff8e6; }
pre.veri { white-space: pre-wrap; font-size: 12px; background: #f6f8fa; padding: 10px; border-radius: 4px; margin: 0; max-height: 360px; overflow: auto; }
.filtre-satir .bosluk { flex: 1; }
.filtre-satir.yukle { border-top: 1px dashed var(--cizgi); padding-top: 10px; }
.filtre-satir.yukle label { min-width: 420px; }

/* Elle kopyalama penceresi */
.pencere-arka { position: fixed; inset: 0; background: rgba(20,30,40,.45); z-index: 100; display: grid; place-items: center; padding: 20px; }
.pencere { background: #fff; border-radius: 6px; padding: 18px 20px; width: min(1000px, 100%); max-height: 92vh; overflow: auto; }
.pencere h3 { margin-top: 0; }
.pencere-icerik img.bilet-resim { width: 100%; height: auto; border: 1px solid var(--cizgi); }
.pencere-icerik textarea { font-family: Consolas, monospace; }

/* Aramalı açılır liste */
.secici { position: relative; }
.secici-goster { display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: #fff; border: 1px solid #c8d0d8; border-radius: 3px; padding: 7px 9px; min-height: 36px; user-select: none; }
.secici-goster::after { content: "▾"; color: #8a97a4; margin-left: 8px; }
.secici-goster.bos { color: #8a97a4; }
.secici.kapali .secici-goster { background: #eef1f4; color: #8a97a4; cursor: default; }
.secici-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: #fff; border: 1px solid #9fb6cc; border-radius: 0 0 4px 4px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.secici-panel input { border: 0; border-bottom: 1px solid var(--cizgi); border-radius: 0; }
.secici-liste { max-height: 280px; overflow-y: auto; }
.secici-liste div { padding: 6px 10px; cursor: pointer; }
.secici-liste div.aktif, .secici-liste div:hover { background: #5897fb; color: #fff; }
.secici-liste div.yok { color: var(--soluk); cursor: default; background: none; }

/* Giriş */
.giris-sayfa { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--lacivert); }
.giris-kutu { background: #fff; padding: 26px 28px; border-radius: 6px; width: min(380px, 100%); }
.giris-kutu h1 { margin: 0 0 14px; font-size: 22px; }
.giris-kutu label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 13px; }
.giris-kutu input { margin-top: 4px; }
.giris-kutu .btn { width: 100%; padding: 10px; margin-top: 6px; }

@media (max-width: 900px) {
  .yan { display: none; }
  body.menu-kapali .yan { display: block; }
  .govde { margin-left: 0; }
  .form > label, .form fieldset label, .form .iki-sutun > label { grid-template-columns: 1fr; }
  .form > label > span, .form fieldset label > span { text-align: left; }
  .kisiler, .satir-grup { margin-left: 0; }
  .iki-sutun, .izgara-3, .izgara-4 { grid-template-columns: 1fr; }
}
