/* Zincir ERP · saha uygulaması ve portal. Görsel dil “Reçete takımı”: /ui/tokens.css (yönetim paneliyle ortak).
   Kâğıt zemin, mürekkep rayı (portalda üst bant, sahada alt menü), tükenmez kalem mavisi eylemler, reçete renginde belge
   sınıfları, 1 px kılcal çizgiler. Gradyan, buzlu cam ve süs gölgesi yok. Dokunma alanı ≥ 44 px, en küçük yazı 12 px. */
@import url("/ui/tokens.css");

/* Eski adlar → yeni tokenlar (görünümlerdeki satır içi stiller bunları kullanır) */
:root {
  --bg: var(--paper); --surface: var(--sheet); --surface-2: var(--sheet-2); --fill: var(--sheet-2);
  --muted: var(--ink-2); --tertiary: var(--ink-3); --line: var(--rule); --line-strong: var(--rule-2);
  --accent: var(--pen); --accent-ink: var(--pen-ink); --accent-soft: var(--pen-soft);
  --f-display: var(--f); --f-body: var(--f); --f-mono: var(--f);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--f); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; font-variant-numeric: tabular-nums; }
a { color: var(--pen); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
input, textarea { caret-color: var(--pen); }
* { scrollbar-color: var(--rule-2) transparent; scrollbar-width: thin; }

/* Yazı: tek aile, genişlik ekseniyle hiyerarşi */
h1, h2, h3 { margin: 0; font-family: var(--f); text-wrap: balance; }
h1 { font: 750 1.5rem/1.15 var(--f); font-stretch: 92%; letter-spacing: -.015em; }
h2 { font: 700 1.1875rem/1.2 var(--f); font-stretch: 94%; letter-spacing: -.01em; }
h3 { font: 650 1rem/1.3 var(--f); }
.small { font-size: .8125rem; line-height: 1.35; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--f); font-stretch: 90%; font-weight: 600; letter-spacing: .015em; font-variant-numeric: tabular-nums slashed-zero; }
.lbl { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); font-stretch: 92%; }
.big-num { font: 750 2rem/1 var(--f); font-stretch: 85%; letter-spacing: -.01em; }

/* İskelet */
.shell { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.shell.wide { max-width: 1120px; }
.body { flex: 1; padding: 10px 16px calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row .grow, .grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) { .portal-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: start; } }

/* Üst çubuk: kâğıt zemin, alt kılcal çizgi */
.top, .searchbar { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; }
.top h1 { font-size: 1.125rem; font-stretch: 95%; }
.top .back, .back { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--rule-2); background: var(--sheet); color: var(--ink); }
.searchbar { padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; display: flex; flex-direction: column; gap: 8px; }
.searchbar .row { position: relative; }
.searchbar .row .input { padding-left: 40px; }
.searchbar .s-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); width: 18px; height: 18px; }

