/* SpeedyGo Restoran paneli — app.css üzerine. Üst çubukta sekmeler (bilgisayar/tablet), mobilde alt sekme + yuvarlak "+". */
.r-tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 650; color: var(--red-ink); background: var(--red-soft); padding: 3px 9px; border-radius: 10px; }
.r-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.r-top { gap: 20px; padding: 0 24px; }
.r-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.r-name { display: grid; min-width: 0; padding-left: 14px; border-left: 1px solid var(--line); }
.r-name b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.r-name span { color: var(--muted); font-size: 12px; }
.r-tabs { display: flex; gap: 2px; margin-left: 8px; }
.r-tabs a { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.r-tabs a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.r-tabs a:hover { background: var(--soft); }
.r-tabs a.on { background: var(--soft); color: var(--ink); }
.r-tabs a.on svg { color: var(--red); }
.r-new { height: 40px; padding: 0 16px 0 12px; margin: 0 6px; }
.r-new .plus { font-size: 20px; line-height: 1; font-weight: 500; }
.r-main { max-width: 1480px; margin: 0 auto; }
.r-fab { display: none; }
.show-m-block { display: none; }

/* ── Pano ── */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.bcol { background: var(--soft); border-radius: 14px; padding: 10px; min-height: 160px; }
.bcol > header { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.bcol > header b { font-size: 13.5px; }
.count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.bempty { padding: 26px 8px; text-align: center; color: var(--muted); }
.ocard { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; display: grid; gap: 6px; transition: border-color 0.15s, box-shadow 0.15s; }
.ocard:hover { border-color: #d6d8dd; box-shadow: var(--shadow); }
.ocard.late { box-shadow: inset 3px 0 0 var(--red); }
.oc-top { display: flex; align-items: center; gap: 8px; }
.oc-top b { font-size: 15px; }
.oc-top .grow { flex: 1; }
.oc-top .r { text-align: right; font-size: 12.5px; }
.oc-cust { font-weight: 650; }
.oc-addr { color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 550; flex-wrap: wrap; }
.oc-courier { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.oc-courier svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn.sm-block { height: 38px; margin-top: 4px; }

/* ── Sipariş adımları ── */
.steps { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; color: var(--muted); position: relative; }
.steps li i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #c7c9ce; background: var(--white); margin-left: 3px; z-index: 1; }
.steps li::before { content: ''; position: absolute; left: 7px; top: -6px; height: 12px; width: 2px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done i { border-color: var(--green); background: var(--green); }
.steps li b { font-weight: 600; color: var(--muted); }

/* ── Yeni sipariş formu ── */
.order-drawer .body { padding-bottom: 0; }
.order-form { display: grid; gap: 4px; }
.of-sec { padding: 14px 0 6px; border-top: 1px solid var(--line-2); }
.of-sec:first-of-type { border-top: 0; padding-top: 4px; }
.of-sec h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.of-foot { z-index: 5; position: sticky; bottom: 0; background: var(--white); padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); margin-top: 6px; }
.big-seg { display: flex; width: 100%; }
.big-seg button { flex: 1; height: 40px; }
.input.amount { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cust-box { margin: -4px 0 10px; padding: 10px 12px; background: var(--soft); border-radius: 10px; display: grid; gap: 8px; }
.cust-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cust-note { font-size: 13px; color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 18px; padding: 7px 12px; text-align: left; cursor: pointer; font-size: 13px; max-width: 100%; }
.chip:hover { border-color: var(--ink); }
.chip small { color: var(--muted); }
.addr-wrap { position: relative; }
.sugg { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-l); max-height: 300px; overflow: auto; padding: 4px; }
.sg-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; border: 0; background: none; padding: 10px; border-radius: 8px; text-align: left; cursor: pointer; }
.sg-item:hover, .sg-item:focus { background: var(--soft); outline: none; }
.sg-item .grow { flex: 1; min-width: 0; }
.sg-item small { display: block; color: var(--muted); font-size: 12px; }
.sg-ico { width: 22px; flex: none; text-align: center; color: var(--muted); }
.sg-ico.saved { color: var(--red); }
.sg-state { padding: 10px; color: var(--muted); font-size: 13px; }
.map-wrap { position: relative; margin-bottom: 12px; isolation: isolate; z-index: 0; }
.order-map { height: 260px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f3f3f4; isolation: isolate; }
.pin-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 500; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 16px; pointer-events: none; white-space: nowrap; }
.drop-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--red); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
.balance-card { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-bottom: 16px; }
.balance-card > div { display: grid; gap: 4px; }
.balance-card .big-b { font-size: 18px; }
.balance-card p { grid-column: 1 / -1; margin: 0; }

/* ── Tablet ── */
@media (max-width: 1199px) {
  .r-tabs a span { display: none; }
  .r-name b { max-width: 150px; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

/* ── Telefon ── */
@media (max-width: 767px) {
  .r-top { padding: 0 8px 0 14px; gap: 8px; }
  .r-tabs, .r-new, .r-name span { display: none; }
  .r-name { padding-left: 10px; }
  .r-name b { max-width: 150px; font-size: 13.5px; }
  .r-brand .brand { font-size: 18px; }
  .r-fab {
    display: grid; place-items: center; position: fixed; z-index: 41; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom));
    width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 30px; font-weight: 400; line-height: 1;
    box-shadow: 0 6px 18px rgba(227, 18, 43, 0.35); cursor: pointer;
  }
  .show-m-block { display: block; margin-bottom: 10px; }
  .show-m-block .seg { width: 100%; }
  .show-m-block .seg button { flex: 1; }
  .board { grid-template-columns: 1fr; }
  .bcol { display: none; }
  .bcol.on { display: block; }
  .order-map { height: 220px; }
  .balance-card { grid-template-columns: 1fr; }
  .sugg { max-height: 240px; }
  .list-card .row.static { flex-wrap: wrap; }
  .list-card .row.static .grow { flex-basis: 100%; }
  .list-card .row.static .grow b { white-space: normal; }
}

/* ── Fiş yazdırma: yalnızca fiş görünür (80 mm termal + normal yazıcı) ── */
#print-area { display: none; }
@media print {
  @page { margin: 4mm; }
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; }
  .receipt { width: 72mm; font: 12px/1.35 ui-monospace, Menlo, Consolas, monospace; color: #000; }
  .receipt .p-center { text-align: center; }
  .receipt .p-title { font-size: 15px; font-weight: 700; }
  .receipt .p-big { font-size: 16px; font-weight: 700; margin: 2px 0; }
  .receipt .p-sep { border-top: 1px dashed #000; margin: 6px 0; }
  .receipt .p-label { font-size: 10px; letter-spacing: 0.08em; margin-top: 4px; }
  .receipt .p-strong { font-weight: 700; }
  .receipt .p-line { display: flex; justify-content: space-between; gap: 8px; }
  .receipt .p-small { font-size: 10px; }
  /* Ekstre "Yazdır": menüleri gizle, içeriği yaz */
  body:not(.printing) .top, body:not(.printing) .tabbar, body:not(.printing) .r-fab, body:not(.printing) .toolbar, body:not(.printing) .head .tools { display: none !important; }
  body:not(.printing) .table-wrap { border: 0; overflow: visible; }
}
