/* Meniu-Digital.ro — meniul pe produse, coș, panoul personalului, administrare produse */

/* ---------- limbă ---------- */
.en { display: none; }
.lang-en .ro { display: none; }
.lang-en .en { display: inline; }

/* ---------- meniul pe produse ---------- */
.pm { background: #fff; padding-bottom: 6rem; }
.pm-bar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .6rem; padding: .55rem max(1rem, calc((100% - 900px) / 2)); }
.pm-tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.pm-tabs::-webkit-scrollbar { display: none; }
.pm-tabs a { flex: none; padding: .45rem .9rem; border-radius: 999px; background: var(--bg-soft); color: var(--navy); font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.pm-tabs a.is-on { background: var(--orange-ink); color: #fff; }
.pm-lang { flex: none; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pm-lang button { border: 0; background: #fff; padding: .35rem .7rem; font: inherit; font-weight: 700; font-size: .85rem; color: var(--navy); cursor: pointer; }
.pm-lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.pm-body { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.pm-table { background: #FFF4E5; border: 1px solid #F0C27A; border-radius: 12px; padding: .7rem 1rem; margin: 1rem 0 0; font-size: .95rem; }
.pm-table.muted { background: var(--bg-soft); border-color: var(--line); }
.pm-cat { font-size: 1.45rem; margin: 1.8rem 0 .6rem; scroll-margin-top: 4.5rem; color: var(--navy); }
.pm-cat small { font-size: .85rem; color: var(--muted); font-weight: 600; font-style: italic; }
.pm-list { display: flex; flex-direction: column; }
.pm-item { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.pm-item:not(:has(.pm-img)) { grid-template-columns: 1fr auto; }
.pm-img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; background: var(--bg-soft); }
.pm-info h3 { font-size: 1.05rem; margin: 0 0 .2rem; color: var(--ink); }
.pm-post { font-size: .7rem; background: #E7F6EC; color: #1E6B3A; border-radius: 6px; padding: .05rem .35rem; vertical-align: middle; }
.pm-desc { margin: 0 0 .3rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.pm-meta { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: 0; font-size: .8rem; color: var(--muted); align-items: center; }
.pm-al { background: #E8F0F8; color: var(--navy); border-radius: 6px; padding: .05rem .4rem; font-weight: 600; }
.pm-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.pm-price { font-weight: 800; color: var(--navy); white-space: nowrap; }
.pm-add { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--orange-ink); color: #fff; font-size: 1.4rem; font-weight: 700; cursor: pointer; line-height: 1; }
.pm-add.has { font-size: 1rem; background: var(--navy); }
.pm-out { font-size: .78rem; font-weight: 700; color: #8E1F16; background: #FDECEA; border-radius: 6px; padding: .1rem .45rem; }
.pm-item.is-off .pm-info, .pm-item.is-off .pm-img { opacity: .5; }
@media (max-width: 520px) { .pm-img { width: 76px; height: 76px; } }

.pm-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,51,85,.08); }
.pm-call { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 999px; padding: .65rem 1rem; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.pm-call:disabled { opacity: .5; }
.pm-cart-btn { border: 0; background: var(--orange-ink); color: #fff; border-radius: 999px; padding: .7rem 1.2rem; font: inherit; font-weight: 700; cursor: pointer; flex: 1 1 100%; max-width: 520px; }

.pm-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(10,25,40,.55); display: flex; align-items: flex-end; justify-content: center; }
.pm-sheet[hidden] { display: none; }
.pm-sheet__box { background: #fff; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 1.2rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom)); }
.pm-sheet__box header { display: flex; justify-content: space-between; align-items: center; }
.pm-sheet__box h2 { font-size: 1.2rem; margin: 0; }
.pm-close { border: 0; background: var(--bg-soft); width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.pm-lines { list-style: none; padding: 0; margin: 1rem 0; }
.pm-lines li { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.pm-line-top { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.pm-line-ctl { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.pm-line-ctl button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; }
.pm-line-ctl input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; font: inherit; font-size: .88rem; }
.pm-note-l { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); }
.pm-note { width: 100%; margin-top: .3rem; border: 1.5px solid #8C9AA8; border-radius: 10px; padding: .5rem; font: inherit; }
.pm-sum { display: flex; justify-content: space-between; font-size: 1.1rem; margin: 1rem 0; }
.pm-send { width: 100%; }
.pm-err { color: #B3261E; font-weight: 600; min-height: 1em; }
.pm-orders { position: fixed; left: .8rem; right: .8rem; bottom: 5.4rem; z-index: 35; max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .7rem .9rem; font-size: .88rem; }
.pm-orders h3 { font-size: .9rem; margin: 0 0 .3rem; }
.pm-ord { display: flex; justify-content: space-between; gap: .8rem; padding: .2rem 0; }
.pm-ord b { white-space: nowrap; }
.pm-ord.st-served b { color: #1E6B3A; } .pm-ord.st-canceled b { color: #8E1F16; } .pm-ord.st-preparing b, .pm-ord.st-accepted b { color: var(--orange-ink); }
.pm-toast { position: fixed; left: 50%; top: 1rem; transform: translateX(-50%); z-index: 80; background: var(--navy); color: #fff; border-radius: 999px; padding: .6rem 1.2rem; font-weight: 600; box-shadow: var(--shadow); max-width: 92vw; text-align: center; }
.pm-pdf-title { max-width: 900px; margin: 2.5rem auto .8rem; padding: 0 1rem; font-size: 1.3rem; }

/* ---------- administrare produse ---------- */
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-form input, .inline-form select { min-height: 42px; padding: .5rem .7rem; border: 1.5px solid #8C9AA8; border-radius: 10px; font: inherit; }
.inline-form .cat-name { font-weight: 700; font-size: 1.05rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; }
.icon-btn.danger { color: #A3261B; }
.prod-table td { vertical-align: middle; }
.prod-table .thumb { width: 64px; }
.prod-table .thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.nophoto { display: inline-block; width: 56px; font-size: .7rem; color: var(--muted); text-align: center; }
.prod-table tr.is-off td { opacity: .55; }
.price-cell { white-space: nowrap; font-weight: 700; color: var(--navy); text-align: right; }
.prod-table .actions { text-align: right; }
.prod-table .actions .btn-row { justify-content: flex-end; }
.allergen-pick { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.allergen-pick legend { font-weight: 600; color: var(--navy); padding: 0 .3rem; }
.allergen-pick label { font-size: .92rem; display: inline-flex; gap: .35rem; align-items: center; }
.en-fields { margin-bottom: 1rem; }
.en-fields summary { cursor: pointer; font-weight: 600; color: var(--navy); margin-bottom: .6rem; }
.menu-settings { margin-top: 1rem; }
.copy-field { width: 100%; padding: .6rem .8rem; border: 1.5px solid #8C9AA8; border-radius: 10px; font: inherit; font-size: .9rem; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.table-card { border: 1px solid var(--line); border-radius: 14px; padding: .8rem; text-align: center; }
.table-card img { width: 120px; height: 120px; display: block; margin: 0 auto .5rem; }
.table-card input { width: 100%; min-width: 0; flex: 1; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.table-card .btn-row { flex-wrap: nowrap; justify-content: center; margin-bottom: .3rem; }

/* ---------- panoul personalului ---------- */
.staff-body { background: #EEF2F6; min-height: 100vh; }
.staff-top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--navy); color: #fff; padding: .8rem 1.2rem; }
.staff-top strong { font-size: 1.15rem; display: block; }
.staff-sub { font-size: .82rem; opacity: .85; }
.conn.ok { color: #9BE3B1; } .conn.bad { color: #FFB8A6; font-weight: 700; }
.staff-warn { margin: 1rem; background: #FFF4E5; border: 1px solid #F0C27A; border-radius: 12px; padding: .8rem 1rem; }
.staff-grid { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 1rem; padding: 1rem; align-items: start; }
@media (max-width: 1000px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-grid h2 { font-size: 1.1rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.count { background: var(--orange-ink); color: #fff; border-radius: 999px; padding: 0 .55rem; font-size: .85rem; }
.staff-list { display: flex; flex-direction: column; gap: .7rem; }
.empty { color: var(--muted); font-size: .92rem; }
.s-card { background: #fff; border-radius: 14px; padding: .8rem 1rem; box-shadow: 0 2px 8px rgba(15,51,85,.08); border-left: 6px solid var(--line); }
.s-card header { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.s-card header strong { font-size: 1.1rem; color: var(--navy); }
.s-card time { margin-left: auto; color: var(--muted); font-size: .82rem; }
.s-badge { font-size: .78rem; font-weight: 700; border-radius: 6px; padding: .1rem .45rem; background: var(--bg-soft); }
.s-call { border-left-color: var(--orange-ink); }
.s-call .s-badge { background: #FFF1EC; color: #8E2A14; }
.st-new { border-left-color: var(--orange-ink); } .st-new .s-badge { background: #FFF1EC; color: #8E2A14; }
.st-accepted, .st-preparing { border-left-color: #E5A00D; }
.st-served { border-left-color: #2F8A4C; opacity: .75; } .st-canceled { border-left-color: #8C9AA8; opacity: .6; }
.s-items { list-style: none; padding: 0; margin: .5rem 0; font-size: .98rem; }
.s-items li { padding: .15rem 0; }
.s-items em { color: #8E2A14; }
.s-note { background: #FFF4E5; border-radius: 8px; padding: .4rem .6rem; font-size: .9rem; margin: .3rem 0; }
.s-card footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; font-weight: 600; color: var(--navy); }
.done-wrap { margin-top: 1rem; } .done-wrap summary { cursor: pointer; color: var(--muted); margin-bottom: .6rem; }
.prod-filter { width: 100%; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-bottom: .5rem; }
.prod-toggles { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: 14px; max-height: 60vh; overflow: auto; }
.prod-toggles li { border-bottom: 1px solid var(--line); }
.prod-toggles label { display: flex; gap: .6rem; align-items: center; padding: .55rem .8rem; cursor: pointer; }
.prod-toggles input { width: 20px; height: 20px; accent-color: var(--orange-ink); }
.prod-toggles input:checked + span { text-decoration: line-through; color: #8E1F16; }
body:has(.pm-dock) { padding-bottom: 4.5rem; }
.pm-dock { display: grid; grid-template-columns: 1fr 1fr; max-width: 560px; margin: 0 auto; }
.pm-dock .pm-call { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; padding: .6rem .5rem; }
.pm-dock .pm-cart-btn { grid-column: 1 / -1; max-width: none; }
.pm-dock:not(:has(.pm-call)) { grid-template-columns: 1fr; }
body:has(.pm) .site-header { position: static; }

/* comandă online */
.s-online { border-left-color: #2F6B9A; }
.s-cust { background: var(--bg-soft); border-radius: 8px; padding: .45rem .6rem; margin: .5rem 0 0; font-size: .92rem; line-height: 1.5; }
.st-ready { border-left-color: #2F6B9A; }
.pm-seg { border: 0; padding: 0; margin: .8rem 0; display: flex; gap: .5rem; }
.pm-seg label { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem; text-align: center; font-weight: 700; cursor: pointer; }
.pm-seg label:has(input:checked) { border-color: var(--orange-ink); background: #FFF1EC; }
.pm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pm-f { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: .6rem; }
.pm-f input, .pm-f select, .pm-f textarea { display: block; width: 100%; margin-top: .25rem; min-height: 44px; border: 1.5px solid #8C9AA8; border-radius: 10px; padding: .5rem .7rem; font: inherit; font-weight: 400; }
.pm-checkout .pm-sum { margin: .3rem 0; }
.pm-min { color: #8E1F16; font-weight: 600; }
.status-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .3rem; }
.order-status .status-now { font-size: 1.3rem; color: var(--navy); margin: .4rem 0; }
.steps-bar { list-style: none; padding: 0; margin: .6rem 0 1rem; display: flex; gap: .3rem; font-size: .78rem; }
.steps-bar li { flex: 1; text-align: center; padding: .45rem .2rem; border-radius: 8px; background: var(--bg-soft); color: var(--muted); }
.steps-bar li.done { background: #E7F6EC; color: #1E6B3A; font-weight: 700; }
