/* İşletme paneli — Vitrolo dili (iletişim uygulaması v2.2 renkleri). Telefon + tablet + masaüstü. */
:root { --mavi: #2F5BEA; --mavi-k: #2449C4; --mavi-s: #E9EFFE; --lacivert: #16213E; --bg: #F5F7FB; --yuz: #FFFFFF; --yuz2: #F0F3F9; --cizgi: #E2E7F0;
  --yazi: #121A33; --yazi2: #3B4560; --soluk: #5C6680; --ok: #137A4B; --ok-s: #E3F4EA; --uyari: #8A5300; --uyari-s: #FFF1D6; --kotu: #B42318; --kotu-s: #FDECEA;
  --r: 14px; --r-s: 10px; --g1: 0 1px 2px rgba(18,26,51,.05); --g2: 0 10px 30px -12px rgba(18,26,51,.22), 0 2px 6px rgba(18,26,51,.06); }
body { background: var(--bg); color: var(--yazi); }
.bekle { padding: 40vh 0; text-align: center; color: var(--soluk); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--r-s); border: 1px solid transparent; background: var(--mavi); color: #fff; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn:hover { background: var(--mavi-k); }
.btn.ik { background: var(--yuz); color: var(--yazi); border-color: var(--cizgi); } .btn.ik:hover { background: var(--yuz2); }
.btn.ok { background: var(--ok); } .btn.kotu { background: var(--kotu); } .btn.kucuk { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.btn.tam { width: 100%; }
input, select, textarea { min-height: 44px; padding: 8px 12px; border-radius: var(--r-s); border: 1px solid var(--cizgi); background: var(--yuz); width: 100%; }
textarea { min-height: 80px; } input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--mavi); padding: 0; }
label.f { display: grid; gap: 4px; font-weight: 700; font-size: 13.5px; margin: 10px 0; color: var(--yazi2); }
label.c { display: flex; gap: 10px; align-items: center; min-height: 40px; font-weight: 600; }
.ipucu { font-size: 13px; color: var(--soluk); font-weight: 500; }
.hata-m { color: var(--kotu); font-weight: 700; font-size: 14px; min-height: 1em; }

