/* İŞ 251 (C): telefon düzeltmeleri -- herkesi etkileyen ortak CSS ve Kâr-Zarar ekranı. Sade düzene özgü olanlar sade-duzen.css'tedir. */

/* ---- Ortak: onay kutuları aynı boy, dokunmatikte takılı hover yok ---- */
@media (hover: none) {
  tbody tr:hover { background: transparent; }
  tbody tr:hover td { background: transparent; }
  #stock-table tr.stock-row:hover > td { background: transparent; }
  .kpi-tile:hover { box-shadow: none; }
}

/* ---- Ortak: katlanır kart tek ok, çift iç boşluk yok ---- */
details.card.katla { padding: 0; }
details.card.katla > summary { padding: 14px 18px; min-height: 48px; flex-wrap: nowrap; }
details.card.katla > summary::before { content: ""; margin-right: 10px; color: inherit; }
details.card.katla > .katla-ic, details.card.katla > :not(summary) { margin-left: 18px; margin-right: 18px; }
details.card.katla > :last-child { margin-bottom: 16px; }
@media (max-width: 600px) {
  .yt .card { padding: 16px; }
  .yt .card h2, .yt .card-head h2, .card h2 { font-size: 1rem; }
  details.card > summary { padding: 12px 16px; }
  .kpi-tile .kpi-label { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; }
  .record-label { font-size: 12px; text-transform: none; letter-spacing: 0; }
  .settings-section-label { text-transform: none; letter-spacing: 0; }
}

