/* Saltuk Yönetim Paneli (SITE-A). Görsel varlık kullanılmaz (yalnız CSS); site paletinden altın/kahve vurgu.
   Masaüstü: sol menü + içerik. <= 760px: menü üstte açılır, tablolar yatay kaydırılır (375px kabul karesi). */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #15120f; color: #e8e1d6;
}
a { color: #e0b65a; }
h1 { font-size: 20px; margin: 0 0 14px; color: #f3d48c; font-weight: 600; }
h2 { font-size: 16px; margin: 20px 0 10px; color: #e9c97c; font-weight: 600; }
h3 { font-size: 14px; margin: 14px 0 8px; color: #d9c08a; }
[hidden] { display: none !important; }

.kabuk { display: grid; grid-template-columns: 210px 1fr; grid-template-rows: 48px 1fr; min-height: 100vh; }
.ust {
  grid-column: 1 / 3; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: #241c14; border-bottom: 1px solid #4a3a26;
}
.marka { font-size: 16px; color: #f3d48c; letter-spacing: .3px; }
.marka b { color: #fff; font-weight: 600; }
#CikisDugme { margin-left: auto; }
.kimlik:not([hidden]) + #CikisDugme { margin-left: 0; }
.izgara > a { text-decoration: none; color: inherit; }
.islem { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
input, select { min-height: 36px; }
.kimlik { margin-left: auto; color: #bfb29c; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-dugme { display: none; background: none; border: 0; color: #f3d48c; font-size: 22px; cursor: pointer; padding: 4px 6px; }
.menu { background: #1c1712; border-right: 1px solid #3a2d1e; padding: 10px 0; }
.menu a {
  display: block; padding: 9px 18px; color: #d8ccb8; text-decoration: none; border-left: 3px solid transparent;
}
.menu a:hover { background: #2a2118; }
.menu a.etkin { background: #2f2419; color: #f3d48c; border-left-color: #e0b65a; }
.gorunum { padding: 20px 24px 60px; min-width: 0; outline: none; }
.kabuk.girissiz { grid-template-columns: 1fr; }
.kabuk.girissiz .ust { grid-column: 1; }

/* kartlar ve formlar */
.kart { background: #1f1913; border: 1px solid #3a2d1e; border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.giris-kart { max-width: 380px; margin: 40px auto; }
.izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.sayi-kart { background: #241c14; border: 1px solid #3a2d1e; border-radius: 6px; padding: 12px 14px; }
.sayi-kart .etiket { color: #a99b84; font-size: 12px; }
.sayi-kart .deger { font-size: 22px; color: #f3d48c; margin-top: 2px; }
.form-satir { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.alan { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.alan.genis { flex: 1 1 260px; }
.alan > span { font-size: 12px; color: #a99b84; }
input, select, textarea {
  font: inherit; color: #f1ebe1; background: #120f0c; border: 1px solid #4a3a26; border-radius: 4px;
  padding: 7px 9px; min-width: 0; max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #8a6a2e; outline-offset: 0; }
textarea { width: 100%; min-height: 140px; resize: vertical; }
.giris-kart input { width: 100%; }
.giris-kart .alan { margin-bottom: 10px; }
.onay-kutu { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #d8ccb8; }

.dugme {
  font: inherit; cursor: pointer; border-radius: 4px; padding: 7px 14px; border: 1px solid #8a6a2e;
  background: linear-gradient(#5a4321, #3d2d16); color: #f8e7bf;
}
.dugme:hover { background: linear-gradient(#6b5028, #4a361a); }
.dugme:disabled { opacity: .5; cursor: default; }
.dugme.ince { padding: 4px 10px; font-size: 13px; }
.dugme.tehlike { border-color: #8f3a2c; background: linear-gradient(#6a281e, #4a1a13); color: #ffd9cf; }
.dugme.ikincil { border-color: #4a3a26; background: #241c14; color: #d8ccb8; }
.dugme.tam { width: 100%; }

.sekmeler { display: flex; gap: 4px; border-bottom: 1px solid #3a2d1e; margin-bottom: 14px; flex-wrap: wrap; }
.sekmeler a { padding: 7px 14px; color: #bfb29c; text-decoration: none; border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; }
.sekmeler a.etkin { color: #f3d48c; background: #1f1913; border-color: #3a2d1e; }

/* tablolar */
.tablo-kap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #3a2d1e; border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid #2e2419; white-space: nowrap; vertical-align: top; }
th { background: #241c14; color: #d9c08a; font-weight: 600; position: sticky; top: 0; }
tr:hover td { background: #1d1813; }
td.sar { white-space: normal; min-width: 160px; max-width: 520px; word-break: break-word; }
td.sayi, th.sayi { text-align: right; font-variant-numeric: tabular-nums; }
td.bos { text-align: center; color: #8b7f6c; padding: 18px; }
tr.tikla { cursor: pointer; }
.pozitif { color: #8fd18a; }
.negatif { color: #f08a7a; }
.soluk { color: #8b7f6c; }
.kod { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

.rozet { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 12px; background: #3a2d1e; color: #e8e1d6; }
.rozet.yesil { background: #1f4a25; color: #bff0b8; }
.rozet.kirmizi { background: #5a1f18; color: #ffcfc5; }
.rozet.sari { background: #5a4518; color: #ffe8a8; }
.rozet.mavi { background: #1d3a55; color: #c6e2ff; }

.sayfalama { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.mesaj { padding: 9px 12px; border-radius: 4px; margin: 10px 0; font-size: 13px; }
.mesaj.hata { background: #4a1a13; border: 1px solid #8f3a2c; color: #ffd9cf; }
.mesaj.bilgi { background: #2a2118; border: 1px solid #4a3a26; color: #e8e1d6; }
.mesaj.basari { background: #18361b; border: 1px solid #2f6a35; color: #cff3c9; }
.yukleniyor { color: #a99b84; }
.anahtar-kutu { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; letter-spacing: 1px;
  background: #120f0c; border: 1px dashed #8a6a2e; padding: 10px; border-radius: 4px; word-break: break-all; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.dl dt { color: #a99b84; }
.dl dd { margin: 0; word-break: break-word; }
.dl + .form-satir { margin: 14px 0 0; }
.hata-liste { margin: 4px 0 0; padding-left: 18px; color: #f0a090; font-size: 12px; }

/* grafik */
.grafik { width: 100%; height: auto; display: block; }
.grafik .eksen { stroke: #4a3a26; stroke-width: 1; }
.grafik .izgara-cizgi { stroke: #2e2419; stroke-width: 1; }
.grafik .yazi { fill: #a99b84; font-size: 11px; }
.grafik .cizgi1 { fill: none; stroke: #e0b65a; stroke-width: 2; }
.grafik .cizgi2 { fill: none; stroke: #7fb2e5; stroke-width: 1.5; stroke-dasharray: 4 3; }
.grafik .cubuk1 { fill: #b88a3a; }
.grafik .cubuk2 { fill: #5f8fbf; }
.grafik .cubuk3 { fill: #a04535; }
.lejant { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #bfb29c; margin-top: 6px; }
.lejant i { display: inline-block; width: 12px; height: 4px; margin-right: 5px; vertical-align: middle; }

/* iletişim kutusu */
.perde { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.kutu { background: #1f1913; border: 1px solid #6a5230; border-radius: 6px; padding: 18px; width: 100%; max-width: 440px; }
.kutu .dugmeler { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.kutu input, .kutu select, .kutu textarea { width: 100%; }
.kutu .alan { margin-bottom: 10px; }
.bildirim { position: fixed; right: 16px; bottom: 16px; max-width: 360px; z-index: 30; }
.bildirim .mesaj { box-shadow: 0 4px 16px rgba(0,0,0,.5); }

@media (max-width: 760px) {
  .kabuk { grid-template-columns: 1fr; grid-template-rows: 48px auto 1fr; }
  .ust { grid-column: 1; padding: 0 10px; gap: 8px; }
  .menu-dugme { display: block; }
  .menu { border-right: 0; border-bottom: 1px solid #3a2d1e; padding: 4px 0; }
  .menu.kapali { display: none; }
  .gorunum { padding: 14px 12px 60px; }
  .kimlik { font-size: 12px; max-width: 40vw; }
  .form-satir > .alan { flex: 1 1 140px; }
  .form-satir > .alan input, .form-satir > .alan select { width: 100%; }
  .giris-kart { margin: 16px auto; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 6px; }
}
