/* İŞ 128: "Kömür + Kiremit" yeni tasarım. YALNIZ <html class="yt"> iken (işletme bayrağı business_features.yeni_tasarim) etkindir;
   bayrak kapalıyken bu dosyadaki hiçbir kural uygulanmaz. Renk/boyut TEK yerde (aşağıdaki :root.yt değişkenleri); ekranlarda sabit renk kodu
   kullanılmaz. Turuncu YALNIZ marka/eylem rengidir; durumlar her ekranda aynı: yeşil normal, hardal sipariş zamanı/dikkat, kırmızı kritik/hata,
   mavi bilgi. Yazı tipleri kendi sunucumuzda (/fonts). Referans: docs/arayuz-ornekleri/ana-sayfa-P1-*.png, stil-C-*.png. Marka kılavuzu: docs/MARKA-RENKLERI.md */

/* ---- 1. Tasarım dili: değişkenler ------------------------------------------------------------------------------------------- */
:root.yt {
  --bg: #f8f5f1;
  --surface: #ffffff;
  --surface-alt: #faf7f3;
  --surface-hover: #f5f0ea;
  --border: #ece5dd;
  --border-strong: #ddd2c6;
  --text: #1f1a17;
  --text-soft: #4f463f;
  --muted: #7a7069;
  --muted-soft: #a89f97;

  --pri: #d9541e;            /* marka turuncusu: simge, vurgu, büyük başlıklı kutular */
  --pri-btn: #c94b1b;        /* BEYAZ yazılı düğmeler (kontrast >= 4.5) */
  --pri-dark: #b8441a;       /* hover, gradyan sonu, turuncu yazı */
  --pri-soft: #fbe9df;       /* simge zeminleri, seçili satır */
  --primary: #c94b1b;
  --primary-dark: #b8441a;
  --primary-light: #d9541e;
  --primary-soft: #fbe9df;
  --primary-contrast: #ffffff;
  --brand: #d9541e;
  --brand-dark: #b8441a;
  --brand-soft: #fbe9df;

  --ok: #2e8b57;   --ok-dark: #1f6b42;   --ok-soft: #e4f3ea;
  --warn: #b7791f; --warn-soft: #fbf0d9;
  --accent: #b7791f; --accent-dark: #8a5a14; --accent-soft: #fbf0d9;
  --danger: #c53030; --danger-dark: #9b2323; --danger-soft: #fbe3e3;
  --info: #2b6cb0; --info-soft: #e3edf8;
  --accent-blue: #2b6cb0; --accent-blue-soft: #e3edf8;

  --side: #1f1a17;
  --side-ink: #bfb3a8;
  --sidebar-bg: #1f1a17; --sidebar-bg-2: #1f1a17;
  --sidebar-text: #bfb3a8; --sidebar-text-active: #ffffff;
  --sidebar-active-bg: #d9541e; --sidebar-border: rgba(255, 255, 255, 0.08);

  --radius: 12px;          /* düğme ve kutu */
  --radius-sm: 8px;
  --radius-lg: 20px;       /* kart köşesi 18-22 */
  --shadow-sm: 0 1px 2px rgba(31, 26, 23, 0.04);
  --shadow-card: 0 1px 2px rgba(31, 26, 23, 0.04), 0 6px 18px -10px rgba(31, 26, 23, 0.1);
  --shadow-pop: 0 18px 40px -14px rgba(31, 26, 23, 0.28);
  --shadow-pri: 0 18px 32px -14px rgba(217, 84, 30, 0.55);   /* yalnız birincil kutuda belirgin turuncu gölge */

  --font: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", "Inter", -apple-system, "Segoe UI", sans-serif;

  /* masa modülü (mz-*) renkleri turuncu paletine */
  --mz-green: #d9541e; --mz-green-dark: #b8441a; --mz-green-soft: #fbe9df; --mz-green-line: #f1c8b3;
  --mz-amber: #b7791f; --mz-amber-soft: #fbf0d9; --mz-amber-line: #ecd29a; --mz-amber-text: #7c5210;
  --mz-gray: #a89f97; --mz-gray-soft: #ffffff; --mz-ink: #1f1a17;

  --yt-rail: 100px;
  --yt-ease: 180ms ease;
}

.yt body, html.yt body { background: var(--bg); color: var(--text); font-family: var(--font); }
.yt :focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.yt button:focus-visible, .yt a:focus-visible, .yt input:focus-visible, .yt select:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }

/* ---- 2. Ortak bileşenler (eski ekranlar yeni dile uyar) ------------------------------------------------------------------- */
.yt .card { background: var(--surface); border: 1px solid var(--border); border-top: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px 28px; }
.yt .card:hover { transform: none; box-shadow: var(--shadow-card); }
.yt .card h2, .yt .card-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--text); }
.yt h1, .yt h2, .yt h3 { font-family: var(--font-display); }
.yt button { border-radius: var(--radius); font-weight: 600; transition: background var(--yt-ease), border-color var(--yt-ease), transform var(--yt-ease), box-shadow var(--yt-ease); }
.yt button.primary, .yt .mz-btn.primary { background: var(--pri-btn); border-color: var(--pri-btn); color: #fff; }
.yt button.primary:hover, .yt .mz-btn.primary:hover:not(:disabled) { background: var(--pri-dark); border-color: var(--pri-dark); }
.yt button.secondary { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.yt button.secondary:hover { background: var(--surface-hover); border-color: var(--pri); }
.yt button.danger { color: var(--danger); border-color: var(--danger); }
/* İŞ 297 G5: onay penceresinin DOLGULU kırmızı düğmesi (.mz-btn.danger) yukarıdaki kenarlıklı "tehlike" kuralından etkilenmez: kırmızı zeminde kırmızı yazı (1,2:1) okunmuyordu. */
.yt .mz-btn.danger { background: #b42318; border-color: #b42318; color: #fff; }
.yt input, .yt select, .yt textarea { border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); }
.yt input:focus, .yt select:focus, .yt textarea:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-soft); }
.yt table th { background: var(--surface-alt); color: var(--muted); }
.yt .badge { gap: 6px; }
.yt .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.yt .badge.info { background: var(--info-soft); color: var(--info); }
.yt .notice-banner { border-radius: 14px; }
.yt .stat-box, .yt .kpi-tile { border-radius: var(--radius-lg); }
.yt .chip.on, .yt .mz-chip.on { background: var(--pri-soft); color: var(--pri-dark); border-color: var(--pri); }
.yt .empty-state { border-radius: 16px; }
.yt a { color: var(--pri-dark); }
@media (prefers-reduced-motion: reduce) { .yt * { transition: none !important; animation: none !important; } }

