/* Lokanta tasarım sistemi
   Malzemeler: beyaz duvar fayansı, İstanbul mavi emaye tabela, paslanmaz çelik, termal fiş, sıramatik LED. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/static/fonts/barlow-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BA, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/static/fonts/barlow-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BA, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BA, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BA, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BA, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BA, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Kufi Arabic"; font-weight: 400; font-display: swap; src: url(/static/fonts/noto-kufi-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Kufi Arabic"; font-weight: 600; font-display: swap; src: url(/static/fonts/noto-kufi-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Kufi Arabic"; font-weight: 700; font-display: swap; src: url(/static/fonts/noto-kufi-arabic-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "DSEG7"; font-weight: 700; font-display: block; src: url(/static/fonts/DSEG7Classic-Bold.woff2) format("woff2"); }

:root {
  /* fayans ve derz */
  --tile: #f2f4f3;
  --grout: #d3d9dc;
  --paper: #ffffff;
  /* emaye tabela */
  --enamel: #1c3f94;
  --enamel-deep: #12296a;
  --on-enamel: #ffffff;
  /* mürekkep */
  --ink: #18212c;
  --ink-2: #4a5663;
  --muted: #7a8692;
  /* çelik */
  --steel: #e4e8eb;
  --steel-line: #c6ced4;
  /* ışıklı tabela sarısı: adet rozetleri, fosforlu not */
  --sign: #f5c518;
  /* durum */
  --ok: #1d7a46;   --ok-bg: #dcefe3;
  --warn: #9a5b00; --warn-bg: #fbeccb;
  --bad: #b8352a;  --bad-bg: #f8dcd7;
  --info: #1c3f94; --info-bg: #e0e7f6;

  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", "Segoe UI", system-ui, sans-serif;
  --r-sm: 4px;
  --r-md: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--tile);
  color: var(--ink);
  font: 400 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .4; }
:focus-visible { outline: 3px solid var(--enamel); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
/* Arapça metin: Kufi yazı, Barlow'da Arapça harf yok */
:lang(ar) { font-family: "Noto Kufi Arabic", var(--sans); }
.cond { font-family: var(--cond); }

/* Emaye tabela: ekranın adı */
.plate {
  display: inline-flex; align-items: center;
  padding: 3px 14px 4px;
  background: var(--enamel); color: var(--on-enamel);
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px var(--enamel), inset 0 0 0 3.5px rgba(255,255,255,.9);
  font: 700 21px/1.1 var(--cond); letter-spacing: .01em;
  white-space: nowrap;
}

.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 16px; min-height: 58px;
  background: var(--paper); border-bottom: 1px solid var(--steel-line);
}
.topbar .spacer { flex: 1; }
.clock { font: 700 22px var(--cond); color: var(--ink-2); font-variant-numeric: tabular-nums; }

.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.conn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.conn.off { color: var(--bad); font-weight: 700; }
.conn.off::before { background: var(--bad); }

.banner-off {
  display: none; position: fixed; inset: 0 0 auto; z-index: 50;
  background: var(--bad); color: #fff; text-align: center; padding: 10px 16px; font-weight: 700;
}
body.offline .banner-off { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: var(--r-md);
  background: var(--paper); color: var(--ink); font-weight: 600;
  border: 1px solid var(--steel-line);
  user-select: none; -webkit-user-select: none;
  transition: transform .06s;
}
.btn:active:not(:disabled) { transform: translateY(1px); background: var(--steel); }
.btn.primary { background: var(--enamel); color: var(--on-enamel); border-color: var(--enamel-deep); }
.btn.primary:active:not(:disabled) { background: var(--enamel-deep); }
.btn.go { background: var(--ok); color: #fff; border-color: #145c34; }
.btn.go:active:not(:disabled) { background: #145c34; }
.btn.quiet { background: transparent; border-color: transparent; }
.btn.danger { color: var(--bad); }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 15px; border-radius: 8px; }

.input {
  width: 100%; min-height: 46px; padding: 8px 12px;
  border: 1px solid var(--steel-line); border-radius: 8px; background: var(--paper);
}
.input:focus { outline: 3px solid var(--enamel); outline-offset: -1px; border-color: transparent; }

.pill {
  display: inline-flex; align-items: center;
  padding: 1px 9px 2px; border-radius: 5px;
  font: 600 14px/1.4 var(--sans); white-space: nowrap;
}
.pill.alindi { background: var(--info-bg); color: var(--info); }
.pill.mutfakta { background: var(--warn-bg); color: var(--warn); }
.pill.tamamlandi, .pill.odendi { background: var(--ok-bg); color: var(--ok); }
.pill.iptal { background: var(--bad-bg); color: var(--bad); }
.pill.odenmedi { background: var(--steel); color: var(--ink-2); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: var(--r-md);
  background: var(--ink); color: #fff; font-weight: 600;
  transition: opacity .18s, transform .18s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); }

.empty { color: var(--muted); text-align: center; padding: 32px 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
