[hidden] { display:none !important; }
:root { --bg:#f3f4f6; --fg:#1f2937; --muted:#6b7280; --accent:#b5472b; --card:#fff; --line:#e5e7eb; --side:#1f2430; --side-fg:#cbd2e0; --ok:#2f7d3b; --warn:#c77d0a; --bad:#b42318; }
* { box-sizing:border-box; }
body.panel { margin:0; background:var(--bg); color:var(--fg); font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif; }
.panel a { color:var(--accent); }
.panel button { font:inherit; }
.layout { display:flex; min-height:100vh; }
.side { width:240px; background:var(--side); color:var(--side-fg); display:flex; flex-direction:column; position:sticky; top:0; height:100vh; flex:none; }
.side .brand { padding:20px 18px; font-weight:700; color:#fff; font-size:1.05rem; border-bottom:1px solid #2d3445; }
.side .brand small { display:block; font-weight:400; color:#8b94a8; font-size:.78rem; margin-top:2px; }
.side nav { flex:1; padding:10px 8px; overflow:auto; }
.side nav button, .side nav a { display:flex; justify-content:space-between; align-items:center; width:100%; text-align:left; background:none; border:0; color:var(--side-fg); padding:10px 12px; border-radius:8px; cursor:pointer; text-decoration:none; margin-bottom:2px; }
.side nav button:hover, .side nav a:hover { background:#2a3142; }
.side nav button.on { background:var(--accent); color:#fff; }
.side .foot { padding:12px 14px; border-top:1px solid #2d3445; font-size:.85rem; }
.side .foot button { margin-top:8px; width:100%; }
.pill { background:#e5484d; color:#fff; border-radius:999px; font-size:.72rem; padding:1px 7px; min-width:20px; text-align:center; }
.pill:empty, .pill[hidden] { display:none; }
.main { flex:1; min-width:0; }
.top { display:none; background:var(--side); color:#fff; padding:10px 14px; align-items:center; gap:10px; position:sticky; top:0; z-index:5; }
.top button { background:none; border:1px solid #4a5268; color:#fff; border-radius:8px; padding:6px 10px; }
.content { padding:24px; max-width:1400px; }
.content h1 { margin:0 0 16px; font-size:1.4rem; }
.cardx { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; margin-bottom:16px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; margin-bottom:18px; }
.tile { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; }
.tile small { color:var(--muted); display:block; }
.tile b { font-size:1.7rem; }
.tbl { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.tbl th, .tbl td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.tbl th { background:#f9fafb; font-size:.8rem; color:var(--muted); text-transform:none; }
.tbl tr:last-child td { border-bottom:0; }
.tablewrap { overflow-x:auto; }
.btn { border:1px solid var(--line); border-radius:8px; padding:8px 12px; cursor:pointer; background:#fff; color:var(--fg); text-decoration:none; display:inline-block; }
.btn.dark { background:#1f2937; color:#fff; border-color:#1f2937; }
.btn.acc { background:var(--accent); color:#fff; border-color:var(--accent); }
.btn.sm { padding:4px 9px; font-size:.85rem; }
.btn:disabled { opacity:.5; cursor:default; }
.bar { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
.badge-s { display:inline-block; padding:2px 9px; border-radius:999px; font-size:.78rem; font-weight:600; background:#eef2ff; color:#3730a3; }
.badge-s.yeni { background:#fee2e2; color:#991b1b; } .badge-s.onaylandi, .badge-s.hazirlaniyor { background:#fef3c7; color:#92400e; }
.badge-s.hazir, .badge-s.yolda { background:#dbeafe; color:#1e40af; } .badge-s.teslim { background:#dcfce7; color:#166534; } .badge-s.iptal { background:#e5e7eb; color:#4b5563; }
.fld { display:block; margin:10px 0; font-size:.85rem; color:var(--muted); }
.fld input, .fld select, .fld textarea { display:block; width:100%; margin-top:3px; padding:9px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; color:var(--fg); }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.msg-ok { color:var(--ok); min-height:1.3em; } .msg-bad { color:var(--bad); min-height:1.3em; }
.muted { color:var(--muted); font-size:.88rem; }
.items { margin:0; padding-left:18px; } .items small { color:var(--muted); display:block; }
.steps { display:flex; gap:4px; margin:14px 0; flex-wrap:wrap; }
.step { flex:1; min-width:80px; text-align:center; font-size:.78rem; color:var(--muted); }
.step i { display:block; height:6px; border-radius:3px; background:var(--line); margin-bottom:5px; }
.step.done i { background:var(--ok); } .step.done { color:var(--fg); }
.step.now i { background:var(--accent); } .step.now { color:var(--accent); font-weight:700; }
.chat { display:flex; flex-direction:column; gap:8px; max-height:50vh; overflow-y:auto; padding:6px 2px; margin-bottom:10px; }
.bub { max-width:80%; padding:8px 12px; border-radius:14px; background:#eef0f3; align-self:flex-start; white-space:pre-wrap; word-break:break-word; }
.bub.me { background:var(--accent); color:#fff; align-self:flex-end; }
.bub small { display:block; opacity:.7; font-size:.72rem; margin-top:3px; }
.split { display:grid; grid-template-columns:300px 1fr; gap:16px; }
.thread { padding:10px 12px; border-bottom:1px solid var(--line); cursor:pointer; }
.thread:hover, .thread.on { background:#f9fafb; }
.thread b { display:flex; justify-content:space-between; gap:6px; } .thread span { color:var(--muted); font-size:.82rem; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.authbox { max-width:420px; margin:6vh auto; padding:0 16px; }
.tabs { display:flex; margin-bottom:12px; border-bottom:1px solid var(--line); }
.tabs button { flex:1; background:none; border:0; padding:10px; cursor:pointer; color:var(--muted); border-bottom:2px solid transparent; }
.tabs button.on { color:var(--accent); border-color:var(--accent); font-weight:700; }
/* menü düzenleyici (eski stil) */
.cat { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px; margin-bottom:14px; }
.prod { border-top:1px solid var(--line); padding:10px 0; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.prod label, .cat > label { font-size:.78rem; color:var(--muted); display:block; }
.prod input, .cat > label input { width:100%; padding:7px 8px; border:1px solid var(--line); border-radius:6px; margin-top:2px; font:inherit; }
.prod .full { grid-column:1 / -1; } .prod .acts { display:flex; gap:8px; grid-column:1 / -1; }
@media (max-width:860px) {
  .side { position:fixed; left:-260px; top:0; z-index:20; transition:left .2s; width:250px; }
  .side.open { left:0; }
  .top { display:flex; }
  .content { padding:14px; }
  .split, .grid2, .prod { grid-template-columns:1fr; }
}

/* menü düzenleyici */
.srch { flex:1; min-width:180px; padding:9px 12px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; }
.btn.danger { color:var(--bad); border-color:#f3c9c4; }
.chev { margin-left:auto; color:var(--muted); transition:transform .15s; font-size:1.3rem; line-height:1; }
details[open] > summary > .chev { transform:rotate(90deg); }
summary { list-style:none; cursor:pointer; } summary::-webkit-details-marker { display:none; }
.ccard { background:var(--card); border:1px solid var(--line); border-radius:12px; margin-bottom:14px; overflow:hidden; }
.ccard > summary { display:flex; align-items:center; gap:10px; padding:14px 16px; background:#f9fafb; font-size:1.02rem; }
.cnt { background:#eef0f3; color:var(--muted); border-radius:999px; padding:1px 9px; font-size:.78rem; }
.chead { display:grid; grid-template-columns:1fr auto; gap:12px; padding:14px 16px; border-top:1px solid var(--line); align-items:end; }
.chead label { font-size:.78rem; color:var(--muted); display:block; }
.chead input, .pbody input { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:8px; margin-top:3px; font:inherit; color:var(--fg); background:#fff; }
.plist { border-top:1px solid var(--line); }
.pitem { border-bottom:1px solid var(--line); } .pitem:last-child { border-bottom:0; }
.pitem > summary { display:flex; align-items:center; gap:12px; padding:10px 16px; }
.pitem > summary:hover { background:#fafafa; }
.thumb { width:48px; height:48px; border-radius:8px; background:#f1ede6; overflow:hidden; flex:none; display:grid; place-items:center; font-size:1.3rem; }
.thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.pmain { flex:1; min-width:0; } .pmain b { display:block; } .pmain small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin:0; }
.pprice { text-align:right; white-space:nowrap; } .pprice s { color:var(--muted); font-size:.85rem; } .camp { color:var(--accent); }
.pbody { display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; padding:6px 16px 16px 76px; background:#fcfcfd; }
.pbody label { font-size:.78rem; color:var(--muted); display:block; }
.pbody .full { grid-column:1 / -1; } .pbody .acts { grid-column:1 / -1; display:flex; justify-content:flex-end; }
.cfoot { padding:12px 16px; border-top:1px solid var(--line); background:#f9fafb; }
@media (max-width:860px) { .chead, .pbody { grid-template-columns:1fr; } .pbody { padding-left:16px; } }

/* ürün düzenleme penceresi */
.pitem { display:flex; align-items:center; gap:12px; padding:10px 16px; cursor:pointer; border-bottom:1px solid var(--line); }
.pitem:hover, .pitem:focus-visible { background:#f6f7f9; outline:none; }
.editbtn { color:var(--accent); font-size:.85rem; font-weight:600; white-space:nowrap; border:1px solid #ecd0c8; border-radius:8px; padding:5px 10px; background:#fff7f4; }
.pdlg { border:0; border-radius:16px; padding:0; width:min(920px, 96vw); max-height:92vh; box-shadow:0 20px 60px rgba(0,0,0,.35); color:var(--fg); font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif; overflow:hidden; }
.pdlg[open] { display:flex; flex-direction:column; }
.pdlg::backdrop { background:rgba(15,18,28,.55); backdrop-filter:blur(2px); }
.phead { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 22px; background:var(--side); color:#fff; }
.phead h2 { margin:0; font-size:1.15rem; }
.phead .x { background:none; border:0; color:#fff; font-size:1.8rem; line-height:1; cursor:pointer; }
.pgrid { display:grid; grid-template-columns:280px 1fr; gap:24px; padding:22px; overflow-y:auto; }
.ppreview { aspect-ratio:1; border-radius:14px; background:#f1ede6; overflow:hidden; display:grid; place-items:center; font-size:3rem; text-align:center; }
.ppreview img { width:100%; height:100%; object-fit:cover; display:block; }
.ppreview small { display:block; font-size:.8rem; color:var(--muted); }
.plabel { display:block; margin-top:12px; font-size:.8rem; color:var(--muted); }
.plabel input, .psec input { width:100%; padding:9px 11px; border:1px solid var(--line); border-radius:8px; margin-top:4px; font:inherit; color:var(--fg); background:#fff; }
.psec { margin-bottom:18px; } .psec:last-child { margin-bottom:0; }
.psec h3 { margin:0 0 8px; font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:var(--accent); }
.psec label { display:block; font-size:.8rem; color:var(--muted); margin-bottom:8px; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; } .row2 label { margin-bottom:0; }
.chips2 { display:flex; flex-wrap:wrap; gap:8px; }
.chip { display:inline-block !important; margin:0 !important; position:relative; }
.chip input { position:absolute; opacity:0; width:0 !important; height:0; }
.chip span { display:inline-block; padding:6px 13px; border:1px solid var(--line); border-radius:999px; color:var(--fg); cursor:pointer; background:#fff; user-select:none; }
.chip input:checked + span { background:var(--accent); border-color:var(--accent); color:#fff; }
.chip input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
.pfoot { display:flex; justify-content:space-between; padding:14px 22px; border-top:1px solid var(--line); background:#f9fafb; }
@media (max-width:760px) { .pgrid { grid-template-columns:1fr; padding:16px; } .ppreview { aspect-ratio:16/9; } .row2 { grid-template-columns:1fr; } .editbtn { display:none; } }

.upl { display:inline-block; margin-top:10px; cursor:pointer; }
.tick { display:block; padding:5px 0; cursor:pointer; font-size:.92rem; color:var(--fg); }
.ticks { columns:2; margin-top:6px; } .ticks .tick { break-inside:avoid; }
.srch { font:inherit; }
@media (max-width:760px) { .ticks { columns:1; } }

/* ayarlar */
.scard { padding:0; overflow:hidden; }
.shead { padding:16px 20px 0; } .shead h3 { margin:0; font-size:1rem; } .shead p { margin:4px 0 0; }
.sbody { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px 16px; padding:14px 20px 20px; }
.sbody .full { grid-column:1 / -1; }
.sbody label { display:block; font-size:.8rem; color:var(--muted); }
.sbody input { width:100%; padding:9px 11px; border:1px solid var(--line); border-radius:8px; margin-top:4px; font:inherit; color:var(--fg); background:#fff; }
.imgrow { display:flex; gap:16px; align-items:flex-start; }
.imgprev { width:96px; height:96px; flex:none; border-radius:12px; background:#f1ede6; overflow:hidden; display:grid; place-items:center; color:var(--muted); font-size:.78rem; text-align:center; }
.imgprev.wide { width:200px; height:112px; }
.imgprev img { width:100%; height:100%; object-fit:cover; display:block; }
.imgprev.logo-prev { width:200px; height:96px; background:#fff; border:1px solid var(--line); }
.imgprev.logo-prev img { object-fit:contain; padding:8px; box-sizing:border-box; }
.imginfo { flex:1; min-width:0; } .imginfo .upl { margin-top:8px; }
@media (max-width:760px) { .imgrow { flex-direction:column; } .imgprev.wide { width:100%; height:auto; aspect-ratio:16/9; } }
.sbody label.upl { display:inline-block; width:auto; color:var(--fg); font-size:.85rem; }
.savebar { position:sticky; top:0; z-index:6; background:var(--bg); padding:10px 0; margin:0 0 10px; border-bottom:1px solid var(--line); }
.savebar .msg-ok, .savebar .msg-bad { margin-left:6px; min-height:0; }
@media (max-width:860px) { .savebar { top:48px; } }

/* masalar */
.legend { display:flex; gap:16px; margin:0 0 14px; font-size:.85rem; color:var(--muted); flex-wrap:wrap; }
.dot { display:inline-block; width:12px; height:12px; border-radius:4px; margin-right:6px; vertical-align:-1px; border:1px solid var(--line); }
.dot.bos { background:#fff; } .dot.dolu { background:#fbd38d; border-color:#f0b35a; } .dot.bekliyor { background:#f87171; border-color:#ef4444; }
.tgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:14px; margin-bottom:16px; }
.tbox { text-align:left; border:2px solid var(--line); background:#fff; border-radius:14px; padding:14px; min-height:104px; cursor:pointer; display:flex; flex-direction:column; gap:4px; color:var(--fg); }
.tbox b { font-size:1.1rem; }
.tbox .tstate { font-size:.82rem; color:var(--muted); } .tbox .ttotal { margin-top:auto; font-weight:700; font-size:1.05rem; }
.tbox:hover { border-color:#bcc3cf; }
.tbox.dolu { background:#fff4e0; border-color:#f0b35a; } .tbox.dolu .tstate { color:#8a5a00; }
.tbox.bekliyor { background:#fee2e2; border-color:#ef4444; animation:pulse 1.6s infinite; } .tbox.bekliyor .tstate { color:#b42318; font-weight:700; }
@keyframes pulse { 0%,100% { box-shadow:0 0 0 0 rgba(239,68,68,.45); } 50% { box-shadow:0 0 0 8px rgba(239,68,68,0); } }
.tdlg { width:min(640px, 96vw); }
.tord { border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin-bottom:12px; }
.thead2 { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:6px; }
.ttot { display:flex; justify-content:space-between; font-size:1.1rem; padding-top:10px; border-top:2px solid var(--line); }

/* seçenek grupları */
.row3 { display:grid; grid-template-columns:2fr 1fr 1fr; gap:12px; }
.gbody { padding:14px 16px 16px; border-top:1px solid var(--line); }
.gbody label { display:block; font-size:.8rem; color:var(--muted); }
.gbody input { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:8px; margin-top:3px; font:inherit; color:var(--fg); background:#fff; }
.gopts { margin-top:12px; display:grid; gap:6px; max-height:420px; overflow:auto; padding-right:4px; }
.grow { display:grid; grid-template-columns:1fr 110px auto; gap:8px; align-items:center; }
.grow input { margin:0 !important; }
.gpicks { display:grid; gap:6px; max-height:220px; overflow:auto; border:1px solid var(--line); border-radius:10px; padding:8px 10px; }
.gpick { display:flex !important; gap:10px; align-items:flex-start; color:var(--fg) !important; font-size:.92rem !important; margin:0 !important; cursor:pointer; }
.gpick input { width:auto !important; margin-top:4px; }
.gpick small { display:block; color:var(--muted); font-size:.78rem; }
@media (max-width:760px) { .row3 { grid-template-columns:1fr; } .grow { grid-template-columns:1fr 90px auto; } }

/* hesap: kullanıcı kutusu */
.userbrand { display:flex; align-items:center; gap:10px; }
.av { width:40px; height:40px; border-radius:50%; background:var(--accent); color:#fff; display:grid; place-items:center; font-weight:700; flex:none; }
.uinfo { min-width:0; flex:1; } .uinfo b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.98rem; }
.uinfo small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:400; color:#8b94a8; font-size:.76rem; }
.iconbtn { flex:none; background:none; border:1px solid #3a4258; color:#cbd2e0; width:34px; height:34px; border-radius:9px; cursor:pointer; display:grid; place-items:center; padding:0; }
.iconbtn:hover { background:#2a3142; color:#fff; }
.top .iconbtn { margin-left:auto; }
/* admin: kapak görselleri */
.covers { display:flex; gap:10px; flex-wrap:wrap; margin:8px 0 4px; }
.cover { position:relative; width:150px; height:86px; border-radius:10px; overflow:hidden; background:#f1ede6; }
.cover img { width:100%; height:100%; object-fit:cover; display:block; }
.cover button { position:absolute; top:5px; width:24px; height:24px; border-radius:50%; border:0; background:rgba(0,0,0,.6); color:#fff; cursor:pointer; line-height:1; }
.cover .cx { right:5px; } .cover .cl { left:5px; }
.steps { flex-wrap:nowrap; gap:4px; }
.step { min-width:0; font-size:.7rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (min-width:600px) { .step { font-size:.78rem; } }

/* görsel eşleme */
.mtbl td { vertical-align:middle; }
.msel { max-width:280px; width:100%; padding:7px 8px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; }
.mthumb, .mcur { width:64px; height:64px; border-radius:8px; background:#f1ede6; overflow:hidden; display:grid; place-items:center; color:var(--muted); object-fit:cover; }
.mthumb img { width:100%; height:100%; object-fit:cover; display:block; }
.mcur.none { font-size:.78rem; }
.mbadge { display:inline-block; padding:2px 9px; border-radius:999px; font-size:.78rem; font-weight:600; }
.b-ok { background:#dcfce7; color:#166534; } .b-mid { background:#fef3c7; color:#92400e; } .b-low { background:#fee2e2; color:#991b1b; } .b-none { background:#e5e7eb; color:#4b5563; }

/* QR kodlar */
.qgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:14px; }
.qcard { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px; text-align:center; }
.qcard img { width:100%; max-width:150px; display:block; margin:0 auto 8px; border-radius:6px; }
.qgrid { grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); }
.qcard img { max-width:100%; border-radius:10px; box-shadow:0 1px 4px rgba(0,0,0,.15); }
.qbtns { display:flex; gap:8px; justify-content:center; margin-top:8px; }
#printarea { display:none; }
@media print {
  @page { size:A4; margin:10mm; }
  html, body.panel { background:#fff !important; }
  .layout { display:none !important; }
  #printarea { display:grid; gap:6mm; color:#111; font-family:system-ui, sans-serif; }
  #printarea.play-kart { grid-template-columns:1fr 1fr; }
  #printarea.play-etiket { grid-template-columns:repeat(3, 1fr); gap:4mm; }
  #printarea.play-afis { grid-template-columns:1fr; }
  .pcard { break-inside:avoid; page-break-inside:avoid; border:1px dashed #aaa; border-radius:4mm; padding:5mm; text-align:center; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3mm; }
  .play-kart .pcard { height:128mm; } .play-etiket .pcard { height:61mm; padding:3mm; gap:1.5mm; } .play-afis .pcard { height:272mm; gap:8mm; }
  .pcard img { width:100%; }
  .pcard.pstk { padding:0; gap:0; border:1px dashed #aaa; overflow:hidden; }
  .pcard.pstk img { width:auto; height:100%; max-width:100%; object-fit:contain; }
  .play-kart .pcard.pstk img, .play-etiket .pcard.pstk img, .play-afis .pcard.pstk img { max-width:100%; }
  .play-kart .pcard img { max-width:82mm; } .play-etiket .pcard img { max-width:38mm; } .play-afis .pcard img { max-width:160mm; }
  .pname { font-weight:700; font-size:13pt; } .phint { font-size:10pt; color:#444; }
  .ptitle { font-weight:800; font-size:20pt; }
  .play-etiket .pname { font-size:8pt; } .play-etiket .ptitle { font-size:12pt; }
  .play-afis .pname { font-size:30pt; } .play-afis .phint { font-size:20pt; } .play-afis .ptitle { font-size:54pt; }
}
.fld input[type=color], .cardx input[type=color] { height:42px; padding:3px; cursor:pointer; }

/* müşteriler */
.ctbl tr.click { cursor:pointer; } .ctbl tr.click:hover { background:#fafafa; }
.clip { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cdlg { width:min(760px, 96vw); }
.cbody .grid2 { gap:0 14px; }
.cstats { display:grid; grid-template-columns:repeat(auto-fit, minmax(130px, 1fr)); gap:10px; margin-bottom:6px; }
.cstat { background:#f9fafb; border:1px solid var(--line); border-radius:10px; padding:10px 12px; }
.cstat small { display:block; color:var(--muted); font-size:.76rem; } .cstat b { font-size:1.05rem; }
.csec { margin:18px 0 8px; font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:var(--accent); }
.cbody textarea { width:100%; padding:9px 11px; border:1px solid var(--line); border-radius:8px; margin-top:3px; font:inherit; background:#fff; }
.cbody .fld input { width:100%; }
.pwbox { margin-top:10px; } .pwshow { flex:1; min-width:160px; padding:9px 11px; border:1px solid #f0c27a; background:#fff8e6; border-radius:8px; font:700 1.05rem ui-monospace, Consolas, monospace; letter-spacing:.08em; }
.cdanger { margin-top:22px; padding-top:14px; border-top:1px solid var(--line); text-align:right; }

.okbanner { border-color:#cfe3c6; background:#f1f7ee; color:#2f5d1f; }
.payhint { background:#fff6e5; border:1px solid #f0d9a8; color:#7a5200; border-radius:10px; padding:10px 12px; font-size:.9rem; margin:12px 0; }

/* ---- analiz paneli ---- */
.chartgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:16px; margin-bottom:16px; }
.chartgrid .cardx { margin-bottom:0; }
.cardx h3 { margin:0 0 10px; font-size:1rem; }
.rangebar { display:flex; gap:8px; margin:0 0 14px; flex-wrap:wrap; }
.rangebar button { background:var(--card); border:1px solid var(--line); border-radius:999px; padding:6px 14px; cursor:pointer; }
.rangebar button.on { background:var(--accent); color:#fff; border-color:var(--accent); }
.hlist { display:grid; gap:8px; }
.hrow { display:grid; grid-template-columns:minmax(80px,38%) 1fr auto; gap:10px; align-items:center; font-size:.9rem; }
.hrow .hl { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hbar { background:var(--line); border-radius:6px; height:10px; overflow:hidden; display:block; }
.hbar i { display:block; height:100%; border-radius:6px; }
.donutwrap { display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.legend { display:grid; gap:6px; font-size:.9rem; }
.legend i { display:inline-block; width:10px; height:10px; border-radius:50%; }
.funnel { display:grid; gap:10px; }
.fbar { color:#fff; padding:8px 12px; border-radius:8px; font-weight:600; white-space:nowrap; }
.frow small { display:block; margin-top:2px; }

/* ---- sipariş tablosu düzeni ---- */
.tbl td.amt { white-space:nowrap; min-width:150px; }
.tbl td.addr { max-width:280px; min-width:170px; }
.badge-s { white-space:nowrap; }
.tbl .act { display:flex; flex-direction:column; gap:6px; min-width:140px; align-items:stretch; }
.tbl .act .btn, .tbl .act select { width:100%; text-align:center; }
.tbl .act select { padding:6px 8px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:.85rem; }
.btn.sm { padding:5px 10px; font-size:.85rem; }
.tbl td ul { margin:0; padding-left:18px; }
.tbl td:nth-child(3) { min-width:220px; }

.warow { display:flex; gap:12px; align-items:center; padding:8px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.warow > span:first-child { flex:1; min-width:180px; }
.btn.danger { color:var(--bad); border-color:#f1c5c0; }

/* logo önizlemesi: geniş logolar sığar */
.imgprev.logo-prev { width:240px; height:110px; display:flex; align-items:center; justify-content:center; }
.imgprev.logo-prev img { width:100%; height:100%; object-fit:contain; padding:14px 18px; box-sizing:border-box; }

/* ---- yan menü grupları ---- */
.side nav .grp { margin:14px 12px 4px; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:#7e889d; font-weight:600; }
.side nav .grp:first-of-type { margin-top:10px; }
.side nav button, .side nav a { padding:8px 12px; }
.side nav > a { margin-top:10px; border-top:1px solid #2d3445; border-radius:0 0 8px 8px; }

.side .foot .support { color:#8b94a8; font-size:.8rem; line-height:1.4; text-align:center; }
.side .foot .support a { display:block; color:#cbd2e0; font-weight:600; font-size:.9rem; text-decoration:none; }

/* ---- açılır yan menü grupları ---- */
.side nav .ng .gh { font-weight:600; }
.side nav .ng .gh .chev { margin-left:auto; font-style:normal; transition:transform .15s; opacity:.7; font-size:1.1rem; line-height:1; }
.side nav .ng.open .gh .chev { transform:rotate(90deg); }
.side nav .ng .gh .pill { margin-left:8px; }
.side nav .ng .sub { display:none; margin:0 0 6px 10px; padding-left:8px; border-left:1px solid #2d3445; }
.side nav .ng.open .sub { display:block; }
.side nav .ng .sub button { font-size:.9rem; padding:7px 10px; }
.side nav .ng.open .gh .pill { display:none; }

/* ---- panel özet sayfası ---- */
.pagehead { display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.pagehead h1 { margin:0; }
.tiles.kpis { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
.tile.kpi { display:flex; flex-direction:column; gap:2px; border-left:4px solid var(--line); }
.tile.kpi .sub { font-size:.8rem; color:var(--muted); }
.tile.kpi.accent { border-left-color:var(--ok); }
.tile.kpi.alert { border-left-color:var(--bad); background:#fff7f6; }
.tile.kpi.alert b { color:var(--bad); }

/* ---- müşteri paneli: sipariş takip kartı ---- */
.pagehead { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.cbtn { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 16px; border-radius:12px; border:1px solid #d9cdc2; background:#fff; color:#2a1f1a; text-decoration:none; font-weight:600; cursor:pointer; font:inherit; font-weight:600; }
.cbtn:hover { background:#faf6f1; }
.cbtn.dark { background:#2d221d; border-color:#2d221d; color:#fff; } .cbtn.dark:hover { background:#3a2c25; }
.cbtn.acc { background:var(--accent); border-color:var(--accent); color:#fff; } .cbtn.acc:hover { background:#8a301d; }
.hero { background:#fff; border-radius:20px; box-shadow:0 1px 2px rgba(45,34,29,.06), 0 8px 28px rgba(45,34,29,.06); overflow:hidden; margin-bottom:22px; }
.hero-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:24px 28px 6px; }
.hero-ico { width:56px; height:56px; border-radius:16px; background:#fdecc8; color:#8a5a00; display:flex; align-items:center; justify-content:center; flex:none; }
.hero-txt { flex:1 1 260px; min-width:0; }
.hero-head { }
.hero-txt small { display:block; font-size:.78rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:#8a5a00; }
.hero-txt b { display:block; font-size:1.3rem; margin-top:2px; }
.hero-txt p { margin:2px 0 0; color:#6a5a50; font-size:.92rem; }
.hero-txt p:empty { display:none; }
.hero-sum { text-align:right; }
.hero-sum small { display:block; color:var(--muted); font-size:.8rem; }
.hero-sum b { font-size:1.6rem; }
.hero .payhint { margin:16px 28px; }
.stp { list-style:none; margin:0; padding:26px 28px 28px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
.stp li { position:relative; text-align:center; color:var(--muted); font-size:.92rem; }
.stp li::before { content:''; position:absolute; top:15px; left:50%; width:100%; height:4px; background:#e8dfd6; }
.stp li:last-child::before { display:none; }
.stp li.done::before { background:var(--accent); }
.stp li i { position:relative; display:flex; align-items:center; justify-content:center; width:34px; height:34px; margin:0 auto 12px; border-radius:50%; background:#fff; border:3px solid #d9cdc2; box-sizing:border-box; color:#fff; }
.stp li.done i { background:var(--accent); border-color:var(--accent); }
.stp li.now i { background:var(--accent); border-color:var(--accent); box-shadow:0 0 0 6px #f6dcd3; }
.stp li.now, .stp li.done { color:#2a1f1a; }
.stp li.now span { font-weight:600; }
.stp li small { display:block; color:var(--accent); font-weight:500; font-size:.8rem; }
.hero-grid { display:flex; flex-wrap:wrap; gap:16px; padding:0 28px 22px; }
.hcard { flex:1 1 300px; min-width:0; background:#faf6f1; border-radius:14px; padding:16px 18px; }
.hcard h3 { margin:0 0 8px; font-size:1rem; } .hcard h3:not(:first-child) { margin-top:16px; }
.hcard .items { margin:0; padding-left:18px; }
.hcard .note { margin:12px 0 0; font-size:.9rem; color:#5a4a40; }
.hcard .addr { display:flex; gap:10px; margin:0; line-height:1.5; } .hcard .addr small { display:block; color:#6a5a50; }
.hcard .addr svg { flex:none; color:var(--accent); margin-top:2px; }
.hcard .payrow { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0; flex-wrap:wrap; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; padding:16px 28px; background:#faf6f1; border-top:1px solid #efe6dd; }
.subh { margin:30px 0 12px; font-size:1.1rem; }
.plist { background:#fff; border-radius:18px; box-shadow:0 1px 2px rgba(45,34,29,.06); overflow:hidden; }
.pwrap { border-bottom:1px solid #efe6dd; padding:6px 20px 14px; } .pwrap:last-child { border-bottom:0; }
.prow summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:10px 0; min-height:44px; }
.prow summary::-webkit-details-marker { display:none; }
.prow-main { flex:1 1 220px; min-width:0; } .prow-main b { display:block; } .prow-main small { color:var(--muted); }
.prow-sum { white-space:nowrap; }
.prow-body { padding:4px 0 6px; font-size:.92rem; }
.prow-act { display:flex; flex-wrap:wrap; gap:10px; }
@media (max-width:640px) {
  .hero-head { padding:20px 18px 4px; } .hero-sum { text-align:left; flex-basis:100%; }
  .stp { grid-template-columns:1fr; padding:20px 18px; gap:0; }
  .stp li { display:flex; align-items:center; gap:14px; text-align:left; padding-bottom:18px; }
  .stp li i { margin:0; flex:none; }
  .stp li::before { top:34px; left:15px; width:4px; height:calc(100% - 34px); }
  .stp li.done::before { background:var(--accent); }
  .stp li small { display:block; margin-left:6px; }
  .stp li > span { flex:1; }
  .hero-grid { padding:0 18px 18px; } .hero-actions { padding:14px 18px; } .hero-actions .cbtn { flex:1 1 140px; justify-content:center; }
  .pwrap { padding:6px 16px 14px; }
}

/* ---- tahmini süre ---- */
.etadlg { border:0; border-radius:16px; padding:22px; width:min(380px,92vw); box-shadow:0 20px 60px rgba(0,0,0,.3); }
.etadlg::backdrop { background:rgba(20,14,10,.5); }
.etadlg h3 { margin:0 0 4px; }
.etabtns { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:14px 0; }
.etabtns .btn { padding:12px 0; text-align:center; font-weight:600; }
.etacustom { display:flex; gap:8px; } .etacustom input { flex:1; padding:10px; border:1px solid var(--line); border-radius:8px; font:inherit; }
.etafoot { display:flex; gap:8px; justify-content:space-between; margin-top:16px; }
.eta { display:inline-flex; align-items:center; gap:8px; margin-top:10px; padding:8px 14px; border-radius:999px; background:#e8f3ea; color:#1f5a2a; font-size:.92rem; }
/* müşteri paneli: renkli başlıklar ve ödeme satırı */
.hcard h3 { color:var(--accent); }
.hcard .paylabel { display:inline-flex; align-items:center; gap:8px; font-weight:700; color:#1f5a2a; }
.hcard .tarif { margin:6px 0 0 28px; padding:8px 12px; border-radius:10px; background:#fff3e6; color:#8a4b00; font-size:.92rem; }
.hcard .tarif b { color:#8a4b00; }
.hero-txt .eta { display:flex; width:fit-content; max-width:100%; border-radius:12px; padding:8px 14px; }
.hero-txt .eta span { display:inline; }
.hero-txt .eta b { display:inline; font-size:inherit; margin:0; }
.hero-txt .eta svg { flex:none; }

/* ---- sipariş kartları ---- */
.olist { display:flex; flex-direction:column; gap:14px; margin-bottom:16px; }
.ocard { background:var(--card); border:1px solid var(--line); border-left:5px solid #9ca3af; border-radius:14px; overflow:hidden; }
.ocard.st-yeni { border-left-color:var(--bad); } .ocard.st-odeme { border-left-color:#8b5cf6; }
.ocard.st-onaylandi, .ocard.st-hazirlaniyor { border-left-color:var(--warn); }
.ocard.st-hazir, .ocard.st-yolda { border-left-color:#2563eb; } .ocard.st-teslim { border-left-color:var(--ok); }
.ohead { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:12px 18px; background:#faf8f5; border-bottom:1px solid var(--line); }
.ohead-l, .ohead-r { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.ono { font-size:1.1rem; }
.otype { padding:3px 12px; border-radius:999px; font-size:.82rem; font-weight:600; background:#e8eefc; color:#1e3a8a; }
.otype.paket { background:#f6dcd3; color:#8a301d; }
.ototal { font-size:1.25rem; }
.obody { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:0; }
.ocol { padding:14px 18px; border-right:1px solid #f0ebe5; min-width:0; } .ocol:last-child { border-right:0; }
.ocol h4 { margin:0 0 8px; font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.oname { font-weight:700; font-size:1.02rem; }
.ophone { display:inline-block; margin:2px 0 6px; font-weight:600; text-decoration:none; }
.oaddr { line-height:1.45; }
.otarif { margin-top:8px; padding:8px 12px; border-radius:10px; background:#fff3e6; color:#8a4b00; font-size:.9rem; }
.ocol .items { margin:0; padding-left:18px; }
.onote { margin-top:8px; padding:8px 12px; border-radius:10px; background:#fef9c3; color:#713f12; font-size:.9rem; }
.opay { font-weight:700; margin-bottom:6px; }
.ocol .btn.sm { margin-top:8px; }
.oeta { margin-top:8px; font-size:.9rem; color:#1f5a2a; font-weight:600; }
.oact { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px 18px; background:#faf8f5; border-top:1px solid var(--line); }
.oact .btn { min-height:40px; }
.oact-sp { flex:1; }
.oact select { padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; min-height:40px; }
.empty { display:flex; flex-direction:column; align-items:center; gap:4px; padding:44px 16px; background:var(--card); border:1px dashed #d1d5db; border-radius:14px; color:var(--muted); text-align:center; }
.empty b { color:var(--fg); font-size:1.05rem; }
@media (max-width:640px) { .ocol { border-right:0; border-bottom:1px solid #f0ebe5; } .ocol:last-child { border-bottom:0; } .oact .btn { flex:1 1 120px; } .oact select { flex:1 1 100%; } .oact-sp { display:none; } }

/* ---- yeni sipariş alarmı ---- */
.alarm { position:fixed; inset:0; z-index:9999; background:rgba(120,20,10,.88); display:flex; align-items:center; justify-content:center; padding:20px; animation:alarmbg 1s ease-in-out infinite alternate; }
@keyframes alarmbg { from { background:rgba(120,20,10,.86); } to { background:rgba(190,40,20,.92); } }
.alarm-card { background:#fff; border-radius:24px; padding:36px 40px; text-align:center; max-width:460px; width:100%; box-shadow:0 30px 80px rgba(0,0,0,.45); }
.alarm-ico { width:84px; height:84px; margin:0 auto 14px; border-radius:50%; background:#fee2e2; color:#b42318; display:flex; align-items:center; justify-content:center; animation:ringshake .5s ease-in-out infinite; }
@keyframes ringshake { 0%,100% { transform:rotate(-14deg); } 50% { transform:rotate(14deg); } }
.alarm-card h2 { margin:0; font-size:2rem; color:#b42318; letter-spacing:.02em; }
.alarm-n { font-size:1.15rem; margin:8px 0 6px; font-weight:600; }
.alarm-note { color:#7a4b00; background:#fff3e6; border-radius:10px; padding:8px 12px; margin:10px 0; font-size:.92rem; }
.alarm-note:empty { display:none; }
.alarm-act { display:flex; flex-direction:column; gap:10px; margin-top:18px; }
.btn.big { padding:14px 18px; font-size:1.05rem; font-weight:700; }
@media (prefers-reduced-motion:reduce) { .alarm, .alarm-ico { animation:none; } }
.side .foot .bell { width:100%; margin:0 0 10px; background:#2a3142; color:#e9dfd6; border-color:#3a4358; }
.side .foot .bell:hover { background:#34405a; }
.notifydlg { width:min(480px,94vw); }
.notifydlg .bar { display:flex; gap:8px; flex-wrap:wrap; }

/* ---- ödeme türleri düzenleyici ---- */
.pmlist { display:flex; flex-direction:column; gap:12px; margin:10px 0 14px; }
.pmrow { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; }
.pmrow.off { background:#f9fafb; opacity:.8; }
.pmhead { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:6px; flex-wrap:wrap; }
.pmon { display:flex; gap:8px; align-items:center; font-weight:600; }
.pmbtns { display:flex; gap:6px; }

/* ---- süre ve otomatik onay kartı ---- */
.ordset-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.autosw { display:inline-flex; align-items:center; gap:10px; font-weight:700; cursor:pointer; padding:8px 14px; border:1px solid var(--line); border-radius:999px; background:#faf8f5; }
.autosw input { width:20px; height:20px; accent-color:var(--ok); }
.ordsum { margin-top:6px; padding:10px 14px; border-radius:10px; background:#e8f3ea; color:#1f5a2a; font-weight:600; font-size:.92rem; }

/* ---- sipariş listesi + detay paneli ---- */
.ovw { max-width:1500px; }
.ohdr { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:14px; }
.ohdr h1 { margin:0; }
.ohdr-l, .ohdr-r { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.ochips { display:flex; gap:8px; flex-wrap:wrap; }
.ochip { display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border-radius:999px; font-weight:700; font-size:.88rem; }
.ochip.red { background:#fee2e2; color:#991b1b; } .ochip.red i { width:9px; height:9px; border-radius:50%; background:#dc2626; }
.ochip.amber { background:#fef3c7; color:#92400e; } .ochip.blue { background:#dbeafe; color:#1e40af; }
.osum { padding:8px 14px; border-radius:12px; background:#fff; border:1px solid var(--line); font-size:.88rem; }
.autopill { display:inline-flex; align-items:center; gap:10px; min-height:42px; padding:0 16px; border-radius:999px; border:1px solid var(--line); background:#fff; font:inherit; font-weight:700; font-size:.88rem; cursor:pointer; }
.autopill .tg { position:relative; width:38px; height:22px; border-radius:999px; background:#d1d5db; display:inline-block; transition:background .15s; }
.autopill .tg i { position:absolute; left:3px; top:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:left .15s; }
.autopill.on { border-color:#9bd0a6; background:#eefaf0; } .autopill.on .tg { background:var(--ok); } .autopill.on .tg i { left:19px; }
.ofilter { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 14px; background:#fff; border:1px solid var(--line); border-radius:16px; margin-bottom:14px; }
.otabs { display:flex; gap:6px; flex-wrap:wrap; }
.otabs button { min-height:42px; padding:0 14px; border-radius:12px; border:1px solid var(--line); background:#fff; font:inherit; font-weight:600; font-size:.9rem; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.otabs button em { font-style:normal; color:var(--muted); font-weight:600; } .otabs button em.hot { color:#dc2626; font-weight:800; }
.otabs button.on { background:#1f2430; border-color:#1f2430; color:#fff; } .otabs button.on em { color:#cbd2e0; }
.otabs.rng button.on.acc { background:var(--accent); border-color:var(--accent); color:#fff; }
.otabs button:disabled { opacity:.45; cursor:default; }
.ovr { width:1px; height:26px; background:var(--line); }
.opayf { display:flex; align-items:center; gap:8px; min-height:42px; padding:0 12px; border:1px solid var(--line); border-radius:12px; font-size:.9rem; }
.opayf select { border:0; background:transparent; font:inherit; font-weight:600; }
.osearch { flex:1 1 240px; display:flex; align-items:center; gap:8px; min-height:42px; padding:0 12px; border:1px solid var(--line); border-radius:12px; background:#f9fafb; color:var(--muted); }
.osearch input { flex:1; border:0; background:transparent; font:inherit; outline:none; color:var(--fg); }
.olayout { display:grid; grid-template-columns:minmax(0,1fr) 450px; gap:16px; align-items:start; }
.ocol-list { background:#fff; border:1px solid var(--line); border-radius:16px; padding:8px 10px 12px; min-width:0; }
.olh, .orow { display:grid; grid-template-columns:56px 112px minmax(0,1fr) 150px 88px 150px; gap:10px; align-items:center; }
.olh { white-space:nowrap; padding:10px 12px 6px; font-size:.68rem; letter-spacing:.06em; font-weight:700; color:var(--muted); }
.olist2 { display:flex; flex-direction:column; gap:8px; }
.orow { width:100%; box-sizing:border-box; text-align:left; padding:10px 12px; border-radius:14px; border:1px solid var(--line); background:#fff; font:inherit; color:var(--fg); cursor:pointer; }
.orow:hover { border-color:#cbd2e0; background:#fafbfc; }
.orow.on { border:2px solid var(--accent); background:#fff7f3; padding:9px 11px; }
.orow small { display:block; color:var(--muted); font-size:.78rem; }
.ono b { display:flex; align-items:center; gap:6px; font-size:1rem; }
.ono .dot { display:none; width:8px; height:8px; border-radius:50%; background:#dc2626; } .orow.fresh .dot { display:inline-block; }
.owho { min-width:0; } .owho b { display:block; } .owho small { color:var(--accent); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.otot { text-align:right; font-weight:800; font-size:1rem; white-space:nowrap; }
.oav { width:44px; height:44px; border-radius:50%; color:#fff; font-weight:800; font-size:1.1rem; display:flex; align-items:center; justify-content:center; flex:none; }
.oav.k-nakit { background:#2f7d3b; } .oav.k-kart { background:#b5472b; } .oav.k-online { background:#3b6ea5; } .oav.k-diger { background:#7c3aed; }
.pill, .pillk { display:inline-block; padding:5px 12px; border-radius:999px; font-size:.78rem; font-weight:700; font-style:normal; white-space:nowrap; }
.pill.st-yeni { background:#fee2e2; color:#991b1b; } .pill.st-hazir { background:#fef3c7; color:#92400e; } .pill.st-yolda { background:#dbeafe; color:#1e40af; }
.pill.st-teslim { background:#dcfce7; color:#166534; } .pill.st-iptal { background:#e5e7eb; color:#374151; } .pill.st-odeme { background:#ede9fe; color:#5b21b6; }
.pillk.k-nakit { background:#dcfce7; color:#166534; } .pillk.k-kart { background:#fde2d8; color:#8a301d; } .pillk.k-online { background:#dbeafe; color:#1e40af; } .pillk.k-diger { background:#ede9fe; color:#5b21b6; }
.odetail { position:sticky; top:16px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px; display:flex; flex-direction:column; gap:14px; max-height:calc(100vh - 32px); overflow:auto; }
.dclose { display:none; }
.dtop { display:flex; align-items:center; gap:12px; } .dtop .oav { width:52px; height:52px; font-size:1.3rem; }
.dwho { flex:1; min-width:0; } .dwho b { display:block; font-size:1.2rem; } .dwho small { color:var(--muted); }
.dtotal { display:flex; align-items:baseline; justify-content:space-between; gap:10px; } .dtotal b { font-size:1.9rem; letter-spacing:-.02em; }
.dtiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.dtile { padding:10px 12px; border-radius:12px; background:#f6f3ee; } .dtile small { display:block; font-size:.66rem; letter-spacing:.06em; font-weight:700; color:var(--muted); } .dtile b { font-size:.92rem; }
.dtile.eta { background:#e8f3ea; } .dtile.eta small { color:#2f6b3a; } .dtile.eta b { color:#1f5a2a; }
.dblock { padding:12px 14px; border-radius:12px; background:#f6f3ee; } .dblock small, .ditems small, .dflow small { display:block; font-size:.66rem; letter-spacing:.06em; font-weight:700; color:var(--muted); margin-bottom:6px; }
.daddr { display:flex; gap:10px; line-height:1.5; font-weight:600; } .daddr svg { color:var(--accent); flex:none; margin-top:2px; }
.dtarif { margin-top:10px; padding:9px 12px; border-radius:10px; background:#fff3e6; color:#8a4b00; font-size:.9rem; }
.ditem { display:flex; gap:10px; padding:9px 0; border-bottom:1px solid #f0ebe5; }
.dq { flex:none; width:34px; height:34px; border-radius:10px; background:#f6dcd3; color:var(--accent); font-weight:800; display:flex; align-items:center; justify-content:center; font-size:.82rem; }
.dn { flex:1; min-width:0; } .dn small { margin:0; font-weight:400; letter-spacing:0; text-transform:none; font-size:.8rem; }
.dnote { margin-top:10px; padding:9px 12px; border-radius:10px; background:#fef9c3; color:#713f12; font-size:.9rem; }
.dsteps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.dstep { position:relative; text-align:center; font-size:.8rem; color:var(--muted); }
.dstep::before { content:''; position:absolute; top:13px; left:50%; width:100%; height:4px; background:#e5dcd2; } .dstep:last-child::before { display:none; } .dstep.done::before { background:var(--accent); }
.dstep i { position:relative; display:flex; align-items:center; justify-content:center; width:30px; height:30px; margin:0 auto 6px; border-radius:50%; background:#fff; border:3px solid #d9cdc2; box-sizing:border-box; color:#fff; }
.dstep.done i, .dstep.now i { background:var(--accent); border-color:var(--accent); } .dstep.now i { box-shadow:0 0 0 6px #f6dcd3; } .dstep.done, .dstep.now { color:var(--fg); font-weight:700; }
.dacts { display:flex; flex-direction:column; gap:8px; }
.dbtn { min-height:48px; border-radius:14px; border:1px solid var(--line); background:#fff; font:inherit; font-weight:800; font-size:1rem; cursor:pointer; }
.dbtn.main { background:var(--accent); border-color:var(--accent); color:#fff; } .dbtn.dark { background:#1f2430; border-color:#1f2430; color:#fff; } .dbtn.ok { background:var(--ok); border-color:var(--ok); color:#fff; }
.dbtn.danger { color:var(--bad); border-color:#fca5a5; font-weight:700; } .dbtn.ghost { font-weight:700; min-height:42px; }
.dinfo { padding:12px; border-radius:12px; background:#f3f4f6; color:#4b5563; text-align:center; font-weight:600; font-size:.92rem; }
.dtools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.dtool { min-height:44px; border-radius:12px; border:1px solid var(--line); background:#fff; font:inherit; font-weight:700; font-size:.88rem; display:inline-flex; align-items:center; justify-content:center; gap:7px; color:var(--fg); text-decoration:none; cursor:pointer; }
.dstat { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:.82rem; color:var(--muted); } .dstat select { padding:7px 8px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; }
@media (max-width:1620px) { .olayout { grid-template-columns:minmax(0,1fr) 400px; } .olh, .orow { grid-template-columns:50px 104px minmax(0,1fr) 84px 130px; } .olh span:nth-child(4), .opay { display:none; } }
@media (max-width:900px) {
  .olayout { display:block; }
  .olh { display:none; }
  .orow { grid-template-columns:44px minmax(0,1fr) auto; grid-template-areas:'av who tot' 'av no stat'; row-gap:2px; }
  .orow .oav { grid-area:av; } .orow .owho { grid-area:who; } .orow .otot { grid-area:tot; } .orow .ono { grid-area:no; } .orow .ono b { display:none; } .orow .ostat { grid-area:stat; text-align:right; } .orow .opay { display:none; }
  .odetail { display:none; position:fixed; left:0; right:0; bottom:0; top:auto; max-height:90vh; border-radius:22px 22px 0 0; z-index:60; box-shadow:0 -12px 40px rgba(0,0,0,.3); }
  .odetail.open { display:flex; }
  .dclose { display:block; align-self:flex-start; border:0; background:none; color:var(--accent); font:inherit; font-weight:700; padding:4px 0; cursor:pointer; }
  .ovr { display:none; }
}
@media print { body * { visibility:hidden; } .odetail, .odetail * { visibility:visible; } .odetail { position:absolute; left:0; top:0; width:100%; max-height:none; border:0; } .dclose, .dacts, .dtools, .dstat { display:none !important; } }
/* detay paneli: dikeyde daha kompakt */
.odetail { padding:14px 16px; gap:9px; max-height:calc(100vh - 150px); }
.dtop .oav { width:42px; height:42px; font-size:1.1rem; } .dwho b { font-size:1.05rem; }
.dtotal b { font-size:1.6rem; }
.dtiles { gap:6px; } .dtile { padding:6px 10px; } .dtile b { font-size:.86rem; }
.dblock { padding:8px 12px; } .dtarif { margin-top:6px; padding:6px 10px; font-size:.84rem; }
.ditems { max-height:150px; overflow:auto; }
.ditem { padding:5px 0; } .dq { width:28px; height:28px; border-radius:8px; font-size:.75rem; }
.dnote { margin-top:6px; padding:6px 10px; font-size:.84rem; }
.dstep i { width:24px; height:24px; margin-bottom:3px; border-width:2px; } .dstep::before { top:10px; height:3px; } .dstep { font-size:.74rem; } .dstep.now i { box-shadow:0 0 0 4px #f6dcd3; }
.dacts { gap:6px; } .dbtn { min-height:42px; font-size:.95rem; } .dbtn.ghost { min-height:38px; }
.dtool { min-height:38px; } .dstat { font-size:.78rem; } .dclose { display:none; }
@media (max-width:900px) { .odetail { max-height:90vh; } .dclose { display:block; } }

/* satırda hızlı onayla / reddet */
.olh, .orow { grid-template-columns:56px 112px minmax(0,1fr) 150px 88px 176px; }
.qact { display:flex; gap:6px; justify-content:flex-end; }
.qbtn { min-height:34px; padding:0 12px; border-radius:10px; border:1px solid var(--line); background:#fff; font:inherit; font-weight:800; font-size:.84rem; cursor:pointer; }
.qbtn.ok { background:var(--ok); border-color:var(--ok); color:#fff; }
.qbtn.no { color:var(--bad); border-color:#fca5a5; }
.rejlist { display:flex; flex-direction:column; gap:8px; margin:12px 0; }
.rejlist .btn { text-align:left; min-height:44px; }
@media (max-width:1620px) { .olh, .orow { grid-template-columns:50px 104px minmax(0,1fr) 84px 176px; } }
@media (max-width:900px) { .orow { grid-template-columns:44px minmax(0,1fr) auto; } .qact { justify-content:flex-end; } }
.cancel-why { display:block; margin-top:3px; color:#b42318; font-weight:700; }

.ordertag { margin-top:10px; padding:9px 12px; border-radius:10px 10px 0 0; background:#f6dcd3; color:#8a301d; font-weight:700; font-size:.92rem; border:1px solid var(--line); border-bottom:0; }
.ordertag + textarea { border-top-left-radius:0 !important; border-top-right-radius:0 !important; }

/* ödeme al penceresi */
.paytotal { display:flex; align-items:baseline; justify-content:space-between; padding:12px 14px; border-radius:12px; background:#f6f3ee; margin:8px 0; }
.paytotal small { color:var(--muted); font-weight:600; } .paytotal b { font-size:1.7rem; }
.paygrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0; }
.paybtn { min-height:52px; font-weight:800; border-radius:12px; }
.paybtn.k-nakit { background:#dcfce7; border-color:#86efac; color:#166534; } .paybtn.k-kart { background:#fde2d8; border-color:#f5b19c; color:#8a301d; } .paybtn.k-diger { background:#ede9fe; border-color:#c4b5fd; color:#5b21b6; }
.dbtn.pay { background:var(--ok); border-color:var(--ok); color:#fff; min-height:46px; }

/* kampanya ve kupon sayfası */
.offgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); gap:14px; margin-top:12px; }
.offcard { background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px; display:flex; flex-direction:column; gap:8px; }
.offcard.dim { opacity:.65; }
.offc-top { display:flex; justify-content:space-between; align-items:center; gap:8px; } .offc-top b { font-size:1.05rem; }
.offst { padding:3px 10px; border-radius:999px; font-size:.74rem; font-weight:800; white-space:nowrap; }
.offst.live { background:#dcfce7; color:#166534; } .offst.wait { background:#fef3c7; color:#92400e; } .offst.off { background:#e5e7eb; color:#374151; }
.offc-sum { font-weight:700; color:var(--accent); }
.offc-meta { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.offcodechip { border:2px dashed var(--accent); color:var(--accent); font-weight:800; letter-spacing:.06em; padding:3px 10px; border-radius:8px; }
.offauto { background:#e8f3ea; color:#1f5a2a; font-weight:700; padding:3px 10px; border-radius:8px; font-size:.82rem; }
.offc-act { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.offdlg { width:min(640px,94vw); max-height:92vh; overflow:auto; border:0; border-radius:18px; padding:20px; }
.offdlg .fld { display:flex; flex-direction:column; gap:5px; margin:10px 0; font-weight:600; }
.offdlg .chk { display:flex; gap:8px; align-items:center; margin:8px 0; font-weight:500; }
.offseg { display:flex; flex-wrap:wrap; gap:6px; }
.offseg button { min-height:38px; padding:0 14px; border-radius:10px; border:1px solid var(--line); background:#fff; font:inherit; font-weight:700; cursor:pointer; }
.offseg button.on { background:var(--accent); border-color:var(--accent); color:#fff; }
.offseg.days button { min-width:46px; padding:0 8px; }
.prodpick { border:1px solid var(--line); border-radius:12px; padding:10px; margin:6px 0; }
.prodlist { max-height:220px; overflow:auto; margin-top:6px; }
.prodcat { margin:6px 0; } .prodcat > b { display:block; font-size:.8rem; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.prodopt { display:flex; gap:8px; align-items:center; padding:3px 0; font-weight:500; }
.cpn-in { display:flex; gap:8px; } .cpn-in input { flex:1; }
.ddisc { padding:8px 12px; border-radius:10px; background:#e8f3ea; color:#1f5a2a; font-weight:700; font-size:.88rem; }

/* etiket büyütme */
.qcard img.zoomable { cursor:zoom-in; }
.stkzoom { border:0; border-radius:18px; padding:14px; background:#1f2430; max-width:96vw; max-height:96vh; overflow:auto; text-align:center; }
.stkzoom::backdrop { background:rgba(0,0,0,.72); }
.stkzoom img { display:block; margin:0 auto; height:min(82vh,900px); width:auto; max-width:92vw; border-radius:10px; background:#fff; }
.stkzoom .stkcap { color:#fff; font-weight:700; margin-top:8px; }
.stkzoom .stkx { position:absolute; right:10px; top:6px; z-index:1; width:38px; height:38px; border-radius:50%; border:0; background:#fff; font-size:1.5rem; line-height:1; cursor:pointer; }

/* orta genişlikte (901-1280px): liste satırları telefondaki gibi iki satırlı, detay yanda kalır */
@media (min-width:901px) and (max-width:1280px) {
  .olayout { grid-template-columns:minmax(0,1fr) 380px; }
  .olh { display:none; }
  .orow { grid-template-columns:44px minmax(0,1fr) auto; grid-template-areas:'av who tot' 'av no stat'; row-gap:4px; }
  .orow .oav { grid-area:av; } .orow .owho { grid-area:who; } .orow .otot { grid-area:tot; } .orow .ono { grid-area:no; } .orow .ono b { display:none; } .orow .ostat { grid-area:stat; text-align:right; } .orow .opay { display:none; }
  .ocol-list { padding:8px; }
}

/* profil resmi */
.av { overflow:hidden; } .av img { width:100%; height:100%; object-fit:cover; display:block; }
.avpick .avtop { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.avbig { width:84px; height:84px; border-radius:50%; background:var(--accent); color:#fff; display:grid; place-items:center; font-size:2rem; font-weight:700; overflow:hidden; flex:none; border:3px solid #fff; box-shadow:0 0 0 1px var(--line); }
.avbig img { width:100%; height:100%; object-fit:cover; display:block; }
.avrow { display:flex; align-items:center; gap:12px; margin:8px 0; } .avrow > b { width:52px; flex:none; font-size:.85rem; color:var(--muted); }
.avgrid { display:flex; gap:10px; flex-wrap:wrap; }
.avopt { width:62px; height:62px; padding:0; border-radius:50%; border:3px solid transparent; background:none; cursor:pointer; overflow:hidden; box-shadow:0 0 0 1px var(--line); }
.avopt img { width:100%; height:100%; display:block; } .avopt:hover, .avopt:focus-visible { border-color:var(--accent); outline:none; }
.avdlg { width:min(480px,94vw); }

/* telefonda "geri dön" bağlantıları dokunması kolay düğme olur */
@media (max-width:768px) {
  .backbtn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:46px; padding:0 18px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--accent); font-weight:700; text-decoration:none; box-shadow:0 1px 3px rgba(0,0,0,.08); }
  .backbtn:active { background:#f6ece6; }
}

/* masaüstü: sağdaki boşluk kalkar, içerik ekranı doldurur; çok geniş ekranlarda orantılı büyür */
@media (min-width:901px) {
  .content { max-width:none; }
  .ovw { max-width:none; }
}
@media (min-width:1700px) { .content { zoom:1.1; } }
@media (min-width:2200px) { .content { zoom:1.25; } }
