/* Catering Firma Yönetimi — önce mobil, sade ve okunaklı. */
:root {
  --bg: #f5f8f6;
  --card: #ffffff;
  --ink: #17241d;
  --muted: #4c5f55;
  --line: #d3dfd8;
  --line-soft: #e6eee9;
  --brand: #1f6b4a;
  --brand-ink: #ffffff;
  --brand-soft: #e1f2e9;
  --warn: #7a4300;
  --warn-soft: #fdf0d2;
  --bad: #a3261d;
  --bad-soft: #fbe3e0;
  --info: #1d4f91;
  --info-soft: #e2edfb;
  --radius: 12px;
  --tab-h: 62px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111713; --card: #19211c; --ink: #e8f0ea; --muted: #a8b9ae; --line: #2b3a31; --line-soft: #202b24;
    --brand: #7fd1a6; --brand-ink: #0c2217; --brand-soft: #1d3a2b;
    --warn: #f1b95a; --warn-soft: #3a2a0e; --bad: #ff8d84; --bad-soft: #3d1b18; --info: #8fb9f2; --info-soft: #172a45;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
h1 { font-size: 1.4rem; margin: 0 0 .75rem; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #1d6fd6; outline-offset: 2px; }

/* ---- iskelet ---- */
.app { min-height: 100vh; padding-bottom: calc(var(--tab-h) + 8px); }
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; min-width: 0; }
.brand svg { flex: none; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .who { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); }
.top .who form { margin: 0; }
.demo-banner { background: var(--info-soft); color: var(--info); border-bottom: 1px solid var(--line); font-size: .85rem; padding: .45rem 1rem; text-align: center; }
.demo-banner b { color: inherit; }
.demo-banner a { display: inline-block; padding: .75rem .4rem; margin: -.4rem 0; }
main { max-width: 1200px; margin: 0 auto; padding: 1rem; }
.side { display: none; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--tab-h); background: var(--card);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  color: var(--muted); font-size: .75rem; position: relative; min-height: 48px;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.badge { background: var(--bad); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 5px; font-weight: 700; }
.tabbar .badge { position: absolute; top: 4px; left: calc(50% + 8px); }
@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; padding-bottom: 0; }
  .top, .demo-banner { grid-column: 1 / -1; }
  .side { display: block; padding: 1rem .75rem; border-right: 1px solid var(--line); background: var(--card); min-height: calc(100vh - 60px); }
  .side a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; border-radius: 8px; color: var(--ink); text-decoration: none; margin-bottom: 2px; }
  .side a:hover { background: var(--line-soft); }
  .side a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
  .side .sep { margin: .75rem .75rem .25rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  .tabbar { display: none; }
  main { width: 100%; margin: 0; max-width: none; padding: 1.25rem 1.5rem; }
}

