/* Kermes Balık Sırası · tezgâh (açık tema) + salon ekranı (koyu tema) */
:root {
    --navy: #0b1f2a;
    --navy-2: #112c3a;
    --navy-3: #18394a;
    --red: #e5484d;
    --red-deep: #8f1d22;
    --red-soft: #fdecec;
    --green: #22c55e;
    --green-deep: #0f7a3a;
    --green-soft: #e3f8eb;
    --amber: #f5a524;
    --ink: #10232e;
    --muted: #5b6f79;
    --line: #dbe4e8;
    --bg: #f2f5f7;
    --blue: #1565c0;
    --radius: 14px;
    font: 16px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { color: var(--ink); background: var(--bg); }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.muted { color: var(--muted); }
.brand { display: flex; align-items: center; gap: .8rem; }
.logo { width: 46px; height: 46px; color: var(--green); flex: none; }
.logo.big { width: 64px; height: 64px; }
.brand h1 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.15; }

/* ---------- düğmeler ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 46px; padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer;
    transition: transform .08s, background .15s, box-shadow .15s; user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #f6f9fa; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #0f4f99; }
.btn.success { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn.success:hover { background: #0b6230; }
.btn.outline { background: #fff; border-color: #b8c7ce; }
.btn.subtle { background: transparent; border-color: transparent; color: var(--muted); font-weight: 600; }
.btn.subtle:hover { background: #eef2f4; color: var(--ink); }
.btn.big { min-height: 64px; font-size: 1.35rem; width: 100%; border-radius: 12px; }
.btn.sm { min-height: 36px; padding: .3rem .7rem; }
.grow { flex: 1; }

/* ---------- bağlantı göstergesi ---------- */
.conn { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.conn i { width: 10px; height: 10px; border-radius: 50%; background: #9aa9b0; }
.conn.live i { background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
.conn.off { color: var(--amber); }
.conn.off i { background: var(--amber); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }

/* =====================================================================
   TEZGÂH (koyu tema)
   ===================================================================== */
body.desk {
    --s9: #0f172a; --s8: #1e293b; --s7: #334155; --s6: #475569; --s4: #94a3b8; --s3: #cbd5e1;
    --am: #f59e0b; --am-d: #d97706; --em: #10b981; --em-d: #059669; --bl: #2563eb; --ro: #f43f5e;
    background: var(--s9); color: #f1f5f9;
}
.desk .muted { color: var(--s4); }
.desk-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.desk-top { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; background: var(--s8); border-bottom: 1px solid var(--s7); padding: 12px 20px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.brand-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; color: #fbbf24; background: rgba(245,158,11,.18); border: 1px solid rgba(245,158,11,.4); flex: none; }
.desk-top h1 { font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.desk-top .brand p { font-size: .8rem; color: var(--s4); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: #fcd34d; background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.35); }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--s4); }
.live-badge.live { color: #6ee7b7; background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.35); }
.live-badge.live i { background: var(--em); animation: ping 2s infinite; }
.live-badge.off { color: #fda4af; background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.4); }
.live-badge.off i { background: var(--ro); }
.stats { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: center; }
.stat { background: var(--s9); border: 1px solid var(--s7); border-radius: 12px; padding: 5px 12px; min-width: 84px; text-align: center; }
.stat b { display: block; font-size: 1.35rem; line-height: 1.15; }
.stat small { font-size: .64rem; color: var(--s4); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.stat.amber b { color: #fbbf24; }
.stat.green b { color: #34d399; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { min-width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--s7); color: #e2e8f0; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: .95rem; list-style: none; }
.icon-btn.wide { padding: 0 14px; }
.icon-btn:hover { background: var(--s6); }
.menu { position: relative; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; background: var(--s8); border: 1px solid var(--s7); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.45); padding: 6px; min-width: 300px; }
.menu-pop button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 12px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; color: #e2e8f0; }
.menu-pop button:hover { background: var(--s7); }
.menu-pop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--s7); }

.desk-grid { flex: 1; display: grid; grid-template-columns: minmax(330px, 4fr) 8fr; gap: 20px; padding: 20px; align-items: start; }
.panel { background: rgba(30,41,59,.8); border: 1px solid rgba(51,65,85,.8); border-radius: 18px; padding: 20px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--s7); }
.panel-head h2 { font-size: 1.15rem; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.panel-head h2 i { color: var(--am); }
.panel-head .sub { font-size: .8rem; color: var(--s4); margin-top: 2px; }
.next-badge { font: 700 .8rem ui-monospace, monospace; color: #fbbf24; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); padding: 4px 12px; border-radius: 999px; }

.intake { position: sticky; top: 20px; }
.intake form, .modal-card { display: grid; gap: 10px; }
.lbl { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--s4); margin-top: 4px; }
.lbl span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--s6); }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 4px; }
.lbl-row .lbl { margin: 0; }
.link-btn { background: none; border: 0; color: #fbbf24; font-size: .78rem; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.field { width: 100%; background: var(--s9); border: 1px solid var(--s7); border-radius: 12px; padding: 12px 14px; color: #f1f5f9; font: inherit; font-size: 1rem; }
.field::placeholder { color: var(--s6); }
.field:focus, .qty input:focus { outline: none; border-color: var(--am); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.products { display: grid; grid-template-columns: repeat(2, 1fr); }
.chip { min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--s7); background: rgba(15,23,42,.6); color: #e2e8f0; font-weight: 700; font-size: .95rem; cursor: pointer; transition: .12s; }
.chip:hover { background: var(--s7); }
.chips.products .chip.on { border-color: var(--am); background: rgba(245,158,11,.14); color: #fbbf24; }
.chips.notes .chip { min-height: 40px; border-radius: 999px; font-size: .88rem; }
.chips.notes .chip.on { border-color: #38bdf8; background: rgba(56,189,248,.15); color: #7dd3fc; }
.chips.notes .chip.on::before { content: '✓ '; }
.qty { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; }
.qbtn { height: 56px; border-radius: 12px; border: 0; background: var(--s7); color: #fff; font-size: 1.6rem; font-weight: 700; cursor: pointer; }
.qbtn:hover { background: var(--s6); }
.qty input { width: 100%; background: var(--s9); border: 1px solid var(--s7); border-radius: 12px; text-align: center; color: #fff; font-size: 1.8rem; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.quick button { height: 40px; border-radius: 10px; border: 1px solid var(--s7); background: transparent; color: var(--s3); font-weight: 700; cursor: pointer; }
.quick button.on { background: var(--s3); color: var(--s9); }
.btn-submit { margin-top: 8px; min-height: 60px; border: 0; border-radius: 14px; background: linear-gradient(90deg, var(--am), var(--am-d)); color: #0f172a; font-weight: 900; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 25px rgba(245,158,11,.25); }
.btn-submit:hover { filter: brightness(1.06); }
.btn-submit:disabled { opacity: .6; }
.desk .err { color: #fda4af; font-weight: 600; }
.ticket { margin-top: 16px; display: grid; justify-items: center; text-align: center; background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(245,158,11,.06)); border: 2px dashed rgba(245,158,11,.6); border-radius: 16px; padding: 14px; }
.ticket-label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: #fcd34d; }
.ticket strong { font-size: clamp(4rem, 8vw, 5.5rem); line-height: 1; font-weight: 900; color: #fff; }
.ticket span:last-child { color: var(--s3); font-weight: 600; }
.ticket.pop { animation: pop .45s ease-out; }
@keyframes pop { 0% { transform: scale(.85); opacity: .3; } 60% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }

/* kuyruk */
.queue { background: rgba(30,41,59,.4); min-height: 70vh; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--s7); background: transparent; color: var(--s3); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.filters button b { margin-left: 4px; background: var(--s7); border-radius: 999px; padding: 1px 8px; }
.filters button.on { background: var(--s3); color: var(--s9); border-color: var(--s3); }
.filters button.on b { background: var(--s9); color: #fff; }
.orders { display: grid; gap: 12px; }
.ocard { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 16px; background: var(--s9); border: 1px solid var(--s7); animation: slidein .25s ease-out; }
.ocard.is-ready { border-color: rgba(16,185,129,.65); background: linear-gradient(90deg, rgba(6,78,59,.35), var(--s9) 60%); }
@keyframes slidein { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.onum { flex: none; min-width: 96px; height: 80px; padding: 0 10px; border-radius: 16px; display: grid; place-items: center; font-size: 2.3rem; font-weight: 900; letter-spacing: -.02em; background: var(--s8); color: #fbbf24; border: 1px solid var(--s7); }
.is-ready .onum { background: var(--em); color: #022c22; border-color: var(--em); }
.oinfo { flex: 1; min-width: 0; display: grid; gap: 4px; }
.oline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.oprod { font-size: 1.45rem; font-weight: 800; color: #fff; }
.oqty { font-size: 1rem; font-weight: 700; padding: 3px 10px; border-radius: 8px; background: var(--s8); border: 1px solid var(--s7); color: #e2e8f0; }
.ostate { font-size: .78rem; font-weight: 900; letter-spacing: .1em; color: #34d399; }
.oline.small { font-size: 1.05rem; gap: 16px; }
.ocust { color: #93c5fd; font-weight: 600; }
.ocust i { color: var(--s6); }
.onote { color: #fcd34d; font-weight: 700; }
.otime { font-size: .85rem; color: var(--s4); }
.otime.late { color: #fb7185; font-weight: 700; }
.oacts { display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.sq { width: 50px; height: 50px; border-radius: 12px; border: 1px solid var(--s7); background: var(--s8); color: var(--s3); cursor: pointer; font-size: 1rem; }
.sq:hover { background: var(--s7); color: #fff; }
.sq.danger:hover { background: rgba(244,63,94,.2); color: #fb7185; }
.act { height: 54px; padding: 0 20px; border: 0; border-radius: 12px; font-weight: 800; font-size: 1.1rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.act:active, .sq:active, .chip:active { transform: scale(.97); }
.act:disabled, .sq:disabled { opacity: .5; }
.act.green { background: var(--em); color: #022c22; }
.act.green:hover { background: var(--em-d); }
.act.amber { background: var(--am); color: #1c1917; }
.act.amber:hover { background: var(--am-d); }
.act.blue { background: var(--bl); color: #fff; }
.act.blue:hover { background: #1d4ed8; }
.ccount { font-size: .8rem; background: rgba(0,0,0,.18); border-radius: 999px; padding: 1px 7px; }
.queue .empty { text-align: center; color: var(--s6); padding: 60px 0; }
.queue .empty i { font-size: 2.4rem; margin-bottom: 8px; }
.closed { margin-top: 20px; border-top: 1px solid var(--s7); padding-top: 14px; }
.closed summary { cursor: pointer; font-weight: 700; color: var(--s3); list-style: none; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.closed summary::-webkit-details-marker { display: none; }
.closed summary span { font-weight: 500; font-size: .8rem; color: var(--s6); }
.closed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; margin-top: 12px; }
.crow { display: flex; align-items: center; gap: 10px; background: var(--s9); border: 1px solid var(--s7); border-radius: 12px; padding: 6px 6px 6px 14px; }
.crow strong { font-size: 1.15rem; color: #fbbf24; }
.cdesc { flex: 1; min-width: 0; font-size: .85rem; color: var(--s3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .sq { width: 40px; height: 40px; }
.tag { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag.g { background: rgba(16,185,129,.15); color: #6ee7b7; }
.tag.x { background: var(--s8); color: var(--s4); }

/* modallar */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(2,6,23,.75); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.modal-card { width: min(520px, 100%); max-height: 92vh; overflow-y: auto; background: var(--s8); border: 1px solid var(--s7); border-radius: 18px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--s7); margin-bottom: 4px; }
.modal-head h3 { font-size: 1.1rem; display: flex; gap: 8px; align-items: center; }
.modal-head h3 i, .modal-head h3 span { color: #fbbf24; }
.x { background: none; border: 0; color: var(--s4); font-size: 1.2rem; cursor: pointer; width: 40px; height: 40px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--s7); }
.btn-amber, .btn-ghost { min-height: 46px; padding: 0 18px; border-radius: 12px; border: 0; font-weight: 800; cursor: pointer; }
.btn-amber { background: var(--am); color: #0f172a; }
.btn-ghost { background: var(--s7); color: #fff; }
.tabs { display: flex; gap: 6px; }
.tabs button { flex: 1; min-height: 42px; border-radius: 10px; border: 1px solid var(--s7); background: transparent; color: var(--s3); font-weight: 700; cursor: pointer; }
.tabs button.on { background: var(--am); border-color: var(--am); color: #0f172a; }
.add-row { display: flex; gap: 8px; }
.preset-list { display: grid; gap: 6px; }
.prow { display: flex; justify-content: space-between; align-items: center; background: var(--s9); border: 1px solid var(--s7); border-radius: 12px; padding: 6px 6px 6px 14px; font-weight: 600; }
.prow .sq { width: 40px; height: 40px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; padding: 14px 20px; border-radius: 12px; font-weight: 700; color: #fff; background: var(--em-d); box-shadow: 0 12px 40px rgba(0,0,0,.4); max-width: calc(100vw - 32px); animation: pop .3s ease-out; }
.toast.warn { background: var(--am); color: #0f172a; }
.toast.bad { background: #e11d48; }

/* giriş */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 30% 20%, #1e293b, #0f172a); }
.login-card { width: min(420px, 100%); background: var(--s8); border: 1px solid var(--s7); border-radius: 20px; padding: 32px 28px; display: grid; gap: 10px; justify-items: center; text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.login-card .brand-icon { width: 64px; height: 64px; font-size: 1.8rem; }
.login-card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.login-card .eyebrow { color: #fbbf24; }
.stack { display: grid; gap: 10px; width: 100%; text-align: left; }
.pin { width: 100%; min-height: 64px; font-size: 2rem; letter-spacing: .6em; text-align: center; background: var(--s9); color: #fff; border: 1px solid var(--s7); border-radius: 12px; }
.pin:focus { outline: none; border-color: var(--am); }
.link { color: #fbbf24; font-weight: 600; margin-top: 6px; }

@media (max-width: 1100px) {
    .desk-grid { grid-template-columns: 1fr; }
    .intake { position: static; }
    .stats { order: 3; flex-basis: 100%; }
}
@media (max-width: 700px) {
    .desk-grid { padding: 12px; gap: 12px; }
    .desk-top { padding: 10px 12px; }
    .stat { flex: 1 1 30%; min-width: 0; padding: 4px 6px; }
    .ocard { flex-wrap: wrap; gap: 12px; padding: 12px; }
    .onum { min-width: 72px; height: 64px; font-size: 1.8rem; }
    .oprod { font-size: 1.2rem; }
    .oacts { flex-basis: 100%; justify-content: stretch; }
    .act { flex: 1; justify-content: center; }
    .icon-btn.wide { font-size: 0; gap: 0; }
    .icon-btn.wide i { font-size: .95rem; }
}

/* =====================================================================
   SALON EKRANI
   ===================================================================== */
body.hall { background: var(--navy); color: #fff; overflow: hidden; }
.hall-wrap { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(8px, 1.4vh, 18px); padding: clamp(8px, 1.6vh, 22px) clamp(10px, 1.6vw, 28px); }
.hall-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hall .eyebrow { color: #8fd3b3; }
.hall .brand h1 { font-size: clamp(1.3rem, 2.6vw, 2.4rem); }
.hall .logo { width: clamp(40px, 4vw, 64px); height: auto; }
.hall-meta { display: flex; align-items: center; gap: 12px; }
.clock { font-size: clamp(1.3rem, 2.4vw, 2.2rem); font-weight: 800; letter-spacing: .02em; }
.hall .conn { color: #b5c7cf; }
.ghost { min-height: 42px; padding: .45rem .9rem; border-radius: 10px; border: 1px solid #2d5366; background: var(--navy-3); color: #fff; font-weight: 700; cursor: pointer; }
.ghost:hover { background: #22495c; }
.ghost.on { border-color: var(--green); color: #b9f5cf; }
body.is-full .ghost { opacity: .0; transition: opacity .3s; }
body.is-full .hall-top:hover .ghost { opacity: 1; }

.boards { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(10px, 1.4vw, 22px); min-height: 0; }
.board { display: flex; flex-direction: column; min-height: 0; border-radius: 18px; overflow: hidden; background: var(--navy-2); border: 1px solid #1f4456; }
.board > header { display: flex; align-items: center; justify-content: space-between; padding: clamp(10px, 1.6vh, 18px) clamp(14px, 1.6vw, 24px); }
.board h2 { font-size: clamp(1.4rem, 3vw, 3rem); font-weight: 900; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.board > header p { font-size: clamp(.9rem, 1.4vw, 1.4rem); opacity: .9; margin-top: 4px; }
.board .count { font-size: clamp(1.4rem, 2.6vw, 2.6rem); font-weight: 900; background: rgba(0,0,0,.18); border-radius: 14px; padding: 2px 16px; min-width: 2.2em; text-align: center; }
.board.wait > header { background: linear-gradient(135deg, #c62f35, #8f1d22); }
.board.ready > header { background: linear-gradient(135deg, #16a34a, #0f6b33); }

.tiles { flex: 1; min-height: 0; list-style: none; margin: 0; padding: clamp(14px, 1.6vw, 24px); display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px; overflow: hidden; --tile: 140px; }
.tile { width: var(--tile); height: calc(var(--tile) * .72); display: grid; place-items: center; border-radius: calc(var(--tile) * .1); font-weight: 900; font-size: calc(var(--tile) * .42); line-height: 1; letter-spacing: -.02em; animation: tilein .35s ease-out; position: relative; }
@keyframes tilein { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.tile.red { background: #3a1518; color: #ffb4b7; border: 3px solid var(--red); }
.tile.green { background: var(--green); color: #052e16; box-shadow: 0 6px 24px rgba(34,197,94,.25); }
.tile.green.fresh { animation: tilein .35s ease-out, glow 1.2s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 0 0 rgba(134,239,172,.9); transform: scale(1); } to { box-shadow: 0 0 0 calc(var(--tile) * .07) rgba(134,239,172,.0); transform: scale(1.02); } }
.tile.done { background: transparent; color: #4ade80; border: 3px dashed #2f7a4d; opacity: .55; }
.tile.done::after { content: '✓'; position: absolute; top: 6%; right: 8%; font-size: .32em; }
.board .empty { color: #8aa3ad; font-size: clamp(1rem, 1.8vw, 1.6rem); padding: 0 24px 24px; text-align: left; }

.hall-foot { display: flex; gap: 10px 28px; flex-wrap: wrap; align-items: center; font-size: clamp(.85rem, 1.3vw, 1.25rem); color: #cfe0e6; }
.hall-foot .muted { color: #8aa3ad; margin-left: auto; }
.dot { display: inline-block; width: .8em; height: .8em; border-radius: 4px; vertical-align: -.05em; margin-right: .3em; }
.dot.red { background: var(--red); }
.dot.green { background: var(--green); }

.callout { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(5,16,22,.72); backdrop-filter: blur(3px); }
.callout-card { text-align: center; background: linear-gradient(160deg, #22c55e, #0f6b33); color: #fff; border-radius: 32px; padding: clamp(20px, 4vh, 48px) clamp(40px, 8vw, 120px); box-shadow: 0 30px 120px rgba(34,197,94,.45); }
.callout-label { font-size: clamp(1.4rem, 3.4vw, 3.4rem); font-weight: 900; letter-spacing: .12em; }
.callout-card strong { display: block; font-size: clamp(8rem, 30vh, 26rem); line-height: 1; font-weight: 900; text-shadow: 0 8px 30px rgba(0,0,0,.25); }
.callout-text { font-size: clamp(1.2rem, 2.6vw, 2.6rem); font-weight: 700; }
.callout.show .callout-card { animation: callin .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes callin { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 760px) {
    body.hall { overflow: auto; }
    .hall-wrap { height: auto; min-height: 100vh; }
    .boards { grid-template-columns: 1fr; }
    .board { min-height: 40vh; }
    .hall-foot .muted { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* isimli kutular, ses izni */
.tile { flex-direction: column; gap: calc(var(--tile) * .02); }
.tile .tn { line-height: 1; }
.tile.named .tn { font-size: .86em; }
.tile .tname { font-size: calc(var(--tile) * .12); font-weight: 700; letter-spacing: 0; max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.tile { display: flex; align-items: center; justify-content: center; }
.callout-name { font-size: clamp(1.6rem, 4vw, 3.6rem); font-weight: 800; margin: -.2em 0 .2em; }
.unlock { position: fixed; right: clamp(10px, 1.6vw, 28px); bottom: clamp(44px, 6vh, 64px); z-index: 25; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; border: 1px solid #fbbf24; background: rgba(15,23,42,.92); color: #fff; cursor: pointer; text-align: left; opacity: .85; }
.unlock-icon { font-size: 1.4rem; }
.unlock b { display: block; font-size: .95rem; }
.unlock small { display: block; color: #94a3b8; font-size: .75rem; }
@keyframes nudge { 0%, 100% { transform: translateX(-50%); } 50% { transform: translateX(-50%) translateY(-6px); } }

/* tezgâh: salon ses durumu, SweetAlert koyu tema */
.audio-pill { height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--s7); background: var(--s9); color: var(--s3); font-weight: 700; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.audio-pill.ok { color: #6ee7b7; border-color: rgba(16,185,129,.45); }
.audio-pill.warn { color: #fcd34d; border-color: rgba(245,158,11,.5); }
.audio-pill.off { color: #fda4af; border-color: rgba(244,63,94,.45); }
.add-row .btn-amber { white-space: nowrap; }
.sw-popup { border: 1px solid #334155; border-radius: 18px !important; }
.sw-title { color: #fff !important; }
.swal2-html-container { color: #cbd5e1 !important; }
.sw-btn { min-height: 46px; padding: 0 20px; margin: 0 6px; border: 0; border-radius: 12px; font-weight: 800; font-size: 1rem; cursor: pointer; }
.sw-danger { background: #e11d48; color: #fff; }
.sw-amber { background: #f59e0b; color: #0f172a; }
.sw-ghost { background: #334155; color: #fff; }
.sw-input { background: #0f172a !important; color: #fff !important; border: 1px solid #334155 !important; border-radius: 12px !important; text-align: center; font-weight: 800; letter-spacing: .15em; }
.swal2-validation-message { background: #0f172a !important; color: #fda4af !important; }
.sw-radio { background: transparent !important; display: grid !important; gap: 8px; justify-items: start; }
.sw-radio label { color: #e2e8f0; font-size: 1rem; margin: 0 !important; }
@media (max-width: 1500px) { .audio-pill span { display: none; } .audio-pill { padding: 0 12px; } }

/* fiyatlar */
.chip-price { display: block; font-size: .75rem; font-weight: 600; color: var(--s4); margin-top: 1px; }
.chips.products .chip.on .chip-price { color: #fcd34d; }
.oprice { font-size: 1rem; font-weight: 800; color: #6ee7b7; }
.form-total { text-align: right; font-weight: 800; font-size: 1.1rem; color: #6ee7b7; min-height: 1.4em; margin: 2px 0 -4px; }
.ticket-total { font-size: 1.5rem; color: #6ee7b7; margin-top: 4px; }
.add-row .field.price { width: 110px; flex: none; text-align: right; }
.prow .plabel { flex: 1; }
.pprice { display: flex; align-items: center; gap: 6px; margin-right: 8px; color: var(--s4); font-weight: 700; }
.pprice .field { width: 96px; padding: 8px 10px; text-align: right; }
.menu-pop a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; color: #e2e8f0; text-decoration: none; font-weight: 600; }
.menu-pop a:hover { background: var(--s7); }

/* satış raporu */
.report-main { padding: 20px; display: grid; gap: 20px; max-width: 1400px; width: 100%; margin: 0 auto; }
.report-title { font-size: 1.1rem; font-weight: 700; color: var(--s3); }
.day-select { display: inline-flex; align-items: center; gap: 8px; background: var(--s9); border: 1px solid var(--s7); border-radius: 12px; padding: 0 12px; height: 42px; color: #fbbf24; }
.day-select select { background: transparent; color: #f1f5f9; border: 0; font: inherit; font-weight: 700; max-width: 52vw; }
.day-select select option { background: var(--s8); }
.kpis { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--s8); border: 1px solid var(--s7); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.kpi small { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 700; color: var(--s4); }
.kpi b { font-size: 2rem; line-height: 1.1; }
.kpi span { font-size: .82rem; color: var(--s4); }
.kpi.big { background: linear-gradient(135deg, rgba(16,185,129,.22), rgba(16,185,129,.06)); border-color: rgba(16,185,129,.45); }
.kpi.big b { font-size: 2.6rem; color: #6ee7b7; }
.chart-box { position: relative; height: 340px; }
.table-wrap { overflow-x: auto; }
.rtable { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.rtable th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--s4); padding: 8px 10px; border-bottom: 1px solid var(--s7); }
.rtable td { padding: 12px 10px; border-bottom: 1px solid rgba(51,65,85,.6); }
.rtable tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--s7); }
.rtable .num { text-align: right; white-space: nowrap; }
.rtable .strong, .rtable .pname { font-weight: 800; }
.rtable .sq { width: 40px; height: 40px; margin-left: 6px; }
.bar-col { width: 28%; min-width: 140px; }
.bar-col .bar { display: inline-block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #10b981, #34d399); vertical-align: middle; }
.bar-col .pct { margin-left: 8px; font-size: .85rem; color: var(--s4); }
.small-note { font-size: .85rem; margin: -6px 0 10px; }
.danger-zone { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid rgba(244,63,94,.4); background: rgba(244,63,94,.07); border-radius: 14px; }
.danger-zone div { display: grid; gap: 2px; }
.danger-zone span { font-size: .85rem; color: var(--s4); }
.act.danger { background: #e11d48; color: #fff; }
.act.danger:hover { background: #be123c; }
@media (max-width: 1000px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi.big { grid-column: 1 / -1; } }
@media print {
    body.desk { background: #fff; color: #000; }
    .report .desk-top .top-actions, .danger-zone, .rtable .sq, #metric, .toast { display: none !important; }
    .report .desk-top, .panel, .kpi { background: #fff !important; border-color: #ccc !important; box-shadow: none !important; color: #000; }
    .kpi b, .kpi.big b, .rtable td, .report-title { color: #000 !important; }
}
.bar-col { white-space: nowrap; } .bar-col .bar { max-width: calc(100% - 56px); }
