/* Çiçekçi — Yönetim paneli */
:root {
  --p: #6d4c41; --p-d: color-mix(in srgb, var(--p) 82%, #000); --p-soft: color-mix(in srgb, var(--p) 10%, #fff);
  --side-1: #131a2b; --side-2: #0d121e;
  --bg: #f8fafc; --card: #fff; --line: #e2e8f0; --line-2: #eef2f6;
  --text: #0f172a; --text-2: #334155; --muted: #64748b; --muted-2: #94a3b8;
  --ok: #059669; --ok-bg: #ecfdf5; --warn: #b45309; --warn-bg: #fffbeb; --err: #dc2626; --err-bg: #fef2f2; --info: #2563eb; --info-bg: #eff6ff;
  --r: 16px; --r-sm: 10px; --side: 268px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .03);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--p); text-decoration: none; }
a:hover { color: var(--p-d); }
img { max-width: 100%; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--line-2); padding: 2px 6px; border-radius: 6px; }
[hidden] { display: none !important; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tr { text-align: right; }
.up { color: var(--err); }
.down { color: var(--ok); }
h1, h2 { margin: 0; }

/* ---------- Kenar çubuğu ---------- */
.adm { display: flex; min-height: 100vh; }
.adm-side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 50; display: flex; flex-direction: column;
  background: radial-gradient(900px 380px at -10% -5%, color-mix(in srgb, var(--p) 22%, transparent), transparent 60%), linear-gradient(var(--side-1), var(--side-2));
  color: #cbd5e1; border-right: 1px solid rgba(255,255,255,.06); transition: transform .3s;
}
.adm-brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 14px; color: #fff; }
.adm-brand:hover { color: #fff; }
.adm-brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, color-mix(in srgb, var(--p) 70%, #fff), var(--p)); box-shadow: 0 6px 18px color-mix(in srgb, var(--p) 45%, transparent); }
.adm-brand-mark .ico { width: 21px; height: 21px; color: #fff; }
.adm-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.adm-brand-text b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-brand-text small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; margin-top: 2px; }
.adm-search { display: flex; align-items: center; gap: 8px; margin: 0 14px 6px; padding: 0 10px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); color: #94a3b8; }
.adm-search .ico { width: 15px; height: 15px; }
.adm-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 13px; }
.adm-search input::placeholder { color: #64748b; }
.adm-search kbd { font: inherit; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); color: #94a3b8; white-space: nowrap; }
.adm-nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.adm-nav-sec { margin-top: 4px; }
.adm-nav-group { display: flex; align-items: center; gap: 7px; margin: 16px 8px 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #64748b; }
.adm-nav-group::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--p) 75%, #fff); }
.adm-nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; margin: 1px 0; border-radius: 12px; color: #cbd5e1; font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.adm-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.adm-nav a.active { background: linear-gradient(90deg, color-mix(in srgb, var(--p) 45%, transparent), color-mix(in srgb, var(--p) 14%, transparent)); color: #fff; }
.adm-nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: color-mix(in srgb, var(--p) 60%, #fff); }
.adm-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); flex: none; }
.adm-ico .ico { width: 15px; height: 15px; }
.adm-nav a.active .adm-ico { background: var(--p); box-shadow: 0 4px 12px color-mix(in srgb, var(--p) 50%, transparent); }
.adm-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: #f59e0b; color: #1f2937; font-size: 11px; font-weight: 800; }
.adm-me { position: relative; display: flex; align-items: center; gap: 10px; margin: 8px 12px 12px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.adm-me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.adm-me-text b { color: #fff; font-size: 13px; }
.adm-me-text small { color: #94a3b8; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-me-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.adm-me:hover .adm-me-menu, .adm-me:focus-within .adm-me-menu { display: block; }
.adm-me-menu a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 500; }
.adm-me-menu a:hover { background: var(--bg); }
.adm-avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, color-mix(in srgb, var(--p) 70%, #fff), var(--p)); color: #fff; font-weight: 800; }
.adm-avatar.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; }

/* ---------- Üst çubuk ---------- */
.adm-main { flex: 1; margin-left: var(--side); min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.adm-title-wrap { flex: 1; min-width: 0; }
.adm-title { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.adm-sub { margin: 0; font-size: 12.5px; color: var(--muted); }
.adm-top-actions { display: flex; align-items: center; gap: 8px; }
.adm-clock { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; color: var(--text-2); background: #fff; font-variant-numeric: tabular-nums; }
.adm-clock .ico { width: 15px; height: 15px; color: var(--muted); }
.adm-burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.adm-content { padding: 22px 28px 60px; max-width: 1440px; width: 100%; }
.adm-backdrop { display: none; }

/* ---------- Kartlar ---------- */
.acard { background: var(--card); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: var(--r); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.acard-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.acard-title .ico { width: 17px; height: 17px; color: var(--muted); margin-right: 2px; }
.acard-title a { font-size: 13px; font-weight: 600; }
.acard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.acard-head .acard-title { margin: 0; justify-content: flex-start; }
.acard-head p { margin: 2px 0 0; }
.acard-head.pad { padding: 16px 18px 0; margin-bottom: 8px; }
.acard-kpis { display: flex; gap: 26px; margin: 0; }
.acard-kpis dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acard-kpis dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; }
.muted-card { background: var(--warn-bg); border-color: #fde68a; }
.muted-card p { margin: 0; }
.adesc { color: var(--muted); margin: -4px 0 16px; }
.agrid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.agrid-2 > .acard { margin-bottom: 18px; }

/* ---------- Butonlar ---------- */
.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 11px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; box-shadow: var(--shadow); }
.abtn .ico { width: 16px; height: 16px; }
.abtn:hover { border-color: #cbd5e1; color: var(--text); background: #f8fafc; }
.abtn-primary { background: var(--p); border-color: var(--p); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--p) 30%, transparent); }
.abtn-primary:hover { background: var(--p-d); border-color: var(--p-d); color: #fff; }
.abtn-danger { color: var(--err); border-color: #fecaca; }
.abtn-danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.abtn-ghost { background: transparent; box-shadow: none; }
.abtn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.abtn-block { width: 100%; }
.abtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.abtns form { display: inline; }
.abar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.aicon { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text-2); cursor: pointer; vertical-align: middle; }
.aicon .ico { width: 15px; height: 15px; }
.aicon:hover { border-color: var(--p); color: var(--p); }
.aicon.danger:hover { border-color: var(--err); color: var(--err); }
.w-act form { display: inline; }

/* Segment sekmeler */
.aseg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.aseg a, .aseg button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.aseg a:hover, .aseg button:hover { background: var(--bg); color: var(--text); }
.aseg .ico { width: 15px; height: 15px; }
.aseg b { min-width: 22px; padding: 1px 6px; border-radius: 7px; background: var(--line-2); color: var(--muted); font-size: 11px; text-align: center; }
.aseg .active { background: var(--p); color: #fff; }
.aseg .active:hover { background: var(--p); color: #fff; }
.aseg .active b { background: rgba(255,255,255,.22); color: #fff; }
.abar-tabs { margin-bottom: 14px; }
.atabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; }
.atabs a { padding: 7px 12px; color: var(--text-2); font-weight: 600; font-size: 13px; border-radius: 10px; }
.atabs a:hover { background: var(--bg); }
.atabs a.active { color: #fff; background: var(--p); }

/* Uyarılar */
.aalert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; border: 1px solid transparent; }
.aalert-success { background: var(--ok-bg); color: #065f46; border-color: #a7f3d0; }
.aalert-error { background: var(--err-bg); color: #991b1b; border-color: #fecaca; }
.aalert-warn { background: var(--warn-bg); color: #92400e; border-color: #fde68a; }

/* ---------- Karşılama ---------- */
.ahero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; margin-bottom: 18px; border-radius: var(--r); color: #fff;
  background: radial-gradient(700px 260px at 88% -30%, color-mix(in srgb, var(--p) 45%, #fff) 0%, transparent 65%), linear-gradient(120deg, var(--p-d) 0%, var(--p) 45%, color-mix(in srgb, var(--p) 60%, #fff) 100%); }
.ahero-date { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.ahero h2 { font-size: 27px; font-weight: 800; margin: 6px 0 4px; letter-spacing: -.02em; }
.ahero p { margin: 0; opacity: .9; }
.ahero-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ahero-btns a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 10px; background: rgba(255,255,255,.16); color: #fff; font-weight: 600; font-size: 13px; backdrop-filter: blur(4px); }
.ahero-btns a:hover { background: rgba(255,255,255,.26); color: #fff; }
.ahero-btns .ico { width: 15px; height: 15px; }
.ahero-text { position: relative; z-index: 1; }
.ahero-art { position: absolute; right: 30px; bottom: -40px; opacity: .14; }
.ahero-art .ico { width: 220px; height: 220px; stroke-width: 1.2; }

/* ---------- İstatistikler ---------- */
.astats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.astats-4 { grid-template-columns: repeat(4, 1fr); }
.astat { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: var(--r); padding: 18px; color: var(--text); transition: .2s; box-shadow: var(--shadow); }
a.astat:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15,23,42,.07); color: var(--text); }
.astat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--tone-bg, #f1f5f9), transparent 70%); opacity: .7; pointer-events: none; }
.astat-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; background: #64748b; box-shadow: 0 6px 16px rgba(15,23,42,.15); }
.astat-ico .ico { width: 21px; height: 21px; }
.t-slate { background: linear-gradient(135deg, #94a3b8, #64748b); --tone-bg: #f1f5f9; }
.t-amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.t-brown { background: linear-gradient(135deg, color-mix(in srgb, var(--p) 75%, #fff), var(--p)); }
.t-blue { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.t-green { background: linear-gradient(135deg, #34d399, #10b981); }
.astat-body { display: flex; flex-direction: column; min-width: 0; position: relative; z-index: 1; }
.astat small, .astat-body small { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.astat strong { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.astat em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.astat > small { order: 0; }
.astats-4 .astat { flex-direction: column; gap: 8px; }
.astat-go { position: absolute; right: 16px; top: 16px; color: var(--muted-2); z-index: 1; }
.astat-go .ico { width: 16px; height: 16px; }

/* Grafik */
.achart { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; height: 200px; align-items: end; padding-top: 10px; }
.achart-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.achart-col i { width: 100%; max-width: 34px; height: max(var(--h), 3px); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--p) 60%, #fff), var(--p)); transition: opacity .15s; }
.achart-col:hover i { opacity: .8; }
.achart-col.today i { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.achart-col small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.abars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.abars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 13px; }
.abars span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abars i { grid-column: 1 / -1; grid-row: 2; height: 7px; border-radius: 4px; background: var(--line-2); position: relative; overflow: hidden; }
.abars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--p); }
.abars b { text-align: right; }
.abars small { display: none; }
.aprogress { display: inline-flex; align-items: center; gap: 10px; }
.aprogress i { width: 120px; height: 8px; border-radius: 4px; background: var(--line-2); position: relative; overflow: hidden; }
.aprogress i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ok); border-radius: 4px; }

/* Listeler */
.amsg-list, .achecks, .apopular { list-style: none; margin: 0; padding: 0; }
.amsg-list li a { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--text); }
.amsg-list li:last-child a { border-bottom: 0; }
.amsg-list span { grid-column: 1; color: var(--muted); font-size: 13px; }
.amsg-list small { grid-row: 1; grid-column: 2; color: var(--muted); }
.amsg-list li.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--p); margin-right: 7px; vertical-align: middle; }
.achecks li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.achecks li .ico { margin-top: 2px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; }
.achecks li.ok .ico { color: #fff; background: var(--ok); }
.achecks li.no .ico { color: #fff; background: #f87171; }
.achecks small { display: block; color: var(--muted); }
.achecks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.aquick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aquick a { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 500; }
.aquick a:hover { border-color: var(--p); color: var(--p); }
.apopular li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }

/* ---------- Tablo ---------- */
.atable-wrap { padding: 0; overflow: hidden; }
.atable-scroll { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; }
.atable th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); background: #fbfcfe; padding: 11px 14px; border-bottom: 1px solid var(--line); font-weight: 700; white-space: nowrap; }
.atable td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.atable tr:last-child td { border-bottom: 0; }
.atable tbody tr:hover td { background: #fbfcfe; }
.atable tr.unread td { background: color-mix(in srgb, var(--p) 4%, #fff); }
.atable tr.unread td:first-child { box-shadow: inset 3px 0 0 var(--p); }
.atable td .ico { width: 18px; height: 18px; }
.atable-plain td { padding: 10px 6px; }
.w-sort { width: 80px; }
.w-chk { width: 40px; }
.w-chk input, .abulkbar input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--p); }
.w-act { width: 100px; text-align: right; white-space: nowrap; }
.asort { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.athumb { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; display: block; background: var(--line-2); border: 1px solid var(--line); }
.athumb.empty { display: block; }
.alink { font-weight: 700; color: var(--text); }
.alink:hover { color: var(--p); }
.apill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700; background: var(--line-2); color: var(--muted); border: 0; font-family: inherit; cursor: default; white-space: nowrap; }
.apill .ico { width: 12px; height: 12px; }
button.apill { cursor: pointer; }
.apill.ok { background: var(--ok-bg); color: var(--ok); }
.apill.off { background: #f1f5f9; color: var(--muted-2); }
.apill.warn { background: var(--warn-bg); color: var(--warn); }
.apill.info { background: var(--info-bg); color: var(--info); }
.alate { color: var(--err); font-weight: 700; }
.atable-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fbfcfe; }
.atable-foot small { margin-left: auto; color: var(--muted); }
.aempty { text-align: center; padding: 44px 20px; color: var(--muted); }
.aempty p { margin: 8px 0 0; }
.aempty-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--line-2); color: var(--muted-2); }
.aempty-ico .ico { width: 22px; height: 22px; }
.apager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 14px 0; }
.apager a, .apager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--text); padding: 0 8px; font-weight: 600; }
.apager a.active { background: var(--p); border-color: var(--p); color: #fff; }
.asearch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.asearch input[type=search], .asearch select, .ainline input, .abulkbar select { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; font: inherit; background: #fff; min-width: 220px; color: var(--text); }
.asearch input:focus, .asearch select:focus { outline: 0; border-color: var(--p); box-shadow: 0 0 0 3px var(--p-soft); }
.abulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.abulk input[type=text] { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.abulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.abulkbar select { min-width: 180px; height: 34px; }
.abulkbar .acheck { margin-right: auto; }
.ainline { display: flex; gap: 6px; }
.ainline input { min-width: 0; width: 200px; height: 32px; }
.aperson { display: inline-flex; align-items: center; gap: 9px; }

/* Filtre kartı */
.afilters { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.afilters .afield > label { font-size: 12px; color: var(--muted); }
.afilters .afield { grid-column: auto; }
.afilters-btn { grid-column: auto !important; }
.afilters-quick { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Form ---------- */
.aform-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.aform-side { position: sticky; top: 84px; }
.aform-narrow { max-width: 760px; }
.afields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 16px; }
.afield { grid-column: 1 / -1; min-width: 0; }
.afield.half { grid-column: span 3; }
.afield.third { grid-column: span 2; }
.afield > label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.req { color: var(--err); font-style: normal; }
.afield input[type=text], .afield input[type=email], .afield input[type=password], .afield input[type=number], .afield input[type=time], .afield input[type=date], .afield input[type=search], .afield input[type=datetime-local], .afield select, .afield textarea, .ahours input[type=time] {
  width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; font: inherit; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.afield input:focus, .afield select:focus, .afield textarea:focus { outline: 0; border-color: var(--p); box-shadow: 0 0 0 3px var(--p-soft); }
.afield textarea { resize: vertical; }
.help { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.acount { float: right; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.acount.over { color: var(--err); }
.aswitch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; }
.afield > label.aswitch { display: inline-flex; margin-bottom: 0; }
.aswitch input { position: absolute; opacity: 0; pointer-events: none; }
.aswitch span { width: 40px; height: 22px; border-radius: 20px; background: #cbd5e1; position: relative; transition: .2s; flex: none; }
.aswitch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.aswitch input:checked + span { background: var(--p); }
.aswitch input:checked + span::after { left: 21px; }
.aswitch input:focus-visible + span { outline: 2px solid var(--p); outline-offset: 2px; }
.acheck { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.acheck input { accent-color: var(--p); }
.aimg { display: flex; gap: 14px; align-items: flex-start; }
.aimg-preview { width: 120px; height: 120px; border-radius: 12px; background: #f1f5f9 repeating-conic-gradient(#e2e8f0 0 25%, #f8fafc 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid var(--line); }
.aimg-preview img { width: 100%; height: 100%; object-fit: cover; }
.aimg-preview span { font-size: 12px; color: var(--muted); }
.aimg-ctrl { flex: 1; display: grid; gap: 8px; min-width: 0; }
.aimg-ctrl input[type=file], .t-gallery input[type=file] { font-size: 13px; max-width: 100%; padding: 14px; border: 1.5px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; width: 100%; cursor: pointer; }
.aimg-path { font-size: 12.5px !important; min-height: 34px !important; padding: 6px 10px !important; color: var(--muted) !important; }
.aicon-pick { display: flex; gap: 10px; align-items: center; }
.aicon-pick select { flex: 1; }
.aicon-preview { width: 42px; height: 42px; border-radius: 10px; background: var(--p-soft); color: var(--p); display: grid; place-items: center; flex: none; }
.aicon-preview .ico { width: 22px; height: 22px; }
.acolor { display: flex; gap: 8px; }
.acolor input[type=color] { width: 46px; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.asticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }
.ahours td { padding: 10px 14px; }
.ahours input[type=time] { max-width: 160px; }
.agallery { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.agallery-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.agallery-item img { width: 84px; height: 104px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.amulti { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.amulti .acheck { color: var(--text); font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.amulti .acheck:has(input:checked) { border-color: var(--p); background: var(--p-soft); color: var(--p); }

/* Editör */
.ql-toolbar.ql-snow { border-color: var(--line); border-radius: 11px 11px 0 0; background: #fbfcfe; }
.ql-container.ql-snow { border-color: var(--line); border-radius: 0 0 11px 11px; font: inherit; font-size: 14.5px; }
.ql-editor { min-height: 240px; line-height: 1.65; }
.ql-editor img { max-width: 100%; }

/* Sipariş detayı */
.amsg dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0; }
.amsg dt { color: var(--muted); }
.amsg dd { margin: 0; font-weight: 600; }
.amsg-body { padding: 16px; background: #fbfcfe; border-radius: 12px; border: 1px solid var(--line); }
.anote { font-family: Georgia, serif; font-size: 16px; line-height: 1.6; }
.aorder-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; margin: 14px 0 0 auto; padding-top: 14px; border-top: 1px solid var(--line); max-width: 340px; }
.aorder-sum dd { margin: 0; text-align: right; }
.astepper { list-style: none; margin: 0 0 18px; padding: 16px 18px; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.astepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; }
.astepper li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.astepper li:first-child::before { display: none; }
.astepper span { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--muted-2); }
.astepper span .ico { width: 15px; height: 15px; }
.astepper li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.astepper li.done::before { background: var(--ok); }
.astepper li.current b { color: var(--text); }
.awa { display: grid; gap: 6px; }
.awa a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13px; }
.awa a .ico { color: #16a34a; }
.awa a:hover { border-color: #16a34a; background: #f0fdf4; }

/* Giriş */
.alogin-body { background: var(--side-2); }
.alogin { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.alogin-art { background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 50px; }
.alogin-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--side-1) 30%, transparent), var(--side-2)); }
.alogin-art div { position: relative; color: #cbd5e1; }
.alogin-art img { height: 48px; width: auto; }
.alogin-form { background: #fff; display: flex; flex-direction: column; justify-content: center; padding: 60px; max-width: 500px; width: 100%; margin: 0 auto; }
.alogin-form h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.02em; }
.alogin-form .afield { margin: 14px 0; }
.alogin-form .abtn { margin-top: 10px; height: 46px; font-size: 15px; }
.aback { display: block; text-align: center; margin-top: 20px; color: var(--muted); }

/* Modüller */
.amods { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 18px; align-items: start; }
.amods-all { display: flex; gap: 4px; }
.amods-all .abtn { height: 30px; padding: 0 10px; font-size: 12px; }
.amods-list { list-style: none; margin: 0; padding: 0; }
.amods-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.amods-list li:last-child { border-bottom: 0; }
.amods-link { font-size: 12px; color: var(--muted); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1200px) {
  .astats, .astats-4 { grid-template-columns: repeat(2, 1fr); }
  .aform-grid { grid-template-columns: 1fr; }
  .aform-side { position: static; }
  .afilters { grid-template-columns: repeat(3, 1fr); }
  .afilters .afield:first-of-type { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .adm-side { transform: translateX(-100%); box-shadow: 20px 0 50px rgba(0,0,0,.3); }
  .adm-side.is-open { transform: none; }
  .adm-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 40; }
  .adm-main { margin-left: 0; }
  .adm-burger { display: inline-flex; }
  .adm-top { padding: 10px 14px; }
  .adm-clock { display: none; }
  .adm-top-actions .abtn span { display: none; }
  .adm-content { padding: 16px 14px 60px; }
  .agrid-2, .achecks-grid { grid-template-columns: 1fr; }
  .afields { grid-template-columns: 1fr; }
  .afield.half, .afield.third { grid-column: 1 / -1; }
  .afilters { grid-template-columns: 1fr 1fr; }
  .alogin { grid-template-columns: 1fr; }
  .alogin-art { display: none; }
  .alogin-form { padding: 40px 22px; }
  .ahero { padding: 22px; }
  .ahero h2 { font-size: 22px; }
  .acard-head { flex-direction: column; }
  /* Tablo → kart görünümü */
  .atable thead { display: none; }
  .atable, .atable tbody, .atable tr, .atable td { display: block; width: 100%; }
  .atable tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); position: relative; }
  .atable td { padding: 4px 0; border: 0; display: flex; gap: 10px; align-items: center; }
  .atable td[data-label]::before { content: attr(data-label); min-width: 90px; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
  .atable td.w-act { position: absolute; right: 12px; top: 12px; width: auto; }
  .atable td.w-chk { position: absolute; left: auto; right: 12px; bottom: 12px; top: auto; width: auto; }
  .asearch input[type=search], .asearch select { min-width: 0; flex: 1; }
  .aquick { grid-template-columns: 1fr; }
  .amsg dl { grid-template-columns: 1fr; }
  .amsg dd { margin-bottom: 8px; }
  .astepper { padding: 12px 6px; }
  .astepper b { font-size: 10.5px; }
  .achart { gap: 3px; }
  .achart-col small { font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); }
}
@media (max-width: 520px) {
  .astats, .astats-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .astat { flex-direction: column; padding: 14px; gap: 10px; }
  .astat strong { font-size: 19px; }
  .aimg { flex-direction: column; }
  .abar .abtn-primary { width: 100%; }
  .aseg { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .amods { grid-template-columns: 1fr; }
  .acard-title { flex-wrap: wrap; gap: 8px; }
  .afilters { grid-template-columns: 1fr; }
}
@media print {
  .adm-side, .adm-top, .abar, .aform-side, .adm-backdrop, .astepper { display: none !important; }
  .adm-main { margin: 0 !important; }
  .aform-grid { display: block !important; }
  .acard { break-inside: avoid; box-shadow: none; }
}
.aprice { color: var(--ok); }
