:root {
  color-scheme: light;
  --duzlem: #f4f4f1; --yuzey: #fcfcfb; --yuzey-2: #f0efec;
  --yazi: #0b0b0b; --yazi-2: #52514e; --soluk: #7b7973;
  --cizgi: #e1e0d9; --eksen: #c3c2b7; --kenar: rgba(11, 11, 11, 0.10);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --sira-acik: #cde2fb; --sira-koyu: #0d366b;
  --iyi: #006300; --kotu: #b42c2c; --uyari: #8a5a00;
  --vurgu: #2a78d6; --vurgu-zemin: #e6f0fc;
  --golge: 0 1px 2px rgba(11, 11, 11, 0.05), 0 4px 14px rgba(11, 11, 11, 0.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --duzlem: #0d0d0d; --yuzey: #1a1a19; --yuzey-2: #242422;
    --yazi: #f0efec; --yazi-2: #c3c2b7; --soluk: #8f8d86;
    --cizgi: #2c2c2a; --eksen: #383835; --kenar: rgba(255, 255, 255, 0.10);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
    --sira-acik: #1b2f47; --sira-koyu: #9ec5f4;
    --iyi: #0ca30c; --kotu: #e66767; --uyari: #fab219;
    --vurgu: #3987e5; --vurgu-zemin: #17283d;
    --golge: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --duzlem: #0d0d0d; --yuzey: #1a1a19; --yuzey-2: #242422;
  --yazi: #f0efec; --yazi-2: #c3c2b7; --soluk: #8f8d86;
  --cizgi: #2c2c2a; --eksen: #383835; --kenar: rgba(255, 255, 255, 0.10);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
  --sira-acik: #1b2f47; --sira-koyu: #9ec5f4;
  --iyi: #0ca30c; --kotu: #e66767; --uyari: #fab219;
  --vurgu: #3987e5; --vurgu-zemin: #17283d;
  --golge: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--duzlem); color: var(--yazi); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
.soluk { color: var(--soluk); }
.sayi { font-variant-numeric: tabular-nums; }

.kabuk { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100%; }
.yan { border-top: 3px solid #e2000f; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 16px; padding: 18px 12px; background: var(--yuzey); border-right: 1px solid var(--cizgi); }
.marka { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; text-decoration: none; }
.marka img { width: 100%; max-width: 190px; height: auto; display: block; }
.marka small { color: var(--soluk); font-size: 12.5px; letter-spacing: 0.02em; }
#menu { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
#menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--yazi-2); }
#menu a:hover { background: var(--yuzey-2); }
#menu a[aria-current="page"] { background: var(--vurgu-zemin); color: var(--yazi); font-weight: 600; }
#menu svg { width: 18px; height: 18px; flex: none; }
.yan-alt { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }

.govde { min-width: 0; padding: 18px 24px 48px; }
.ust { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.ust h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.suzgecler { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.parcali { display: inline-flex; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 9px; padding: 2px; flex-wrap: wrap; }
.parcali button { border: 0; background: none; padding: 6px 10px; border-radius: 7px; cursor: pointer; color: var(--yazi-2); white-space: nowrap; }
.parcali button:hover { background: var(--yuzey-2); }
.parcali button[aria-pressed="true"] { background: var(--vurgu); color: #fff; }
select, input[type="date"], input[type="search"] { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 9px; padding: 7px 10px; min-height: 34px; }
input[type="search"] { min-width: 240px; }
:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 2px; }
.dugme { border: 1px solid var(--vurgu); background: var(--vurgu); color: #fff; border-radius: 9px; padding: 7px 12px; cursor: pointer; }
.dugme.ikincil { background: var(--yuzey); color: var(--yazi); border-color: var(--cizgi); }
.dugme.ikincil:hover { background: var(--yuzey-2); }
.dugme[disabled] { opacity: 0.55; cursor: default; }

.izgara { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.kart { grid-column: span 12; background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 14px; padding: 16px 18px; box-shadow: var(--golge); min-width: 0; animation: belir 0.45s ease both; }
.g3 { grid-column: span 3; } .g4 { grid-column: span 4; } .g5 { grid-column: span 5; } .g6 { grid-column: span 6; } .g7 { grid-column: span 7; } .g8 { grid-column: span 8; }
@keyframes belir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kart { animation: none; } }
.kart h2 { font-size: 15px; font-weight: 620; }
.kart .alt { color: var(--soluk); font-size: 12.5px; margin-top: 2px; }
.kart-bas { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.grafik { width: 100%; height: 300px; }
.grafik.kisa { height: 220px; } .grafik.uzun { height: 420px; } .grafik.cok-uzun { height: 560px; }

.karo .etiket { color: var(--yazi-2); font-size: 13px; }
.karo .deger { font-size: 28px; font-weight: 680; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.15; }
.karo .not { color: var(--soluk); font-size: 12.5px; margin-top: 6px; }
.degisim { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.degisim.iyi { color: var(--iyi); } .degisim.kotu { color: var(--kotu); } .degisim.notr { color: var(--soluk); }

.tablo-sar { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 600; color: var(--yazi-2); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--eksen); white-space: nowrap; position: sticky; top: 0; background: var(--yuzey); }
th.sag, td.sag { text-align: right; }
th button { all: unset; cursor: pointer; }
th button:hover { color: var(--yazi); }
td { padding: 8px 10px; border-bottom: 1px solid var(--cizgi); vertical-align: middle; }
tbody tr:hover { background: var(--yuzey-2); }
td.sag { font-variant-numeric: tabular-nums; white-space: nowrap; }
td a { text-decoration: none; font-weight: 550; }
td a:hover { text-decoration: underline; }
td small { display: block; color: var(--soluk); font-size: 12px; }
.pay { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.pay i { display: block; height: 6px; border-radius: 3px; background: var(--s1); min-width: 2px; }
.pay-yol { width: 70px; flex: none; }
.rozet { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--yuzey-2); color: var(--yazi-2); font-size: 12px; white-space: nowrap; }
.bilgi { background: var(--yuzey-2); border-radius: 10px; padding: 10px 12px; color: var(--yazi-2); font-size: 13px; }
.bos { padding: 28px; text-align: center; color: var(--soluk); }
.yukleniyor { padding: 60px; text-align: center; color: var(--soluk); }
.arac { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.geri { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--yazi-2); margin-bottom: 10px; }
.liste-ozet { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.liste-ozet div strong { display: block; font-size: 19px; font-weight: 650; }
.liste-ozet div span { color: var(--soluk); font-size: 12.5px; }
.gun-secici { display: flex; align-items: center; gap: 6px; }

.ipucu { position: fixed; z-index: 50; pointer-events: none; background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }

@media (max-width: 1100px) {
  .g3 { grid-column: span 6; } .g4, .g5, .g6, .g7, .g8 { grid-column: span 12; }
}
@media (max-width: 760px) {
  .kabuk { grid-template-columns: minmax(0, 1fr); }
  .yan { position: static; height: auto; flex-direction: column; border-right: 0; border-bottom: 1px solid var(--cizgi); padding: 10px 12px; }
  #menu { flex-direction: row; overflow-x: auto; }
  #menu a { white-space: nowrap; }
  .yan-alt { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 0; }
  .govde { padding: 14px 16px 40px; }
  .g3 { grid-column: span 12; }
  .karo .deger { font-size: 24px; }
  input[type="search"] { min-width: 0; width: 100%; }
}

.yaris { position: relative; overflow: hidden; }
.yaris-satir { position: absolute; left: 0; right: 0; top: 0; height: 34px; display: grid; grid-template-columns: minmax(120px, 26%) minmax(0, 1fr); gap: 10px; align-items: center;
  transition: transform 1.1s ease, opacity 0.6s ease; }
.yaris-ad { text-align: right; color: var(--yazi-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yaris-yol { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 76px; }
.yaris-yol i { display: block; height: 22px; border-radius: 0 4px 4px 0; transition: width 1.1s ease; flex: none; max-width: 100%; }
.yaris-yol b { font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; margin-right: -76px; }
@media (prefers-reduced-motion: reduce) { .yaris-satir, .yaris-yol i { transition: none; } }

.giris-govde { display: grid; place-items: center; min-height: 100vh; padding: 20px; border-top: 3px solid #e2000f; }
.giris-kart { width: 100%; max-width: 380px; background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 16px; padding: 28px 26px; box-shadow: var(--golge); animation: belir 0.45s ease both; }
.giris-kart img { width: 190px; max-width: 70%; height: auto; display: block; margin: 0 auto 18px; }
.giris-kart h1 { font-size: 21px; text-align: center; }
.giris-kart > p { text-align: center; margin-top: 4px; }
.giris-kart form { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.giris-kart label { font-weight: 600; font-size: 13px; }
.giris-sifre { display: flex; gap: 8px; }
.giris-kart input[type="email"] { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 9px; padding: 10px 12px; font-size: 16px; margin-bottom: 6px; }
.giris-sifre input { flex: 1; min-width: 0; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 9px; padding: 10px 12px; font-size: 16px; }
.giris-dugme { margin-top: 8px; padding: 11px 12px; font-weight: 600; font-size: 15px; background: #e2000f; border-color: #e2000f; }
.giris-dugme:hover { filter: brightness(0.94); }
.giris-kart .giris-hata { color: var(--kotu); font-weight: 600; text-align: left; margin: 0; }
.giris-kart .giris-not { font-size: 12.5px; margin-top: 14px; }

/* ---- Üst çubuk, araç düğmeleri ---- */
.ust { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--duzlem) 88%, transparent); backdrop-filter: blur(8px); margin: -18px -24px 18px; padding: 14px 24px 12px; border-bottom: 1px solid transparent; }
.ust-sag { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: flex-end; }
.ust-araclar { display: flex; gap: 8px; }
.dugme.simgeli { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dugme.simgeli svg { width: 17px; height: 17px; flex: none; }
#gizle-dugme[aria-pressed="true"] { background: var(--vurgu-zemin); border-color: var(--vurgu); font-weight: 600; }
.dugme.kucuk { padding: 4px 9px; font-size: 12.5px; }
.dugme.tehlike { background: #c8102e; border-color: #c8102e; }
.dugme.tehlike-yazi { color: var(--kotu); }
.atla { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yuzey); padding: 8px 12px; border-radius: 8px; }
.atla:focus { left: 8px; }
.gorunmez { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- Yükleniyor iskeleti ---- */
.iskelet { min-height: 104px; box-shadow: none; background: linear-gradient(100deg, var(--yuzey) 30%, var(--yuzey-2) 50%, var(--yuzey) 70%); background-size: 300% 100%; animation: parla 1.3s linear infinite; }
.iskelet.uzun { min-height: 340px; }
@keyframes parla { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .iskelet { animation: none; } }

/* ---- Profil ---- */
.profil { border-top: 1px solid var(--cizgi); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.profil-kim { display: flex; align-items: center; gap: 9px; min-width: 0; }
.profil-kim strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-kim small { color: var(--soluk); display: block; }
.profil-harf { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #e2000f; color: #fff; font-weight: 700; }
.profil-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.profil-dugmeler .dugme { padding: 6px 6px; font-size: 12.5px; }

/* ---- Pencere ve form ---- */
.pencere { border: 1px solid var(--kenar); border-radius: 16px; background: var(--yuzey); color: var(--yazi); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3); }
.pencere::backdrop { background: rgba(0, 0, 0, 0.45); }
.form { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; }
.form h2 { font-size: 18px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; }
.form label small, .form fieldset small { font-weight: 400; color: var(--soluk); }
.form input:not([type="checkbox"]), .form select { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 9px; padding: 9px 11px; font-size: 15px; font-weight: 400; }
.form fieldset { border: 1px solid var(--cizgi); border-radius: 10px; padding: 10px 12px 12px; margin: 0; min-width: 0; }
.form legend { font-weight: 600; font-size: 13px; padding: 0 6px; }
.kutular { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px 12px; margin-top: 8px; }
.kutular.tek-sutun { grid-template-columns: 1fr; }
.form label.kutu { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 13.5px; cursor: pointer; }
.kutu input { width: 17px; height: 17px; margin-top: 1px; flex: none; accent-color: #e2000f; }
.kutu small { display: block; }
.form-hata { color: var(--kotu); font-weight: 600; }
.form-dugmeler { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---- Yönetim ---- */
.rol-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rol-kart { border: 1px solid var(--cizgi); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rol-kart header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 4px; }
.rol-kart h3 { margin: 0; font-size: 15px; }
.rol-dugmeler { display: flex; gap: 4px; }
.rol-not { color: var(--uyari); font-weight: 600; }
.durum-etiket { font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.durum-etiket.acik { color: var(--iyi); } .durum-etiket.kapali { color: var(--soluk); }

/* ---- Bildirim ---- */
#bildirimler { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.bildirim { background: var(--yazi); color: var(--yuzey); padding: 10px 16px; border-radius: 10px; font-weight: 550; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25); animation: belir 0.25s ease both; max-width: calc(100vw - 32px); }
.bildirim.hata { background: #c8102e; color: #fff; }

@media (max-width: 760px) {
  .ust { margin: -14px -16px 14px; padding: 10px 16px; position: static; }
  .ust-sag { justify-content: flex-start; }
  .profil { border-top: 0; padding-top: 0; flex-direction: row; align-items: center; flex-wrap: wrap; }
}

[hidden] { display: none !important; }

/* ---- Kıyas dönemi: ok + yüzde üstte, neye göre olduğu (tarihleriyle) altında ---- */
.degisim-ek { flex-basis: 100%; font-weight: 400; color: var(--soluk); font-size: 12px; }
/* ---- Sipariş önerisi / işlem kayıtları ---- */
.arac-cubugu { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.arac-cubugu label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--soluk); }
.arac-cubugu .it { margin-left: auto; display: flex; gap: 8px; }
.rozet.uyari { background: color-mix(in srgb, #e8a400 22%, transparent); color: var(--yazi); }
.rozet.tehlike { background: color-mix(in srgb, #c8102e 16%, transparent); color: var(--yazi); }
.oneri { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
@media print {
  .yan, .ust-sag, .arac-cubugu, #bildirimler, .atla { display: none !important; }
  .kabuk { display: block; } .kart { box-shadow: none; break-inside: auto; animation: none; }
  [style*="max-height"] { max-height: none !important; overflow: visible !important; }
}

/* ---- Telefon: daha kısa başlık, süzgeçler iki sütun ---- */
@media (max-width: 760px) {
  .yan { gap: 8px; padding-top: 8px; }
  .marka { display: flex; align-items: center; gap: 10px; }
  .marka img { width: 92px; height: auto; }
  .yan-alt { gap: 8px; font-size: 12px; }
  .arac-cubugu label { flex: 1 1 140px; min-width: 0; }
  .arac-cubugu select, .arac-cubugu input { width: 100%; min-width: 0; }
  .arac-cubugu .it { margin-left: 0; width: 100%; }
  .arac-cubugu .it .dugme { flex: 1; }
}

.eksi-deger { color: var(--kotu); font-weight: 600; }

.urun-listesi { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.55; }
.urun-listesi li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }

/* ---- Bugün dikkat kutusu ---- */
.dikkat { border-left: 4px solid #e2000f; }
.dikkat-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px 22px; }
.dikkat-bolum h3 { font-size: 14px; margin: 0 0 2px; display: flex; align-items: center; gap: 6px; }
.dikkat-bolum p { margin: 0 0 6px; font-size: 12px; }
.dikkat-bolum .urun-listesi li { max-width: none; white-space: normal; }
.dikkat-yok { color: var(--iyi); font-weight: 600; }
.dikkat-bag { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; }
/* ---- Şube karşılaştırma ---- */
.sube-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.sube-kutu h3 { font-size: 14px; margin: 0 0 6px; }
/* ---- Tabloyu Excel'e indir ---- */
.tablo-indir-sar { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.tablo-indir { font: inherit; font-size: 12px; color: var(--soluk); background: none; border: 0; padding: 2px 4px; cursor: pointer; border-radius: 6px; }
.tablo-indir:hover, .tablo-indir:focus-visible { color: var(--yazi); background: var(--yuzey-2); }
@media print { .tablo-indir-sar { display: none !important; } }

/* ---- Ürün kartı bilgi ızgarası ---- */
.bilgi-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 22px; margin: 12px 0 0; }
.bilgi-izgara dt { color: var(--soluk); font-size: 12px; }
.bilgi-izgara dd { margin: 1px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---- Genel arama ---- */
.arama { position: relative; }
#genel-ara { width: 280px; min-width: 0; padding-left: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.500-3.500'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 9px 50%; background-size: 16px; }
.ara-sonuc { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; width: min(520px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow-y: auto; background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 12px; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22); padding: 6px; }
.ara-oge { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ara-oge:hover, .ara-oge[aria-selected="true"] { background: var(--vurgu-zemin); }
.ara-ad { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ara-alt { grid-column: 1; color: var(--soluk); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ara-sag { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--yazi-2); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ara-bos { padding: 12px; color: var(--soluk); }

.simge-dugme { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--yazi); }
.simge-dugme:hover { background: var(--yuzey-2); }
.simge-dugme svg { width: 22px; height: 22px; }
.yalniz-mobil { display: none !important; }
.perde { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.45); }

/* =====================================================================================================================
   TELEFON DÜZENİ (≤ 760px): sabit üst çubuk, soldan açılan menü, açılır süzgeçler, iki sütun karolar.
   ===================================================================================================================== */
@media (max-width: 760px) {
  .yalniz-mobil { display: inline-flex !important; }
  .yalniz-mobil[hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; }
  .kabuk { display: block; }

  /* Menü: soldan açılan çekmece */
  .yan { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(300px, 86vw); height: 100dvh; transform: translateX(-104%); transition: transform 0.22s ease, visibility 0.22s;
    flex-direction: column; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom)); overflow-y: auto;
    border-right: 1px solid var(--cizgi); border-bottom: 0; box-shadow: none; visibility: hidden; }
  .menu-acik .yan { transform: none; visibility: visible; box-shadow: 0 0 44px rgba(0, 0, 0, 0.28); }
  .menu-acik { overflow: hidden; }
  #menu-kapat { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; }
  .marka { flex-direction: column; align-items: flex-start; gap: 4px; padding-right: 44px; }
  .marka img { width: 132px; }
  #menu { flex-direction: column; overflow: visible; gap: 1px; }
  #menu a { padding: 11px 10px; font-size: 15px; white-space: normal; }
  #menu svg { width: 20px; height: 20px; }
  .yan-alt { flex-direction: column; align-items: stretch; margin-top: auto; font-size: 12.5px; }
  .yan-alt .dugme { padding: 10px 12px; }
  .profil { border-top: 1px solid var(--cizgi); padding-top: 10px; flex-direction: column; align-items: stretch; }

  /* Üst çubuk: [menü] [başlık] [gizle/tema] — altında [arama] [süzgeç] */
  .govde { padding: 0 12px calc(28px + env(safe-area-inset-bottom)); }
  .ust { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 40px auto minmax(0, 1fr) auto auto; gap: 6px 8px; align-items: center;
    margin: 0 -12px 12px; padding: calc(6px + env(safe-area-inset-top)) 10px 8px; background: var(--yuzey); backdrop-filter: none; border-bottom: 1px solid var(--cizgi); }
  .ust h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #sayfa-aciklama { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ust-sag { display: contents; }
  .ust-araclar { grid-column: 5; grid-row: 1; gap: 2px; }
  #tema-dugme { display: none; }
  #tema-dugme-2 { justify-content: center; }
  .ust-logo img { height: 30px; width: auto; display: block; border-radius: 5px; }
  .ust-araclar .dugme { padding: 9px; border-color: transparent; background: none; }
  .ust-araclar .dugme span { display: none; }
  .ust-araclar .dugme svg { width: 20px; height: 20px; }
  .arama { grid-column: 1 / -1; grid-row: 2; }
  .arama:only-of-type, .arama.tam { grid-column: 1 / -1; }
  #genel-ara { width: 100%; }
  .ara-sonuc { left: 0; right: auto; width: calc(100vw - 20px); max-height: 62vh; }
  #suzgec-ac { grid-column: 4; grid-row: 1; padding: 9px; justify-content: center; border-color: transparent; background: none; }
  #suzgec-ac span { display: none; }
  #suzgec-ac svg { width: 20px; height: 20px; }
  .suzgec-acik #suzgec-ac { background: var(--vurgu-zemin); border-color: var(--vurgu); }
  .suzgecler { grid-column: 1 / -1; display: none; }
  .suzgec-acik .suzgecler { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .suzgecler .parcali { grid-column: 1 / -1; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .suzgecler .parcali button { flex: 1 0 auto; padding: 8px 10px; }
  .suzgecler select, .suzgecler input { width: 100%; min-width: 0; }
  /* iOS odaklanınca yakınlaştırmasın */
  select, input[type="date"], input[type="search"], input[type="text"], input[type="email"], input[type="password"] { font-size: 16px; min-height: 40px; }

  /* İçerik */
  .izgara { gap: 10px; }
  .kart { padding: 12px; border-radius: 12px; }
  .g3 { grid-column: span 6; }
  .g4, .g5, .g6, .g7, .g8 { grid-column: span 12; }
  .karo .etiket { font-size: 12px; }
  .karo .deger { font-size: 19px; overflow-wrap: anywhere; }
  .karo .not, .degisim, .degisim-ek { font-size: 11.5px; }
  .kart-bas { flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; }
  .kart-bas h2 { font-size: 15px; }
  .kart-bas .alt { font-size: 12px; }
  .grafik { height: 250px; } .grafik.kisa { height: 190px; } .grafik.uzun { height: 360px; }
  table { font-size: 12.5px; }
  th { font-size: 11.5px; padding: 7px 8px; }
  td { padding: 7px 8px; }
  td small { font-size: 11px; }
  .tablo-sar { margin: 0 -12px; padding: 0 12px; -webkit-overflow-scrolling: touch; }
  .urun-listesi li { max-width: 34ch; }
  .arac { gap: 8px; }
  .arac > input[type="search"], .arac > select { flex: 1 1 100%; }
  .arac .parcali { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .arac .parcali button { flex: 1 0 auto; }
  .arac-cubugu label { flex: 1 1 140px; min-width: 0; }
  .arac-cubugu label > span { flex-wrap: wrap; }
  .arac-cubugu .parcali { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .arac-cubugu .parcali button { flex: 1 0 auto; }
  .gun-secici { width: 100%; justify-content: space-between; }
  .bilgi { font-size: 12.5px; }
  .bilgi-izgara { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .dikkat-izgara, .sube-izgara, .rol-izgara { grid-template-columns: 1fr; }
  .liste-ozet { grid-template-columns: 1fr; gap: 8px; }
  .pencere { width: calc(100vw - 16px); }
  .form { padding: 18px 16px; }
  .form-dugmeler .dugme { flex: 1; padding: 10px 12px; }
  #bildirimler { bottom: calc(16px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
  .bildirim { width: 100%; text-align: center; }
}
@media (max-width: 380px) {
  .karo .deger { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .yan { transition: none; } }

.dikkat-bolum summary { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; margin-bottom: 2px; }
.dikkat-bolum summary::-webkit-details-marker { display: none; }
.dikkat-bolum summary::after { content: "▾"; margin-left: auto; color: var(--soluk); font-weight: 400; }
.dikkat-bolum[open] summary::after { content: "▴"; }
@media (min-width: 761px) { .dikkat-bolum summary { cursor: default; pointer-events: none; } .dikkat-bolum summary::after { display: none; } }
@media (max-width: 760px) {
  .dikkat-izgara { gap: 0; }
  .dikkat-bolum { border-top: 1px solid var(--cizgi); padding: 9px 0; }
  .dikkat-bolum:first-child { border-top: 0; padding-top: 2px; }
  .dikkat-bolum summary { margin: 0; }
  .dikkat-bolum[open] summary { margin-bottom: 4px; }
}

.imza { margin: 2px 0 0; color: var(--soluk); font-size: 11.5px; line-height: 1.4; }
.imza b { color: var(--yazi-2); font-weight: 600; }
.giris-kart .imza { text-align: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--cizgi); }

.dikkat-baglar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.dikkat-baglar .dugme { text-decoration: none; font-weight: 600; }
.dikkat-baglar .dikkat-bag { margin-top: 0; font-weight: 500; color: var(--yazi-2); }

/* ---- Bugün dikkat (yeni düzen): her başlık kendi kartında, küçük tabloyla ---- */
.dikkat-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; }
.dikkat-kart { border: 1px solid var(--cizgi); border-radius: 12px; padding: 12px 14px; background: var(--yuzey); display: flex; flex-direction: column; min-width: 0; }
.dikkat-kart summary { display: flex; align-items: center; gap: 12px; list-style: none; pointer-events: none; }
.dikkat-kart summary::-webkit-details-marker { display: none; }
.dikkat-sayi { flex: none; min-width: 52px; padding: 6px 8px; border-radius: 10px; text-align: center; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; background: color-mix(in srgb, #c8102e 12%, transparent); color: var(--kotu); }
.dikkat-kart.temiz .dikkat-sayi { background: color-mix(in srgb, #0ca30c 14%, transparent); color: var(--iyi); }
.dikkat-baslik { display: flex; flex-direction: column; min-width: 0; }
.dikkat-baslik b { font-size: 14.5px; }
.dikkat-baslik small { color: var(--soluk); font-size: 12px; }
.dikkat-tablo { margin-top: 10px; table-layout: fixed; font-size: 13px; }
.dikkat-tablo th { position: static; font-size: 11.5px; font-weight: 500; color: var(--soluk); padding: 4px 6px; border-bottom: 1px solid var(--cizgi); white-space: nowrap; width: 84px; }
.dikkat-tablo th:first-child { width: auto; padding-left: 0; }
.dikkat-tablo td { padding: 7px 6px; border-bottom: 1px solid var(--cizgi); white-space: nowrap; }
.dikkat-tablo tr:last-child td { border-bottom: 0; }
.dikkat-tablo td.dikkat-urun { padding-left: 0; overflow: hidden; text-overflow: ellipsis; }
.dikkat-tablo td.dikkat-urun a { font-weight: 550; text-decoration: none; }
.dikkat-tablo td.dikkat-urun a:hover { text-decoration: underline; }
.dikkat-kart .dikkat-baglar { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dikkat-kart .dikkat-baglar .dugme { text-decoration: none; font-weight: 600; padding: 6px 12px; }
.dikkat-kart .dikkat-bag { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--yazi-2); text-decoration: none; }
.dikkat-kart .dikkat-bag:hover { text-decoration: underline; }
.dikkat-kart .dikkat-yok { margin: 10px 0 0; color: var(--soluk); font-weight: 400; font-size: 13px; }
@media (max-width: 760px) {
  .dikkat-izgara { grid-template-columns: 1fr; gap: 8px; }
  .dikkat-kart { padding: 10px 12px; }
  .dikkat-kart summary { pointer-events: auto; cursor: pointer; }
  .dikkat-kart summary::after { content: "▾"; margin-left: auto; color: var(--soluk); }
  .dikkat-kart[open] summary::after { content: "▴"; }
  .dikkat-sayi { min-width: 46px; font-size: 17px; padding: 5px 6px; }
  .dikkat-tablo th { width: 68px; }
  .dikkat-tablo { font-size: 12.5px; }
}

.dikkat-tablo.s1 th { width: 130px; } .dikkat-tablo.s3 th { width: 92px; }
.dikkat-tablo th:first-child { width: auto; }
@media (max-width: 760px) {
  /* Telefonda: ürün adı tam satır, rakamlar altında etiketleriyle */
  .dikkat-tablo thead { display: none; }
  .dikkat-tablo, .dikkat-tablo tbody { display: block; }
  .dikkat-tablo tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 8px 0; border-bottom: 1px solid var(--cizgi); }
  .dikkat-tablo tr:last-child { border-bottom: 0; }
  .dikkat-tablo td { border: 0; padding: 0; }
  .dikkat-tablo td.dikkat-urun { flex: 1 1 100%; white-space: normal; }
  .dikkat-tablo td.sag { text-align: left; }
  .dikkat-tablo td.sag::before { content: attr(data-b) ": "; color: var(--soluk); font-size: 11.5px; font-weight: 400; }
}

.uyari-serit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 14px; border-left: 4px solid #e8a400; background: color-mix(in srgb, #e8a400 9%, var(--yuzey)); font-size: 13px; box-shadow: none; }
.uyari-serit > div:first-child { flex: 1 1 420px; min-width: 0; }
.uyari-baglar { display: flex; flex-wrap: wrap; gap: 6px; }
.uyari-baglar .dugme { text-decoration: none; white-space: nowrap; }

/* ---- Geniş ekran üst çubuğu: 1. satır başlık + arama + araçlar, 2. satır süzgeçler (soldan hizalı, tek sıra) ---- */
@media (min-width: 761px) {
  .ust { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px 12px; align-items: center; }
  .ust-sag { display: contents; }
  .ust-baslik { grid-column: 1; grid-row: 1; min-width: 0; }
  .arama { grid-column: 2; grid-row: 1; }
  #genel-ara { width: 320px; }
  .ust-araclar { grid-column: 3; grid-row: 1; }
  .suzgecler { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .suzgecler:empty { display: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  #genel-ara { width: 220px; }
  .ust-araclar .dugme span { display: none; }
}

.bag-dugme { all: unset; cursor: pointer; }
.bag-dugme:hover strong { text-decoration: underline; }
.bag-dugme:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 2px; border-radius: 4px; }
