/* Yönetim paneli: açık sıcak zemin, yuvarlak beyaz kartlar, mürdüm vurgu */
:root {
  --bg: #f0f5f0; --card: #fff; --ink: #18212b; --text: #2a3440; --muted: #6b7684; --line: #e6eaef; --line-2: #eef1f4;
  --acc: #8a3a5c; --acc-2: #6f2b48; --acc-soft: #f5e7ed; --acc-tint: #fbf4f7;
  --ok: #138a52; --ok-soft: #e7f6ee; --err: #c2352b; --err-soft: #fdeceb; --warn: #b7791f; --warn-soft: #fdf5e6; --info: #3c5bd6; --info-soft: #eef2fd;
  --r: 10px; --r-lg: 16px; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .05);
}
* { box-sizing: border-box; }
body { margin: 0; font: 14.5px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--acc-2); }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
code { background: var(--line-2); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; color: var(--ink); }
small { font-size: 12.5px; }
.muted { color: var(--muted); }
.narrow { max-width: 520px; }
.ic { width: 18px; height: 18px; flex: none; }

/* iskelet */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.nav-toggle, .burger, .nav-shade { display: none; }
.side { background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; }
.side-head { display: flex; gap: 11px; align-items: center; padding: 4px 8px 18px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.side-logo { width: 38px; height: 38px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; }
.side-head strong { display: block; color: var(--ink); font-size: 14.5px; line-height: 1.25; }
.side-head small { color: var(--muted); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #9aa4b1; padding: 16px 12px 6px; }
.side nav a, .side-out { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--text); font-weight: 500; }
.side nav a .ic, .side-out .ic { color: #8a95a3; }
.side nav a:hover { background: var(--bg); }
.side nav a.on { background: var(--acc-soft); color: var(--acc-2); font-weight: 600; }
.side nav a.on .ic { color: var(--acc); }
.count { margin-left: auto; background: var(--acc); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 99px; }
.side-out { margin-top: auto; color: var(--muted); }
.side-out:hover { background: var(--err-soft); color: var(--err); }
.content { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 16px 32px; background: rgba(246, 244, 241, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-title { margin-right: auto; }
.topbar h1 { font-size: 20px; font-weight: 700; }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.page { padding: 26px 32px 60px; max-width: 1240px; }

/* kartlar */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; margin-bottom: 18px; }
.cols > .panel { margin-bottom: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.ic-box { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); flex: none; }
.card-head .more { margin-left: auto; font-size: 13px; text-decoration: none; font-weight: 500; }

/* özet kartları */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 500; }
.stat-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); }
.stat-ic.blue { background: var(--info-soft); color: var(--info); }
.stat-ic.amber { background: var(--warn-soft); color: var(--warn); }
.stat-ic.rose { background: var(--err-soft); color: var(--err); }
.stat strong { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.stat small { color: var(--muted); }
.meter { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 6px 0 2px; }
.meter i { display: block; height: 100%; background: var(--acc); border-radius: 99px; }

/* formlar */
.form { display: grid; gap: 16px; }
.form > .btn, .form > button { justify-self: start; }
.form label { display: block; font-weight: 500; font-size: 13.5px; color: var(--ink); }
.form label > .muted { font-weight: 400; }
.form label > input, .form label > select, .form label > textarea, .form label > .thumb { display: block; margin-top: 6px; }
.form label > .thumb { display: flex; }
.form label > small { display: block; font-weight: 400; margin-top: 5px; }
.form label.check > input, .form .radios label > input, .form .pick-grid label > input, .form .il-item label > input { margin-top: 0; }
.form label.db-opt > input { margin-top: 3px; }
input, select, textarea { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid #d5dbe2; border-radius: var(--r); background: #fff; width: 100%; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #b9c2cc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
input[type=file] { padding: 10px; background: var(--acc-tint); border: 1.5px dashed #e2bfcd; color: var(--muted); cursor: pointer; font-size: 13.5px; }
input[type=file]:hover { border-color: var(--acc); background: var(--acc-soft); }
input[type=file]::file-selector-button { font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; padding: 9px 14px; margin-right: 12px; border: 1px solid #d5dbe2; border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s; }
input[type=file]::file-selector-button:hover { border-color: var(--acc); color: var(--acc-2); }
input[type=color] { height: 44px; padding: 4px; width: 90px !important; }
input[type=radio] { width: auto; accent-color: var(--acc); }
/* onay kutuları anahtar görünümünde */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; padding: 0; border-radius: 99px; background: #cfd6de; border: 0; position: relative; cursor: pointer; flex: none; transition: background .2s; }
input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
input[type=checkbox]:checked { background: var(--acc); }
input[type=checkbox]:checked::after { transform: translateX(16px); }
input[type=checkbox]:focus-visible { box-shadow: 0 0 0 3px var(--acc-soft); }
.check, .form .check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; cursor: pointer; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar select { width: auto; }
.thumb { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.thumb img { max-height: 48px; border-radius: 8px; border: 1px solid var(--line); }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, rgba(246,244,241,0)); padding: 16px 0 6px; z-index: 5; }
textarea.mono { font: 13.5px/1.65 ui-monospace, Menlo, Consolas, monospace; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: var(--r); border: 1px solid #d5dbe2; background: #fff; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--bg); border-color: #b9c2cc; }
.btn-primary { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 1px 2px rgba(138, 58, 92, .3); }
.btn-primary:hover { background: var(--acc-2); border-color: var(--acc-2); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text); }
.btn-ghost:hover { background: #fff; border-color: var(--line); }
.btn-danger { color: var(--err); border-color: #f1c9c5; }
.btn-danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }

/* uyarılar ve rozetler */
/* metin akışı bozulmasın diye blok düzen; simge varsa solda sabit durur */
.alert { display: block; position: relative; padding: 12px 14px; border-radius: var(--r); margin: 0 0 18px; border: 1px solid; }
.alert:has(> .ic) { padding-left: 42px; }
.alert > .ic { position: absolute; left: 14px; top: 13px; }
.alert-ok { background: var(--ok-soft); border-color: #bfe5cf; color: #0f5e39; }
.alert-err { background: var(--err-soft); border-color: #f3c8c3; color: #8f241c; }
.alert-info { background: var(--info-soft); border-color: #cfd9fb; color: #2a3f99; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--muted); }
.badge-valid, .badge-dev { background: var(--ok-soft); color: var(--ok); }
.badge-invalid { background: var(--err-soft); color: var(--err); }
.badge-unknown { background: var(--warn-soft); color: var(--warn); }

/* tablolar */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); }
.panel .table { box-shadow: none; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th { background: #f8fafb; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.table tbody tr:hover td { background: #fafbfc; }
.table tr.new td { background: var(--acc-tint); }
.actions { white-space: nowrap; text-align: right; }
.actions details { display: inline-block; }
.actions summary { list-style: none; }
.preview { position: absolute; right: 40px; max-width: 560px; max-height: 420px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; white-space: normal; z-index: 5; box-shadow: 0 12px 40px rgba(16,24,40,.15); text-align: left; }
.tbl-img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }

/* bölgeler */
.il-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.il-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; background: #fff; }
.il-item > label:first-child { display: flex; align-items: center; gap: 8px; flex: 1; font-weight: 500; }
.il-item .star { display: flex; align-items: center; gap: 2px; color: var(--warn); font-weight: 400; }
.il-item a { font-size: 12px; color: var(--muted); text-decoration: none; background: var(--line-2); padding: 2px 7px; border-radius: 99px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 14px; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0; }
.pick-grid legend { font-weight: 600; padding: 0 6px; }
.pick-grid label { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; }
.pick summary { cursor: pointer; font-weight: 600; padding: 4px 0; color: var(--acc-2); }
.radios { display: flex; gap: 20px; flex-wrap: wrap; }
.radios label { display: flex !important; align-items: center; gap: 7px; font-weight: 500 !important; }

/* yapay zekâ */
.progress { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--acc); border-radius: 99px; transition: width .3s; }
.log { max-height: 260px; overflow: auto; font-size: 13px; padding-left: 20px; margin: 0; }
.log .no, .checklist .no { color: var(--err); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li::before { content: "✓ "; font-weight: 700; color: var(--ok); }
.checklist li.no::before { content: "✗ "; color: var(--err); }

/* galeri, tema, slider */
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.admin-gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.admin-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.theme-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.theme-card:hover { box-shadow: 0 10px 30px rgba(16,24,40,.1); transform: translateY(-2px); }
.theme-card.on { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.theme-shot { aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg); }
.theme-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.theme-shot span { display: block; width: 100%; height: 100%; opacity: .25; }
.theme-info { padding: 12px 14px 14px; display: grid; gap: 6px; }
.theme-info strong { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.slide-list { display: grid; gap: 12px; }
.slide-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow); }
.slide-item.off { opacity: .55; }
.slide-item img { width: 200px; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 10px; }
.slide-item small { display: block; }
.slide-item strong { color: var(--ink); }
.page-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-bar .tabs { margin-bottom: 0; }
.tabs { display: inline-flex; gap: 4px; margin-bottom: 18px; background: #e9edf1; padding: 4px; border-radius: 12px; }
.tabs a { padding: 8px 16px; text-decoration: none; font-weight: 500; color: var(--muted); border-radius: 9px; }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.1); }

/* özet sayfası */
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.quick a, .quick button { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; text-align: left; width: 100%; }
.quick a:hover, .quick button:hover { border-color: var(--acc); background: var(--acc-tint); }
.quick .ic { color: var(--acc); }
.quick form { margin: 0; }
.lead-list { display: grid; }
.lead-row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.lead-row:last-child { border-bottom: 0; }
.lead-av { width: 36px; height: 36px; border-radius: 50%; background: var(--info-soft); color: var(--info); display: grid; place-items: center; font-weight: 700; flex: none; }
.lead-row div { min-width: 0; flex: 1; }
.lead-row strong { color: var(--ink); display: block; }
.lead-row small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv { display: grid; gap: 10px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; word-break: break-all; }
.empty { text-align: center; padding: 28px 10px; color: var(--muted); }

/* giriş ve kurulum */
.install { background: var(--bg); min-height: 100vh; }
.install-box { max-width: 720px; margin: 48px auto; padding: 0 16px; }
.install-box.narrow { max-width: 420px; margin-top: 12vh; }
.install-box > h1 { font-size: 26px; margin-bottom: 6px; }
.install-box > p { margin: 0 0 22px; }
.install .panel h2 { margin-top: 8px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .nav-toggle:checked ~ .side { transform: none; }
  .nav-toggle:checked ~ .nav-shade { display: block; position: fixed; inset: 0; background: rgba(15, 23, 32, .3); z-index: 30; }
  .burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
  .topbar { padding: 12px 16px; }
  .topbar .btn span { display: none; }
  .page { padding: 18px 16px 50px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
  .slide-item { grid-template-columns: 1fr; }
  .slide-item img { width: 100%; }
}

/* kurulum: veritabanı seçimi */
.db-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.db-opt { display: flex !important; flex-direction: row !important; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; background: #fff; }
.db-opt:has(input:checked) { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.db-opt input { margin-top: 3px; }
.db-opt span { display: grid; gap: 2px; }
.db-opt small { color: var(--muted); font-weight: 400; }
.db-mysql { display: none; gap: 14px; border-left: 3px solid var(--acc-soft); padding-left: 14px; }
.form:has(input[value=mysql]:checked) .db-mysql { display: grid; }
@media (max-width: 900px) { .db-pick { grid-template-columns: 1fr; } }

/* giriş */
.login { background: var(--bg); min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-box { width: 100%; max-width: 420px; }
.login-card { padding: 28px; gap: 18px; }
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-card p.muted { margin: 0; }
.btn-block { width: 100%; justify-self: stretch !important; padding: 12px 15px; }
.demo-cred { background: var(--acc-tint); border: 1px solid #ecd0dc; border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.demo-cred-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--acc-2); font-size: 14px; }
.demo-cred dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-cred dt { font-size: 12px; color: var(--muted); }
.demo-cred dd { margin: 2px 0 0; font: 600 15px/1.3 ui-monospace, Menlo, Consolas, monospace; color: var(--ink); background: #fff; border: 1px solid #efd9e2; border-radius: 8px; padding: 6px 10px; }
.demo-cred small { color: var(--muted); }
.login-back { display: block; text-align: center; margin-top: 16px; color: var(--muted); text-decoration: none; font-size: 13.5px; }
.login-back:hover { color: var(--acc-2); }

/* ---------- pet işletme paneline özgü ---------- */
.side-logo .ic { width: 21px; height: 21px; }
.mod-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mod-pick .db-opt:has(input:checked) { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.mod-pick .db-opt input { margin-top: 1px; }
.intro { margin: -4px 0 16px; max-width: 760px; }
.small { font-size: 13px; }
.mt { margin-top: 14px; }
.sub-h { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; }
.card-head .badge { margin-left: auto; }
.card-head .more + .badge, .card-head .badge + .more { margin-left: 8px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid-head { font-size: 14px; font-weight: 600; color: var(--ink); margin: 6px 0 -4px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.search-in { width: 260px; }
.toolbar input[type=date] { width: auto; padding: 7px 10px; }
.toolbar label.inline { font-weight: 500; font-size: 13.5px; color: var(--muted); }
.toolbar label.inline input { width: auto; }
.datenav form { margin: 0; }
.tabs .count { margin-left: 4px; }
.page-bar > .tabs { flex-wrap: wrap; }
.table tr.off td { opacity: .55; }
.tbl-ph { display: grid; place-items: center; background: var(--line-2); color: #b5aca3; }
.note-box { background: var(--warn-soft); border: 1px solid #f2dfb8; border-radius: var(--r); padding: 10px 12px; margin: 14px 0 0; font-size: 13.5px; color: #6b4a12; }
.status-btns { gap: 6px; }
.btn-wa { color: #1d6b43; border-color: #c3e2cf; background: #eef8f1; }
.btn-wa:hover { border-color: #1d6b43; background: #e3f3e9; }
.time-chip { flex: none; font: 600 13px/1 ui-monospace, Menlo, monospace; background: var(--acc-soft); color: var(--acc-2); border-radius: 8px; padding: 7px 8px; }
.lead-av .ic { width: 17px; height: 17px; }
.lead-av.amber { background: var(--warn-soft); color: var(--warn); }
.lead-row .status-btns { margin-left: auto; }
.quick b { margin-left: auto; color: var(--acc-2); }
.pet-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; background: var(--acc-tint); border: 1px solid var(--acc-soft); font-size: 12.5px; text-decoration: none; margin: 1px 0; }
.pet-pill .ic { width: 13px; height: 13px; }
.pet-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pet-card { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-decoration: none; color: var(--text); }
.pet-card:hover { border-color: var(--acc); background: var(--acc-tint); }
.pet-card strong { color: var(--ink); }
.pet-card small { color: var(--muted); }
.pet-card .badge { justify-self: start; }
.hours-grid { display: grid; grid-template-columns: 1fr 130px 130px; gap: 10px 12px; align-items: center; }
.hours-grid input[type=time] { padding: 8px 10px; }
.admin-gallery .compact { gap: 8px; }
.sort-in { width: 64px !important; padding: 6px 8px !important; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 18px; }
.pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; background: #fff; color: var(--ink); }
.pager a.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.slot-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot-pick label { position: relative; cursor: pointer; }
.slot-pick input { position: absolute; opacity: 0; }
.slot-pick span { display: block; text-align: center; padding: 9px 0; border: 1px solid #d5dbe2; border-radius: 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot-pick input:checked + span { background: var(--acc); border-color: var(--acc); color: #fff; }

/* durum renkleri (takvim, rozet) */
.badge.st-bekliyor, .badge.st-yeni { background: var(--warn-soft); color: var(--warn); }
.badge.st-onayli, .badge.st-hazirlaniyor, .badge.st-yolda { background: var(--acc-soft); color: var(--acc-2); }
.badge.st-giris { background: var(--info-soft); color: var(--info); }
.badge.st-tamamlandi, .badge.st-cikis, .badge.st-teslim { background: var(--ok-soft); color: var(--ok); }
.badge.st-iptal, .badge.st-gelmedi { background: var(--err-soft); color: var(--err); }
.legend { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: -8px; border: 1px solid transparent; }

/* gün takvimi */
.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow-x: auto; }
.cal-head, .cal-body { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(170px, 1fr)); min-width: calc(56px + var(--cols) * 170px); }
.cal-head { border-bottom: 1px solid var(--line); background: #faf9f7; position: sticky; top: 0; }
.cal-head span { padding: 10px 12px; font-weight: 600; color: var(--ink); font-size: 13.5px; border-left: 1px solid var(--line-2); }
.cal-head span:first-child { border-left: 0; }
.cal-body { position: relative; }
.cal-axis { position: relative; }
.cal-axis span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-axis span:first-child { transform: none; top: 2px !important; }
.cal-col { position: relative; border-left: 1px solid var(--line-2); }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line-2); }
.cal-closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f7f5f2 0 6px, #f1eeea 6px 12px); }
.cal-ev { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 4px 8px; font-size: 12.5px; line-height: 1.3; text-decoration: none; overflow: hidden; border-left: 3px solid; display: block; }
.cal-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.short { display: flex; gap: 6px; align-items: baseline; padding-top: 3px; padding-bottom: 3px; }
.cal-ev.short b, .cal-ev.short span { display: inline; min-width: 0; }
.cal-ev.short b { flex: none; }
.cal-ev.st-bekliyor, .week-ev.st-bekliyor, .lg.st-bekliyor { background: #fdf3df; border-color: var(--warn); color: #6b4a12; }
.cal-ev.st-onayli, .week-ev.st-onayli, .lg.st-onayli { background: var(--acc-soft); border-color: var(--acc); color: var(--acc-2); }
.cal-ev.st-tamamlandi, .week-ev.st-tamamlandi, .lg.st-tamamlandi { background: var(--ok-soft); border-color: var(--ok); color: #0f5e39; }
.cal-ev.st-gelmedi, .week-ev.st-gelmedi, .lg.st-gelmedi { background: var(--err-soft); border-color: var(--err); color: #8f241c; }
.cal-ev:hover, .week-ev:hover { filter: brightness(.97); }

/* hafta */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.week-day { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 160px; }
.week-day.is-today { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.week-day.is-closed { background: #faf9f7; }
.week-head { display: flex; justify-content: space-between; align-items: baseline; text-decoration: none; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.week-head span { font-size: 12.5px; color: var(--muted); }
.week-ev { display: block; border-left: 3px solid; border-radius: 7px; padding: 5px 7px; font-size: 12.5px; text-decoration: none; line-height: 1.3; }
.week-ev small { display: block; color: var(--muted); font-size: 11.5px; }

/* doluluk */
.occ-wrap { overflow-x: auto; }
.occ { min-width: 900px; }
.occ th, .occ td { padding: 8px 6px; text-align: center; font-size: 12.5px; }
.occ th:first-child { text-align: left; min-width: 150px; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink); background: #fff; }
.occ th small { display: block; color: var(--muted); font-weight: 400; }
.occ thead th.we { background: #f4f1ed; }
.occ td { font-variant-numeric: tabular-nums; font-weight: 600; }
.occ-0, .lg.occ-0 { background: #fff; color: #b5aca3; border-color: var(--line); }
.occ-1, .lg.occ-1 { background: var(--acc-tint); color: var(--acc-2); }
.lg.occ-1 { background: var(--acc-soft); }
.occ-2, .lg.occ-2 { background: var(--acc); color: #fff; }
.table td.occ-2 { background: var(--acc); }
.table td.occ-1 { background: var(--acc-soft); }

@media (max-width: 1100px) { .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .mod-pick, .fgrid { grid-template-columns: 1fr; }
  .search-in { width: 100%; }
  .hours-grid { grid-template-columns: 1fr 1fr; }
  .hours-grid .check { grid-column: 1 / -1; margin-top: 6px; }
  .week { grid-template-columns: 1fr; }
  .week-day { min-height: 0; }
  .lead-row { flex-wrap: wrap; }
}
.cols > * { min-width: 0; }
.lead-row > div { overflow: hidden; }
.lg { width: 14px; height: 14px; border-width: 2px; }
