/* Yönetim paneli bileşenleri. Derleme gerektirmez; düzen yardımcıları app.css'teki Tailwind'den gelir. Yön için mantıksal özellikler kullanılır. */
:root {
  --ink: #1f1c1a; --muted: #6b6058; --line: #e9e0da; --line-2: #f3ece7; --bg: #faf7f5; --surface: #fff;
  --ok: #2e6b4f; --ok-bg: #e4f1ea; --warn: #8a5a12; --warn-bg: #fbf0da; --bad: #a33a2c; --bad-bg: #fbe9e6; --off: #5f5a56; --off-bg: #efebe8;
  --z-top: 30; --z-nav: 40; --z-menu: 50;
  --r: .75rem;
}
body.adm { background: var(--bg); color: var(--ink); font-size: .9375rem; line-height: 1.45; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.ic { width: 1.125rem; height: 1.125rem; flex: none; }
.ic-s { width: .9375rem; height: .9375rem; flex: none; }
.ic-l { width: 1.75rem; height: 1.75rem; flex: none; }

/* Kabuk */
.shell { min-height: 100dvh; }
.side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 16rem; background: rgb(var(--brand-900)); color: rgb(var(--brand-100)); display: flex; flex-direction: column; z-index: var(--z-nav); transform: translateX(-100%); transition: transform .25s ease-out; visibility: hidden; padding-block-end: env(safe-area-inset-bottom); }
[dir='rtl'] .side { transform: translateX(100%); }
.side.open { transform: none; visibility: visible; }
.side-head { padding: 1.25rem 1.25rem .75rem; }
.side-name { font-family: "Playfair Display Variable", "Noto Sans Arabic", serif; font-size: 1.375rem; color: #fff; line-height: 1.2; overflow-wrap: anywhere; }
.side-sub { font-size: .75rem; color: rgb(var(--brand-300)); }
.side-nav { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; scrollbar-width: thin; }
.side-group { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: rgb(var(--brand-300)); padding: 1rem .75rem .375rem; }
.side-link { display: flex; align-items: center; gap: .75rem; padding: .5625rem .75rem; border-radius: .625rem; color: rgb(var(--brand-100)); font-weight: 500; text-decoration: none; }
.side-link:hover { background: rgb(255 255 255 / .08); color: #fff; }
.side-link[aria-current='page'] { background: rgb(var(--brand-50)); color: rgb(var(--brand-900)); font-weight: 600; }
.side :focus-visible { outline-color: #fff; }
.scrim { position: fixed; inset: 0; background: rgb(31 28 26 / .45); z-index: calc(var(--z-nav) - 1); }
.wrap { display: flex; flex-direction: column; min-height: 100dvh; padding-block-end: calc(4rem + env(safe-area-inset-bottom)); }
.demo-strip { background: var(--warn-bg); color: var(--warn); font-size: .8125rem; font-weight: 600; text-align: center; padding: .375rem 1rem; }
.top { position: sticky; top: 0; z-index: var(--z-top); display: flex; align-items: center; gap: .5rem; background: rgb(250 247 245 / .96); border-block-end: 1px solid var(--line); padding: .5rem 1rem; padding-block-start: calc(.5rem + env(safe-area-inset-top)); min-height: 3.5rem; }
.top-title { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) { .top-title { visibility: hidden; } }
.main { flex: 1; width: 100%; max-width: 88rem; margin-inline: auto; padding: 1rem; }
.bnav { position: fixed; inset-block-end: 0; inset-inline: 0; z-index: var(--z-top); display: flex; background: var(--surface); border-block-start: 1px solid var(--line); padding-block-end: env(safe-area-inset-bottom); }
.bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .125rem; padding: .5rem .25rem; font-size: .6875rem; font-weight: 600; color: var(--muted); text-decoration: none; min-width: 0; }
.bnav a[aria-current='page'] { color: rgb(var(--brand-700)); }
.bnav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1024px) {
  .side, [dir='rtl'] .side { transform: none; visibility: visible; transition: none; }
  .wrap { margin-inline-start: 16rem; padding-block-end: 0; }
  .bnav, .only-sm, .scrim { display: none !important; }
  .main { padding: 1.5rem 2rem 2.5rem; }
  .top { padding-inline: 2rem; }
}

/* Sayfa başı */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block-end: 1rem; }
.page-title { font-family: "Playfair Display Variable", "Noto Sans Arabic", serif; font-size: 1.625rem; line-height: 1.2; color: rgb(var(--brand-900)); font-weight: 600; text-wrap: balance; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-inline-start: auto; }
.sec-title { font-weight: 700; font-size: 1rem; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.5rem; padding: .4375rem .875rem; border-radius: .625rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .875rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover { border-color: rgb(var(--brand-400)); background: rgb(var(--brand-50)); }
.btn-p { background: rgb(var(--brand-700)); border-color: rgb(var(--brand-700)); color: #fff; }
.btn-p:hover { background: rgb(var(--brand-800)); border-color: rgb(var(--brand-800)); }
.btn-d { color: var(--bad); border-color: #eccdc8; }
.btn-d:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn-dp { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-dp:hover { background: #862e22; border-color: #862e22; }
.btn-wa { background: #1f7a54; border-color: #1f7a54; color: #fff; }
.btn-wa:hover { background: #17603f; border-color: #17603f; }
.btn-q { border-color: transparent; background: transparent; }
.btn-s { min-height: 2rem; padding: .1875rem .625rem; font-size: .8125rem; }
.btn-i { padding: 0; width: 2.5rem; }
.btn-i.btn-s { width: 2rem; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; }
.lnk { background: none; border: 0; padding: 0; color: rgb(var(--brand-700)); font-weight: 600; cursor: pointer; text-align: start; text-decoration: underline; text-decoration-color: rgb(var(--brand-300)); text-underline-offset: 3px; }
.lnk:hover { text-decoration-color: currentColor; }
@media (pointer: coarse) {
  .btn { min-height: 2.75rem; } .btn-s { min-height: 2.375rem; } .btn-i { width: 2.75rem; } .btn-i.btn-s { width: 2.375rem; }
}

/* Form */
.fld { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.lbl { font-size: .8125rem; font-weight: 600; }
.lbl .req { color: var(--bad); }
.hint { font-size: .75rem; color: var(--muted); }
.ferr { font-size: .8125rem; color: var(--bad); font-weight: 600; }
.inp { width: 100%; min-height: 2.5rem; padding: .4375rem .625rem; border: 1px solid #d9cdc5; border-radius: .5rem; background: #fff; color: var(--ink); font: inherit; font-size: .9375rem; }
textarea.inp { min-height: 5rem; resize: vertical; }
input[type='color'].inp { padding: .1875rem; width: 4rem; }
.inp[aria-invalid='true'] { border-color: var(--bad); }
.inp::placeholder { color: #8f837b; }
.inp:disabled { background: var(--line-2); }
@media (max-width: 639px) { .inp { font-size: 1rem; } }
.check { display: flex; align-items: flex-start; gap: .625rem; cursor: pointer; padding-block: .25rem; }
.check input { width: 1.125rem; height: 1.125rem; margin-block-start: .125rem; accent-color: rgb(var(--brand-700)); flex: none; }
.check small { display: block; color: var(--muted); font-size: .75rem; }
.fgrid { display: grid; gap: .875rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span2 { grid-column: 1 / -1; } }
.fsec { grid-column: 1 / -1; font-weight: 700; padding-block-start: .5rem; border-block-start: 1px solid var(--line-2); margin-block-start: .25rem; }
.langs { display: flex; flex-wrap: wrap; gap: .25rem; }
.langs button { border: 1px solid var(--line); background: #fff; border-radius: .375rem; font-size: .75rem; font-weight: 600; padding: .125rem .5rem; min-height: 1.75rem; cursor: pointer; }
.langs button[aria-selected='true'] { background: rgb(var(--brand-700)); border-color: rgb(var(--brand-700)); color: #fff; }
.langs button.filled:not([aria-selected='true'])::after { content: '•'; margin-inline-start: .25rem; color: rgb(var(--brand-600)); }
.picker { display: flex; flex-wrap: wrap; gap: .375rem; }
.picker button { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: .5rem; background: #fff; cursor: pointer; }
.picker button[aria-pressed='true'] { border-color: rgb(var(--brand-700)); background: rgb(var(--brand-100)); color: rgb(var(--brand-800)); }
.imgf { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.imgf-prev { width: 5rem; height: 5rem; border-radius: .5rem; object-fit: cover; background: var(--line-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.checks { display: grid; gap: .125rem .75rem; max-height: 16rem; overflow-y: auto; border: 1px solid var(--line); border-radius: .5rem; padding: .5rem .75rem; }
@media (min-width: 640px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checks-head { grid-column: 1 / -1; font-size: .75rem; font-weight: 700; color: var(--muted); padding-block-start: .375rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr)); gap: .375rem; max-height: 12rem; overflow-y: auto; }
.slots button { min-height: 2.5rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; font-weight: 600; font-size: .875rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.slots button[aria-pressed='true'] { background: rgb(var(--brand-700)); border-color: rgb(var(--brand-700)); color: #fff; }
.note { background: rgb(var(--brand-50)); border: 1px solid rgb(var(--brand-200)); color: rgb(var(--brand-900)); padding: .625rem .75rem; border-radius: .625rem; font-size: .875rem; }
.note-warn { background: var(--warn-bg); border-color: #efd9ae; color: var(--warn); }
.note-bad { background: var(--bad-bg); border-color: #eccdc8; color: var(--bad); font-weight: 600; }
.note-ok { background: var(--ok-bg); border-color: #c5e0d2; color: var(--ok); }

/* Kart, sekme, rozet */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; min-width: 0; }
.card-t { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-block-end: .625rem; }
.card-t a, .card-t .btn { margin-inline-start: auto; font-weight: 600; }
.card-0 { padding: 0; overflow: hidden; }
.kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .75rem 1rem; text-decoration: none; color: inherit; min-width: 0; }
a.kpi:hover { border-color: rgb(var(--brand-400)); }
.kpi b { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: rgb(var(--brand-900)); }
.kpi span { font-size: .8125rem; color: var(--muted); }
.kpi-att { border-color: #efd9ae; background: var(--warn-bg); }
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-block-end: 1px solid var(--line); margin-block-end: 1rem; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: .625rem .75rem; font-weight: 600; color: var(--muted); border-block-end: 2px solid transparent; margin-block-end: -1px; cursor: pointer; white-space: nowrap; font-size: .875rem; }
.tabs button[aria-selected='true'] { color: rgb(var(--brand-800)); border-color: rgb(var(--brand-700)); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: .625rem; background: #fff; padding: .125rem; }
.seg button { border: 0; background: none; padding: .3125rem .75rem; min-height: 2.125rem; border-radius: .5rem; font-weight: 600; font-size: .875rem; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed='true'] { background: rgb(var(--brand-100)); color: rgb(var(--brand-900)); }
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .0625rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; background: var(--off-bg); color: var(--off); }
.b-pending { background: var(--warn-bg); color: var(--warn); }
.b-confirmed, .b-ok { background: var(--ok-bg); color: var(--ok); }
.b-completed { background: rgb(var(--brand-100)); color: rgb(var(--brand-800)); }
.b-cancelled, .b-bad { background: var(--bad-bg); color: var(--bad); }
.dot { width: .625rem; height: .625rem; border-radius: 999px; display: inline-block; flex: none; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-block-end: .75rem; }
.filters .fld { flex: 1 1 9rem; max-width: 16rem; }
.filters .fld-q { flex: 2 1 14rem; max-width: 24rem; }
.list { display: flex; flex-direction: column; }
.list > li { display: flex; align-items: center; gap: .625rem; padding-block: .5rem; border-block-end: 1px solid var(--line-2); min-width: 0; }
.list > li:last-child { border-block-end: 0; }
.grow { flex: 1; min-width: 0; }
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .75rem; font-size: .875rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.avatar { width: 3rem; height: 3rem; border-radius: 999px; object-fit: cover; flex: none; background: var(--line-2); }

/* Tablo: küçük ekranda kart listesine döner */
.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tbl th { text-align: start; font-size: .75rem; font-weight: 700; color: var(--muted); padding: .625rem .75rem; border-block-end: 1px solid var(--line); background: var(--line-2); white-space: nowrap; }
.tbl td { padding: .5625rem .75rem; border-block-end: 1px solid var(--line-2); vertical-align: middle; overflow-wrap: anywhere; }
.tbl tr:last-child td { border-block-end: 0; }
.tbl .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .act { text-align: end; white-space: nowrap; }
.tbl .act > * { margin-inline-start: .25rem; }
@media (max-width: 767px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl tr { padding: .5rem .75rem; border-block-end: 1px solid var(--line); }
  .tbl tr:last-child { border-block-end: 0; }
  .tbl td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .1875rem 0; text-align: end; min-height: 1.5rem; align-items: center; }
  .tbl td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; font-weight: 600; text-align: start; flex: none; max-width: 45%; }
  .tbl td.primary { font-weight: 600; justify-content: flex-start; text-align: start; font-size: .9375rem; }
  .tbl td.primary::before { display: none; }
  .tbl td.act { justify-content: flex-end; padding-block-start: .375rem; flex-wrap: wrap; white-space: normal; }
  .tbl td.act::before { display: none; }
  .tbl td:empty { display: none; }
}

/* Boş, yükleniyor, hata */
.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 2.5rem 1rem; color: var(--muted); }
.state .ic-l { color: rgb(var(--brand-400)); }
.state b { color: var(--ink); font-size: 1rem; }
.state.bad .ic-l { color: var(--bad); }
.skel { display: grid; gap: .75rem; }
.skel i { display: block; height: 3.25rem; border-radius: var(--r); background: linear-gradient(90deg, var(--line-2), #fbf8f6, var(--line-2)); background-size: 200% 100%; animation: skel 1.3s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* Diyalog */
dialog.dlg { border: 0; padding: 0; border-radius: 1rem; width: min(40rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; color: var(--ink); background: var(--surface); box-shadow: 0 20px 50px rgb(31 28 26 / .25); overflow: hidden; }
dialog.dlg[open] { display: flex; flex-direction: column; }
dialog.dlg-s { width: min(26rem, calc(100vw - 2rem)); }
dialog.dlg-w { width: min(52rem, calc(100vw - 2rem)); }
dialog.dlg-side { margin-block: 0; margin-inline: auto 0; height: 100dvh; max-height: 100dvh; width: min(30rem, 100vw); border-radius: 0; }
dialog.dlg::backdrop { background: rgb(31 28 26 / .45); }
.dlg-head { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-block-end: 1px solid var(--line); }
.dlg-head h2 { flex: 1; font-size: 1.0625rem; font-weight: 700; min-width: 0; outline: none; }
.dlg-body { padding: 1rem; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.dlg-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; padding: .75rem 1rem; padding-block-end: calc(.75rem + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--line); background: #fff; }
.dlg-foot .ferr { flex-basis: 100%; }
@media (max-width: 639px) {
  dialog.dlg, dialog.dlg-s, dialog.dlg-w { width: 100vw; max-width: 100vw; margin-block: auto 0; margin-inline: 0; border-radius: 1rem 1rem 0 0; max-height: 94dvh; }
  dialog.dlg-side { max-height: 100dvh; border-radius: 0; margin: 0; }
}
.toasts { position: fixed; inset-block-end: calc(4.5rem + env(safe-area-inset-bottom)); inset-inline: 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: var(--z-menu); pointer-events: none; }
@media (min-width: 1024px) { .toasts { inset-block-end: 1.5rem; } }
.toast { display: flex; align-items: center; gap: .5rem; background: var(--ink); color: #fff; padding: .5625rem .875rem; border-radius: .625rem; font-size: .875rem; font-weight: 500; max-width: 30rem; pointer-events: auto; box-shadow: 0 8px 20px rgb(31 28 26 / .3); }
.toast.bad { background: var(--bad); }
.menu { position: absolute; inset-inline-end: 0; top: calc(100% + .25rem); min-width: 14rem; background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: .375rem; box-shadow: 0 10px 28px rgb(31 28 26 / .16); z-index: var(--z-menu); }
.menu a, .menu > button { display: flex; align-items: center; gap: .625rem; width: 100%; padding: .5rem .625rem; border: 0; background: none; border-radius: .5rem; font: inherit; font-size: .875rem; color: var(--ink); text-decoration: none; cursor: pointer; text-align: start; }
.menu a:hover, .menu > button:hover { background: rgb(var(--brand-50)); }

/* Takvim */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block-end: .75rem; }
.cal-date { font-weight: 700; min-width: 0; }
.cal-bar .inp { width: auto; }
.cal { --ppm: 1.3px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: auto; max-height: calc(100dvh - 12.5rem); min-height: 22rem; overscroll-behavior: contain; }
.cal-grid { display: grid; min-width: max-content; position: relative; }
.cal-h { position: sticky; top: 0; z-index: 5; background: var(--line-2); border-block-end: 1px solid var(--line); border-inline-start: 1px solid var(--line); padding: .375rem .5rem; font-size: .8125rem; font-weight: 700; display: flex; align-items: center; gap: .375rem; min-width: 0; height: 2.5rem; }
.cal-h span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-h.today { color: rgb(var(--brand-800)); background: rgb(var(--brand-100)); }
.cal-corner { position: sticky; inset-inline-start: 0; top: 0; z-index: 7; background: var(--line-2); border-block-end: 1px solid var(--line); height: 2.5rem; }
.cal-times { position: sticky; inset-inline-start: 0; z-index: 4; background: #fff; }
.cal-times span { position: absolute; inset-inline: 0; text-align: center; font-size: .6875rem; color: var(--muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.cal-times span:first-child { transform: none; }
.cal-col { position: relative; border-inline-start: 1px solid var(--line); cursor: copy; background-image: repeating-linear-gradient(to bottom, var(--line) 0, var(--line) 1px, transparent 1px, transparent calc(var(--ppm) * 30), var(--line-2) calc(var(--ppm) * 30), var(--line-2) calc(var(--ppm) * 30 + 1px), transparent calc(var(--ppm) * 30 + 1px), transparent calc(var(--ppm) * 60)); }
.cal-off { position: absolute; inset-inline: 0; background: repeating-linear-gradient(135deg, #ece6e1 0 6px, #f4efeb 6px 12px); cursor: not-allowed; display: flex; align-items: flex-start; justify-content: center; font-size: .6875rem; color: var(--muted); overflow: hidden; padding-block-start: .125rem; }
.cal-ev { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; position: absolute; border: 0; border-inline-start: 3px solid var(--c); border-radius: .375rem; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--ink); text-align: start; padding: .125rem .375rem; font-size: .75rem; line-height: 1.25; cursor: pointer; overflow: hidden; z-index: 2; box-shadow: 0 0 0 1px #fff; }
.cal-ev:hover, .cal-ev:focus-visible { z-index: 3; background: color-mix(in srgb, var(--c) 26%, #fff); }
.cal-ev b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.cal-ev span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.pending { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, #fff) 0 6px, color-mix(in srgb, var(--c) 8%, #fff) 6px 12px); border-style: dashed; }
.cal-ev.completed { opacity: .72; }
.cal-ev.no_show { opacity: .6; }
.cal-ev.no_show b { text-decoration: line-through; }
.cal-now { position: absolute; inset-inline: 0; height: 2px; background: var(--bad); z-index: 3; pointer-events: none; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .75rem; color: var(--muted); margin-block-start: .5rem; }

/* Adisyon */
.pos { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .pos { grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 1fr); } .pos-side { position: sticky; top: 4.5rem; } }
.pos-add { display: grid; gap: .375rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); max-height: 19rem; overflow-y: auto; padding: .125rem; }
.pos-add button { display: flex; flex-direction: column; gap: .125rem; text-align: start; padding: .5rem .625rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; cursor: pointer; font-size: .8125rem; font-weight: 600; min-height: 3.25rem; }
.pos-add button:hover { border-color: rgb(var(--brand-400)); background: rgb(var(--brand-50)); }
.pos-add small { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.pos-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .375rem .75rem; padding-block: .625rem; border-block-end: 1px solid var(--line-2); }
.stepper { display: inline-flex; align-items: center; gap: .25rem; }
.stepper output { min-width: 1.75rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.sum { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; padding-block: .125rem; }
.sum-total { font-size: 1.375rem; font-weight: 700; color: rgb(var(--brand-900)); border-block-start: 1px solid var(--line); margin-block-start: .375rem; padding-block-start: .375rem; }
#print-root { display: none; }
@media print {
  @page { margin: 8mm; }
  body > *:not(#print-root) { display: none !important; }
  body.adm { background: #fff; }
  #print-root { display: block; }
}
.receipt { max-width: 76mm; margin: 0 auto; font-size: 12px; color: #000; line-height: 1.4; }
.receipt h1 { font-size: 16px; font-weight: 700; text-align: center; }
.receipt table { width: 100%; border-collapse: collapse; margin-block: 6px; }
.receipt td { padding-block: 1px; vertical-align: top; }
.receipt td:last-child { text-align: end; white-space: nowrap; }
.receipt .rule { border-block-start: 1px dashed #000; margin-block: 6px; }
.receipt .big td { font-weight: 700; font-size: 14px; }

/* Grafik, galeri, kartlar */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .bar { fill: rgb(var(--brand-600)); }
.chart .hit { fill: transparent; }
.chart g:hover .bar, .chart g:focus .bar { fill: rgb(var(--brand-800)); }
.chart-box { position: relative; }
.chart-tip { position: absolute; background: var(--ink); color: #fff; padding: .25rem .5rem; border-radius: .375rem; font-size: .75rem; pointer-events: none; white-space: nowrap; transform: translate(-50%, -110%); font-variant-numeric: tabular-nums; }
.tiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line-2); }
.tile-b { padding: .5rem; display: flex; flex-direction: column; gap: .375rem; flex: 1; }
.cards { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.swatches { display: flex; flex-wrap: wrap; gap: .375rem; }
.swatches button { width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatches button[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--ink); }
.hours-row { display: grid; gap: .5rem; align-items: center; grid-template-columns: minmax(0, 1fr) auto; padding-block: .5rem; border-block-end: 1px solid var(--line-2); }
.hours-times { grid-column: 1 / -1; display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hours-times .lbl { font-weight: 500; color: var(--muted); font-size: .75rem; }
@media (min-width: 768px) {
  .hours-row { grid-template-columns: 8rem 6rem minmax(0, 1fr); }
  .hours-times { grid-column: auto; grid-template-columns: repeat(4, minmax(0, 8rem)); }
}
.acc { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.acc-b { padding: 0 1rem 1rem; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: .8125rem; background: var(--line-2); border-radius: .5rem; padding: .5rem .625rem; overflow-wrap: anywhere; user-select: all; direction: ltr; text-align: start; }

/* Giriş ve zorunlu şifre */
.adm-login { min-height: 100dvh; display: grid; place-items: center; padding: 1rem; background: rgb(var(--brand-100)); }
.login-card { background: #fff; border-radius: 1.25rem; padding: 2rem 1.5rem; width: min(24rem, 100%); box-shadow: 0 16px 40px rgb(61 38 28 / .12); }
.login-mark { width: 3.25rem; height: 3.25rem; margin: 0 auto .75rem; border-radius: 999px; background: rgb(var(--brand-900)); color: rgb(var(--brand-50)); display: grid; place-items: center; font-family: "Playfair Display Variable", serif; font-size: 1.5rem; }