/* ---------- giriş ---------- */
.giris { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 10% -10%, #DCE5FF, transparent), var(--bg); }
.giris-k { width: min(420px, 100%); background: var(--yuz); border-radius: 20px; padding: 28px 24px; box-shadow: var(--g2); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; margin-bottom: 18px; }
.logo i { width: 34px; height: 34px; border-radius: 10px; background: var(--mavi); display: grid; place-items: center; color: #fff; font-style: normal; }
.qrkut { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; margin: 10px 0; }
.qrkut svg { width: 180px; height: 180px; }
code { font: 13px/1.4 ui-monospace, Menlo, monospace; background: var(--yuz2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---------- kabuk ---------- */
.ust { position: sticky; top: 0; z-index: 60; background: var(--lacivert); color: #EEF2FF; }
.ust-ic { display: flex; align-items: center; gap: 10px; padding: 8px 14px; min-height: 56px; flex-wrap: wrap; }
.ust .ad { font-weight: 800; letter-spacing: -.01em; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.ust select { width: auto; min-height: 38px; background: #1C2A52; color: #fff; border-color: #2B3B6B; }
.ust .ib { min-height: 38px; min-width: 38px; border-radius: 10px; border: 1px solid #2B3B6B; background: #1C2A52; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; font-weight: 700; font-size: 13px; }
.baglanti { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #C9D3EE; }
.baglanti::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5FD39A; }
.baglanti.yok::before { background: #F2C26B; }
.demo-bant { background: #FFF3D1; color: #4A3700; text-align: center; font-weight: 700; font-size: 13px; padding: 6px 12px; }
nav.sekme { display: flex; gap: 4px; overflow-x: auto; padding: 0 10px; background: var(--lacivert); scrollbar-width: none; }
nav.sekme::-webkit-scrollbar { display: none; }
nav.sekme button { flex: none; min-height: 44px; border: 0; background: transparent; color: #A9B6DA; font-weight: 700; padding: 8px 12px; border-bottom: 3px solid transparent; display: inline-flex; gap: 6px; align-items: center; }
nav.sekme button[aria-current="page"] { color: #fff; border-bottom-color: #6B93FF; }
nav.sekme .say { background: #FF6A4D; color: #111; border-radius: 99px; padding: 0 7px; font-size: 12px; }
main { padding: 16px; max-width: 1400px; margin: 0 auto; }
h1.bas { font-size: 22px; margin: 4px 0 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kart { background: var(--yuz); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 16px; box-shadow: var(--g1); }
.izgara { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.satir { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.yay { flex: 1; } .sag { margin-left: auto; }
.rozet { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 2px 9px; background: var(--yuz2); color: var(--yazi2); }
.rozet.ok { background: var(--ok-s); color: var(--ok); } .rozet.uyari { background: var(--uyari-s); color: var(--uyari); } .rozet.kotu { background: var(--kotu-s); color: var(--kotu); } .rozet.mavi { background: var(--mavi-s); color: var(--mavi-k); }

/* ---------- sipariş panosu ---------- */
.cagrilar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cagri { display: flex; align-items: center; gap: 10px; background: #FFF1D6; border: 2px solid #F2C26B; color: #5A3A00; border-radius: 12px; padding: 8px 10px 8px 14px; font-weight: 800; animation: cg 1.2s ease-in-out infinite; }
.cagri.hesap { background: #E9EFFE; border-color: #9DB6FF; color: #1D3A9E; }
@keyframes cg { 50% { box-shadow: 0 0 0 6px rgba(242,194,107,.25); } }
.pano { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1100px) { .pano { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pano { grid-template-columns: 1fr; } }
.kolon { background: var(--yuz2); border-radius: var(--r); padding: 10px; min-height: 120px; }
.kolon h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--soluk); display: flex; justify-content: space-between; padding: 4px 4px 10px; }
.sip { background: var(--yuz); border-radius: 12px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--cizgi); box-shadow: var(--g1); cursor: pointer; display: grid; gap: 6px; text-align: left; width: 100%; color: inherit; }
.sip.yeni { border: 2px solid #FF6A4D; animation: yp 1s ease-in-out 6; }
@keyframes yp { 50% { background: #FFF0EC; } }
.sip .no { font-size: 20px; font-weight: 800; }
.sip .ust2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sip .kalemler { font-size: 14px; color: var(--yazi2); }
.sip .alt2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--soluk); }
.sip .dugmeler { display: flex; gap: 6px; flex-wrap: wrap; }
.bos { color: var(--soluk); font-size: 14px; padding: 10px 4px; }

/* ---------- tablo ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--soluk); padding: 8px; border-bottom: 1px solid var(--cizgi); }
table.t td { padding: 8px; border-bottom: 1px solid var(--cizgi); vertical-align: middle; }
.tw { overflow-x: auto; }
.fiyatg { width: 110px; min-height: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.anahtar { position: relative; width: 48px; height: 28px; flex: none; }
.anahtar input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.anahtar span { position: absolute; inset: 0; border-radius: 99px; background: #C9D0DE; transition: .15s; }
.anahtar span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.anahtar input:checked + span { background: var(--ok); } .anahtar input:checked + span::after { transform: translateX(20px); }
.anahtar input:focus-visible + span { outline: 3px solid var(--mavi); outline-offset: 2px; }
.anahtar.kotu input:checked + span { background: var(--kotu); }

/* ---------- rapor ---------- */
.kpi { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 14px; }
.kpi .kart b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .kart span { color: var(--soluk); font-size: 13px; font-weight: 700; }
.saatler { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 140px; padding-top: 10px; }
.saatler i { background: var(--mavi); border-radius: 4px 4px 0 0; min-height: 2px; display: block; }
.saatler-et { display: grid; grid-template-columns: repeat(24, 1fr); font-size: 10px; color: var(--soluk); text-align: center; }

/* ---------- tema seçici ---------- */
.tema { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tema label { border: 2px solid var(--cizgi); border-radius: 12px; padding: 8px; cursor: pointer; display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; }
.tema label:has(input:checked) { border-color: var(--mavi); box-shadow: 0 0 0 3px var(--mavi-s); }
.tema input { position: absolute; opacity: 0; }
.tema .on { height: 54px; border-radius: 8px; display: flex; align-items: flex-end; padding: 6px; gap: 4px; }
.tema .on i { display: block; height: 14px; border-radius: 4px; }

/* ---------- dialog ---------- */
dialog#dlg { border: 0; padding: 0; border-radius: 18px; width: min(640px, 96vw); max-height: 92vh; overflow: auto; box-shadow: var(--g2); }
dialog::backdrop { background: rgba(11,18,38,.55); }
.d-bas { position: sticky; top: 0; background: var(--yuz); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--cizgi); z-index: 2; }
.d-bas h2 { font-size: 19px; }
.d-ic { padding: 14px 16px 20px; }
.ikb { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--cizgi); background: var(--yuz); display: grid; place-items: center; }
.kalem { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--cizgi); }
.kalem small { display: block; color: var(--soluk); }
.zaman { display: grid; gap: 4px; font-size: 13px; color: var(--soluk); margin-top: 10px; }

/* ---------- yazdırma: mutfak fişi (80 mm) ve masa kartları ---------- */
#fis, #baski { display: none; }
@media print {
  body.fis-yazdir > *:not(#fis), body.baski-yazdir > *:not(#baski) { display: none !important; }
  body.fis-yazdir #fis { display: block; width: 72mm; font: 12px/1.35 ui-monospace, Menlo, monospace; color: #000; }
  body.baski-yazdir #baski { display: block; }
  @page { margin: 6mm; }
}
#fis h3 { font-size: 16px; margin: 0 0 4px; } #fis .ay { border-top: 1px dashed #000; margin: 6px 0; }
.mkart-sayfa { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; page-break-after: always; }
.mkart { width: 95mm; height: 135mm; border: 1px solid #ccc; border-radius: 6mm; padding: 9mm 8mm; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; font-family: "Jakarta", sans-serif; color: #111; break-inside: avoid; }
.mkart .mk-ad { font-size: 15pt; font-weight: 800; letter-spacing: -.01em; }
.mkart .mk-no { font-size: 40pt; font-weight: 800; line-height: 1; }
.mkart svg { width: 52mm; height: 52mm; }
.mkart .mk-alt { font-size: 9.5pt; font-weight: 600; }
.mkart .mk-vit { font-size: 7.5pt; color: #555; }