/* ---- kartlar, düğmeler, formlar ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.card.tight { padding: .75rem; }
.card h2:first-child { margin-top: 0; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }
.grid2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); } }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.tile .n { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.tile .l { font-size: .8rem; color: var(--muted); }
.tile.alert { border-color: var(--warn); background: var(--warn-soft); }
.tile.alert .n, .tile.alert .l { color: var(--warn); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem 1rem;
  border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost.danger { background: transparent; color: var(--bad); }
.btn.sm { min-height: 36px; padding: .25rem .7rem; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 44px; padding: .5rem .65rem; border: 1px solid #7d9185; border-radius: 8px; background: var(--card); color: var(--ink); font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; vertical-align: middle; margin-right: .35rem; }
.field { margin-bottom: .85rem; }
.hint { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.fields { display: grid; gap: .85rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .fields.c2 { grid-template-columns: 1fr 1fr; } .fields.c3 { grid-template-columns: repeat(3, 1fr); } .fields.c4 { grid-template-columns: repeat(4, 1fr); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.inline { display: inline; margin: 0; }
.days-pick label { display: inline-flex; align-items: center; margin: 0 .75rem .25rem 0; font-weight: 500; min-height: 44px; }
label:has(> input[type=checkbox]) { display: flex; align-items: center; min-height: 44px; }

.flash { padding: .7rem .9rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid; }
.flash.ok { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); }
.flash.error { background: var(--bad-soft); border-color: var(--bad); color: var(--ink); }
.flash.info { background: var(--info-soft); border-color: var(--info); color: var(--ink); }

/* ---- rozetler ---- */
.chip { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.chip-confirmed { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.chip-done { background: var(--line-soft); color: var(--muted); border-color: var(--line); }
.chip-pending { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.chip-rejected, .chip-cancelled, .chip-lost { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.pay { font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pay-ok { color: var(--brand); }
.pay-part { color: var(--warn); }
.pay-none { color: var(--bad); }
.pill { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: var(--line-soft); font-size: .78rem; color: var(--muted); }

/* ---- tablolar ---- */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { padding: .55rem .6rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.list th { font-size: .8rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
table.list td.num, table.list th.num { text-align: right; white-space: nowrap; }
table.list tr.total td { font-weight: 800; border-top: 2px solid var(--line); }
.bk-list { list-style: none; margin: 0; padding: 0; }
.bk-list li { border-bottom: 1px solid var(--line-soft); }
.bk-list li:last-child { border-bottom: 0; }
.bk-item { display: grid; grid-template-columns: 108px 1fr auto; gap: .6rem; align-items: center; padding: .7rem .25rem; text-decoration: none; color: inherit; }
.bk-item:hover { background: var(--line-soft); }
.bk-time { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-time small { display: block; font-weight: 500; color: var(--muted); }
.bk-main b { display: block; }
.bk-side { text-align: right; font-size: .85rem; }

/* ---- takvim ---- */
.cal-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.cal-bar .title { font-weight: 800; font-size: 1.05rem; flex: 1 1 auto; min-width: 150px; }
.seg { display: inline-flex; border: 1px solid var(--brand); border-radius: 10px; overflow: hidden; }
.seg a { padding: .45rem .85rem; text-decoration: none; color: var(--brand); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.seg a[aria-current="true"] { background: var(--brand); color: var(--brand-ink); }
.chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .6rem; }
.chips a { white-space: nowrap; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--card); min-height: 44px; display: inline-flex; align-items: center; }
.chips a[aria-current="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .8rem; color: var(--muted); margin: .25rem 0 .75rem; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: .3rem; border: 1px solid var(--line); }
.lg-free { background: var(--card); border-style: dashed !important; }
.lg-conf { background: var(--brand-soft); border-color: var(--brand) !important; }
.lg-pend { background: repeating-linear-gradient(45deg, var(--warn-soft), var(--warn-soft) 4px, var(--card) 4px, var(--card) 8px); border-color: var(--warn) !important; }

/* ---- herkese açık sayfa ---- */
body.pub { background: var(--bg); }
.pub-wrap { max-width: 760px; margin: 0 auto; padding: 1rem; }
.pub-head { background: var(--brand); color: var(--brand-ink); padding: 1.25rem 1rem 1.5rem; }
.pub-head .in { max-width: 760px; margin: 0 auto; }
.pub-head h1 { margin: 0 0 .25rem; font-size: 1.5rem; }
.pub-head a { color: var(--brand-ink); }
.pub-head p { margin: 0; opacity: .95; }
.status-hero { text-align: center; padding: 1.25rem 1rem; }
.status-hero .big { font-size: 1.3rem; font-weight: 800; margin-bottom: .35rem; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 600; }
.msgbox { white-space: pre-wrap; background: var(--line-soft); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; font-family: inherit; font-size: .95rem; margin: 0 0 .75rem; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.timeline li { padding: .35rem 0 .35rem .9rem; border-left: 3px solid var(--line); margin-left: .25rem; }
.timeline time { color: var(--muted); font-size: .8rem; display: block; }
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 1.5rem 1rem 2rem; }
.bar { height: 10px; background: var(--line-soft); border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); }
@media print {
  .top, .tabbar, .side, .demo-banner, .btn, .cal-bar, .noprint { display: none !important; }
  body { background: #fff; }
  .app { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- salon ürününe özgü bileşenler ---- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }
.chip-quoted { background: var(--info-soft); color: var(--info); border-color: var(--info); }
.chip-inquiry { background: var(--line-soft); color: var(--ink); border-color: var(--muted); }
.chip-option { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.chip-expired { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.chip-free { background: var(--card); color: var(--muted); border-color: var(--line); }
.chip-q-draft, .chip-q-declined { background: var(--line-soft); color: var(--muted); border-color: var(--line); }
.chip-q-sent { background: var(--info-soft); color: var(--info); border-color: var(--info); }
.chip-q-accepted { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.pay-none-soft { color: var(--muted); }
.bad { color: var(--bad); font-weight: 700; }
.warnbox { border-color: var(--warn); background: var(--warn-soft); }
.warnbox h2, .warnbox p { color: var(--warn); }
.warnbox .bk-item:hover { background: rgba(0,0,0,.05); }
.actions { display: flex; flex-direction: column; gap: .6rem; }
.actions .row { gap: .5rem; }
.qitem { border: 1px solid var(--line); border-radius: 10px; padding: .75rem; margin-top: .75rem; }
.qlines { margin-top: .5rem; }
.totalbar { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; background: var(--brand-soft); border-radius: 10px; padding: .75rem 1rem; margin: 1rem 0; }
.totalbar b { font-size: 1.5rem; color: var(--brand); }
.edit-row { border-top: 1px solid var(--line-soft); padding: .75rem 0; }
.edit-row:first-of-type { border-top: 0; }
.edit-row.new-row { background: var(--line-soft); border-radius: 10px; padding: .75rem; margin-top: .75rem; border-top: 0; }
.pk-extras { display: grid; gap: .4rem .75rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin: .5rem 0 .75rem; }
.pk { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 500; margin: 0; }
.pk input { width: 5rem; }
.tasklist { list-style: none; margin: .5rem 0 0; padding: 0; }
.tasklist li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--line-soft); }
.tasklist .tl { flex: 1; }
.tasklist li.done .tl { text-decoration: line-through; color: var(--muted); }
.tick { width: 32px; height: 32px; min-width: 32px; border: 2px solid var(--brand); border-radius: 8px; background: var(--card); color: var(--brand); font-weight: 800; cursor: pointer; }
.tasklist li.done .tick { background: var(--brand); color: var(--brand-ink); }

/* aylık takvim (panel) */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.mh { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); padding: .25rem 0; }
.mc { background: var(--card); border: 1px solid var(--line); border-radius: 8px; min-height: 88px; padding: 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc.empty { background: transparent; border: 0; }
.mc.past { opacity: .72; }
.mc.today { border: 2px solid var(--brand); }
.mc.closed { background: repeating-linear-gradient(45deg, var(--line-soft), var(--line-soft) 6px, var(--card) 6px, var(--card) 12px); }
.mc .dn { font-weight: 800; font-size: .85rem; color: var(--ink); text-decoration: none; padding: 2px 4px; align-self: flex-start; border-radius: 6px; min-width: 28px; min-height: 28px; display: inline-flex; align-items: center; }
.mc .dn:hover { background: var(--brand-soft); }
.ev { display: block; border-radius: 5px; padding: 1px 4px; font-size: .72rem; line-height: 1.3; text-decoration: none; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1px solid transparent; }
.ev-confirmed { background: var(--brand-soft); border-color: var(--brand); border-left-width: 4px; }
.ev-option { background: repeating-linear-gradient(45deg, var(--warn-soft), var(--warn-soft) 6px, var(--card) 6px, var(--card) 12px); border-color: var(--warn); }
.ev-option.exp { border-color: var(--bad); color: var(--bad); font-weight: 700; }
.ev-req { background: var(--info-soft); border: 1px dashed var(--info); color: var(--info); }
.ev-block { background: var(--line-soft); color: var(--muted); font-style: italic; }
.lg-req { background: var(--info-soft); border: 1px dashed var(--info) !important; }
@media (max-width: 699px) {
  .mc { min-height: 64px; }
  .ev .t { display: none; }
  .ev { height: 10px; padding: 0; border-radius: 3px; }
}
.hallday-confirmed { border-left: 5px solid var(--brand); }
.hallday-option { border-left: 5px solid var(--warn); }
.hallday-blocked { border-left: 5px solid var(--muted); }
.hallday h2 small { font-weight: 500; font-size: .8rem; margin-left: .4rem; }

/* süreç panosu */
.board { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .board { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; } }
.bcol { background: var(--line-soft); border-radius: var(--radius); padding: .75rem; }
.bcol h2 { font-size: 1rem; display: flex; align-items: center; justify-content: space-between; }
.bcard { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; margin-top: .5rem; text-decoration: none; color: var(--ink); }
.bcard:hover { border-color: var(--brand); }
.bcard.exp { border-color: var(--bad); background: var(--bad-soft); }
.bcol-option .bcard { border-left: 4px solid var(--warn); }
.bcol-confirmed .bcard { border-left: 4px solid var(--brand); }

/* müşteri takvimi */
.pgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pd { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.pd.empty { border: 0; background: transparent; }
.pd-free { border: 1px dashed var(--brand); }
a.pd-free:hover, a.pd-free:focus-visible, a.pd-option:hover, a.pd-option:focus-visible { background: var(--brand-soft); }
.pd-option { background: repeating-linear-gradient(45deg, var(--warn-soft), var(--warn-soft) 6px, var(--card) 6px, var(--card) 12px); border-color: var(--warn); }
.pd-confirmed { background: var(--brand-soft); color: var(--muted); text-decoration: line-through; }
.pd-blocked, .pd-off { background: repeating-linear-gradient(45deg, var(--line-soft), var(--line-soft) 6px, var(--card) 6px, var(--card) 12px); color: var(--muted); }
.pd.today { outline: 2px solid var(--brand); outline-offset: -2px; }

/* rapor */
.occ td.num { text-align: center; }
.occ-0 { color: var(--muted); }
.occ-mid { background: var(--brand-soft); font-weight: 700; }
.occ-hi { background: var(--brand); color: var(--brand-ink); font-weight: 800; }

/* yazdırılabilir belgeler */
.printpage { background: #e8eeea; color: #111; }
.print-bar { max-width: 820px; margin: 0 auto; padding: .75rem 1rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.sheet { max-width: 820px; margin: 0 auto 2rem; background: #fff; color: #111; padding: 2rem; border: 1px solid #ccc; font-size: .95rem; }
.sheet h3 { font-size: 1rem; margin: 1.1rem 0 .35rem; border-bottom: 1px solid #bbb; padding-bottom: .15rem; }
.sh-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #111; padding-bottom: .75rem; margin-bottom: 1rem; }
.sh-biz { font-size: 1.25rem; font-weight: 800; }
.sh-doc { text-align: right; }
.sh-title { font-size: 1.3rem; font-weight: 800; letter-spacing: .04em; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sh-grid p { margin: 0; line-height: 1.55; }
.sh-table { width: 100%; border-collapse: collapse; margin: .5rem 0; }
.sh-table th, .sh-table td { border-bottom: 1px solid #ccc; padding: .4rem .5rem; text-align: left; vertical-align: top; }
.sh-table th { font-size: .8rem; background: #eef3ef; }
.sh-table .num { text-align: right; white-space: nowrap; }
.sh-table tr.grp td { font-weight: 800; background: #f3f7f4; font-size: .85rem; }
.sh-table tfoot .total td { font-weight: 800; font-size: 1.05rem; border-top: 2px solid #111; }
.sh-note { background: #f3f7f4; border-left: 4px solid #1f6b4a; padding: .5rem .75rem; margin: .75rem 0; }
.sh-warn { background: #fff3cd; border: 1px solid #c79100; padding: .5rem .75rem; }
.sh-foot { font-size: .8rem; color: #444; margin-top: 1rem; }
.sh-terms { border: 1px solid #aaa; padding: .6rem .75rem; min-height: 60px; }
.sh-terms.blank { color: #777; }
.sh-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; font-size: .85rem; }
.sh-sign .line { border-bottom: 1px solid #111; height: 50px; margin-bottom: .3rem; }
.checklist td.box { width: 2rem; font-size: 1.2rem; }
.checklist .blank-line { border-bottom: 1px solid #aaa; height: 1.8rem; }
@media (max-width: 640px) { .sheet { padding: 1rem; } .sh-grid, .sh-sign { grid-template-columns: 1fr; } .sh-head { flex-direction: column; } .sh-doc { text-align: left; } }
@media print {
  .printpage { background: #fff; }
  .sheet { border: 0; padding: 0; margin: 0; max-width: none; }
  .noprint, .print-bar { display: none !important; }
  @page { size: A4; margin: 14mm; }
}

.chips.wrap { flex-wrap: wrap; overflow: visible; }
.grid2 > *, .grid3 > *, .board > * { min-width: 0; }

/* dokunma hedefleri */
a.more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; }
.flash a { display: inline-block; padding: .8rem .15rem; margin: -.8rem 0; }
label:has(> input[type=radio]) { display: flex; align-items: center; min-height: 44px; }
summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }

/* ---- catering ürününe özgü bileşenler ---- */
.chip-bekliyor { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.chip-planlandi { background: var(--info-soft); color: var(--info); border-color: var(--info); }
.chip-hazirlaniyor { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.chip-hazir { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.chip-yolda { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); border-style: dashed; }
.chip-teslim { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip-iptal { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
ul.plain { list-style: none; margin: 0 0 .75rem; padding: 0; }
ul.plain li { padding: .3rem 0; border-bottom: 1px solid var(--line-soft); }
ul.plain li:last-child { border-bottom: 0; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li a { display: flex; align-items: center; min-height: 48px; padding: 0 .25rem; border-bottom: 1px solid var(--line-soft); text-decoration: none; font-weight: 600; }
.order-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.order-row .bk-item { flex: 1 1 320px; }
.order-actions { padding: .25rem; }
.steps { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; counter-reset: s; }
.steps li { counter-increment: s; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem .25rem .4rem; font-size: .85rem; color: var(--muted); background: var(--card); display: flex; align-items: center; gap: .4rem; }
.steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line-soft); font-weight: 700; font-size: .75rem; }
.steps li.step-done { color: var(--ink); border-color: var(--brand); }
.steps li.step-done::before { content: "✓"; background: var(--brand); color: var(--brand-ink); }
.steps li.step-now { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 700; }
.steps li.step-now::before { background: var(--brand-ink); color: var(--brand); }
tr.inactive td { opacity: .6; }
tr.grp td { font-weight: 800; background: var(--line-soft); font-size: .85rem; }
.dish-pick { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; margin: 0 0 .85rem; display: grid; gap: .1rem .75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dish-pick legend { font-weight: 700; padding: 0 .35rem; font-size: .9rem; }
.dish-pick label { font-weight: 500; }
.recipe-table select, .recipe-table input { min-height: 40px; }
.label-like { font-weight: 600; font-size: .9rem; }
.ing-table input[type=text], .ing-table select { min-height: 38px; padding: .3rem .5rem; }
.who-name { font-size: .9rem; opacity: .95; }
.btn.light { color: var(--brand-ink); border-color: rgba(255,255,255,.7); }
.btn.light:hover { background: rgba(255,255,255,.15); }
.pub-wrap.wide { max-width: 1000px; }
.portal-nav { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.portal-nav .in { max-width: 1000px; margin: 0 auto; display: flex; gap: .25rem; overflow-x: auto; padding: 0 .75rem; }
.portal-nav a { white-space: nowrap; padding: .75rem .9rem; min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 3px solid transparent; }
.portal-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.portal-nav a:hover { background: var(--line-soft); }
.pub-head .row.between { align-items: flex-start; }
.pub-head form.row { gap: .5rem; align-items: center; }
.info-card { background: var(--info-soft); border-color: var(--info); }
.pill { white-space: nowrap; }
@media print {
  .portal-nav, .pub-head form, .pub-head .btn { display: none !important; }
}
[hidden] { display: none !important; }
summary { gap: .35rem; flex-wrap: wrap; }
.portal .bk-item, .order-row .bk-item { grid-template-columns: max-content minmax(0, 1fr) auto; column-gap: 1.1rem; }
.bk-time small { white-space: nowrap; }
@media (max-width: 520px) {
  .portal .bk-item, .order-row .bk-item { grid-template-columns: minmax(0, 1fr) auto; }
  .bk-time { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .top .who span { display: none; }
  .top .who { gap: .25rem; }
  .pub-head .who-name { display: none; }
}
.portal .pub-head .in { max-width: 1000px; padding: 0 1rem; }
.portal-nav .in { padding: 0 1rem; }
@media (min-width: 1040px) { .portal-nav .in, .portal .pub-head .in { padding: 0; } }
.demo-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); border-radius: 8px; padding: .6rem .8rem; margin-bottom: 1rem; font-size: .9rem; }

/* Kurum listesini Excel/CSV ile ekleme */
.help-box summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.help-box ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.center { text-align: center; }
label.check { display: flex; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.import-columns { margin-bottom: .5rem; }
.import-counts { display: flex; gap: .5rem; flex-wrap: wrap; }
.import-pill-new { background: var(--brand-soft); color: var(--brand); }
.import-pill-error { background: var(--bad-soft); color: var(--bad); }
.import-table tr.import-error td { background: var(--bad-soft); }
.import-table tr.import-exists td, .import-table tr.import-dup td { color: var(--muted); }
.import-ok { color: var(--brand); }
.import-bad { color: var(--bad); }
.import-table input[type=checkbox] { width: 22px; height: 22px; }

/* ---- 1.1.0: yönlendirme paketi (kurulum rehberi, yardım kutusu, bağlantı ve afiş) ---- */
.setupbar { background: var(--brand-soft); border-bottom: 1px solid var(--line); padding: .5rem 1rem; }
.setupbar .in { max-width: 1100px; margin: 0 auto; }
.setupbar a { display: block; text-decoration: none; margin-bottom: .35rem; padding: .35rem 0; }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: .35rem 0; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.step.next { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.step .row { margin-top: .5rem; }
.demo-box { background: var(--info-soft); }
.help { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1rem; background: var(--card); }
.help summary { cursor: pointer; font-weight: 600; padding: .35rem 0; }
.poster { border: 3px solid var(--ink); border-radius: 16px; padding: 2rem 1rem; text-align: center; margin: 1rem 0; }
.poster h3 { font-size: 2rem; margin: 0 0 .5rem; }
.posterlink { font-size: 1.3rem; font-weight: 800; word-break: break-all; }
.posterqr svg { width: 240px; height: 240px; }
@media (min-width: 900px) { .setupbar { grid-column: 1 / -1; } }
@media print { .setupbar, .help { display: none !important; } }

/* ---- 1.2.0: telefona ekle ve bildirim ---- */
.a2hs { background: var(--warn-soft, #fff3d6); border-bottom: 1px solid var(--warn, #c98a00); padding: .6rem 1rem; }
.a2hs .in { max-width: 1100px; margin: 0 auto; }
.a2hs ol { margin: .5rem 0 0 1.2rem; }
.card.big { font-size: 1.1rem; }
.btn.full { display: flex; width: 100%; justify-content: center; margin-bottom: .6rem; }
#shareLink, #installLink, #installPortal { width: 100%; }
@media (min-width: 900px) { .a2hs { grid-column: 1 / -1; } }
@media print { .a2hs { display: none !important; } }

/* ---- 1.2.0: dokunulabilir özet kutuları ve satırlar ---- */
a.tile { display: block; color: inherit; text-decoration: none; }
a.tile:hover, a.tile:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: var(--line-soft); }

.week-grid td.num { white-space: nowrap; }
.week-grid input { padding: .35rem .4rem; }
@media print { .sh-block { break-after: page; } .sh-block:last-of-type { break-after: auto; } }

/* S23: Demo hesapları kutusunda tüm roller tek sütunda, eşit genişlikte */
.demo-roles { display: flex; flex-direction: column; gap: .6rem; }
.demo-roles .demo-role { width: 100%; min-height: 48px; box-sizing: border-box; justify-content: center; text-align: center; margin: 0; }