/* ---- Kâr-Zarar ---- */
.fin-kart .card-head { align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.fin-donem { font-size: 12.5px; }
.fin-araclar { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.fin-cipler { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0; }
.fin-cipler::-webkit-scrollbar { display: none; }
.fin-cipler .chip { flex: none; white-space: nowrap; }
.fin-dosya { display: flex; gap: 8px; align-items: center; }
.fin-dosya .secondary, .fin-dosya .csv-export-link { min-height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.fin-tarih { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.fin-tarih[hidden] { display: none; }
.fin-tarih input[type="date"] { flex: 1 1 130px; min-width: 0; }
.fin-tarih-ac { display: none; }
@media (max-width: 700px) {
  .fin-tarih-ac { display: inline-flex; }
  .fin-cipler .chip { font-size: 13px; padding: 6px 12px; min-height: 44px; } /* İŞ 344 B3: telefonda dokunma hedefi en az 44 px (36 idi) */
  .fin-tarih-ac { min-height: 44px; min-width: 44px; }
  .fin-dosya .secondary, .fin-dosya .csv-export-link { min-height: 44px; }
  .fin-dosya { width: 100%; }
  .fin-dosya > * { flex: 1 1 0; justify-content: center; }
  .fin-kpi.kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-kpi .kpi-tile { padding: 8px 10px; }
  .fin-kpi .kpi-tile .muted { font-size: 12px; line-height: 1.25; } /* İŞ 344 B6: telefonda yazı en az 12 px (11 idi) */
  .fin-grafikler { grid-template-columns: 1fr; gap: 14px; }
  .fin-grafikler h3 { margin-bottom: 6px; }
}
.fin-detay { border-top: 1px solid var(--border, #e3e8e6); margin-top: 12px; padding-top: 2px; }
.fin-detay > summary { min-height: 44px; font-weight: 700; font-size: .95rem; }
.fin-detay > summary .muted { font-weight: 400; font-size: 12.5px; }
.fin-detay[open] > summary { margin-bottom: 4px; }
.finance-equation { font-size: .8rem; color: var(--muted, #667); margin: 8px 0 0; }
.finance-summary-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
.finance-summary-list li > .tnum, .finance-summary-list li > strong { float: none !important; margin-left: auto; white-space: nowrap; }
.finance-summary-list li > .muted { flex: 1 0 100%; font-size: 12px; }
.fin-detay .plain-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.fin-detay .plain-list li > .tnum { float: none !important; margin-left: auto; white-space: nowrap; }
.fin-detay .plain-list li > .muted, .fin-detay .plain-list li > div { flex: 1 0 100%; }
.fin-trend-aciklama { margin-top: 6px; }
.fin-lejant { display: flex; gap: 14px; font-size: 12px; color: var(--muted, #667); margin-bottom: 4px; }
.fin-sq, .fin-dot { display: inline-block; width: 10px; height: 10px; margin-right: 5px; background: var(--primary, #c2410c); }
.fin-dot { border-radius: 50%; background: var(--ok, #16a34a); }
.fin-aylar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; font-size: 12.5px; }
.fin-aylar li { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dashed var(--border, #e3e8e6); padding: 2px 0; }
@media (max-width: 600px) { .fin-aylar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Ürün kârlılığı: telefonda yatay çubuk + tek satırlık tablo */
.pp-yatay { display: grid; gap: 8px; margin: 4px 0 10px; }
.pp-yatay-satir { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; font-size: 13px; }
.pp-ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-deger { font-weight: 700; }
.pp-cubuk { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--border, #e3e8e6); overflow: hidden; }
.pp-cubuk > i { display: block; height: 100%; background: var(--ok, #16a34a); border-radius: 3px; }
@media (max-width: 700px) {
  .prodprofit tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 2px 10px; align-items: baseline; padding: 8px 2px; cursor: pointer; }
  .prodprofit td { display: none; padding: 0; font-size: 13px; }
  .prodprofit td[data-label="Ürün"], .prodprofit td[data-label="Adet"], .prodprofit td[data-label="Marj"], .prodprofit td[data-label="Toplam kâr"] { display: block; }
  .prodprofit td[data-label]::before { display: none; }
  .prodprofit td[data-label="Ürün"] { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .prodprofit td[data-label="Adet"]::after { content: " adet"; color: var(--muted, #667); font-size: 11px; }
  .prodprofit td[data-label="Marj"]::before { display: inline; content: "marj "; color: var(--muted, #667); font-size: 11px; }
  .prodprofit tr.pp-acik { grid-template-columns: 1fr 1fr; }
  .prodprofit tr.pp-acik td { display: flex; justify-content: space-between; gap: 6px; }
  .prodprofit tr.pp-acik td[data-label]::before { display: inline; content: attr(data-label); color: var(--muted, #667); font-size: 11px; }
  .prodprofit tr.pp-acik td[data-label="Ürün"] { grid-column: 1 / -1; white-space: normal; }
  .prodprofit tfoot tr { display: block; }
  .prodprofit tfoot td { display: inline-block; margin-right: 10px; }
  .prodprofit tfoot td[colspan] { display: block; }
}

/* ---- Ortak bileşen: liste satırı (.ls) -- Giderler, Vardiya, Kayıtlar vb. (İŞ 251 E6/E7/E11) ---- */
.ls { list-style: none; margin: 8px 0 0; padding: 0; }
.ls-row { border-bottom: 1px solid var(--border, #e3e8e6); }
.ls-row:last-child { border-bottom: 0; }
.ls-ana { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 8px 2px; background: none; border: 0; border-radius: 0; color: inherit; font: inherit; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; }
.ls-ana:hover, .ls-ana:focus-visible { background: var(--surface-alt, transparent); }
.ls-ad { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.ls-ad small { font-size: 12px; font-weight: 400; }
.ls-son { flex: none; text-align: right; font-weight: 600; white-space: nowrap; }
.ls-son small { font-weight: 400; font-size: 12px; }
/* İŞ 344 B6: telefonda Giderler satırı: ad tam genişlikte üstte, altta kategori solda / tutar sağda. Eskiden ad tutarın yanında ~200 px'e
   sıkışıp iki satıra iniyor, kategoriyle birlikte satır düğmesi 69 px oluyordu (en çok 56). Ad kesilmez (İŞ 280). */
@media (max-width: 600px) {
  .gd-kart .ls-ana { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; align-items: baseline; padding-top: 6px; padding-bottom: 6px; }
  .gd-kart .ls-ad { display: contents; }
  .gd-kart .ls-ad-ad { grid-column: 1 / -1; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
  .gd-kart .ls-ad small { grid-column: 1; grid-row: 2; min-width: 0; }
  .gd-kart .ls-son { grid-column: 2; grid-row: 2; }
}
.ls-detay { padding: 4px 0 12px; }
.ls-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; margin: 10px 0 4px; }
.ls-form .field { margin: 0; }
.ls-form-eylem, .ls-form [data-gd-hata], .ls-form [data-vd-hata] { grid-column: 1 / -1; }
.ls-form-eylem { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-form-eylem button { min-height: 40px; }
.ls-form-eylem .danger { margin-left: auto; color: var(--danger, #c0392b); border: 1px solid var(--danger, #c0392b); background: transparent; }
.ls-cipler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gd-ozet { font-size: 15px; margin: 0 0 6px; }
.gd-not { font-size: 12.5px; margin-top: 12px; }
.vd-eylem { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.vd-eylem button { min-height: 40px; }
.vd-ozet { margin: 0 0 8px; font-size: 13px; }
.vd-gun { margin-top: 14px; }
.vd-gun h3 { margin: 0; padding: 4px 0; font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--border, #e3e8e6); }
.vd-gun.bugun h3 { color: var(--primary, #c2410c); border-bottom-color: var(--primary, #c2410c); }
.vd-gun .ls-ana { font-size: 14.5px; font-weight: 400; min-height: 42px; }
.vd-gun .ls-son { font-weight: 500; }
.vd-oto, .vd-gecmis { margin-top: 14px; border-top: 1px solid var(--border, #e3e8e6); padding-top: 4px; }
.vd-oto > summary, .vd-gecmis > summary { min-height: 44px; font-weight: 700; }
.vd-secim { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }

/* Kâr-Zarar: takvim düğmesi ve küçük tarih penceresi (İŞ 251 E5) */
.fin-araclar { position: relative; }
.fin-tarih-ac { display: inline-flex; align-items: center; justify-content: center; }
.fin-tarih-ac svg { width: 18px; height: 18px; }
.fin-tarih { position: absolute; z-index: 20; top: 100%; left: 0; margin: 4px 0 0; padding: 12px; background: var(--surface, #fff); border: 1px solid var(--border-strong, #d0d5dd); border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .16); max-width: calc(100vw - 32px); }
.fin-tarih input[type="date"] { flex: 1 1 130px; min-width: 130px; }

/* Son satışlar: varsayılan kapalı katlanır bölüm, kısa satırlar, ayrıntıda Yazdır/PDF + Sil (İŞ 251 E5) */
.sales-katla > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; }
.sales-katla > summary h2 { margin: 0; font-size: 1rem; }
.sales-katla > :not(summary) { margin-left: 18px; margin-right: 18px; }
.sales-araclar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
#sales-table-body tr[data-search-row] { cursor: pointer; }
#sales-table-body .delete-sale-btn { display: none; }
#sales-table-body tr.acik .delete-sale-btn { display: inline-flex; color: var(--danger, #c0392b); border-color: var(--danger, #c0392b); background: transparent; }
@media (max-width: 700px) {
  #sales-table-body tr[data-search-row] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 8px 2px; margin: 0; border: 0; border-bottom: 1px solid var(--border, #e3e8e6); border-radius: 0; background: none; }
  #sales-table-body tr[data-search-row] td { display: block; padding: 0; border: 0; text-align: left; font-size: 14px; }
  #sales-table-body tr[data-search-row] td::before { display: none; }
  #sales-table-body tr[data-search-row] td:nth-child(3) { text-align: right; font-weight: 700; white-space: nowrap; }
  #sales-table-body tr[data-search-row] td.row-actions { grid-column: 1 / -1; display: none; justify-content: flex-start; padding-top: 6px; }
  #sales-table-body tr.acik td.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
}

/* ---- Sipariş Edilecekler: tek akış (İŞ 251 E3) ---- */
.od-kart .card-head { flex-wrap: wrap; gap: 8px; }
.od-ozet { margin: 0 0 6px; font-size: 15px; }
.od-grup { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--border, #e3e8e6); }
.od-grup:first-of-type { border-top: 0; margin-top: 8px; }
.od-grup h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.od-grup h3 .muted { font-size: 12.5px; font-weight: 400; }
.od-ipucu { font-size: 12.5px; margin: 2px 0 6px; }
.od-liste { list-style: none; margin: 0; padding: 0; }
.od-satir { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 2px 8px; padding: 8px 0; min-height: 56px; border-bottom: 1px solid var(--border, #e3e8e6); }
.od-satir.od-haric { opacity: .5; }
.od-ad { display: flex; flex-direction: column; min-width: 0; font-size: 15px; }
.od-ad .link-btn { text-align: left; font: inherit; font-weight: 500; padding: 0; min-height: 0; background: none; border: 0; color: inherit; }
.od-ad small { font-size: 12.5px; }
.od-nokta { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--ok, #16a34a); }
.od-nokta.kritik { background: var(--danger, #dc2626); }
.od-nokta.uyari { background: var(--warn, #f59e0b); }
.od-miktar { display: inline-flex; align-items: center; gap: 6px; }
.od-qty { width: 56px; min-height: 40px; text-align: center; border-radius: 0; border-left: 0; border-right: 0; }
.od-birim { font-size: 13px; color: var(--muted, #667); min-width: 32px; }
.od-sup-sec { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.od-sup-sec select { flex: 1 1 auto; min-height: 40px; }
.od-eylem { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; }
.od-eylem .od-gonder { flex: 1 1 auto; min-height: 44px; }
.od-menu { position: relative; }
.od-menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border-strong, #d0d5dd); border-radius: 11px; cursor: pointer; font-size: 18px; }
.od-menu > summary::-webkit-details-marker { display: none; }
.od-menu-ic { position: absolute; right: 0; bottom: 100%; z-index: 10; display: grid; gap: 6px; padding: 8px; min-width: 170px; background: var(--surface, #fff); border: 1px solid var(--border-strong, #d0d5dd); border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .14); }
.od-menu-ic button { min-height: 40px; justify-content: flex-start; }
.od-not { margin-top: 8px; }
.od-not > summary { min-height: 36px; font-size: 13.5px; }
.od-not input { width: 100%; }
.od-wa-yok { margin-top: 8px; font-size: 13px; }
.od-gonderilen .ls-ana { min-height: 52px; }

/* ---- Hangi ürün kazandırıyor? (İŞ 251 E4) ---- */
#menu-muh-card > summary { min-height: 48px; }
.me-govde { margin: 0 18px 14px; }
.me-grup { margin-top: 8px; border-top: 1px solid var(--border, #e3e8e6); }
.me-grup > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.me-grup .ls { margin: 0 0 8px; }
.me-oneri { padding: 8px 0; border-bottom: 1px dashed var(--border, #e3e8e6); font-size: 14px; line-height: 1.4; }
.me-nasil { margin-top: 10px; font-size: 13px; }

/* ---- Kayıtlar: tek satırlık kayıt, renkli tür çipi, süzgeç kapalı (İŞ 251 E8) ---- */
.act-suz { margin: 6px 0 10px; }
.act-suz > summary { min-height: 40px; font-weight: 600; }
.act-filter .field input[type="checkbox"], #af-money { width: auto; }
.act-filter .field label { font-size: 13px; }
.act-tur { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-alt, #f1f5f9); color: var(--text, inherit); }
.act-tur.t-stok { background: #dcf3e6; color: #166534; }
.act-tur.t-satis, .act-tur.t-masa { background: #dbeafe; color: #1e40af; }
.act-tur.t-personel { background: #ede9fe; color: #5b21b6; }
.act-tur.t-ayar { background: #fef3c7; color: #92400e; }
.act-tur.t-fire, .act-tur.t-para { background: #fee2e2; color: #991b1b; }
@media (max-width: 700px) {
  #activity-log-body tr.audit-log-row { display: grid; grid-template-columns: auto minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: 2px 8px; align-items: center; padding: 8px 2px; margin: 0; border: 0; border-bottom: 1px solid var(--border, #e3e8e6); border-radius: 0; background: none; cursor: pointer; }
  #activity-log-body tr.audit-log-row td { display: block; padding: 0; border: 0; text-align: left; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #activity-log-body tr.audit-log-row td::before { display: none; }
  #activity-log-body tr.audit-log-row td:nth-child(4) { text-align: right; font-weight: 700; }
  #activity-log-body tr.audit-log-row td:nth-child(5) { display: none; grid-column: 1 / -1; white-space: normal; padding-top: 4px; }
  #activity-log-body tr.audit-log-row.acik td:nth-child(5) { display: block; }
}

/* ---- Sipariş Edilecekler: İŞ 253 adım adım akış ---- */
.od-adim { display: inline-flex; align-items: stretch; }
.od-adim button { width: 40px; min-height: 40px; padding: 0; font-size: 20px; line-height: 1; background: var(--surface, #fff); border: 1px solid var(--border-strong, #d0d5dd); color: inherit; cursor: pointer; }
.od-adim .od-eksi { border-radius: 10px 0 0 10px; }
.od-adim .od-arti { border-radius: 0 10px 10px 0; }
.od-cikar { width: 36px; min-height: 36px; padding: 0; font-size: 20px; background: none; border: 0; color: var(--muted, #667); cursor: pointer; }
.od-degistir { grid-column: 1 / -1; justify-self: start; font-size: 13px; min-height: 32px; padding: 0; }
.od-dagit { display: block; width: 100%; min-height: 48px; margin-top: 14px; font-size: 16px; }
.od-kartlar { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.od-kart-toptanci { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left; font-size: 15px; background: var(--surface, #fff); border: 1px solid var(--border-strong, #d0d5dd); border-radius: 14px; cursor: pointer; color: inherit; }
.od-kart-toptanci.aktif { border-color: var(--brand, #f26b21); box-shadow: 0 0 0 2px rgba(242, 107, 33, .15); }
.od-kart-toptanci.od-secilmedi { background: #fff8e1; border-color: #f0c64a; }
.od-kart-toptanci i { font-style: normal; font-size: 20px; color: var(--muted, #667); }
.od-yeni { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 8px 12px; background: #eaf3ff; border-radius: 12px; font-size: 14px; }
.od-sayfa-ust { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 6px; }
.od-sayfa-ust .link-btn { min-height: 36px; padding: 0; font-size: 14px; }
.od-sayfa-ust h3 { margin: 0; font-size: 16px; font-weight: 700; }
.od-soru { margin: 10px 0 6px; font-size: 15px; }
.od-sec-liste { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.od-sec-satir { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 8px 14px; text-align: left; font-size: 15px; background: var(--surface, #fff); border: 1px solid var(--border-strong, #d0d5dd); border-radius: 14px; cursor: pointer; color: inherit; }
.od-sec-satir.secili { border-color: var(--brand, #f26b21); box-shadow: 0 0 0 2px rgba(242, 107, 33, .15); }
.od-sec-ad { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.od-sec-ad small { font-size: 12.5px; }
.od-baska { margin: 4px 0 12px; }
.od-baska > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; cursor: pointer; border-radius: 10px; }
.od-yeni-sup { margin-top: 6px; min-height: 40px; }
.od-miktar-satir { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; font-size: 15px; }
.od-gecmis { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--border, #e3e8e6); font-size: 14px; }
.od-gecmis > summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; color: var(--muted, #667); }
.od-iki { display: block; }
@media (min-width: 1024px) {
  .od-iki-2 { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: start; }
  .od-sag { padding-left: 24px; border-left: 1px solid var(--border, #e3e8e6); }
  .od-sag .od-grup { margin-top: 0; border-top: 0; padding-top: 0; }
  .od-eylem { max-width: 520px; }
}

/* ---- Kritik seviyeler (İŞ 253 B + İŞ 256 A): zengin ama yalnız görüntüleme ---- */
.ks-ozet { margin: 0 0 10px; font-size: 15px; }
.ks-kutular { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.ks-kutu { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border, #e3e8e6); background: var(--surface, #fff); color: var(--text, #101828); text-align: left; cursor: pointer; font: inherit; }
.ks-kutu strong { font-size: 22px; line-height: 1.1; font-weight: 700; }
.ks-kutu span { font-size: 12px; color: var(--muted, #667085); line-height: 1.2; }
.ks-kutu-kirmizi strong { color: var(--danger, #b42318); }
.ks-kutu-turuncu strong { color: var(--warn, #b54708); }
.ks-kutu-sari strong { color: #a16207; }
.ks-kutu-mavi strong { color: var(--info, #175cd3); }
.ks-kutu.aktif { border-color: currentColor; box-shadow: inset 0 0 0 1px var(--text, #101828); background: var(--surface-alt, #f2f4f7); }
.ks-arac { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 6px; }
.ks-ara { flex: 1 1 220px; min-width: 0; min-height: 40px; }
.ks-grupla { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft, #475467); }
.ks-grupla input { width: 20px; height: 20px; margin: 0; }
.ks-liste { list-style: none; margin: 0; padding: 0; }
.ks-satir { border-bottom: 1px solid var(--border, #e3e8e6); }
.ks-ana { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; width: 100%; min-height: 60px; padding: 10px 2px; background: none; border: 0; border-radius: 0; color: inherit; text-align: left; font: inherit; cursor: pointer; box-shadow: none; }
.ks-ana:focus-visible { outline: 2px solid var(--primary, #0f766e); outline-offset: -2px; }
@media (hover: hover) { .ks-ana:hover { background: var(--surface-hover, #f7f8fa); } }
.ks-ust { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; flex-wrap: wrap; width: 100%; }
.ks-ad { font-size: 15px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ks-rozet, .ks-yolda { white-space: nowrap; }
.ks-alt { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; width: 100%; }
.ks-bar { position: relative; flex: 0 0 72px; height: 8px; border-radius: 999px; background: var(--surface-alt, #f2f4f7); overflow: hidden; }
.ks-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.ks-bar-tukendi i { background: var(--danger, #b42318); }
.ks-bar-kritik i { background: var(--warn, #b54708); }
.ks-bar-yakinda i { background: #ca8a04; }
.ks-bar-yok { visibility: hidden; }
.ks-mevcut { font-weight: 600; white-space: nowrap; }
.ks-sifir .ks-mevcut { color: var(--danger, #b42318); }
.ks-gun { white-space: nowrap; color: var(--text-soft, #475467); }
.ks-son { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ks-grup + .ks-grup { margin-top: 12px; }
.ks-grup-baslik { margin: 14px 0 2px; font-size: 14px; font-weight: 600; }
.ks-yok { margin: 12px 0 0; }
.ks-eylem { margin: 16px 0 0; font-size: 14px; }
.ks-bos { display: flex; flex-direction: column; gap: 4px; }
.badge.yakinda { background: #fef9c3; color: #854d0e; }
:root[data-theme="dark"] .badge.yakinda { background: #422006; color: #fde68a; }
:root[data-theme="dark"] .ks-kutu-sari strong { color: #facc15; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.yakinda { background: #422006; color: #fde68a; } :root:not([data-theme="light"]) .ks-kutu-sari strong { color: #facc15; } }
@media (max-width: 560px) { .ks-kutular { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .ks-ana { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 4px 20px; min-height: 56px; }
  .ks-alt { flex-wrap: nowrap; }
  .ks-son { margin-left: auto; }
}
#order-critical .od-dagit, #order-critical .od-eylem .od-gonder { min-height: 48px; }
#order-critical .od-eylem .od-menu > summary { min-height: 48px; }
#order-critical .od-sup-sec { flex-wrap: wrap; }
#order-critical .od-sup-sec .sup-quick { flex: 1 1 100%; margin: 4px 0; }
#order-critical .link-btn { background: none; border: 0; box-shadow: none; padding: 0 2px; min-height: 36px; width: auto; display: inline-flex; align-items: center; justify-content: flex-start; text-align: left; color: var(--accent-dark, #0f766e); font-size: 14px; }
#order-critical .od-ad .link-btn { color: inherit; min-height: 0; align-self: flex-start; font-size: 15px; }

/* İŞ 255: Sipariş Edilecekler düzeltmeleri */
.od-bos-not { display: none; font-size: 12px; color: #b42318; }
.od-satir.od-bos .od-bos-not { display: block; }
.od-satir.od-bos-uyari { background: #fef3f2; border-radius: 8px; }
.od-yolda { margin-left: 6px; font-size: 11px; white-space: nowrap; }
.od-sec-satir .badge, .od-sec-satir .od-sec-ad { white-space: nowrap; }
.od-sec-satir .od-sec-ad { white-space: normal; }
@media (max-width: 1023px) { .od-kart { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }
.od-bos-not { width: auto; }
.od-satir [data-od-swap] { grid-column: 1 / -1; justify-self: start; }

/* ---- İŞ 256 (B): toptancı sayfasında "+ Bu toptancıya ürün ekle" + hızlı ekleme sayfası ---- */
.od-sup-ekle { display: block; width: 100%; min-height: 48px; margin: 10px 0 4px; font-weight: 600; border-style: dashed; }
.od-hizli-ara { width: 100%; min-height: 44px; margin: 4px 0 6px; }
.od-hizli-baslik { margin: 12px 0 0; font-size: 13px; }
.od-satir.od-hizli { grid-template-columns: minmax(0, 1fr) auto; }
.od-satir.od-hizli .od-ad strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-hizli-ekle { min-height: 40px; min-width: 76px; padding: 6px 14px; font-weight: 600; }
.od-satir.od-eklendi { background: var(--ok-soft, #ecfdf3); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.od-baska-not { font-size: 12px; color: var(--warn, #b54708); }
.od-hizli-yok { margin: 12px 0; }
.od-hizli-cubuk { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px 10px 16px; background: var(--surface, #fff); border: 1px solid var(--border-strong, #d0d5dd); border-radius: 14px; box-shadow: 0 8px 24px -12px rgba(16, 24, 40, .35); font-weight: 600; }
.od-hizli-cubuk[hidden] { display: none; }
.od-hizli-cubuk .primary { min-height: 44px; white-space: nowrap; }
/* İŞ 260 Z2 (EK E2): çubuk alt menünün GERÇEK yüksekliğine göre (--yt-bottom-h: yeni-tasarim.js ölçer, çentik payı dahil) + 8 px; eskiden sabit 84 px idi, alt menü 86 px → 2 px altında kalıyordu */
@media (max-width: 820px) { .yt .od-hizli-cubuk { bottom: calc(var(--yt-bottom-h, 86px) + 8px); } }

/* ---- İŞ 256 (C): Ürün / Reçete — arama, "+ Ürün ekle", toplu işlem kutuları, tek satırlık liste, ürün sayfası paneli ---- */
.up-kart .card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.up-kart .card-head h2 { margin: 0; }
.up-ekle { margin-left: auto; min-height: 44px; font-weight: 700; }
.up-arac { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 12px; }
.up-ara { width: 100%; min-height: 44px; }
.up-katlar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.up-katlar::-webkit-scrollbar { display: none; }
.up-kat { flex: 0 0 auto; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--border-strong, #d0d5dd); background: var(--surface, #fff); color: var(--text, #101828); font-size: 14px; font-weight: 500; white-space: nowrap; }
@media (max-width: 760px) { .up-kat { min-height: 44px; } } /* İŞ 344 B3: telefonda kategori süzgeci dokunma hedefi en az 44 px (36 idi) */
.up-kat.aktif { background: var(--text, #101828); border-color: var(--text, #101828); color: var(--surface, #fff); }
.up-kutular { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.up-kutu { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "ico ad" "ico alt"; align-items: center; gap: 0 10px; min-height: 60px; padding: 8px 12px; text-align: left; border: 1px solid var(--border, #e4e7ec); border-radius: 12px; background: var(--surface, #fff); color: var(--text, #101828); }
@media (hover: hover) { .up-kutu:hover { background: var(--surface-hover, #f7f8fa); } }
.up-kutu-ico { grid-area: ico; width: 28px; height: 28px; display: grid; place-items: center; color: var(--primary, #0f766e); }
.up-kutu-ico svg { width: 22px; height: 22px; }
.up-kutu-ad { grid-area: ad; font-size: 14px; font-weight: 600; line-height: 1.25; }
.up-kutu small { grid-area: alt; font-size: 12px; color: var(--muted, #667085); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .up-kutular { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.up-kutu-sonuc > div:empty { display: none; }
.up-kutu-sonuc > div { margin-bottom: 10px; }
/* tek satırlık ürün listesi */
.up-satir > .prod-sum { flex-wrap: nowrap; min-height: 56px; padding: 6px 2px; gap: 10px; }
.up-satir > .prod-sum::before { content: none; }
.up-satir .up-ad { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.up-satir .up-fiyat { flex: 0 0 auto; font-weight: 600; white-space: nowrap; }
.up-satir .prod-catchip { margin-left: 0; flex: 0 0 auto; white-space: nowrap; }
.up-satir [data-margin-badge], .up-satir .up-paket-marj, .up-satir .up-bar { flex: 0 0 auto; white-space: nowrap; margin-left: 0 !important; }
.up-satir .up-ok { flex: 0 0 auto; color: var(--muted, #667085); font-size: 1.3rem; line-height: 1; }
@media (hover: hover) { .up-satir > .prod-sum:hover { background: var(--surface-hover, #f7f8fa); } }
/* İŞ 288: dar ekranda rozet kısa biçime geçer ("Kâr %57 · 51,68 ₺"); kesme / üç nokta YOK, marj sayısı her zaman görünür. Çok dar ekranda yalnız "Kâr %57". */
.up-satir .mb-kisa { display: none; }
@media (max-width: 760px) { .up-satir .up-paket, .up-satir .up-paket-marj, .up-satir .prod-catchip { display: none; } .up-satir [data-margin-badge] { font-size: 12px; max-width: none; overflow: visible; } .up-satir [data-margin-badge] .mb-uzun { display: none; } .up-satir [data-margin-badge] .mb-kisa { display: inline; } }
@media (max-width: 420px) { .up-satir [data-margin-badge] .mb-tl { display: none; } }
/* İŞ 344 B6: telefonda ürün satırı iki katlı: üstte ad + fiyat, altta rozetler (kâr marjı vb.). Tek satırda seçim kutusu + fiyat + rozet adı ~80 px'e
   sıkıştırıyor, "Cheeseburger" gibi kelimeler ortasından bölünüyordu. Ad kesilmez (İŞ 280), yalnız sözcük aralarından alt satıra iner. */
@media (max-width: 420px) {
  .up-satir > .prod-sum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: 10px; row-gap: 2px; align-items: center; }
  .up-satir > .prod-sum > .prod-pick { grid-column: 1; grid-row: 1 / span 2; }
  .up-satir > .prod-sum > .up-ad { grid-column: 2; grid-row: 1; }
  .up-satir > .prod-sum > .up-fiyat { grid-column: 3; grid-row: 1; justify-self: end; }
  .up-satir > .prod-sum > .up-ok { grid-column: 4; grid-row: 1 / span 2; }
  .up-satir > .prod-sum > :not(.prod-pick):not(.up-ad):not(.up-fiyat):not(.up-ok) { grid-column: 2 / 4; justify-self: start; max-width: 100%; }
}
.up-satir > .prod-body { display: none; }
.up-yok { margin: 12px 0; }
/* ürün sayfası paneli (stok kalem paneliyle aynı kabuk: .kp) */
html.up-kilit { overflow: hidden; }
.up-govde .prod-body { display: block; padding: 0; }
.up-govde .up-bolum { border: 1px solid var(--border, #e4e7ec); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; background: var(--surface, #fff); }
.up-govde .up-bolum-baslik { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.up-govde .kp-sayilar.up-sayilar { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } /* 140: "1.250,00 ₺" tek satırda sığar */
.up-govde .kp-sayi small { display: block; font-size: 12px; color: var(--muted, #667085); }
.up-govde .prod-recipe { font-size: 13px; margin-bottom: 8px; }
.up-govde .pkg-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 52px; padding: 6px 0; margin: 0; border-top: 1px solid var(--border, #e4e7ec); }
.up-govde .up-bilgi .up-bolum-baslik + .pkg-price-row { border-top: 0; }
.up-govde .pkg-price-row > label.muted { flex: 1 0 100%; font-size: 13px; }
.up-govde .pkg-price-row input[type="text"], .up-govde .pkg-price-row input[type="number"], .up-govde .pkg-price-row select { flex: 1 1 140px; min-width: 0; min-height: 44px; }
.up-govde .pkg-price-row button { min-height: 44px; white-space: nowrap; }
.up-govde .pkg-price-row > span.muted:not(:empty) { flex: 1 0 100%; font-size: 13px; }
.up-govde .prod-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.up-govde .prod-actions button { min-height: 44px; }
.up-govde .rc-card, .up-govde .prod-wide > .card { margin: 8px 0 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.up-govde .rc-head h2 { font-size: 15px; }
.up-govde .up-tehlike { border-color: var(--danger-soft, #fef3f2); background: var(--danger-soft, #fef3f2); }
.up-govde .up-tehlike p { margin: 0 0 10px; font-size: 13px; }
.up-govde .prod-del.danger { min-height: 44px; }
.rc-satir-maliyet:empty { display: none; }
.rc-satir-maliyet { grid-column: 1 / -1; font-size: 12px; margin-top: -2px; }
.up-salt .up-duzen, .up-salt .rc-add, .up-salt .rc-savebar, .up-salt .rc-del, .up-salt .rc-ai, .up-salt .prod-actions, .up-salt .up-tehlike { display: none !important; }
/* yeni ürün formu */
.up-yeni-form { display: flex; flex-direction: column; gap: 12px; }
.up-yeni-form .field { display: flex; flex-direction: column; gap: 4px; }
.up-yeni-form input, .up-yeni-form select { min-height: 44px; }
.up-tur { border: 1px solid var(--border, #e4e7ec); border-radius: 12px; padding: 8px 12px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.up-tur legend { font-size: 13px; color: var(--muted, #667085); padding: 0 4px; }
.up-tur-sec { display: flex; align-items: flex-start; gap: 10px; min-height: 52px; padding: 6px 0; cursor: pointer; }
.up-tur-sec input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; }
.up-tur-sec span { display: flex; flex-direction: column; }
.up-tur-sec small { color: var(--muted, #667085); font-size: 12px; }
.up-yeni-kaydet { min-height: 48px; font-weight: 700; }
/* ortak aramalı stok kalemi seçici (stok-secici.js) */
select.ss-gizli { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
.ss-dugme { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 6px 12px; border: 1px solid var(--border-strong, #d0d5dd); border-radius: 10px; background: var(--surface, #fff); color: var(--text, #101828); text-align: left; font: inherit; }
.ss-dugme.ss-bos .ss-metin { color: var(--muted, #667085); }
.ss-dugme.rc-bad { border-color: var(--danger, #b42318); box-shadow: 0 0 0 2px var(--danger-soft, #fef3f2); }
.ss-metin { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-ok { color: var(--muted, #667085); flex: 0 0 auto; }
.ss-kok { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.ss-perde { position: absolute; inset: 0; background: rgba(16, 24, 40, 0.45); }
.ss-kutu { position: relative; width: min(520px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: var(--surface, #fff); color: var(--text, #101828); border-radius: 16px; box-shadow: 0 24px 60px rgba(16, 24, 40, 0.3); overflow: hidden; }
.ss-ust { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--border, #e4e7ec); }
.ss-ara { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.ss-x { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; font-size: 1.4rem; border-radius: 10px; border: 1px solid var(--border, #e4e7ec); background: var(--surface-alt, #f2f4f7); color: inherit; }
.ss-liste { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; flex: 1 1 auto; overscroll-behavior: contain; }
.ss-liste li[hidden] { display: none; }
.ss-oge { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 52px; padding: 8px 16px; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; font: inherit; }
.ss-oge:focus-visible { outline: 2px solid var(--primary, #0f766e); outline-offset: -2px; }
@media (hover: hover) { .ss-oge:hover { background: var(--surface-hover, #f7f8fa); } }
.ss-oge.secili { background: var(--primary-soft, #eafaf7); }
.ss-ad { font-weight: 600; font-size: 15px; }
.ss-alt { font-size: 12px; color: var(--muted, #667085); }
.ss-yeni { border-top: 1px solid var(--border, #e4e7ec); color: var(--primary-dark, #0c5c56); }
.ss-yeni[hidden] { display: none; }
.ss-yok { margin: 8px 16px; }
@media (max-width: 600px) { .ss-kok { padding: 0; align-items: flex-end; } .ss-kutu { width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); } }
.up-govde .up-recete:has(.rc-card) .up-recete-liste, .up-govde .prod-recipe, .up-govde [data-recipe-pkg] { display: none; }
.up-rl-liste { list-style: none; margin: 0 0 10px; padding: 0; }
.up-rl { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--border, #e4e7ec); font-size: 14px; }
.up-rl:first-child { border-top: 0; }
.up-rl-ad { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.up-rl-miktar { white-space: nowrap; color: var(--text-soft, #475467); }
.up-rl-miktar small { color: var(--muted, #667085); }
.up-rl-maliyet { white-space: nowrap; font-weight: 600; min-width: 64px; text-align: right; }
.up-rl-pkg-baslik { margin: 6px 0 2px; font-size: 12px; }
.up-rl-bos { margin: 0 0 10px; font-size: 13px; }
.od-satir.od-hizli[hidden] { display: none; }
/* ---- İŞ 259 (1): Sipariş Edilecekler satırı telefonda (≤ 480 px) — ad tam genişlik (kelime ortasından bölünmez), rozet adın altında, ikinci satırda
   "elde … · … günde biter" ve sağda – / + / birim. Toptancı sayfası, ihtiyaç listesi ve "Bu toptancıya ürün ekle" listesi aynı düzende. ---- */
@media (max-width: 480px) {
  #order-critical .od-satir { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "ad ad x" "rozet rozet rozet" "elde miktar miktar" "bos miktar miktar" "alt alt alt"; align-items: center; gap: 2px 10px; min-height: 56px; padding: 4px 0; }
  /* boş satır yoksa (miktar dolu) "miktar girin", rozet yoksa rozet satırı yer kaplamaz */
  #order-critical .od-satir:not(.od-hizli):not(.od-bos) { grid-template-areas: "ad ad x" "rozet rozet rozet" "elde miktar miktar" "alt alt alt"; }
  #order-critical .od-satir:not(.od-hizli):not(:has(.od-yolda, .od-onerilen, .od-zaten)) { grid-template-areas: "ad ad x" "elde miktar miktar" "bos miktar miktar" "alt alt alt"; }
  #order-critical .od-satir:not(.od-hizli):not(.od-bos):not(:has(.od-yolda, .od-onerilen, .od-zaten)) { grid-template-areas: "ad ad x" "elde miktar miktar" "alt alt alt"; }
  #order-critical .od-satir.od-hizli { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ad ad" "elde miktar" "baska baska"; }
  #order-critical .od-satir > .od-ad { display: contents; }
  #order-critical .od-satir > .od-ad > .link-btn, #order-critical .od-satir > .od-ad > strong { grid-area: ad; justify-self: start; display: block; max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; word-break: keep-all; hyphens: none; line-height: 1.3; font-size: 15.5px; padding: 2px 0; }
  #order-critical .od-satir > .od-ad > .od-yolda, #order-critical .od-satir > .od-ad > .od-onerilen, #order-critical .od-satir > .od-ad > .od-zaten { grid-area: rozet; justify-self: start; margin: 0; } /* İŞ 264: önerilen / siparişi verildi rozeti de adın altında */
  #order-critical .od-satir > .od-ad > .od-elde { grid-area: elde; min-width: 0; line-height: 1.35; }
  #order-critical .od-satir.od-bos:not(.od-hizli) > .od-ad > .od-elde { align-self: end; }
  #order-critical .od-satir > .od-ad > .od-bos-not { grid-area: bos; align-self: start; }
  #order-critical .od-satir > .od-ad > .od-baska-not { grid-area: baska; }
  #order-critical .od-satir > .od-miktar, #order-critical .od-satir > .od-hizli-ekle { grid-area: miktar; justify-self: end; }
  #order-critical .od-satir > .od-cikar { grid-area: x; align-self: center; width: 44px; min-height: 44px; }
  #order-critical .od-satir > .od-degistir, #order-critical .od-satir > .od-sup-sec { grid-area: alt; }
  #order-critical .od-satir > .od-degistir { min-height: 28px; }
}

/* ---- İŞ 259 (5): Vardiya haftalık tablo (yalnız ≥ 1024 px'te çizilir; telefonda gün gün liste aynen) ---- */
.vd-hafta { margin-top: 10px; }
.vd-hafta-ust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.vd-hafta-ust button { min-height: 40px; }
.vd-hafta-ust button[disabled] { opacity: .55; cursor: default; }
.vd-hafta-baslik { margin-left: 8px; font-size: 15px; }
.vd-tablo-sar { overflow-x: auto; border: 1px solid var(--border, #e3e8e6); border-radius: 12px; }
.vd-tablo { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.vd-tablo th, .vd-tablo td { border-bottom: 1px solid var(--border, #e3e8e6); border-left: 1px solid var(--border, #e3e8e6); padding: 4px; vertical-align: top; text-align: left; }
.vd-tablo thead th { padding: 8px 6px; font-size: 13px; font-weight: 700; background: var(--surface-alt, #f6f7f9); white-space: nowrap; text-transform: none; letter-spacing: normal; }
.vd-tablo th:first-child, .vd-tablo td:first-child { border-left: 0; }
.vd-tablo thead th:first-child { width: 170px; }
.vd-tablo tbody th { padding: 8px 10px; font-size: 14px; font-weight: 600; overflow-wrap: break-word; text-transform: none; letter-spacing: normal; color: inherit; }
.vd-tablo tbody tr:last-child > * { border-bottom: 0; }
.vd-tablo .bugun { background: rgba(194, 65, 12, .07); }
.vd-tablo thead th.bugun { color: var(--primary, #c2410c); }
/* İŞ 260 Z2 (A8): "Bugün" rozeti başlık hücresinde gün adının altında, küçük (yan sütuna taşmasın) */
.vd-tablo thead th .vd-bugun-rozet { display: table; margin-top: 3px; font-size: 11px; line-height: 1.3; padding: 1px 7px; white-space: nowrap; }
.vd-tablo td.gecmis .vd-h-vardiya { opacity: .7; }
.vd-h-vardiya, .vd-h-bos { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; min-height: 44px; margin: 0 0 4px; padding: 6px 8px; border-radius: 8px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.vd-h-vardiya:last-child, .vd-h-bos:last-child { margin-bottom: 0; }
.vd-h-vardiya { background: var(--ok-soft, #ecfdf3); border: 1px solid rgba(22, 163, 74, .35); }
.vd-h-vardiya b { font-weight: 600; font-size: 14px; }
.vd-h-vardiya small { font-size: 12px; color: var(--muted, #667); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vd-h-bos { align-items: center; background: transparent; border: 1px dashed transparent; color: var(--muted, #98a2b3); font-size: 18px; }
@media (hover: hover) { .vd-h-bos:hover { border-color: var(--border-strong, #d0d5dd); color: inherit; } .vd-h-vardiya:hover { border-color: rgba(22, 163, 74, .7); } }
.vd-h-bos:focus-visible, .vd-h-vardiya:focus-visible { outline: 2px solid var(--primary, #c2410c); outline-offset: 1px; }
.vd-tablo-form { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--border-strong, #d0d5dd); border-radius: 12px; background: var(--surface, #fff); }
.vd-tablo-form[hidden] { display: none; }
.vd-tablo-form-baslik { margin: 0 0 4px; font-size: 15px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vd-h-vardiya { background: rgba(22, 163, 74, .16); } :root:not([data-theme="light"]) .vd-tablo thead th { background: rgba(255, 255, 255, .04); } }
:root[data-theme="dark"] .vd-h-vardiya { background: rgba(22, 163, 74, .16); }
:root[data-theme="dark"] .vd-tablo thead th { background: rgba(255, 255, 255, .04); }

/* ---- İŞ 260 Z1 (B15/B16/B18): telefonda kesilen / bölünen yazılar ---------------------------------------------------------------- */
/* B15: Ürün / Reçete küçük kutuların açıklaması alt satırlara iner, kesilmez (eskiden tek satır + "…") */
.up-kutu small { white-space: normal; text-overflow: clip; overflow: visible; overflow-wrap: normal; word-break: normal; }
.up-kutu { align-items: start; }
.up-kutu-ico { align-self: center; }
/* B15: "Hangi ürün kazandırıyor?" ve "Menü kategorileri" özet yazıları hiçbir genişlikte "…" ile kesilmez (yer yetmezse alt satıra geçer); telefonda başlığın altına iner */
#menu-muh-card > summary .muted, #menu-cats-card > summary .muted { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 600px) {
  #menu-muh-card > summary, #menu-cats-card > summary { flex-wrap: wrap; row-gap: 2px; }
  #menu-muh-card > summary .muted, #menu-cats-card > summary .muted { flex: 1 1 100%; margin-left: 0; text-align: left; white-space: normal; overflow: visible; text-overflow: clip; padding-left: 19px; }
}
/* B16: QR Menü ayarları — kelimeler ortadan bölünmez ("Bağlantıl / ar") */
#qrmenu-card, #qrmenu-card summary, #qrmenu-card label, #qrmenu-card h2, #qrmenu-card h3 { word-break: normal; overflow-wrap: normal; hyphens: manual; }
#qrmenu-card .qm-sec > summary { flex-wrap: wrap; row-gap: 2px; }
#qrmenu-card .qm-sec > summary strong { flex: none; white-space: nowrap; }
#qrmenu-card .qm-sec > summary .muted { min-width: 0; white-space: normal; }
/* B18: Kâr-Zarar dönem düğmeleri telefonda iki satıra iner (yarım "Bu Yıl" görünmez) */
@media (max-width: 600px) {
  .fin-cipler { flex-wrap: wrap; overflow-x: visible; row-gap: 6px; }
}

/* İŞ 260 Z2 (A13): "N ürün ihtiyaç listesine döndü" şeridi × ile kapatılır */
.od-yeni-kapat { flex: none; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted, #667085); font-size: 24px; line-height: 1; cursor: pointer; }
.od-yeni-kapat:hover { background: var(--surface-hover, rgba(0, 0, 0, .05)); color: var(--text, inherit); }
.od-yeni-kapat:focus-visible { outline: 3px solid var(--primary, #c2410c); outline-offset: -3px; }

/* ==== İŞ 261 F1: masa / adisyon / mutfak ==== */
/* A3: hızlı dokunuşta bekleyen adet rozeti ("+2") ve kayıt sürerken "+" düğmesinde dönen halka (yazı yok, küçük düğmeye sığar) */
.mz-product { position: relative; }
.mz-product[data-pend]::after { content: attr(data-pend); position: absolute; top: 8px; right: 8px; min-width: 28px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--mz-green, #1f7a5c); color: #fff; font-weight: 700; font-size: .85rem; line-height: 24px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); pointer-events: none; }
.mz-product.saving .mz-add svg { animation: mz-don .8s linear infinite; }
@keyframes mz-don { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mz-product.saving .mz-add svg { animation: none; } }
/* C7: mutfağa gönderilmiş ama henüz hazırlanmayan satır */
.mz-line-sub em.st.sent { color: var(--mz-green-dark, #145c45); font-style: normal; font-weight: 600; }
/* A2: ödenmiş ama hazırlanacak sipariş (mutfak / bar kartı) */
.kb-paid { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: var(--mz-green-soft, #e3f4ec); color: var(--mz-green-dark, #145c45); font-size: .78rem; font-weight: 700; vertical-align: middle; }
/* B10: menü ekranında hangi masa / kaç kişi */
.mz-where { margin: 10px 0 0; font-size: 1.05rem; color: var(--text, inherit); }
.mz-where b { font-family: var(--font-display, inherit); font-size: 1.2rem; }
/* B4: para üstü "Seçilen" toplamının yanında */
.mz-sel-change { margin-left: auto; padding-left: 12px; font-style: normal; font-weight: 700; color: var(--mz-green-dark, #145c45); }
.mz-sel-total > span { margin-right: 8px; }

/* ---- İŞ 261 F4 ------------------------------------------------------------------------------------------------------------------------ */
/* B12: Giderler kategori alanı tam satır, çipler satıra yayılır (dar sütunda alt alta değil) */
.gd-form .gd-kategori { grid-column: 1 / -1; }
.gd-cipler { align-items: center; }
.gd-cipler > .muted { font-size: 12px; margin-right: 2px; }
.gd-cipler .chip { min-height: 36px; }
/* A7: gece vardiyası ipucu */
.vd-ertesi { display: block; margin-top: 4px; font-size: 12px; }
.vd-ertesi[hidden] { display: none; }
/* A9: numarasız toptancı kutusu — kalıcı mesaj, telefonda rahat dokunulur */
.od-wa-yok { margin-top: 12px; padding: 12px; border: 1px solid var(--warn, #b45309); border-radius: 12px; background: var(--warn-soft, #fff7ed); font-size: 14px; }
.od-wa-yok[hidden] { display: none; }
.od-wa-yok-baslik { margin: 0 0 8px; }
.od-wa-yok-satir { display: flex; flex-wrap: wrap; gap: 8px; }
.od-wa-yok-satir input { flex: 1 1 180px; min-height: 44px; font-size: 16px; }
.od-wa-yok-satir button { min-height: 44px; }
.od-wa-yok-mesaj { margin: 8px 0 0; }
.od-wa-yok-mesaj:empty { display: none; }
/* B9: "+ Ürün ata" listesi sayfayla birlikte akar (iç içe kaydırma yok); Kaydet / Vazgeç alt menünün üstünde yapışık kalır */
.sup-assign-list { max-height: none; overflow: visible; }
.sup-assign-inner > .row-actions { position: sticky; bottom: calc(var(--yt-bottom-h, 0px) + 8px); z-index: 2; padding: 8px 0 0; background: var(--surface-alt, #f6f7f9); }
.sup-assign-iskelet { display: grid; gap: 6px; }
/* sticky çalışsın diye: overflow:hidden kaydırma kabı oluşturur (sticky orada takılır), clip oluşturmaz — kart kapanırken kırpma aynı */
.sup-collapse-in, .record-card.sup-card { overflow: clip; }
/* A4: arşivlenmiş toptancılar */
.sup-arsiv { margin: 12px 0 0; }
.sup-arsiv-liste { margin-top: 8px; }
.sup-arsiv-liste[hidden] { display: none; }
.sup-arsiv-satir { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.sup-arsiv-satir .ls-ad { flex: 1; display: flex; flex-direction: column; }
.sup-arsiv-satir button { min-height: 40px; }
/* A5: işten ayrılan personel */
.record-card.emp-ayrildi { opacity: 0.8; }
.emp-ayrildi-rozet { display: inline-block; margin-bottom: 6px; background: var(--surface-alt, #eef0f3); color: var(--muted, #555); }
.emp-sil-not { margin: 6px 0 0; font-size: 12px; }

/* ---- İŞ 261 F3: stok / ürün / reçete (B5 B6 B7 B8) ------------------------------------------------------------------------- */
/* B6: arama kutularında tek çerçeve (içteki input kendi çerçevesini/zeminini çizmez) */
.search input, .search input:focus, .search input:hover { border: 0 !important; box-shadow: none !important; background: transparent !important; outline: none; min-height: 40px; }
.search { max-width: 100%; }
/* B7: kalem panelinde "Sayım gir": etiket + kutu + birim tek satırda, Kaydet altında tam genişlik */
.kp-sayim-satir { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.kp-sayim-satir label { font-weight: 600; color: var(--text-soft, #475467); }
.kp-sayim-satir .kp-in { width: 100%; min-width: 0; text-align: left; min-height: 48px; }
.kp-sayim-satir select { min-height: 48px; width: auto; min-width: 84px; }
.kp-sayim-kaydet { width: 100%; margin-top: 12px; min-height: 48px; }
/* B8: Fire / hareket formu: Kaydet en altta, alanlar üstte */
#movement-form .mv-kaydet { align-self: flex-end; }
@media (max-width: 600px) {
  /* B5: kalem panelinde "Kritik seviye" satırı taşmaz: etiket üstte, iki seçenek tam genişlikte yan yana, yazı gerekirse iki satır */
  .kp-satir[data-kp-satir="kritik"] .kp-et { flex: 1 0 100%; }
  .kp-satir[data-kp-satir="kritik"] .kp-deger { flex: 1 1 100%; justify-content: stretch; }
  .kp-satir[data-kp-satir="kritik"] .kp-seg { display: flex; width: 100%; }
  .kp-satir[data-kp-satir="kritik"] .kp-seg button { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.25; padding: 6px 8px; }
  #movement-form { flex-direction: column; align-items: stretch; }
  #movement-form .field { width: 100%; }
  #movement-form .mv-kaydet { width: 100%; min-height: 48px; }
}
/* İŞ 261 F3 (C11): [hidden] alanlar (.field / .rc-cell gibi display verilmiş kutularda) gerçekten gizlenir: "Birden çok malzemeden oluşuyor" seçiliyken "Stok kalemi" seçici,
   reçetede mevcut kalem seçiliyken "Yeni kalemin adı", malzeme formu açıkken ikinci "+ Malzeme ekle" görünmez */
.up-yeni-form [hidden], .rc-card [hidden], .yk-govde [hidden], #new-item-form [hidden] { display: none !important; }
.rc-oto-not { font-size: 13px; }
.stok-yeni-kalem-btn { min-height: 40px; white-space: nowrap; }
@media (max-width: 600px) { .stok-yeni-kalem-btn { width: 100%; margin-bottom: 6px; } }
/* İŞ 347 (Paket B): tek "+ Ekle" panelinde tür seçimi (Stok kalemi / Malzeme); alttaki kaynak kartlar görünmez; arama "'X' adıyla ekle" */
.yk-kaynak[hidden], details.yk-kaynak[hidden] { display: none !important; }
.yk-tur { border: 0; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
.yk-tur legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.yk-tur-sec { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--border, #e4e7ec); border-radius: 12px; padding: 10px 12px; cursor: pointer; min-height: 44px; min-width: 0; }
.yk-tur-sec input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; }
.yk-tur-sec span { display: flex; flex-direction: column; min-width: 0; }
.yk-tur-sec small { color: var(--muted, #667085); font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; }
.yk-tur-sec:has(input:checked) { border-color: var(--accent, #d9531e); box-shadow: 0 0 0 1px var(--accent, #d9531e) inset; }
@media (max-width: 420px) { .yk-tur { grid-template-columns: 1fr; } }
#stock-search-empty .stok-ara-ekle { margin-left: 6px; min-height: 40px; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.muadil-new-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; border: 1px solid var(--border, #e4e7ec); border-radius: 10px; padding: 8px 12px; margin: 8px 0; max-height: 280px; overflow: auto; }
.muadil-new-liste legend { font-weight: 600; padding: 0 4px; }
.muadil-new-kalem { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.muadil-new-kalem input { width: 20px; height: 20px; flex: none; }

/* ==== İŞ 264: Sipariş — tek sayfa, iki sekme (Sipariş listesi / Bekleyenler) ==== */
.od-bas { margin-bottom: 4px; }
.od-sekmeler { display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; background: var(--surface-alt, #f1f5f9); border-radius: 14px; }
.od-sekme { flex: 1 1 0; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 11px; background: none; color: inherit; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.od-sekme.on { background: var(--surface, #fff); box-shadow: 0 1px 3px rgba(16, 24, 40, .14); color: var(--brand, #c2410c); }
.od-sekme-n { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand, #f26b21); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.od-ara-kutu { position: relative; margin: 0 0 10px; }
.od-ara { width: 100%; min-height: 48px; font-size: 16px; padding: 0 14px; border-radius: 12px; }
.od-ara-sonuc { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow: auto; background: var(--surface, #fff); border: 1px solid var(--border-strong, #d0d5dd); border-radius: 12px; box-shadow: 0 10px 28px -10px rgba(16, 24, 40, .35); }
.od-ara-sonuc[hidden] { display: none; }
.od-ara-satir { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 9px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.od-ara-satir small { font-size: 12.5px; }
.od-ara-satir small { max-width: 100%; overflow-wrap: anywhere; }
.od-ara-parca { display: inline-block; max-width: 100%; }
.od-ara-satir:hover, .od-ara-satir.on { background: var(--surface-alt, #f1f5f9); }
.od-ara-yok { padding: 10px; font-size: 14px; }
.od-hedef { margin: 6px 0 0; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.od-hedef .link-btn { min-width: 32px; min-height: 32px; font-size: 18px; padding: 0; }
#od-panel > .od-grup, #od-panel > .od-bek { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--border, #e3e8e6); border-radius: 14px; background: var(--surface, #fff); }
#od-panel > .od-grup.od-secilmedi { background: #fffbeb; border-color: #f0c64a; }
.od-grup-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 4px; }
.od-grup-bas h3 { margin: 0; font-size: 16px; font-weight: 700; flex: 1 1 auto; min-width: 0; }
.od-grup-bas .od-teslim { flex: 1 0 100%; margin: 0; font-size: 12.5px; }
.od-grup-bas .od-onizleme { flex: 1 0 100%; margin: 0; font-size: 13px; }
.od-onerilen { margin-top: 2px; align-self: flex-start; background: #e0f2fe; color: #075985; font-size: 11.5px; }
.od-zaten { margin-top: 2px; align-self: flex-start; font-size: 11.5px; }
.od-kucuk { margin: 8px 0 0; font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: var(--muted, #667); }
.od-kucuk .link-btn { min-height: 36px; padding: 0 2px; font-size: 13.5px; }
#order-critical .od-eylem .od-gonder, .od-geldi-btn { min-height: 52px; font-size: 16px; }
.od-eylem .od-geldi-btn { flex: 1 1 auto; }
.od-satir.od-vurgu { background: #fff7d6; transition: background .6s; }
.od-bek-liste { list-style: none; margin: 6px 0 0; padding: 0; }
.od-bek-liste li { padding: 6px 0; border-bottom: 1px solid var(--border, #e3e8e6); font-size: 14.5px; display: flex; justify-content: space-between; gap: 10px; }
.od-bek-liste li:last-child { border-bottom: 0; }
.od-ozet-ayar > details > summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
/* pencere (Geldi, Toptancıyı değiştir): telefonda alttan, bilgisayarda ortada; geri tuşu yalnız pencereyi kapatır */
html.od-pencere-acik { overflow: hidden; }
.od-pencere-kok { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 23, 42, .45); }
.od-pencere { width: 100%; max-height: 92vh; overflow: auto; background: var(--surface, #fff); border-radius: 18px 18px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -12px 32px -12px rgba(15, 23, 42, .35); }
.od-pencere-ust { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.od-pencere-ust h3 { margin: 0; font-size: 17px; }
.od-pencere-x { width: 44px; min-height: 44px; padding: 0; font-size: 24px; background: none; border: 0; color: var(--muted, #667); cursor: pointer; }
.od-geldi-satir { padding: 10px 0; border-bottom: 1px solid var(--border, #e3e8e6); }
.od-geldi-satir .kp-sayim-satir { margin-top: 6px; }
.od-geldi-ad { margin: 0; font-size: 15px; }
.od-pencere .od-eylem { position: sticky; bottom: 0; background: var(--surface, #fff); padding-top: 8px; }
@media (min-width: 821px) {
  .od-pencere-kok { align-items: center; }
  .od-pencere { max-width: 560px; border-radius: 18px; }
}
@media (min-width: 1024px) {
  #order-critical, #order-summary-card { max-width: 920px; }
}
.od-hata { margin: 8px 0 0; color: var(--danger, #b42318); font-weight: 600; font-size: 14px; }
/* İŞ 264: telefonda kısa "önerilen" rozeti adın yanında (ayrı satır kaplamaz; satır kısa kalır). Uzun "siparişi verildi" rozeti adın altında kalır. */
@media (max-width: 480px) {
  #order-critical .od-satir:not(.od-hizli):has(.od-onerilen) { grid-template-areas: "ad rozet x" "elde miktar miktar" "bos miktar miktar" "alt alt alt"; }
  #order-critical .od-satir:not(.od-hizli):not(.od-bos):has(.od-onerilen) { grid-template-areas: "ad rozet x" "elde miktar miktar" "alt alt alt"; }
  #order-critical .od-satir > .od-ad > .od-onerilen { align-self: center; justify-self: end; }
}

/* ====================== İŞ 266 C: Ayarlar sadeleştirme (8 katlanır kart) ====================== */
.ayar-grup .ayar-alt + .ayar-alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.ayar-grup .ayar-alt-baslik { margin: 0 0 8px; font-size: 1rem; font-weight: 700; }
.ayar-grup .ayar-alt > .card, .ayar-grup .ayar-alt > details.card { box-shadow: none; }
.ayar-grup .ayar-alt > .card:not(details) { border: 0; padding: 0; margin: 0; background: transparent; }
.ayar-grup .ayar-alt > .card:not(details) > .card-head { margin: 0 0 8px; }
.ayar-grup .ayar-alt > .card:not(details) > .card-head h2 { font-size: 1rem; }
.ayar-grup .ayar-alt > details.card + details.card { margin-top: 10px; }
.ayar-grup .ayar-iki { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px 18px; }
.ayar-grup .ayar-iki .field { gap: 4px; }
.ayar-grup .ayar-iki label { font-size: 0.85rem; color: var(--text, inherit); font-weight: 600; }
.ayar-grup .ayar-iki input, .ayar-grup .ayar-iki select { min-height: 44px; }
.ayar-grup .ayar-yardim { display: block; margin: 0; font-size: 0.78rem; font-weight: 400; line-height: 1.35; color: var(--muted); }
.ayar-grup .ayar-yuzde { display: flex; align-items: center; gap: 8px; }
.ayar-grup .ayar-yuzde input { flex: 1; min-width: 0; }
.ayar-grup .ayar-toplam { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface-alt, rgba(127,127,127,.08)); font-size: 1rem; }
.ayar-grup .ayar-toplam strong { font-size: 1.15rem; }
.ayar-grup .ayar-modul { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.ayar-grup .ayar-modul:last-of-type { border-bottom: 0; }
.ayar-grup .ayar-modul-metin { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ayar-grup .ayar-modul input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0; }
.ayar-grup .ayar-satir { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; }
.ayar-grup .ayar-satir .field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ayar-grup .ayar-satir .palet-grid { margin-top: 0; }
.card.ayar-grup.ayar-tehlike { border: 1px solid var(--danger, #c0392b); }
.card.ayar-grup.ayar-tehlike > .card-head h2 { color: var(--danger, #c0392b); }
@media (max-width: 640px) {
  .ayar-grup .ayar-iki { grid-template-columns: 1fr; }
  .ayar-grup .ayar-satir { flex-direction: column; gap: 12px; }
}
/* ====================== /İŞ 266 C ====================== */
/* ====================== İŞ 266 B: Geldi seçimi, Fatura bekleniyor, Gecikti ====================== */
.od-geldi-secim .od-secim { display: block; }
.od-geldi-secim .od-buyuk { width: 100%; min-height: 56px; font-size: 1.05rem; }
.od-geldi-secim .od-kucuk .secondary { width: 100%; min-height: 44px; }
.od-fb .od-eylem { flex-wrap: wrap; }
.od-fb .od-eylem button { flex: 1 1 140px; min-height: 44px; }
.od-fatura-rozet, .od-gecikti { white-space: nowrap; }
/* ====================== /İŞ 266 B ====================== */
/* ====================== İŞ 266: Ürün ara (tüm liste, menü ürünü reçetesi) ====================== */
.od-ara-kutu { scroll-margin-top: 72px; }
.od-ara-sonuc .od-ara-urun { padding: 6px 4px 2px; border-top: 1px solid var(--border, #e3e8e6); }
.od-ara-sonuc .od-ara-urun-bas { margin: 2px 6px 4px; font-size: 13.5px; }
.od-ara-sonuc .od-ara-malzeme { min-height: 44px; }
.od-ara-sonuc .od-ara-not { padding: 8px 10px; font-size: 13.5px; }
.od-ara-yok .link-btn { min-height: 44px; padding: 0 4px; }
/* ====================== /İŞ 266 ara ====================== */
.od-ara-tum { padding: 4px 6px 2px; border-top: 1px solid var(--border, #e3e8e6); }
.od-ara-tum .link-btn { min-height: 44px; padding: 0 4px; font-size: 13.5px; }
/* ====================== İŞ 266 Kart: ortak toptancı kartı (Sipariş listesi + Bekleyenler) ====================== */
.od-katla { cursor: pointer; align-items: center; padding: 2px 0; min-height: 44px; }
.od-katla:focus-visible { outline: 2px solid var(--primary, #1f7a5a); outline-offset: 2px; border-radius: 8px; }
.od-ok { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted, #667); border-bottom: 2px solid var(--muted, #667); transform: rotate(45deg); transition: transform .15s; flex: 0 0 auto; }
.od-katla[aria-expanded="false"] .od-ok { transform: rotate(-45deg); }
.od-kart-govde[hidden] { display: none; }
#order-critical .od-satir.od-oku { min-height: 0; padding: 7px 0; grid-template-columns: minmax(0, 1fr) auto !important; grid-template-areas: "ad miktar" !important; }
#order-critical .od-satir.od-oku > .od-ad > strong { font-weight: 500; font-size: 15px; }
.od-oku-miktar { font-weight: 600; white-space: nowrap; text-align: right; }
.od-not { display: block; margin: 8px 0 0; font-size: 13.5px; }
.od-not-et { display: block; font-size: 12px; }
.od-not input { width: 100%; margin-top: 2px; }
.od-not-oku { padding: 6px 10px; background: var(--surface-2, #f4f7f6); border-radius: 8px; }
.od-not-oku .od-not-et { display: inline; margin-right: 4px; }
#order-critical .od-eylem .od-geldi-btn { min-height: 52px; font-size: 16px; }
.od-eylem-ikinci button { flex: 1 1 0; min-height: 44px; }
.od-iptal-btn { color: var(--danger, #b91c1c); }
.od-bek-ara-kutu { margin-top: 8px; }
.od-bek-durum { margin: 6px 0 0; text-align: left; }
.od-tekrar .od-tekrar-btn { flex: 1 1 auto; min-height: 48px; white-space: normal; }
.od-tekrar[hidden] { display: none; }
.od-duzenleniyor { border-color: var(--primary, #1f7a5a) !important; }
.od-gecmis-kart { margin: 4px 0 10px; }
.od-gecmis-detay { margin: 0 !important; padding: 8px 10px !important; border: 1px solid var(--border, #e3e8e6); border-radius: 12px; }
.od-gecmis-ic ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
details[data-bek-gecmis] { margin-top: 6px; font-size: 13px; }
/* ====================== /İŞ 266 Kart ====================== */
/* İŞ 266 Kart: ok başlığın sağ üstünde (satır atlamaz); düzenlemede dar sütuna sıkışan "elde" yazısı gizli */
.od-katla { position: relative; padding-right: 24px; }
.od-katla .od-ok { position: absolute; right: 4px; top: 16px; margin: 0; }
.od-duzenleniyor .od-satir .od-elde { display: none; }

/* Sipariş listesi: "Siparişe ürün ekle" kutusu belirgin (etiket + + / büyüteç simgesi, 2px vurgu çerçevesi, odakta parlama) */
.od-ara-ana { margin: 0 0 14px; }
.od-ara-etiket { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--text); }
.od-ara-alan { position: relative; }
.od-ara-ikon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; color: var(--accent); pointer-events: none; }
.od-ara-ana #od-ara.od-ara { height: 52px; min-height: 52px; box-sizing: border-box; padding: 0 10px 0 46px; border: 2px solid var(--accent); background: #fff; color: var(--text); transition: box-shadow .15s; }
:root[data-theme="dark"] .od-ara-ana #od-ara.od-ara { background: var(--surface-hover, #2b231d); }
.od-ara-ana #od-ara.od-ara::placeholder { color: var(--text-soft, #475467); opacity: 1; font-size: 14.5px; }
.od-ara-ana #od-ara.od-ara:focus, .od-ara-ana #od-ara.od-ara:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .od-ara-ana #od-ara.od-ara { background: var(--surface-hover, #2b231d); } }
.od-ekle-btn { display: block; margin: 12px auto 0; min-height: 48px; padding: 0 22px; font-size: 16px; font-weight: 700; }
/* İŞ 347 (Paket B): restoranda gün sonu TEK ekran — masa / adisyon bölümü + Z raporu / elle giriş bölümü alt alta */
.gsb { display: grid; gap: 18px; min-width: 0; }
.gsb-bas { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.gsb-baslik { margin: 0; font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.02em; line-height: 1.1; }
.gsb-git { display: flex; flex-wrap: wrap; gap: 8px; }
.gsb-git-a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--border, #e4e7ec); border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; background: var(--surface, #fff); }
.gsb-git-a:hover { border-color: var(--accent, #d9531e); }
.gsb-bolum { min-width: 0; scroll-margin-top: 90px; }
.gsb-bolum + .gsb-bolum { border-top: 2px dashed var(--border, #e4e7ec); padding-top: 18px; }
.gsb-bolum-baslik, .gsb .dz-baslik { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.2; }
.gsb .mz-head .dz-baslik { margin: 0; }
.gsb-gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gsb .mz-page { padding-top: 0; }
@media (max-width: 600px) { .gsb-baslik { font-size: 1.6rem; } .gsb-git-a { min-height: 44px; } }

/* İŞ 349 (Sadelik Paket C): Stok › kapalı "Diğer işlemler" (taşınan bölümler iç içe kart gibi durmasın) */
details.card.katla.stok-diger > summary { flex-wrap: wrap; row-gap: 4px; }
details.stok-diger .stok-diger-ne { font-size: 0.85rem; font-weight: 400; }
details.stok-diger .stok-diger-rozet { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
details.stok-diger .stok-diger-rozet:empty { display: none; }
.stok-diger-ic > .card, .stok-diger-ic > details.card, .stok-diger-ic > section.card { box-shadow: none; margin: 12px 0 0; }
.stok-diger-ic > .stock-toolbar { margin: 12px 0 0; flex-wrap: wrap; }
.stok-diger-ic > .stok-export { display: block; margin: 12px 0 0; }
.stok-diger-ic > .stok-export .stok-export-menu { position: static; box-shadow: none; min-width: 0; margin-top: 8px; }
.stok-diger-ic > #stok-araclar { margin-top: 12px; }
.stok-diger-ic > #stok-araclar .tool-card-grid { margin-bottom: 0; }
details#stok-diger.sd-fire { background: transparent; border: 0; box-shadow: none; padding: 0; }
details#stok-diger.sd-fire > .stok-diger-ic { margin: 0; }
/* Özet kartları (Toplam stok değeri ...) "Diğer işlemler" içinde iki kat kart dolgusu yüzünden telefonda ~226 px'e sıkışıyordu; 2 sütunda etiket
   kutusu ~29 px kalıp "Toplam" / "tüketim" kelime ortasından bölünüyordu. Sütun sayısı kabın genişliğine bakar: dar kapta tek sütun.
   Masaüstünde kap çok daha geniş, kural devreye girmez. */
details.stok-ozet { container-type: inline-size; container-name: stok-ozet; }
@container stok-ozet (max-width: 340px) { details.stok-ozet .stok-kpi { grid-template-columns: 1fr; } }
/* İŞ 349: Ayarlar › "Gelişmiş" kartına öteki kartlardan bağlantı */
.ayar-gelismis-ac { min-height: 44px; text-align: left; }
.ayar-gelismis-bolum + .ayar-gelismis-bolum { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