/* ---- 3. Kabuk: sol şerit, üst bar ------------------------------------------------------------------------------------------- */
.yt .yt-layout { display: flex; min-height: 100vh; background: var(--bg); }
.yt .yt-rail { width: var(--yt-rail); flex: 0 0 var(--yt-rail); background: var(--side); position: sticky; top: 0; height: 100vh; align-self: flex-start; display: flex; flex-direction: column; align-items: center; padding: 22px 0 18px; gap: 18px; overflow-y: auto; }
.yt .yt-logo { width: 58px; height: 58px; border-radius: 18px; background: var(--pri); color: #fff; display: grid; place-items: center; font: 700 1.25rem var(--font-display); letter-spacing: 0.01em; flex: none; }
.yt .yt-logo.sm { width: 38px; height: 38px; border-radius: 12px; font-size: .95rem; }
.yt .yt-nav { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 0 12px; }
.yt .yt-nav-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 4px; border-radius: 16px; color: var(--side-ink); font: 700 .74rem var(--font-display); letter-spacing: .01em; text-align: center; transition: background var(--yt-ease), color var(--yt-ease); }
.yt .yt-nav-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.yt .yt-nav-btn.active { background: var(--pri); color: #fff; }
.yt .yt-nav-btn:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.yt .yt-nav-ico { position: relative; display: grid; place-items: center; width: 28px; height: 28px; }
.yt .yt-nav-ico svg { width: 26px; height: 26px; opacity: 1; }
.yt .sidebar .yt-nav-btn svg, .yt .sidebar .yt-nav-btn.active svg { color: inherit; opacity: 1; }
.yt .yt-badge { position: absolute; top: -7px; right: -12px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font: 700 .72rem var(--font); display: grid; place-items: center; border: 2px solid var(--side); }
.yt .yt-nav-btn.active .yt-badge { border-color: var(--pri); }

.yt .yt-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.yt .yt-topbar { background: transparent; border: 0; padding: 22px 40px 6px; gap: 20px; position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; }
.yt .yt-top-left { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.yt .yt-mini-brand { display: none; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.yt .yt-biz { font: 500 1rem var(--font); color: var(--side-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt .yt-search { position: relative; width: min(520px, 100%); }
.yt .yt-search input { width: 100%; min-height: 52px; padding: 0 18px 0 50px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); font-size: 1rem; }
.yt .yt-search-ico { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; pointer-events: none; }
.yt .yt-search-ico svg { width: 20px; height: 20px; }
.yt .yt-search-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow: auto; }
.yt .yt-search-results[hidden], .yt .yt-pop[hidden], .yt .yt-sheet[hidden], .yt .yt-drawer[hidden], .yt .yt-sheet-backdrop[hidden] { display: none; }
.yt .yt-sr { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 11px 12px; min-height: 44px; border-radius: 10px; }
.yt .yt-sr:hover, .yt .yt-sr:focus-visible { background: var(--pri-soft); }
.yt .yt-sr small { color: var(--muted); }
.yt .yt-top-right { display: flex; align-items: center; gap: 14px; position: relative; }
.yt .yt-biz-select { width: auto; min-width: 180px; min-height: 48px; border-radius: 14px; font-weight: 600; background: var(--surface); }
.yt .yt-icon-btn { width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; background: transparent; border: 0; color: var(--text-soft); position: relative; display: grid; place-items: center; cursor: pointer; }
.yt .yt-icon-btn:hover { background: var(--surface); }
.yt .yt-icon-btn svg { width: 24px; height: 24px; }
.yt .yt-dot { position: absolute; top: 10px; right: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); border: 2px solid var(--bg); }
.yt .yt-user { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 4px 6px; border-radius: 999px; }
.yt .yt-user:hover { background: var(--surface); }
.yt .yt-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; }
.yt .yt-avatar svg { width: 22px; height: 22px; }
.yt .yt-user-txt { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.yt .yt-user-txt b { font: 600 .95rem var(--font-display); }
.yt .yt-user-txt small { color: var(--muted); font-size: .78rem; }
.yt .yt-pop { position: absolute; z-index: 40; right: 0; top: calc(100% + 8px); width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 10px; }
.yt .yt-bell-pop { right: 64px; }
.yt .yt-pop-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.yt .yt-pop-head small { color: var(--muted); }
.yt .yt-pop-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; width: 100%; padding: 12px; min-height: 44px; border-radius: 10px; font-weight: 600; align-items: center; }
.yt .yt-pop-item.two { flex-direction: column; align-items: flex-start; gap: 2px; }
.yt .yt-pop-item small { color: var(--muted); font-weight: 400; }
.yt .yt-pop-item:hover, .yt .yt-pop-item:focus-visible { background: var(--pri-soft); }
.yt .yt-pop-empty { margin: 0; padding: 14px; color: var(--muted); }
.yt .main.yt-main { max-width: 1400px; width: 100%; padding: 8px 40px 56px; animation: none; }

/* ---- 4. Ana sayfa -------------------------------------------------------------------------------------------------------------- */
.yt .yt-home-head { padding: 4px 0 18px; }
.yt .yt-date, .yt .yt-oz-head .yt-date { margin: 6px 0 4px; color: var(--muted); font-size: 1rem; text-transform: none; }
.yt .yt-home h1, .yt .yt-oz h1 { margin: 0; font: 700 clamp(1.7rem, 3.4vw, 2.5rem) var(--font-display); letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
.yt .yt-alert { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 18px; margin-bottom: 22px; border: 1px solid; }
.yt .yt-alert p { margin: 0; flex: 1; min-width: 0; font-size: 1rem; color: var(--text); }
.yt .yt-alert.bad { background: var(--danger-soft); border-color: #f3c5c5; }
.yt .yt-alert.warn { background: var(--warn-soft); border-color: #ecd29a; }
.yt .yt-alert-ico { display: grid; color: var(--danger); }
.yt .yt-alert.warn .yt-alert-ico { color: var(--warn); }
.yt .yt-alert-ico svg { width: 26px; height: 26px; }
.yt .yt-alert-act { all: unset; cursor: pointer; font: 700 1rem var(--font-display); color: var(--danger-dark); padding: 10px 6px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.yt .yt-alert.warn .yt-alert-act { color: var(--accent-dark); }
.yt .yt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.yt .yt-tile { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 270px; padding: 30px 32px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: transform var(--yt-ease), box-shadow var(--yt-ease); }
.yt .yt-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(31, 26, 23, .3); }
.yt .yt-tile:focus-visible { outline: 3px solid var(--pri); outline-offset: 3px; }
.yt .yt-tile-ico { width: 72px; height: 72px; border-radius: 20px; background: var(--pri-soft); color: var(--pri-dark, var(--pri)); display: grid; place-items: center; margin-bottom: auto; }
.yt .yt-tile-ico svg { width: 34px; height: 34px; }
.yt .yt-tile-arrow { position: absolute; top: 30px; right: 30px; color: var(--text-soft); display: grid; }
.yt .yt-tile-arrow svg { width: 24px; height: 24px; }
.yt .yt-tile-title { font: 600 1.75rem var(--font-display); letter-spacing: -.015em; margin-top: 14px; color: var(--text); }
.yt .yt-tile-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.35; }
.yt .yt-tile-badge { margin-top: 12px; }
.yt .yt-tile.primary { background: linear-gradient(150deg, #d9541e 0%, #bd431a 100%); border-color: transparent; color: #fff; box-shadow: var(--shadow-pri); }
.yt .yt-tile.primary .yt-tile-ico { background: rgba(255, 255, 255, .2); color: #fff; }
.yt .yt-tile.primary .yt-tile-title, .yt .yt-tile.primary .yt-tile-sub, .yt .yt-tile.primary .yt-tile-arrow { color: #fff; }
.yt .yt-tile.primary .yt-tile-sub { opacity: .92; }
.yt .yt-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; font: 600 .95rem var(--font-display); }
.yt .yt-pill i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.yt .yt-pill.ok { background: var(--ok-soft); color: var(--ok-dark); }
.yt .yt-pill.info { background: var(--info-soft); color: var(--info); }
.yt .yt-pill.warn { background: var(--warn-soft); color: #7c5210; }
.yt .yt-pill.bad { background: var(--danger-soft); color: var(--danger-dark); }
.yt .yt-pill.muted { background: #f1ece6; color: #5f564f; }
.yt .yt-pill.soft { background: rgba(255, 255, 255, .22); color: #fff; }
.yt .yt-strip { display: flex; align-items: center; gap: 0; margin-top: 24px; padding: 22px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-card); }
.yt .yt-strip > div { padding: 0 40px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.yt .yt-strip > div:first-child { padding-left: 0; border-left: 0; }
.yt .yt-strip small { color: var(--muted); font-size: .95rem; }
.yt .yt-strip b { font: 700 2rem var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.yt .yt-strip em { font-style: normal; color: var(--muted); font-size: .9rem; }
.yt .yt-strip em.up, .yt .yt-kpi em.up { color: var(--ok); font-weight: 700; }
.yt .yt-strip em.down, .yt .yt-kpi em.down { color: var(--danger); font-weight: 700; }
.yt .yt-link { all: unset; cursor: pointer; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 1rem var(--font-display); color: var(--pri-dark); min-height: 44px; padding: 0 4px; }
.yt .yt-link svg { width: 18px; height: 18px; }

/* ---- 5. Bugün / Özet ------------------------------------------------------------------------------------------------------------ */
.yt .yt-oz-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 2px 0 20px; }
.yt .yt-oz-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.yt .yt-oz-actions button { min-height: 52px; padding: 0 22px; border-radius: 14px; gap: 10px; }
.yt .yt-oz-actions svg { width: 20px; height: 20px; }
.yt .yt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.yt .yt-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px 26px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 8px; }
.yt .yt-kpi small { color: var(--muted); font-size: 1rem; }
.yt .yt-kpi b { font: 700 2.1rem var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.yt .yt-kpi em { font-style: normal; color: var(--muted); font-size: .92rem; }
.yt .yt-oz-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-bottom: 22px; }
.yt .yt-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px 26px; box-shadow: var(--shadow-card); min-width: 0; }
.yt .yt-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.yt .yt-panel-head h2 { margin: 0; font: 600 1.15rem var(--font-display); }
.yt .yt-panel-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.yt .yt-seg { display: inline-flex; background: #f1ece6; border-radius: 999px; padding: 4px; gap: 2px; }
.yt .yt-seg button { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .9rem; }
.yt .yt-seg button.on { background: var(--side); color: #fff; }
.yt .yt-empty { margin: 8px 0 0; color: var(--muted); }
.yt .yt-todo { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.yt .yt-todo:first-of-type { border-top: 0; }
.yt .yt-todo > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.yt .yt-todo small { color: var(--muted); }
.yt .yt-todo-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.yt .yt-todo-ico svg { width: 22px; height: 22px; }
.yt .yt-todo.warn .yt-todo-ico { background: var(--warn-soft); color: var(--warn); }
.yt .yt-todo.info .yt-todo-ico { background: var(--info-soft); color: var(--info); }
.yt .yt-todo.ok .yt-todo-ico { background: var(--ok-soft); color: var(--ok); }
.yt .yt-stock-row { padding: 12px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.yt .yt-stock-row:first-of-type { border-top: 0; }
.yt .yt-stock-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.yt .yt-stock-row small { color: var(--muted); text-align: right; }
.yt .yt-chip { padding: 4px 12px; border-radius: 999px; font: 700 .8rem var(--font-display); }
.yt .yt-chip.ok { background: var(--ok-soft); color: var(--ok-dark); }
.yt .yt-chip.warn { background: var(--warn-soft); color: #7c5210; }
.yt .yt-chip.bad { background: var(--danger-soft); color: var(--danger-dark); }
.yt .yt-meter { height: 8px; border-radius: 999px; background: #efe9e2; overflow: hidden; }
.yt .yt-meter i { display: block; height: 100%; border-radius: 999px; }
.yt .yt-meter.ok i { background: var(--ok); } .yt .yt-meter.warn i { background: #cc8a14; } .yt .yt-meter.bad i { background: var(--danger); }
.yt .yt-meter.sm { height: 6px; margin-top: 6px; min-width: 70px; }
.yt .yt-legacy .simple-home, .yt .yt-legacy .daily-summary-strip, .yt .yt-legacy .stat-row, .yt .yt-legacy #open-tables-card, .yt .yt-legacy .setup-status-card { display: none; }
.yt .yt-main > .order-banner, .yt .yt-main > .incoming-banner { display: none; }

/* ---- 6. Stok: filtre çipleri, çubuklar --------------------------------------------------------------------------------------- */
.yt td .yt-meter { display: block; }
.yt .yt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.yt .yt-fchip { min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font: 600 .9rem var(--font-display); color: var(--text-soft); gap: 8px; }
.yt .yt-fchip span { background: #f1ece6; border-radius: 999px; padding: 1px 9px; font-size: .78rem; }
.yt .yt-fchip.on { background: var(--side); color: #fff; border-color: var(--side); }
.yt .yt-fchip.on span { background: rgba(255,255,255,.2); color: #fff; }
tr[data-yt-hide] { display: none !important; } /* durum çipi süzgeci: tek satır (grid) stok görünümü de gizlenir */

/* ---- 7. Masalar: kutu renkleri (boş beyaz, dolu turuncu yumuşak, hesap istendi hardal, kısmi ödendi mavi) ------------------------- */
.yt .mz-table { background: var(--surface); border-color: var(--border); border-radius: 22px; }
.yt .mz-table.siparissiz { border-style: dashed; border-color: var(--pri); background: transparent; }
.yt .mz-table.dolu { --edge: var(--pri); --bg: var(--pri-soft); background: var(--pri-soft); border-color: #f1c8b3; }
.yt .mz-table[data-bill="1"] { --edge: #cc8a14; background: var(--warn-soft); border-color: #ecd29a; }
.yt .mz-table[data-part="1"] { --edge: var(--info); background: var(--info-soft); border-color: #bcd3ea; }
.yt .mz-table.hazir { --edge: var(--ok); background: var(--ok-soft); border-color: #bfe0cd; }
.yt .mz-table.selected { outline: 3px solid var(--pri); }

/* masa modülü değişkenleri .mz-page vb. üzerinde tanımlı (kök değişkenler oraya ulaşmaz): burada aynı palet yeniden verilir */
.yt .mz-page, .yt .mz-modal-overlay, .yt .mz-done-pop, .yt .mz-fly, .yt .gs-app {
  --mz-green: #d9541e; --mz-green-dark: #b8441a; --mz-green-soft: #fbe9df; --mz-green-line: #f1c8b3;
  --mz-amber: #b7791f; --mz-amber-soft: #fbf0d9; --mz-amber-line: #ecd29a; --mz-amber-text: #7c5210;
  --mz-gray: #a89f97; --mz-gray-soft: #ffffff; --mz-ink: #1f1a17;
}
.yt .mz-skeleton { background: linear-gradient(90deg, #f1ece6 25%, #f8f4ef 50%, #f1ece6 75%); background-size: 200% 100%; }
.yt .mz-badge.bos { background: #f1ece6; color: #5f564f; border-color: #e3dacf; }
.yt .mz-card-head, .yt .mz-modal-head { background: var(--surface-alt); }
.yt .kb-col { background: #f4efe9; }
.yt .kb-count { background: var(--side); }
.yt .kb-item-name b { background: var(--pri-soft); }
.yt .mz-pay-tabs { background: #f1ece6; }
.yt .mz-pay-tabs .mz-tab.on { color: var(--pri-dark); }
.yt .pct-bar i { background: var(--pri); }
.yt .contact-link, .yt .contact-why a { color: var(--pri-dark); }
.yt .order-actions .btn-like.primary { background: var(--pri-btn); }
.yt .mz-page h1, .yt .mz-page h2, .yt .mz-page h3 { color: var(--text); }
.yt .mz-page .mz-eyebrow, .yt .mz-eyebrow { color: var(--pri-dark); }

/* ---- 8. Giriş ekranı: sol yarıda koyu zemin + logo + tek cümle, sağda form; telefonda tek sütun -------------------------------- */
.yt .auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: var(--bg); padding: 0; align-items: stretch; }
.yt .auth-shell::before { content: "Countiva Esnaf Stok\A Stoğunuz, kârınız ve masalarınız tek yerde."; white-space: pre-wrap; background: var(--side); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: flex-end; font: 600 clamp(1.4rem, 2.6vw, 2.1rem) var(--font-display); line-height: 1.25; background-image: radial-gradient(circle at 20% 15%, rgba(217, 84, 30, .55), transparent 45%); }
.yt .auth-card { align-self: center; justify-self: center; width: min(440px, 100% - 48px); box-shadow: none; border: 0; background: transparent; }
.yt .auth-card .brand-row .mark { background: var(--pri); border-radius: 14px; }
@media (max-width: 820px) {
  .yt .auth-shell { grid-template-columns: 1fr; }
  .yt .auth-shell::before { padding: 28px 24px; min-height: 150px; }
}

/* ---- 9. Telefon: alt menü, hızlı işlem paneli, Diğer paneli --------------------------------------------------------------------- */
.yt .yt-bottom { display: none; }
.yt .yt-sheet-backdrop { position: fixed; inset: 0; background: rgba(31, 26, 23, .45); z-index: 60; }
.yt .yt-drawer { position: fixed; z-index: 70; top: 0; bottom: 0; left: var(--yt-rail); width: min(380px, 100vw); background: var(--surface); box-shadow: var(--shadow-pop); padding: 22px 0 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 0 24px 24px 0; animation: yt-slide-l 200ms ease; touch-action: manipulation; }
.yt .yt-drawer[hidden] { display: none; }
html.yt.yt-lock, html.yt.yt-lock body { overflow: hidden; }
.yt .yt-more-top { flex: none; padding: 0 22px; touch-action: none; }
.yt .yt-more-grip { display: none; width: 44px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: -8px auto 10px; }
.yt .yt-more-find { flex: none; position: relative; margin: 0 22px 6px; }
.yt .yt-more-find-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; pointer-events: none; }
.yt .yt-more-find-ico svg { width: 18px; height: 18px; }
.yt .yt-more-find input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 0 14px 0 38px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--bg, var(--surface)); font: 400 16px var(--font-body, inherit); color: inherit; }
.yt .yt-more-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 0 22px calc(28px + env(safe-area-inset-bottom)); }
.yt .yt-more-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.yt .yt-more-cell { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; font-weight: 600; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.yt .yt-more-cell[hidden], .yt .yt-drawer-group[hidden], .yt .yt-more-empty[hidden] { display: none; }
.yt .yt-more-cell:hover, .yt .yt-more-cell:focus-visible { background: var(--pri-soft); }
.yt .yt-more-cell.active { background: var(--pri-soft); color: var(--pri-dark); }
.yt .yt-more-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; flex: none; }
.yt .yt-more-ico svg { width: 20px; height: 20px; }
.yt .yt-more-lbl { min-width: 0; overflow-wrap: anywhere; }
.yt .yt-more-empty { margin: 18px 0; color: var(--muted); text-align: center; }
@keyframes yt-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes yt-slide-l { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.yt .yt-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.yt .yt-drawer-head h2 { margin: 0; font: 700 1.5rem var(--font-display); }
.yt .yt-drawer-group { margin-top: 16px; }
.yt .yt-drawer-group h3 { margin: 0 0 6px; font: 700 .78rem var(--font-display); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.yt .yt-drawer-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; font-weight: 600; }
.yt .yt-drawer-item:hover, .yt .yt-drawer-item:focus-visible { background: var(--pri-soft); }
.yt .yt-drawer-item.active { background: var(--pri-soft); color: var(--pri-dark); }
.yt .yt-sheet { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 28px 28px 0 0; padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-pop); animation: yt-slide-u 200ms ease; }
@keyframes yt-slide-u { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.yt .yt-sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 0 auto 14px; }
.yt .yt-sheet h2 { margin: 0 0 12px; font: 700 1.3rem var(--font-display); }
.yt .yt-sheet-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 10px; border-radius: 16px; font-size: 1.05rem; }
.yt .yt-sheet-item b { flex: 1; font-weight: 600; }
.yt .yt-sheet-item:hover, .yt .yt-sheet-item:focus-visible { background: var(--pri-soft); }
.yt .yt-sheet-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; }
.yt .yt-sheet-ico svg, .yt .yt-sheet-item > svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .yt .yt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .yt .yt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yt .yt-oz-grid { grid-template-columns: 1fr; }
  .yt .yt-tile { min-height: 230px; }
}
@media (max-width: 820px) {
  .yt .yt-rail { display: none; }
  .yt .yt-layout { flex-direction: column; }
  .yt .yt-topbar { background: var(--side); padding: max(14px, env(safe-area-inset-top)) 18px 14px; }
  .yt .yt-mini-brand { display: flex; }
  .yt .yt-search, .yt .yt-user-txt, .yt .yt-biz-select { display: none; }
  .yt .yt-biz-select:not([hidden]) { display: block; min-width: 0; max-width: 150px; min-height: 40px; }
  .yt .yt-icon-btn { color: var(--side-ink); }
  .yt .yt-dot { border-color: var(--side); }
  .yt .yt-pop { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
  .yt .yt-bell-pop { right: 12px; }
  .yt .main.yt-main { padding: 0 16px 120px; }
  .yt .yt-home-head { margin: 0 -16px 18px; padding: 6px 20px 30px; background: var(--side); color: #fff; border-radius: 0 0 30px 30px; }
  .yt .yt-home h1 { color: #fff; font-size: 1.75rem; }
  .yt .yt-date { color: var(--side-ink); font-size: .9rem; }
  .yt .yt-tiles { gap: 14px; }
  .yt .yt-tile { min-height: 190px; padding: 20px; border-radius: 22px; }
  .yt .yt-tile-ico { width: 56px; height: 56px; border-radius: 16px; }
  .yt .yt-tile-ico svg { width: 28px; height: 28px; }
  .yt .yt-tile-arrow { display: none; }
  .yt .yt-tile-title { font-size: 1.3rem; margin-top: 10px; }
  .yt .yt-tile-sub { display: none; }
  .yt .yt-pill { padding: 6px 12px; font-size: .85rem; }
  .yt .yt-strip { padding: 18px 20px; flex-wrap: wrap; gap: 14px 0; }
  .yt .yt-strip > div { padding: 0 16px; flex: 1 1 33%; }
  .yt .yt-strip b { font-size: 1.35rem; }
  .yt .yt-link { margin: 0 auto 0 0; }
  .yt .yt-alert { padding: 14px 16px; flex-wrap: wrap; }
  .yt .yt-kpis { gap: 12px; }
  .yt .yt-kpi { padding: 18px; }
  .yt .yt-kpi b { font-size: 1.5rem; }
  .yt .yt-bottom { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; align-items: end; background: var(--surface); border-top: 1px solid var(--border); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -18px rgba(31, 26, 23, .35); }
  .yt .yt-bottom.yt-bottom-plus { grid-template-columns: repeat(2, minmax(0, 1fr)) 84px repeat(2, minmax(0, 1fr)); } /* ortadaki "+" için sabit genişlikte boş yuva: komşu vurgu kutuları ona taşmaz (>= 8 px boşluk) */
  .yt .yt-bottom .yt-nav-btn { width: auto; max-width: 100%; min-height: 56px; padding: 10px 6px; color: var(--muted); font-size: .76rem; border-radius: 14px; } /* vurgu kutusu yalnız simge + etiket genişliğinde, sütunun tamamı değil */
  .yt .yt-bottom .yt-nav-btn:hover { background: var(--pri-soft); color: var(--pri-dark); }
  .yt .yt-bottom .yt-nav-btn.active { background: transparent; color: var(--pri); }
  .yt .yt-bottom .yt-badge { border-color: var(--surface); }
  .yt .yt-plus { width: 64px; height: 64px; min-height: 64px; transform: translateY(-26px); border-radius: 22px; border: 0; background: var(--pri); color: #fff; display: grid; place-items: center; padding: 0; box-shadow: var(--shadow-pri); flex: none; cursor: pointer; }
  .yt .yt-plus svg { width: 30px; height: 30px; }
  /* Diğer: alttan açılan panel (bottom sheet), en çok %85 yükseklik, 3 sütun simge ızgarası */
  .yt .yt-drawer { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 85vh; max-height: 85dvh; padding-top: 12px; border-radius: 26px 26px 0 0; animation: yt-sheet-up 180ms cubic-bezier(.2, .8, .2, 1); will-change: transform; }
  .yt .yt-more-grip { display: block; margin-top: 0; }
  .yt .yt-more-top { padding: 0 18px; cursor: grab; }
  .yt .yt-more-find { margin: 0 18px 6px; }
  .yt .yt-more-body { padding: 0 18px calc(24px + env(safe-area-inset-bottom)); }
  .yt .yt-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .yt .yt-more-cell { flex-direction: column; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 4px; text-align: center; font-size: .82rem; line-height: 1.2; }
  .yt .yt-more-lbl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .yt .yt-more-ico { width: 40px; height: 40px; border-radius: 12px; }
  .yt .yt-drawer-head { margin-bottom: 2px; }
  .yt .yt-drawer-head h2 { font-size: 1.25rem; }
  .yt .yt-oz-head { padding-top: 16px; }
  .yt .yt-oz h1 { font-size: 1.6rem; }
}
@media (min-width: 821px) { .yt .yt-plus { display: none; } }
@media print { .yt .yt-rail, .yt .yt-topbar, .yt .yt-bottom, .yt .yt-sheet, .yt .yt-drawer, .yt .yt-sheet-backdrop { display: none !important; } }


/* İŞ 187: sade ana sayfa (Bugün özeti + tek birincil eylem + 4-5 günlük kart + seyrek işler). Mevcut .yt-tile/.yt-strip diğer ekranlarda aynen kalır. */
@media (min-width: 641px) { .yt .yt-home-187 .yt-home-head { padding: 2px 0 14px; } }
.yt .yt-home-187 h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.yt .yt-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.yt .yt-today-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 76px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-card); }
.yt .yt-today-item:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.yt .yt-today-item small { color: var(--muted); font-size: .85rem; }
.yt .yt-today-item b { font: 700 1.35rem var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.yt .yt-today-item em { font-style: normal; color: var(--muted); font-size: .8rem; }
.yt .yt-today-item em.up { color: var(--ok); font-weight: 700; }
.yt .yt-today-item em.down { color: var(--danger); font-weight: 700; }
.yt .yt-today-item.bad b { color: var(--danger); }
.yt .yt-empty-start { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 16px 18px; margin-bottom: 16px; background: var(--pri-soft); border-radius: 18px; }
.yt .yt-empty-start span { color: var(--muted); font-size: .95rem; }
.yt .yt-primary-wrap { margin-bottom: 16px; }
.yt .yt-home-187 .yt-primary-act { width: 100%; min-height: 150px; padding: 22px 26px; border-radius: 22px; }
.yt .yt-home-187 .yt-primary-act .yt-tile-ico { width: 56px; height: 56px; margin-bottom: 0; }
.yt .yt-home-187 .yt-primary-act .yt-tile-title { font-size: 1.6rem; margin-top: 8px; }
.yt .yt-main-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.yt .yt-main-grid .yt-tile { min-height: 150px; padding: 18px 20px; border-radius: 20px; }
.yt .yt-main-grid .yt-tile-ico { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 0; }
.yt .yt-main-grid .yt-tile-ico svg { width: 24px; height: 24px; }
.yt .yt-main-grid .yt-tile-arrow { top: 18px; right: 18px; }
.yt .yt-main-grid .yt-tile-title { font-size: 1.2rem; margin-top: 8px; }
.yt .yt-main-grid .yt-tile-sub { font-size: .92rem; }
.yt .yt-main-grid .yt-tile-badge { margin-top: 8px; }
.yt .yt-more-links { margin-top: 22px; }
.yt .yt-more-links h2 { margin: 0 0 10px; font: 600 1rem var(--font-display); color: var(--muted); }
.yt .yt-more-links > div { display: flex; flex-wrap: wrap; gap: 10px; }
.yt .yt-more-link { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .95rem; color: var(--text); }
.yt .yt-more-link:hover { border-color: var(--pri); }
.yt .yt-more-link:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
@media (max-width: 640px) {
  .yt .yt-today { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .yt .yt-today.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yt .yt-today-item { padding: 10px 12px; min-height: 70px; border-radius: 16px; }
  .yt .yt-today-item b { font-size: 1rem; overflow-wrap: anywhere; }
  .yt .yt-today-item small { font-size: .78rem; }
  .yt .yt-home-187 .yt-primary-act { min-height: 128px; }
  .yt .yt-main-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .yt .yt-main-grid .yt-tile { min-height: 132px; padding: 14px; }
  .yt .yt-main-grid .yt-tile-title { font-size: 1.05rem; }
  .yt .yt-main-grid .yt-tile-sub { font-size: .85rem; }
}
@media (max-width: 360px) {
  .yt .yt-main-grid .yt-tile-sub { display: none; }
}
@media (max-width: 380px) {
  .yt .yt-today-item { padding: 10px 8px; }
  .yt .yt-today-item b { font-size: .88rem; white-space: nowrap; }
}

/* İŞ 188: ana ekran v2 — üstte iki ana eylem yan yana, altında iki ikincil; sade, eşit kartlar */
.yt .yt-home-188 .yt-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.yt .yt-home-188 .yt-hero-grid .yt-tile { min-height: 168px; padding: 22px; border-radius: 22px; }
.yt .yt-home-188 .yt-hero-grid .yt-tile-ico { width: 52px; height: 52px; margin-bottom: 0; }
.yt .yt-home-188 .yt-hero-grid .yt-tile-title { font-size: 1.4rem; margin-top: 10px; }
.yt .yt-home-188 .yt-second-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yt .yt-home-188 .yt-second-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yt .yt-home-188 .yt-second-grid .yt-tile { min-height: 132px; }
.yt .yt-home-188 .yt-today-item { min-height: 64px; padding: 10px 14px; }
.yt .yt-home-188 .yt-today-item b { font-size: 1.15rem; }
@media (max-width: 640px) {
  .yt .yt-home-188 .yt-hero-grid, .yt .yt-home-188 .yt-second-grid, .yt .yt-home-188 .yt-second-grid.n3 { gap: 10px; }
  .yt .yt-home-188 .yt-second-grid.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yt .yt-home-188 .yt-hero-grid .yt-tile { min-height: 150px; padding: 16px; }
  .yt .yt-home-188 .yt-hero-grid .yt-tile-title { font-size: 1.15rem; }
  .yt .yt-home-188 .yt-second-grid .yt-tile { min-height: 124px; }
}
@media (max-width: 380px) { .yt .yt-home-188 .yt-hero-grid .yt-tile-sub { display: none; } }
.sup-quick { flex: 1 1 100%; width: 100%; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; padding: 10px; border: 1px dashed var(--border, #d8d2c8); border-radius: 12px; background: var(--surface, #fff); }
.sup-quick .sup-quick-name { flex: 1 1 180px; min-width: 0; min-height: 44px; }
.sup-quick button { min-height: 44px; }
.sup-quick .sup-quick-err { flex-basis: 100%; color: var(--danger, #c0392b); font-size: .9rem; }
.sup-multi-new { all: unset; cursor: pointer; color: var(--pri, #c2410c); font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; }
.stok-order-strip { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 16px; margin-bottom: 14px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--border, #d8d2c8); }
.stok-order-strip.has { border-color: var(--danger, #c0392b); }
.stok-order-strip:focus-visible { outline: 3px solid var(--pri, #c2410c); outline-offset: 2px; }
.order-table .link-btn { all: unset; cursor: pointer; color: var(--pri, #c2410c); font-weight: 600; text-decoration: underline; }
.nc-cand-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-cand { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; padding: 6px 14px; display: inline-flex; flex-direction: column; justify-content: center; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--border, #d8d2c8); max-width: 100%; }
.nc-cand small { color: var(--muted, #6b6559); font-size: .78rem; }
.nc-cand.on, .nc-cand:hover { border-color: var(--pri, #c2410c); }
.nc-cand:focus-visible { outline: 3px solid var(--pri, #c2410c); outline-offset: 2px; }

/* İŞ 189: ana ekran minimum — seyrek işler tek "Diğer işler" düğmesinin arkasında (kapalı gelir) */
.yt .yt-more-links { margin-top: 20px; }
.yt .yt-more-links > summary { list-style: none; cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font: 600 1rem var(--font-display); color: var(--text); }
.yt .yt-more-links > summary::-webkit-details-marker { display: none; }
.yt .yt-more-links > summary::after { content: "▾"; color: var(--muted); }
.yt .yt-more-links[open] > summary::after { content: "▴"; }
.yt .yt-more-links > summary:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.yt .yt-more-links .yt-more-count { color: var(--muted); font-weight: 500; font-size: .85rem; }
.yt .yt-more-links > div { margin-top: 12px; }

/* ---- İŞ 192 (B5): koyu tema --------------------------------------------------------------------------------------------------
   Sistem ayarını izler; Ayarlar > Görünüm ile elle açılıp kapanır (<html data-theme="dark|light">). Marka turuncusu korunur;
   yazı/zemin kontrastı >= 4.5:1. Yalnız değişkenler değişir (ekranlarda sabit renk kodu yok). İŞ 196: eski (yt olmayan) arayüzde de geçerli — seçici `.yt` sınıfına bağlı değil. */
:root[data-theme="dark"] {
  --bg: #17120f; --surface: #221b17; --surface-alt: #1c1613; --surface-hover: #2b231d;
  --border: #3a2f27; --border-strong: #4d3f34;
  --text: #f3ece5; --text-soft: #d6cbc0; --muted: #b0a59a; --muted-soft: #8f857b;
  --pri: #f07a45; --pri-dark: #ff9a6c; --pri-soft: #3a2318; --brand: #f07a45; --brand-soft: #3a2318; --primary-soft: #3a2318;
  --ok: #5ec88a; --ok-dark: #7ddba3; --ok-soft: #16301f;
  --warn: #e0b252; --warn-soft: #3a2f14; --accent: #e0b252; --accent-dark: #f0c970; --accent-soft: #3a2f14;
  --danger: #f28b8b; --danger-dark: #ffb0b0; --danger-soft: #3b1a1a;
  --info: #86b8f0; --info-soft: #162536; --accent-blue: #86b8f0; --accent-blue-soft: #162536;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px -10px rgba(0, 0, 0, 0.6);
  --mz-green-soft: #3a2318; --mz-green-line: #5a3a28; --mz-green-dark: #ff9a6c; --mz-amber-soft: #3a2f14; --mz-amber-line: #5c4a1e; --mz-amber-text: #f0c970;
  --mz-gray-soft: #221b17; --mz-ink: #f3ece5;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120f; --surface: #221b17; --surface-alt: #1c1613; --surface-hover: #2b231d;
    --border: #3a2f27; --border-strong: #4d3f34;
    --text: #f3ece5; --text-soft: #d6cbc0; --muted: #b0a59a; --muted-soft: #8f857b;
    --pri: #f07a45; --pri-dark: #ff9a6c; --pri-soft: #3a2318; --brand: #f07a45; --brand-soft: #3a2318; --primary-soft: #3a2318;
    --ok: #5ec88a; --ok-dark: #7ddba3; --ok-soft: #16301f;
    --warn: #e0b252; --warn-soft: #3a2f14; --accent: #e0b252; --accent-dark: #f0c970; --accent-soft: #3a2f14;
    --danger: #f28b8b; --danger-dark: #ffb0b0; --danger-soft: #3b1a1a;
    --info: #86b8f0; --info-soft: #162536; --accent-blue: #86b8f0; --accent-blue-soft: #162536;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px -10px rgba(0, 0, 0, 0.6);
    --mz-green-soft: #3a2318; --mz-green-line: #5a3a28; --mz-green-dark: #ff9a6c; --mz-amber-soft: #3a2f14; --mz-amber-line: #5c4a1e; --mz-amber-text: #f0c970;
    --mz-gray-soft: #221b17; --mz-ink: #f3ece5;
    color-scheme: dark;
  }
}

/* İŞ 203-A (A1): `all: unset` rengi de sıfırlar -> öğe rengi koyu üst başlıktan miras alınıyordu (açık modda beyaz zemin üstüne beyaz yazı: "Çıkış yap" görünmüyordu).
   Renk açıkça verilir; koyu temada --text değişkeni açık renge döner (koyu-tema.css). */
.yt .yt-pop, .yt .yt-sr, .yt .yt-user, .yt .yt-pop-item, .yt .yt-tile, .yt .yt-more-cell, .yt .yt-drawer-item, .yt .yt-sheet-item, .yt .yt-today-item, .stok-order-strip, .nc-cand { color: var(--text); }
.yt .yt-pop-item.two small, .yt .yt-pop-item small { color: var(--muted); }
.yt .yt-more-cell.active, .yt .yt-drawer-item.active { color: var(--pri-dark); }
/* İŞ 203-A (A1) asıl sebep: eski tema kuralı `.topbar #logout-btn` (koyu üst çubuk için yarı saydam beyaz zemin + açık yazı) kimlik seçicisi olduğu için `.yt-pop-item`i eziyordu.
   Yeni tasarımda "Çıkış yap" açılır menünün içinde, açık zeminde durur: kimlik seçicili kural bu bağlamda geçersiz kılınır. */
.yt .topbar .yt-pop #logout-btn { background: transparent; border: 0; color: var(--text); }
.yt .topbar .yt-pop #logout-btn:hover, .yt .topbar .yt-pop #logout-btn:focus-visible { background: var(--pri-soft); }

/* İŞ 241: birden çok işletmesi olan kullanıcıda (demo + Deneme Alanı) telefon üst çubuğu taşmasın: simgeler sıkılaşır, seçici daralır (renk teması düğmesi eklenince taşıyordu) */
@media (max-width: 820px) {
  .yt .yt-top-right { gap: 2px; min-width: 0; }
  .yt .yt-icon-btn { width: 44px; height: 44px; min-height: 44px; }
  .yt .yt-biz-select:not([hidden]) { max-width: 96px; font-size: .9rem; }
}
