:root {
    --bg: #f3f4f6;
    --surface: #ffffff;
    --surface-2: #f9fafb;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #1f6feb;
    --primary-dark: #1558c0;
    --danger: #dc2626;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 .75rem; }
code { font-family: var(--mono); font-size: .9em; }
small { font-size: .82rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 12px; }
.small-note { font-size: .88rem; margin-top: 16px; }

.container { max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; }
.container-wide { max-width: 1680px; padding-left: 24px; padding-right: 24px; }
/* Geniş sayfalarda (admin) üst menü de içerikle aynı genişlikte olsun */
body:has(> main.container-wide) .topbar-inner { max-width: 1680px; padding-left: 24px; padding-right: 24px; }

/* ---------- Üst menü ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 28px; height: 28px; }
.topbar nav { display: flex; align-items: center; gap: 16px; font-size: .95rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }
form.inline { display: inline; margin: 0; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2;
    cursor: pointer; background: var(--surface); color: var(--text);
    text-decoration: none !important; transition: background .15s, border-color .15s, opacity .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-ghost-danger { background: transparent; color: var(--danger); }
.btn-ghost-danger:hover { background: #fef2f2; }
.btn-sm { padding: 6px 10px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent, var(--primary)); color: #fff; }
.btn-soft { background: color-mix(in srgb, var(--accent, var(--primary)) 10%, #fff); color: var(--accent, var(--primary)); }
.icon-btn {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
    color: var(--muted); cursor: pointer; font-size: .9rem; flex: 0 0 auto;
}
.icon-btn:hover { color: var(--text); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger:hover { color: var(--danger); border-color: #fecaca; }
.icon-btn.is-featured { color: #f59e0b; border-color: #fcd34d; background: #fffbeb; }

/* ---------- Kartlar / formlar ---------- */
.panel-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); scroll-margin-top: 120px;
}
.form-group { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], input[type=url], input[type=tel], select, textarea {
    width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px;
    font: inherit; font-size: 16px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 111, 235, .15);
}
textarea { min-height: 90px; resize: vertical; }
input[type=color] { width: 64px; height: 44px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkbox input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.input-prefix { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.input-prefix span { padding: 0 10px; background: var(--surface-2); color: var(--muted); font-size: .9rem; border-right: 1px solid var(--border); display: flex; align-items: center; }
.input-prefix input { border: 0; border-radius: 0; min-width: 0; }
.input-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 111, 235, .15); }
.input-prefix input:focus { box-shadow: none; }
.code-input { font-family: var(--mono); font-size: 1.4rem !important; letter-spacing: .35em; text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .95rem; border: 1px solid; }
.alert-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.alert-error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.alert-info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: #f2f4f7; color: #344054; vertical-align: middle; }
.badge-success { background: #ecfdf3; color: #067647; }
.badge-warning { background: #fffaeb; color: #b54708; }
.badge-danger { background: #fef3f2; color: #b42318; }

/* ---------- Tablolar (admin) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
tbody tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.row-actions form { display: flex; gap: 6px; margin: 0; }
.row-actions input { padding: 6px 8px; font-size: .85rem; width: 160px; }
/* Kart özelliği aç/kapa ("M" = restoran menüsü) */
.btn-feature { width: 34px; height: 32px; padding: 0; font-weight: 800; border-color: var(--border); color: #98a2b3; }
.btn-feature:hover { border-color: #f97316; color: #f97316; }
.btn-feature.is-on { background: #f97316; border-color: #f97316; color: #fff; }
.btn-feature.is-on:hover { background: #ea580c; color: #fff; }
.btn-feature-sadakat:hover { border-color: #7c3aed; color: #7c3aed; }
.btn-feature-sadakat.is-on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.btn-feature-sadakat.is-on:hover { background: #6d28d9; }
.feature-btns { display: inline-flex; gap: 6px; }
/* Uzun firma adı / e-posta sütunu genişletmesin; tamamı üzerine gelince görünür */
td.cell-clip { max-width: 200px; }
td.cell-clip > a, td.cell-clip > small { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; color: var(--text); }
.stat:hover { text-decoration: none; border-color: var(--primary); }
.stat strong { display: block; font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .85rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters > input, .filters > select { flex: 1 1 180px; width: auto; }
.summary-title { cursor: pointer; font-weight: 700; }
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Genel sayfalar ---------- */
.center-box { text-align: center; max-width: 440px; margin: 48px auto; padding: 0 8px; }
.big-icon { font-size: 2.6rem; color: var(--primary); margin-bottom: 12px; }
.auth-box { max-width: 460px; margin: 16px auto; }
.setup-icon { width: 56px; height: 56px; border-radius: 16px; background: #eff6ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 12px; transform: rotate(90deg); }
.prose h2 { margin-top: 20px; }

/* ---------- Panel ---------- */
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.panel-head h1 { font-size: 1.3rem; margin: 0; }
.section-nav {
    display: flex; gap: 6px; overflow-x: auto; position: sticky; top: 57px; z-index: 40;
    background: var(--bg); margin: 0 -16px 12px; padding: 8px 16px; scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .85rem; }
.section-nav a:hover { text-decoration: none; border-color: var(--primary); }

.avatar {
    border-radius: 50%; background: #fff; border: 1px solid var(--border); overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: contain; }
.avatar.initial { background: var(--accent, var(--primary)); color: #fff; border: 0; }
.avatar-sm { width: 52px; height: 52px; font-size: 1.3rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 2.2rem; }
.photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.photo-actions form { margin: 0; }
.file-btn { margin: 0; }

.item-list { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.item-row { padding: 10px 12px; border-bottom: 1px solid var(--border); background: #fff; scroll-margin-top: 120px; }
.item-row:last-child { border-bottom: 0; }
.item-row.is-hidden .item-main { opacity: .5; }
.item-top { display: flex; align-items: center; gap: 10px; }
.item-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.item-icon {
    width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    background: color-mix(in srgb, var(--accent, var(--primary)) 12%, #fff); color: var(--accent, var(--primary));
}
.item-text { min-width: 0; display: block; }
.item-text strong { display: block; font-size: .95rem; }
.item-text > span { display: block; color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.item-actions form { margin: 0; }
.item-edit { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
@media (max-width: 560px) {
    .item-top { flex-wrap: wrap; }
    .item-actions { width: 100%; justify-content: flex-end; }
}
.ic-whatsapp { background: #e7f8ee; color: #1faa53; }
.ic-instagram { background: #fdedf3; color: #d62976; }
.ic-facebook { background: #e8f0fe; color: #1877f2; }
.ic-x, .ic-tiktok { background: #f1f1f1; color: #000; }
.ic-linkedin { background: #e8f1f8; color: #0a66c2; }
.ic-youtube { background: #fdecec; color: #ff0000; }
.ic-telegram { background: #e7f4fb; color: #229ed9; }
.ic-google_review { background: #fef7e0; color: #ea8600; }
.ic-google_review + .item-text > span { color: #ea8600; font-weight: 600; }
.field-hint { display: block; margin-top: 6px; line-height: 1.45; }

/* IBAN'ı fotoğraftan okuma */
.iban-scan { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.iban-scan small { line-height: 1.35; }
@media (max-width: 560px) { .iban-scan { flex-direction: column; align-items: flex-start; gap: 6px; } }
.iban-scan-status { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; font-size: .88rem; background: var(--surface-2); }
.iban-scan-status.is-busy { color: #175cd3; background: #eff8ff; }
.iban-scan-status.is-ok { color: #067647; background: #ecfdf3; }
.iban-scan-status.is-error { color: #b42318; background: #fef3f2; }
.iban-scan-choices { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
input.is-scanned { border-color: #12b76a; box-shadow: 0 0 0 3px rgba(18, 183, 106, .2); transition: box-shadow .3s; }

.menu-callout {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px;
    background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; text-decoration: none !important;
}
.menu-callout:hover { border-color: #f97316; }
.menu-callout-icon { width: 40px; height: 40px; border-radius: 12px; background: #f97316; color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.menu-callout-text { flex: 1; min-width: 0; }
.menu-callout-text strong { display: block; }
.menu-callout-text span { display: block; font-size: .85rem; color: #9a3412; }
.add-item summary { list-style: none; cursor: pointer; }
.add-item summary::-webkit-details-marker { display: none; }
.add-item[open] summary { margin-bottom: 14px; }
.add-item form { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fcfcfd; }
.empty { padding: 18px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; color: var(--muted); margin-bottom: 14px; }

.map-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.map-picker { height: 300px; border-radius: 12px; border: 1px solid var(--border); margin: 10px 0 6px; z-index: 0; background: var(--surface-2); }

/* ---------- Bildirim (toast) ---------- */
.toast {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 1000;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: #111827; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .92rem;
    transition: opacity .2s, transform .2s; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Herkese açık profil ---------- */
.pf-body { background: #e9ecf1; }
.pf-main { padding: 0; }
.pf-main > .alert { max-width: 480px; margin: 12px auto; }
.pf {
    --accent: #1f6feb;
    max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
    background: var(--surface); position: relative; padding-bottom: 32px;
}
@media (min-width: 520px) {
    .pf { margin: 28px auto; min-height: auto; border-radius: 28px; overflow: hidden; overflow: clip; box-shadow: 0 10px 40px rgba(16, 24, 40, .12); }
}
.pf-cover { height: 150px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); }
.pf-head { text-align: center; padding: 0 20px; margin-top: -66px; }
.pf-avatar { width: 132px; height: 132px; margin: 0 auto 12px; border: 4px solid #fff; box-shadow: var(--shadow); font-size: 3.2rem; }
.pf-name { font-size: 1.5rem; margin: 0; }
.pf-title { color: var(--muted); margin: 4px 0 0; }
.pf-bio { margin: 12px 0 0; color: #374151; font-size: .95rem; white-space: pre-line; }
.pf-actions { display: flex; justify-content: center; gap: 10px; margin: 20px 0 4px; flex-wrap: wrap; }
.pf-action {
    display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px;
    color: var(--text); font: inherit; font-size: .76rem; font-weight: 600;
    background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none !important;
}
.pf-action i {
    width: 54px; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); transition: transform .15s;
}
.pf-action:active i { transform: scale(.94); }
.pf-section { padding: 22px 20px 0; }
.pf-section h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.pf-list { display: flex; flex-direction: column; gap: 8px; }
.pf-item {
    display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 16px;
    color: var(--text); background: #fff; text-decoration: none !important; transition: border-color .15s, background .15s;
}
.pf-item:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.pf-item:active { background: var(--surface-2); }
.pf-item .item-text { flex: 1; }
.pf-item .chev { color: #c4c8cf; font-size: .8rem; }
.pf-iban { border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, #fff), #fff); }
.pf-iban-head { display: flex; align-items: center; gap: 12px; }
.pf-iban-bank { font-weight: 700; }
.pf-iban-holder { color: var(--muted); font-size: .9rem; }
.pf-iban-number { font-family: var(--mono); font-size: 1.02rem; letter-spacing: .02em; margin: 12px 0; word-break: break-word; }
.pf-iban-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-address { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; }
.pf-address > i { color: var(--accent); margin-top: 4px; }
.pf-address span { flex: 1; }
.pf-map { width: 100%; height: 210px; border: 0; border-radius: 16px; margin: 10px 0; background: var(--surface-2); }
.pf-directions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pf-footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 32px 20px 0; }
.pf-footer a { color: var(--muted); }
.pf-edit {
    position: absolute; top: 12px; right: 12px; z-index: 5; color: #fff; font-size: .85rem; font-weight: 600;
    background: rgba(0, 0, 0, .4); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
.pf-edit:hover { text-decoration: none; background: rgba(0, 0, 0, .55); }

/* Restoran menüsü: İletişim & Bağlantılar'ın üstünde; renkleri seçilen menü tasarımından (--mn-*) gelir */
.pf-menu-wrap { margin: 24px 20px 0; scroll-margin-top: 8px; }
.pf-menu {
    display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; list-style: none;
    background: var(--mn-surface); color: var(--mn-text); border: 1px solid var(--mn-line); border-radius: 22px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .08); transition: border-radius .2s, box-shadow .2s;
}
.pf-menu::-webkit-details-marker { display: none; }
.pf-menu-thumbs { display: flex; flex: 0 0 auto; }
.pf-menu-thumbs img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--mn-surface);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12); background: var(--mn-line);
}
.pf-menu-thumbs img + img { margin-left: -14px; }
.pf-menu-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--mn-accent); color: var(--mn-on-accent); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.pf-menu-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pf-menu-text small { font-size: .64rem; font-weight: 700; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; color: var(--mn-accent); }
.pf-menu-text strong { font-family: var(--mn-head); font-size: 1.2rem; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-menu-text > span { font-size: .8rem; color: var(--mn-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-menu-cta {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--mn-accent); color: var(--mn-on-accent); font-size: .8rem;
}
.pf-menu-cta i { transition: transform .2s; }
.pf-menu-wrap[open] .pf-menu-cta i { transform: rotate(180deg); }
.pf-menu-wrap[open] .pf-menu { border-radius: 22px 22px 0 0; box-shadow: none; }
@media (max-width: 350px) { .pf-menu-thumbs img:nth-child(3) { display: none; } }

/* ---------- QR sayfası (admin) ---------- */
.qr-page { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.qr-preview { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; flex: 0 0 auto; }
.qr-preview img { width: 260px; height: 260px; }
.qr-info { flex: 1 1 280px; min-width: 0; }
.qr-url { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 8px 8px 12px; margin-bottom: 12px; }
.qr-url code { flex: 1; overflow-wrap: anywhere; }

/* ---------- Kurulum kontrol listesi ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check-list li i { margin-top: 3px; }
.check-list li.ok i { color: #16a34a; }
.check-list li.fail i { color: var(--danger); }
.check-list small { display: block; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Siparişler (admin) ---------- */
.nav-badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; }
.status-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.status-tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .85rem; }
.status-tabs a.is-active { background: var(--text); color: #fff; border-color: var(--text); }
.status-tabs a:hover { text-decoration: none; }
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; scroll-margin-top: 80px; }
.order-card.is-new { border-left: 4px solid var(--danger); }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.order-head h3 { margin: 0; font-size: 1.05rem; }
.order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 18px; margin: 12px 0; font-size: .9rem; }
.order-meta span { color: var(--muted); }
.order-note { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: .9rem; white-space: pre-line; margin-bottom: 12px; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; border-top: 1px dashed var(--border); padding-top: 12px; }
.order-actions form.order-update { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; flex: 1; }
.order-actions select { width: auto; padding: 7px 10px; font-size: .9rem; }
.order-actions input[type=text] { flex: 1 1 220px; width: auto; padding: 7px 10px; font-size: .9rem; }

/* ---------- Açılır menü (PDF ölçü seçimi) ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown summary { list-style: none; cursor: pointer; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown-caret { font-size: .7rem; margin-left: 2px; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 290px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); padding: 6px;
}
.dropdown-menu a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--text); }
.dropdown-menu a:hover { background: var(--surface-2); text-decoration: none; }
.dropdown-menu a b { display: block; font-size: .92rem; }
.dropdown-menu a small { color: var(--muted); }
.dropdown-title { display: block; padding: 8px 10px 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 560px) { .dropdown-menu { right: auto; left: 0; } }
.password-menu { width: 300px; padding: 12px; display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.password-menu form { margin: 0; }
/* Tablo kaydırılabilir olduğu için menü üstte süzülmez, satırın içinde açılır */
.row-actions .dropdown-menu.password-menu { position: static; margin-top: 6px; box-shadow: none; }
.row-actions .password-menu form { display: block; }
.password-menu label { font-size: .82rem; margin-bottom: 4px; }
.password-row { display: flex; gap: 6px; }
.row-actions .password-row input { flex: 1; width: auto; }

/* ---------- Menü düzenleyici (panel) ---------- */
.theme-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
@media (max-width: 560px) { .theme-picker { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; } }
.theme-option { display: flex; flex-direction: column; gap: 10px; margin: 0; font-weight: 400; cursor: pointer; }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
/* Örnek menünün küçültülmüş hali: iframe 390 px genişlikte açılır, JS ile kutuya sığdırılır */
.theme-phone {
    position: relative; display: block; aspect-ratio: 390 / 720; overflow: hidden; border-radius: 22px;
    border: 6px solid #1f2329; background: #1f2329; box-shadow: 0 8px 22px rgba(16, 24, 40, .14); transition: outline-color .15s, transform .15s;
}
.theme-phone iframe {
    position: absolute; top: 0; left: 0; width: 390px; height: 720px; border: 0; pointer-events: none;
    transform-origin: 0 0; transform: scale(var(--frame-scale, .4)); background: #fff;
}
.theme-option:hover .theme-phone { transform: translateY(-2px); }
.theme-option input:checked + .theme-phone,
.theme-option input:focus-visible + .theme-phone { outline: 3px solid var(--primary); outline-offset: 3px; }
.theme-option-text strong { display: block; font-size: .95rem; }
.theme-option-text small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.theme-option input:checked ~ .theme-option-text strong::after { content: " ✓ Seçili"; color: var(--primary); font-size: .8rem; }
.theme-demo-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .8rem; font-weight: 600; }

.menu-cat { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: #fcfcfd; scroll-margin-top: 120px; }
.menu-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.menu-cat-head h3 { margin: 0; font-size: 1.05rem; }
.menu-cat-head h3 small { font-weight: 400; font-size: .8rem; }
.menu-cat .item-list { margin-bottom: 10px; }
.menu-cat .add-item[open] summary { margin-bottom: 10px; }
.inline-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.inline-edit[hidden] { display: none; }
.inline-edit input[type=text] { flex: 1 1 200px; width: auto; }
.menu-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: var(--surface-2); }
.menu-thumb-empty { display: flex; align-items: center; justify-content: center; color: #c4c8cf; border: 1px dashed var(--border); }
.menu-price { color: var(--text); }
.menu-add-cat { border-top: 1px dashed var(--border); padding-top: 14px; }


/* ---------- Sadakat paneli ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.ly-campaign { border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 14px; background: #fcfcfd; scroll-margin-top: 120px; }
.ly-campaign.is-passive { opacity: .7; }
.ly-campaign-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ly-campaign-head h3 { margin: 0 0 2px; font-size: 1.05rem; }
.ly-campaign-head p { margin: 0; font-size: .88rem; }
.ly-steps { margin: 0 0 6px; padding-left: 20px; color: #344054; font-size: .92rem; }
.ly-steps li { margin-bottom: 6px; }
.ly-mini-bar { display: inline-block; width: 54px; height: 6px; border-radius: 3px; vertical-align: middle; margin-right: 6px;
    background: linear-gradient(90deg, #7c3aed var(--p), #e9e3fb var(--p)); }
.ly-events { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ly-events li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: #fff; }
.ly-events li:last-child { border-bottom: 0; }
.ly-events li.is-undone { opacity: .5; }
.ly-events li.is-undone strong { text-decoration: line-through; }
.ly-events form { margin: 0 0 0 auto; }
.ly-event-icon { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: #f3effe; color: #7c3aed; }
.ly-event-icon.is-reward { background: #ecfdf3; color: #067647; }
.ly-event-text { min-width: 0; font-size: .92rem; }
.ly-event-text small { display: block; color: var(--muted); }
.menu-callout.is-loyalty { background: #f5f3ff; border-color: #ddd6fe; color: #4c1d95; }
.menu-callout.is-loyalty .menu-callout-icon { background: #7c3aed; }
.menu-callout.is-loyalty .menu-callout-text span { color: #6d28d9; }
.menu-callout.is-loyalty:hover { border-color: #7c3aed; }

/* Profilde "Sadakat Kartım" */
.pf-loyalty {
    display: flex; align-items: center; gap: 12px; margin: 14px 20px 0; padding: 14px; border-radius: 22px; text-decoration: none !important;
    color: var(--text); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, #fff), #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
}
.pf-loyalty-icon { width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 1.1rem; }
.pf-loyalty-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pf-loyalty-text small { color: var(--muted); }
.pf-loyalty-dots { display: flex; gap: 3px; margin-top: 5px; flex-wrap: wrap; }
.pf-loyalty-dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, #fff); }
.pf-loyalty-dots i.on { background: var(--accent); }
.pf-loyalty > .fa-chevron-right { color: var(--muted); font-size: .85rem; }


/* ---------- Basılı menüden aktarma ---------- */
.import-card { border-color: #c7d7fe; background: linear-gradient(180deg, #f5f8ff, #fff 60%); }
.import-head { display: flex; gap: 14px; align-items: flex-start; }
.import-head h2 { margin-bottom: 4px; }
.import-icon { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 1.15rem; }
.import-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 6px; }
.import-grant { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border: 1px dashed #c7d7fe; border-radius: 10px; font-size: .9rem; }
.import-grant span { flex: 1 1 100%; }
.import-drop {
    position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; margin: 0;
    border: 2px dashed #b2c7f5; border-radius: 14px; background: #fff; cursor: pointer; text-align: center; font-weight: 400;
}
.import-drop:hover { border-color: var(--primary); }
.import-drop i { font-size: 1.6rem; color: var(--primary); }
.import-drop strong { font-size: .98rem; overflow-wrap: anywhere; }
.import-drop small { color: var(--muted); }
.import-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.import-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(16, 24, 40, .55); }
.import-overlay-box { background: #fff; border-radius: 18px; padding: 26px 22px; max-width: 320px; text-align: center; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.import-overlay-box i { font-size: 2rem; color: var(--primary); }
.import-overlay-box span { color: var(--muted); font-size: .9rem; }
.import-warnings { margin: 6px 0 0; padding-left: 20px; }

.import-cat { padding: 16px; }
.import-cat.is-off .import-rows { opacity: .4; }
.import-cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.import-cat-head input[type=checkbox], .import-row > input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--primary); }
.import-cat-name { font-weight: 700; font-size: 1.05rem !important; }
.import-rows { display: flex; flex-direction: column; gap: 8px; }
.import-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.import-row > input[type=checkbox] { margin-top: 12px; }
.import-row.is-off { opacity: .45; }
.import-row.is-uncertain { background: #fffbeb; border-color: #fcd34d; }
.import-row.is-noprice .import-price input { border-color: #f04438; background: #fef3f2; }
.import-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.import-main { display: flex; gap: 8px; }
.import-name { flex: 1; min-width: 0; font-weight: 600; }
.import-price { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.import-price input { width: 92px; text-align: right; }
.import-fields input { padding: 8px 10px; font-size: 15px; }
.import-desc { color: #475467; }
.import-flag { color: #b54708; font-weight: 600; }
@media (max-width: 480px) {
    .import-main { flex-direction: column; }
    .import-price input { width: 120px; }
}

/* Temsili fotoğraflar (panel) */
.stock-run { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; margin-bottom: 14px; border: 1px dashed var(--border); border-radius: 12px; background: #fcfcfd; }
.stock-progress { display: flex; flex-direction: column; gap: 6px; width: 100%; font-size: .88rem; }
.stock-bar { display: block; height: 8px; border-radius: 4px; background: #eef2f6; overflow: hidden; }
.stock-bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .3s; }

/* ---------- Şeffaf Menü (panel) ---------- */
.facts-intro p { font-size: .95rem; }
.facts-cat { margin: 22px 0 10px; font-size: 1.1rem; }
.facts-card { padding: 16px; scroll-margin-top: 80px; border-left: 4px solid var(--border); }
.facts-card.is-verified { border-left-color: #12b76a; }
.facts-card.is-pending { border-left-color: #f79009; background: #fffcf5; }
.facts-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.facts-head strong { font-size: 1.02rem; }
.allergen-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.allergen-chip { margin: 0; font-weight: 400; cursor: pointer; }
.allergen-chip input { position: absolute; opacity: 0; pointer-events: none; }
.allergen-chip span { display: inline-block; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: .82rem; transition: background .15s, border-color .15s; }
.allergen-chip input:checked + span { background: #fef3f2; border-color: #f04438; color: #b42318; font-weight: 600; }
.allergen-chip input:focus-visible + span { outline: 2px solid var(--primary); }
.facts-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
@media (max-width: 560px) { .facts-numbers { grid-template-columns: 1fr 1fr; } }
.facts-numbers > label { font-size: .82rem; margin: 0; }
.facts-unit { display: flex; align-items: center; gap: 4px; font-weight: 400; color: var(--muted); }
.facts-unit input { padding: 7px 8px; font-size: 15px; min-width: 0; }
.facts-flags { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.facts-flags .checkbox { margin: 0; font-size: .9rem; }
.facts-verify { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; background: #ecfdf3; border: 1px solid #abefc6; font-weight: 400; font-size: .9rem; cursor: pointer; }
.facts-verify input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: #12b76a; }
.facts-savebar { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 0 -16px; background: rgba(243, 244, 246, .95); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-top: 1px solid var(--border); }
.facts-callout { background: #ecfdf3; border-color: #abefc6; color: #054f31; }
.facts-callout .menu-callout-icon { background: #12b76a; }
.facts-callout .menu-callout-text span { color: #067647; }

/* Arşivden fotoğraf seçim penceresi */
.picker { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(16, 24, 40, .6); }
.picker-box { width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.picker-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.picker-head strong { overflow-wrap: anywhere; }
.picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 120px; }
.picker-msg { grid-column: 1 / -1; align-self: center; text-align: center; color: var(--muted); margin: 0; }
.picker-tile { position: relative; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface-2); aspect-ratio: 1; }
.picker-tile img { width: 100%; height: 100%; object-fit: cover; }
.picker-tile:hover, .picker-tile:focus-visible { border-color: var(--primary); outline: none; }
.picker-tile.is-loading::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='18' fill='none' stroke='%231f6feb' stroke-width='5' stroke-dasharray='80 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 40px no-repeat; }
.picker-foot { margin: 12px 0 0; font-size: .78rem; color: var(--muted); }
@media (max-width: 480px) { .picker-grid { grid-template-columns: repeat(2, 1fr); } }

/* Yönetici: fiyatlar */
.prices-card { max-width: 560px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-row label { margin: 0; }
.price-input { display: inline-flex; align-items: center; gap: 6px; }
.price-input input { width: 140px; text-align: right; }
/* Yönetici menüsü dar ekranda alt satıra geçer (Siparişler, Kartlar, Müşteriler, Fiyatlar, Çıkış) */
@media (max-width: 560px) {
    .topbar nav { flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; font-size: .88rem; }
}

/* Yönetici: satış takibi (adaylar) */
.text-danger { color: var(--danger); }
.prospect-add > summary, details.panel-card > summary { cursor: pointer; font-weight: 600; }
.prospect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.prospect-card h3 a { color: inherit; }
.prospect-card h3 i { color: var(--muted); font-size: .9em; margin-right: 2px; }
a.stat { text-decoration: none; }
.prospect-quick { margin: 4px 0 16px; }
.date-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.date-quick button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .82rem; cursor: pointer; }
.date-quick button:hover { border-color: var(--primary); }
.prospect-notes { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--border); }
.prospect-notes li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.prospect-notes time { color: var(--muted); font-size: .8rem; }
.prospect-notes p { margin: 4px 0 0; }
.prospect-ok { color: #067647; font-weight: 600; }
.prospect-cards { list-style: none; padding: 0; margin: 12px 0 0; }
.prospect-cards li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pf-demo-note { margin: 0 0 6px; }

/* Restoran: sipariş ekranı (/panel/siparisler) */
.orders-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.orders-tip { margin: 6px 0 18px; }
.orders-empty { padding: 40px 20px; }
.orders-empty i { font-size: 2rem; color: var(--muted); margin-bottom: 8px; }
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.mo-card { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.mo-card.is-yeni { border-left-color: var(--danger); }
.mo-card.is-teyit { border-left-color: #16a34a; }
.mo-card.is-hazirlaniyor { border-left-color: #f59e0b; }
.mo-card.is-hazir { border-left-color: var(--primary); }
.mo-card.is-fresh { animation: mo-flash 1.2s ease-in-out infinite; box-shadow: 0 0 0 3px #fdb022; }
@keyframes mo-flash { 50% { background: #fff4e5; } }
.mo-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.mo-where { display: block; font-size: 1.25rem; font-weight: 800; }
.mo-head small { color: var(--muted); }
.mo-status { font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #f2f4f7; white-space: nowrap; }
.mo-items { list-style: none; padding: 0; margin: 12px 0 0; }
.mo-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 1.02rem; }
.mo-items b { min-width: 28px; }
.mo-items em { font-style: normal; color: var(--muted); font-size: .9rem; }
.mo-note { margin: 10px 0 0; padding: 8px 10px; background: #fffaeb; border-radius: 8px; font-weight: 600; }
.mo-total { margin: 10px 0 0; color: var(--muted); }
.mo-total b { color: var(--text); font-size: 1.1rem; }
.mo-customer { margin-top: 10px; padding: 10px; background: #f9fafb; border-radius: 8px; }
.mo-customer p { margin: 4px 0 0; }
.mo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.mo-teyit { flex: 1 1 100%; margin: 0; font-size: .88rem; color: #166534; background: #f0fdf4; padding: 8px 10px; border-radius: 8px; }
.mo-closed { margin-top: 18px; }
.mo-closed summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.mo-closed ul { list-style: none; padding: 0; margin: 8px 0 0; }
.mo-closed li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.mo-closed li.is-iptal { opacity: .6; }
.mo-closed-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mo-closed-items, .mo-closed-note, .mo-closed-customer { margin: 4px 0 0; color: var(--muted); }
.mo-closed-customer a { white-space: nowrap; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; }
.table-row { display: flex; align-items: center; gap: 10px; }
.table-row span { min-width: 110px; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; color: var(--muted); }
.table-row input { flex: 1; min-width: 0; }
.kinds-help { margin: 0 0 14px; padding-left: 18px; font-size: .9rem; }
.kinds-help li { margin-bottom: 4px; }
.table-row { flex-wrap: wrap; gap: 6px 10px; }
.table-row span { flex: 1 1 100%; }
.table-row select { flex: 1 1 150px; width: auto; }
.table-row input { flex: 1 1 140px; }
.channel-choice { margin: 8px 0 0 28px; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.mo-closed li.is-wa .mo-closed-head span:last-child { color: #16a34a; }
.mo-card.is-wa { border-left-color: #16a34a; }

/* İşletme raporu (/panel/rapor) */
.rp-range { align-items: flex-end; }
.rp-range label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); flex: 1 1 140px; }
.rp-stats { margin: 12px 0 8px; }
.rp-h3 { font-size: .95rem; margin: 20px 0 8px; color: var(--muted); }
.rp-bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: end; height: 150px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.rp-bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.rp-bar-fill { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--primary); opacity: .85; }
.rp-bar:hover .rp-bar-fill { opacity: 1; }
.rp-bar-label { position: absolute; left: 50%; bottom: -19px; transform: translateX(-50%); font-size: .68rem; color: var(--muted); white-space: nowrap; }
.rp-table { width: 100%; }
.rp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rp-table .mono { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.rp-slow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rp-slow span { padding: 4px 10px; border-radius: 999px; background: #f2f4f7; font-size: .88rem; }
@media (max-width: 560px) {
    .rp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .rp-stats .stat { padding: 10px 12px; }
    .rp-stats .stat strong { font-size: 1.2rem; }
}
/* Yönetici: kartta yeni müşteri oluşturma menüsü (açılınca butonların altına iner, tablo dışına taşmaz) */
.row-actions:has(.new-customer-menu) { flex-wrap: wrap; }
.row-actions details[open]:has(.new-customer-menu) { flex-basis: 100%; }
.new-customer-menu { width: 100%; max-width: 360px; }
.new-customer-menu .form { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.row-actions .new-customer-menu input, .row-actions .new-customer-menu select { width: 100%; padding: 6px 8px; font-size: .85rem; height: auto; }
.new-customer-menu .btn { margin-top: 6px; align-self: flex-start; }