/* Yaprak (kart): düz, kılcal çerçeve */
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.card.hero { background: var(--rail); border-color: var(--rail); color: var(--rail-ink); }
.card.hero .muted { color: var(--rail-ink-2); }
.card.list, .list.card { padding: 0 0 0 14px; gap: 0; overflow: hidden; }
.list .item { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); color: inherit; }
.list .item:last-child { border-bottom: 0; }
a.item:hover { text-decoration: none; background: color-mix(in oklab, var(--pen) 4%, var(--sheet)); }
.list .item > .icon:last-child { color: var(--ink-3); width: 16px; height: 16px; }
.sect { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 2px 0; }
.sect a { font-size: .875rem; font-weight: 600; }
.empty { text-align: center; color: var(--ink-2); padding: 24px 8px; font-size: .9375rem; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--rule-2); background: var(--sheet); color: var(--ink); font: 650 .9375rem/1.2 var(--f); cursor: pointer; transition: background-color .12s ease, transform .12s cubic-bezier(.2, .8, .2, 1); }
.btn:hover { text-decoration: none; background: var(--sheet-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--pen); border-color: var(--pen); color: var(--pen-ink); }
.btn.primary:hover { background: color-mix(in oklab, var(--pen) 88%, #000); }
.btn.danger { background: var(--c-onay); border-color: var(--c-onay); color: var(--c-onay-ink); }
.btn.sm { width: auto; min-height: 36px; padding: 6px 12px; font-size: .8125rem; }
.btn.big { min-height: 54px; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg, .icon { width: 18px; height: 18px; flex: none; }

/* Süzgeç ve seçim etiketleri: köşeli, seçili olan mürekkeple basılı */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--sheet); color: var(--ink); font: 500 .875rem/1.2 var(--f); cursor: pointer; white-space: nowrap; }
.chip:hover { text-decoration: none; border-color: var(--ink-3); }
.chip.on, input:checked + .chip { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.seg2 { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--rule-2); border-radius: var(--r); overflow: hidden; background: var(--sheet); }
.seg2 button { flex: none; white-space: nowrap; border: 0; background: transparent; color: var(--ink-2); font: 600 .8125rem var(--f); min-height: 34px; padding: 5px 12px; cursor: pointer; }
.seg2 button + button { border-left: 1px solid var(--rule); }
.seg2 button.on { background: var(--ink); color: var(--sheet); }
.hscroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .chip { flex: none; }

/* Form kutuları */
.field { display: flex; flex-direction: column; gap: 4px; font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.field label { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--rule-2); background: var(--sheet); color: var(--ink); font: 400 1rem var(--f); }
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:focus { outline: 0; border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }
textarea.input { min-height: 90px; resize: vertical; }

/* Durum damgaları: düz, köşeli */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 2px; font: 650 .75rem/1.35 var(--f); letter-spacing: .01em; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.crit { background: var(--crit-soft); color: var(--crit); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.gray { background: var(--sheet-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.alert { display: flex; gap: 10px; padding: 11px 13px; border-radius: var(--r); font-size: .9375rem; color: var(--ink); }
.alert.ok { background: var(--ok-soft); } .alert.warn { background: var(--warn-soft); } .alert.crit { background: var(--crit-soft); } .alert.info { background: var(--info-soft); }
.alert .icon { margin-top: 1px; }
.alert.ok .icon { color: var(--ok); } .alert.warn .icon { color: var(--warn); } .alert.crit .icon { color: var(--crit); } .alert.info .icon { color: var(--info); }
.stripe { width: 4px; align-self: stretch; border-radius: 0; background: var(--pen); flex: none; }

/* Tablolar */
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th { text-align: left; font: 650 .75rem/1.3 var(--f); letter-spacing: .02em; color: var(--ink-2); padding: 8px; background: var(--sheet-2); border-bottom: 1px solid var(--rule-2); }
td { padding: 9px 8px; border-bottom: 1px solid var(--rule); }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
td.nw, th.nw { white-space: nowrap; }
.stamp { text-transform: none; letter-spacing: .01em; font-size: .75rem; padding: 2px 7px; }
/* Telefonda yığılan tablo: her satır bir form yaprağı, etiketler hücrenin solunda */
@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack > tbody > tr { padding: 8px 0; border-bottom: 1px solid var(--rule); }
  table.stack > tbody > tr > td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  table.stack > tbody > tr > td::before { content: attr(data-label); color: var(--ink-2); font-size: .8125rem; font-weight: 600; text-align: left; }
  table.stack > tbody > tr > td[data-label=""]::before { content: none; }
  table.stack > tbody > tr > td[colspan] { display: block; text-align: left; }
  table.stack > tbody > tr > td[colspan]::before { content: none; }
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: .9375rem; }
.kv span:nth-child(odd) { color: var(--ink-2); }

/* Göstergeler: yan yana basılı form kutuları (ortak kenarlı şerit) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--sheet); overflow: hidden; }
.stat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 10px 12px; border-left: 1px solid var(--rule); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat .k { font: 650 .75rem/1.25 var(--f); color: var(--ink-2); }
.stat .v { font: 750 clamp(1rem, 4.6vw, 1.375rem)/1.1 var(--f); font-stretch: 86%; white-space: nowrap; }
.bar { height: 4px; border-radius: 0; background: var(--sheet-2); overflow: hidden; width: 100%; box-shadow: inset 0 0 0 1px var(--rule); }
.bar i { display: block; height: 100%; background: var(--pen); }
.bar i.ok { background: var(--ok); } .bar i.warn { background: var(--c-sevk); }
.ring { --p: 50; width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(var(--pen) calc(var(--p) * 1%), var(--sheet-2) 0); display: grid; place-items: center; }
.ring span { width: 56px; height: 56px; border-radius: 50%; background: var(--sheet); display: grid; place-items: center; font: 750 1.05rem var(--f); }
.timer { font: 750 2.2rem/1 var(--f); font-stretch: 85%; text-align: center; }

/* Mürekkep rayı: saha alt menüsü (her temada koyu) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--rail); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); }
.tabbar nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; font: 600 .75rem/1 var(--f); color: var(--rail-ink-2); }
.tabbar a:hover { text-decoration: none; color: var(--rail-ink); }
.tabbar a.on { color: #F8F7F3; }
.tabbar a.on::before { content: ""; position: absolute; top: -4px; left: 22%; right: 22%; height: 3px; background: #F8F7F3; }
.tabbar svg { width: 23px; height: 23px; }

/* Bildirim, sayfa altı uyarı */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 50; max-width: 90vw; padding: 10px 14px; border-radius: var(--r); background: var(--ink); color: var(--sheet); font-size: .9375rem; box-shadow: var(--lift); }
.sheet { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 560px; margin: 0 auto; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--sheet); color: var(--ink); border: 1px solid var(--rule-2); box-shadow: var(--lift); font-size: .9375rem; animation: sheet-in .28s cubic-bezier(.16, 1, .3, 1); }
.sheet .btn { width: auto; }
.sheet-ic { width: 36px; height: 36px; border-radius: 2px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); flex: none; }
.sheet-ic.leave { background: var(--warn-soft); color: var(--warn); }
.sheet-x { border: 0; background: transparent; color: var(--ink-2); font-size: 1.4rem; line-height: 1; min-width: 44px; min-height: 44px; cursor: pointer; }
@keyframes sheet-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Mesai konum şeridi */
.geo-bar { position: sticky; top: 0; z-index: 40; display: flex; gap: 8px; align-items: center; padding: calc(6px + env(safe-area-inset-top, 0px)) 14px 6px; font-size: .8125rem; font-weight: 600; background: var(--ok-soft); color: var(--ok); border-bottom: 1px solid var(--rule); }
.geo-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.geo-bar.live .dot { animation: geo-pulse 1.8s infinite; }
.geo-bar.denied, .geo-bar.error, .geo-bar.auth { background: var(--crit-soft); color: var(--crit); }
.geo-bar.starting, .geo-bar.closed, .geo-bar.unsupported { background: var(--warn-soft); color: var(--warn); }
.geo-bar button { font: 600 .75rem var(--f); min-height: 30px; padding: 2px 10px; border-radius: 2px; border: 1px solid currentColor; background: transparent; color: inherit; }
@keyframes geo-pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Bugün */
.hello { display: block; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 6px; }
.hello-top { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.hello h1 { font-size: 1.875rem; font-stretch: 88%; margin-top: 2px; }
.hello .small.muted { font-weight: 600; }
.avatar { width: 34px; height: 34px; border-radius: 2px; display: grid; place-items: center; color: #F8F7F3; font: 700 .75rem var(--f); flex: none; }
.hello .avatar, .hello-top .avatar { width: 36px; height: 36px; font-size: .8125rem; }
.shift-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 2px; background: var(--sheet-2); color: var(--ink-2); font: 650 .75rem var(--f); box-shadow: inset 0 0 0 1px var(--rule); }
.shift-chip.on { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.shift-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* “Şimdi” formu: sıradaki iş mürekkep yaprağında; check-in yapılınca yeşil (sipariş sınıfı) */
.now { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--rail); color: #ECE9E0; }
.now .muted { color: #A9ADA6; }
.now h2 { font-size: 1.375rem; line-height: 1.2; font-stretch: 90%; color: #F8F7F3; }
.now .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.now .meta span { padding: 3px 8px; border-radius: 2px; font-size: .8125rem; box-shadow: inset 0 0 0 1px rgba(236, 233, 224, .28); }
.now .acts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.now .btn { min-height: 48px; padding: 10px 8px; background: transparent; border-color: rgba(236, 233, 224, .34); color: #ECE9E0; font-size: .875rem; }
.now .btn:hover { background: rgba(236, 233, 224, .08); }
.now .btn.primary { background: #F8F7F3; border-color: #F8F7F3; color: #1E2321; }
.now.live { background: var(--c-siparis); }
.now.live .muted { color: #D5EBDD; }
.now .timer { font-size: 2rem; text-align: left; color: #F8F7F3; }

/* Hızlı işlemler: ortak kenarlı form ızgarası, ikon mürekkeple */
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.qa a, .qa button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 78px; padding: 10px 4px; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); font: 600 .75rem/1.15 var(--f); text-align: center; cursor: pointer; }
.qa a, .qa button { margin: 0 -1px -1px 0; } /* son satır ve sütunun çizgisi çerçevenin altında kalır */
.qa a:hover, .qa button:hover { text-decoration: none; background: var(--sheet-2); }
.qa .ic { width: auto; height: auto; display: grid; place-items: center; background: none; color: var(--ink); border-radius: 0; }
.qa .ic svg { width: 24px; height: 24px; }
.qa .ic.ok, .qa .ic.warn, .qa .ic.crit, .qa .ic.info { color: var(--ink); } /* renk yalnız anlam taşıdığında */
.qa .badge { position: absolute; top: 6px; right: 8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 2px; background: var(--c-onay); color: var(--c-onay-ink); font: 700 .75rem/20px var(--f); }

/* Günün akışı */
.tl { display: flex; flex-direction: column; }
.tl a, .tl div.ti { display: grid; grid-template-columns: 46px 16px minmax(0, 1fr) auto; gap: 8px; align-items: center; color: inherit; padding: 2px 0; }
.tl a:hover { text-decoration: none; }
.tl .t { font: 650 .8125rem var(--f); color: var(--ink-2); text-align: right; }
.tl .dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--rule-2); background: var(--sheet); justify-self: center; }
.tl .dot.done { background: var(--ok); border-color: var(--ok); }
.tl .dot.live { background: var(--c-sevk); border-color: var(--c-sevk); }
.tl .dot.next { border-color: var(--pen); background: var(--pen-soft); }
.tl .c { margin: 3px 0; min-width: 0; padding: 9px 11px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); }
.tl .c b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9375rem; }

/* Ürün & stok */
.pc { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 62px; padding: 10px 12px 10px 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); color: inherit; overflow: hidden; }
.pc:hover { text-decoration: none; border-color: var(--rule-2); }
.pc .sw { width: 6px; align-self: stretch; border-radius: 0; }
.pc b { font: 650 .9375rem var(--f); font-stretch: 92%; }
.pc .nm { font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.sb { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.sb span { font: 650 .75rem var(--f); padding: 2px 7px; border-radius: 2px; white-space: nowrap; }
.sb .c { background: var(--pen-soft); color: var(--pen); } .sb .m { background: var(--ok-soft); color: var(--ok); } .sb .z { background: var(--sheet-2); color: var(--ink-2); }
.loc { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.loc:last-child { border-bottom: 0; }
.loc .q { font: 750 1rem var(--f); min-width: 34px; text-align: right; }
.nearby-tag { font-size: .75rem; color: var(--pen); font-weight: 650; }
.map { height: 280px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--rule); }

/* Ölçü matrisi (ürün sayfası) ve Çantam çap × boy tablosu */
.mx { overflow-x: auto; }
.mx table { font-size: .8125rem; }
.mx th, .mx td { text-align: center; padding: 3px; border: 0; background: none; }
.mx td a { display: grid; place-items: center; min-height: 40px; border-radius: 2px; font: 650 .8125rem var(--f); color: var(--ink); background: var(--sheet-2); }
.mx td a.has { background: var(--ok-soft); color: var(--ok); }
.mx td a.cur { outline: 2px solid var(--pen); outline-offset: -2px; }
.grid-wrap { overflow-x: auto; margin-top: 8px; }
table.bg { border-collapse: separate; border-spacing: 3px; width: auto; margin: 0 auto; font-size: .8125rem; }
table.bg th { font: 650 .75rem var(--f); color: var(--ink-2); text-align: center; padding: 0 2px; border: 0; background: none; letter-spacing: 0; white-space: nowrap; }
table.bg th.corner { font-size: .75rem; }
table.bg td { padding: 0; border: 0; }
.cell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 2px; font: 750 1rem var(--f); font-stretch: 88%; cursor: pointer; color: var(--ink); }
.cell.has { background: var(--ink); color: var(--sheet); } /* çantada: mürekkep (sınıf renkleri belge türüne ayrılmış) */
.cell.hq { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pen); color: var(--pen); font-weight: 600; }
.cell.none { background: var(--sheet-2); color: var(--ink-3); font-weight: 500; box-shadow: inset 0 0 0 1px var(--rule); }
.cell.void { background: transparent; color: var(--rule-2); cursor: default; }
.cell.sel { outline: 3px solid var(--ink); outline-offset: 1px; }
.cell .soon { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-sevk); border: 1.5px solid var(--sheet); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .75rem; color: var(--ink-2); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .cell { width: 16px; height: 14px; display: inline-block; cursor: default; }
.legend .dotsoon { width: 8px; height: 8px; border-radius: 50%; background: var(--c-sevk); display: inline-block; }

/* Giriş ve marka */
.login { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 20px; padding: 24px 16px; }
.login .ik-notes { width: min(380px, 100%); margin: 0; }
.login form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand .logo { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 2px; background: var(--ink); color: var(--paper); font: 800 .875rem/1 var(--f); font-stretch: 80%; letter-spacing: .02em; }

/* Portal: mürekkep bandında marka ve gezinme; seçili bölüm altı çizili */
.shell.wide > .top { box-shadow: 0 0 0 100vmax var(--rail); clip-path: inset(0 -100vmax); background: var(--rail); color: var(--rail-ink); border-bottom: 0; padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 0; align-items: stretch; gap: 6px 18px; }
.shell.wide > .top .brand { padding-bottom: 10px; }
.shell.wide > .top .brand .logo { background: #F8F7F3; color: #1E2321; }
.shell.wide > .top .brand b { color: #F8F7F3; }
.shell.wide > .top .brand .muted { color: var(--rail-ink-2); }
.shell.wide > .top nav.chips { gap: 0; align-items: flex-end; align-self: flex-end; }
.shell.wide > .top nav .chip { min-height: 44px; padding: 10px 11px 9px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--rail-ink-2); font-weight: 600; }
.shell.wide > .top nav .chip:hover { color: #F8F7F3; }
.shell.wide > .top nav .chip.on { color: #F8F7F3; border-bottom-color: #F8F7F3; background: transparent; }
.shell.wide > .top nav form .chip { color: var(--rail-ink-2); }
.shell.wide > .body { padding-top: 18px; }
@media (max-width: 700px) {
  .shell.wide > .top nav.chips { margin-left: 0 !important; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .shell.wide > .top nav.chips::-webkit-scrollbar { display: none; }
  .shell.wide > .top nav.chips { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 32px; }
  .shell.wide > .top nav .chip { flex: none; }
}

/* Alan değiştirici ve dil (tek link): üst çubukta küçük düğme, açılınca kâğıt yaprak */
.switcher { position: relative; flex: none; }
.switcher > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--sheet); color: var(--ink); font: 600 .8125rem/1.2 var(--f); cursor: pointer; user-select: none; }
.switcher > summary::-webkit-details-marker { display: none; }
.switcher > summary .switcher-lang { color: var(--ink-2); font-size: .75rem; }
.switcher[open] > summary { border-color: var(--ink-3); }
.switcher-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: min(280px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--sheet); color: var(--ink); border: 1px solid var(--rule-2); border-radius: var(--r-lg); box-shadow: var(--lift); }
.switcher-menu .lbl { margin-top: 2px; }
.switcher-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: var(--r); color: var(--ink); }
.switcher-item:hover { text-decoration: none; background: var(--sheet-2); }
.switcher-item.on { background: var(--pen-soft); color: var(--pen); font-weight: 650; }
.switcher-langs { display: flex; gap: 6px; flex-wrap: wrap; }
.switcher-menu form { margin-top: 4px; }
.switcher-menu form .btn { width: 100%; }
.shell.wide > .top .switcher { align-self: center; margin-bottom: 10px; }
.shell.wide > .top .switcher > summary { background: transparent; color: #F8F7F3; border-color: rgba(236, 233, 224, .34); }
.shell.wide > .top .switcher > summary .switcher-lang { color: var(--rail-ink-2); }
@media (max-width: 420px) { .switcher > summary .switcher-cur { display: none; } }
.login .langs { display: flex; gap: 6px; justify-content: center; }
.login .tenant { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }

/* Erişilebilirlik */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (prefers-contrast: more) { :root { --rule: #8E8B80; --ink-2: #3A3F3B; } }
