/* Prânz BGW: aceeasi familie cu ismn.ro (alb, albastru #2196F3, galben de produs, Inter) */
:root {
  --blue: #2196F3; --blue7: #1976D2; --blue9: #0D47A1; --blue1: #E3F2FD; --blue05: #F3F8FE;
  --gold: #FFE90A; --ink: #121212; --muted: #5d6573; --line: rgba(18,18,18,.1); --line2: rgba(18,18,18,.18);
  --bg: #fff; --card: #fff; --red: #e5383b; --green: #1f9d55;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
.wrap { width: min(1280px, calc(100% - 80px)); margin: 0 auto; }
@media (max-width: 700px) { .wrap { width: calc(100% - 32px); } }
.grow { flex: 1; }
.loading { padding: 80px 0; color: var(--muted); }

/* bara de sus */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topin { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; display: block; }
.brandtxt { white-space: nowrap; font-weight: 800; font-size: 17px; padding-left: 12px; border-left: 1px solid var(--line2); } .brandtxt b { color: var(--blue); }
.topdate { color: var(--muted); font-size: 14px; font-weight: 600; }
.seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.seg a, .seg button { padding: 7px 14px; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; border: 0; background: none; cursor: pointer; color: var(--muted); }
.seg a.on, .seg button.on { background: var(--blue); color: #fff; }
.seg a:not(.on):hover, .seg button:not(.on):hover { background: var(--blue1); color: var(--blue7); }
@media (max-width: 560px) { .topdate { display: none; } .brandtxt { font-size: 15px; } .brand img { height: 24px; } }

/* comanda */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; padding: 48px 0 120px; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; } }
.kicker { font-weight: 700; color: var(--blue7); font-size: 15px; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 900; margin: 8px 0 14px; }
h1 span { color: var(--blue); }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 28px; max-width: 620px; }
.menunote { padding: 14px 16px; border-radius: 12px; background: var(--blue05); border: 1px solid var(--blue1); margin: -8px 0 28px; white-space: pre-line; font-size: 15px; }
.closed { padding: 18px 20px; border-radius: 14px; background: #fff7d6; border: 1px solid #f2d94e; font-weight: 600; margin-bottom: 28px; }
.who { display: flex; align-items: baseline; gap: 14px; margin-bottom: 30px; }
.who label { font-weight: 800; font-size: 20px; white-space: nowrap; }
.who input { flex: 1; min-width: 0; border: 0; border-bottom: 2px solid var(--ink); padding: 6px 2px; font-size: 22px; font-weight: 600; background: none; outline: none; border-radius: 0; }
.who input:focus { border-color: var(--blue); } .who input::placeholder { color: #a7adb8; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; position: sticky; top: 68px; background: #fff; padding: 12px 0; z-index: 5; }
.chips button { border: 1px solid var(--line2); background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.chips button:hover { border-color: var(--blue); color: var(--blue7); }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat { padding-top: 22px; scroll-margin-top: 130px; }
.cat h2 { font-size: 28px; letter-spacing: -.02em; font-weight: 900; margin: 0 0 8px; display: flex; align-items: baseline; gap: 10px; }
.cat h2 small { font-size: 13px; color: var(--muted); font-weight: 600; }
.item { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.item:hover .dot { border-color: var(--blue); }
.dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; transition: background .12s, border-color .12s; }
.item.on .dot { background: var(--blue); border-color: var(--blue); }
.item.on .dot::after { content: ''; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.iname { font-size: 17px; font-weight: 500; } .item.on .iname { font-weight: 700; }
.idesc { display: block; font-size: 13px; color: var(--muted); }
.iprice { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: #fff; cursor: pointer; font-size: 18px; font-weight: 700; }
.qty button:hover { background: var(--blue1); color: var(--blue7); }
.qty b { min-width: 26px; text-align: center; font-family: var(--mono); font-size: 14px; }
.notebox { margin-top: 34px; }
.notebox label { display: block; font-weight: 800; font-size: 20px; margin-bottom: 8px; }
textarea { width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; resize: vertical; min-height: 90px; outline: none; background: #fff; }
textarea:focus, input:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue1); }

/* bonul */
.receipt { position: sticky; top: 92px; background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 18px 40px rgba(18,18,18,.08); padding: 0 0 6px; }
.receipt::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -10px; height: 10px; background: radial-gradient(circle at 6px 0, transparent 6px, #fff 6.5px) 0 0 / 12px 10px repeat-x; filter: drop-shadow(0 1px 0 var(--line)); }
.rhead { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px dashed var(--line2); font-weight: 800; }
.rhead .tag { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--blue05); color: var(--muted); font-weight: 500; }
.rhead .tag.sent { background: #e3f6ea; color: var(--green); }
.rbody { padding: 14px 18px; font-family: var(--mono); font-size: 13.5px; }
.rempty { color: var(--muted); }
.rline { display: flex; gap: 10px; padding: 4px 0; } .rline span:first-child { flex: none; color: var(--muted); min-width: 26px; } .rline .grow { min-width: 0; } .rline i { font-style: normal; color: var(--muted); }
.rnote { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line2); color: var(--muted); white-space: pre-line; word-break: break-word; }
.rtotal { display: flex; justify-content: space-between; padding: 12px 18px 4px; border-top: 1px dashed var(--line2); font-family: var(--mono); font-size: 13.5px; font-weight: 700; }
.rhint { padding: 0 18px 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rhint.err { color: var(--red); }
.rbtns { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; padding: 14px 18px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--blue7); } .btn:disabled { background: #d5dbe3; color: #8a93a1; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line2); } .btn.ghost:hover { border-color: var(--blue); color: var(--blue7); }
.btn.sm { padding: 8px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #f3c2c3; } .btn.danger:hover { background: #fdecec; }
.sentbox { margin: 0 14px 12px; padding: 12px 14px; border-radius: 12px; background: #e3f6ea; color: #14532d; font-weight: 600; font-size: 14px; }

/* pe telefon: bonul e o bara jos */
.mbar { display: none; }
@media (max-width: 960px) {
  .receipt { position: static; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(18,18,18,.06); }
  .mbar b { font-family: var(--mono); font-size: 14px; } .mbar .btn { padding: 12px 16px; }
}

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 50; box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.toast.err { background: var(--red); }

/* admin */
.adm { padding: 36px 0 80px; }
.admhead { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.admhead h1 { font-size: clamp(32px, 4vw, 48px); margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.stat { padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; min-width: 150px; } .stat b { display: block; font-size: 28px; font-weight: 900; letter-spacing: -.02em; } .stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat.open b { color: var(--green); } .stat.shut b { color: var(--red); }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; }
.panel h3 { margin: 0 0 12px; font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.panel h3 .grow + .btn { margin-left: auto; }
.ord { padding: 14px 0; border-bottom: 1px solid var(--line); } .ord:last-child { border-bottom: 0; }
.ordtop { display: flex; align-items: center; gap: 10px; } .ordtop b { font-size: 17px; } .ordtop .t { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.ordit { margin: 6px 0 0; padding: 0; list-style: none; font-size: 15px; } .ordit li { padding: 2px 0; } .ordit li b { font-family: var(--mono); color: var(--blue7); margin-right: 6px; }
.ordnote { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: #fff7d6; font-size: 14px; white-space: pre-line; }
.sum { width: 100%; border-collapse: collapse; font-size: 15px; } .sum td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; } .sum td:first-child { font-family: var(--mono); font-weight: 700; color: var(--blue7); width: 44px; } .sum small { display: block; color: var(--muted); font-size: 12.5px; }
.sumcat td { font-weight: 800; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 0; padding-top: 16px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days button { border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; cursor: pointer; } .days button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.form { display: grid; gap: 14px; } .form .row { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.form input[type=date], .form input[type=time] { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; background: #fff; }
.form .check { flex-direction: row; align-items: center; gap: 8px; } .form .check input { width: 18px; height: 18px; accent-color: var(--blue); }
.menuta { min-height: 380px; font-family: var(--mono); font-size: 14px; line-height: 1.6; }
.hint { color: var(--muted); font-size: 13.5px; } .hint code { font-family: var(--mono); background: var(--blue05); padding: 1px 5px; border-radius: 5px; }
.empty { color: var(--muted); padding: 24px 0; }
