/* ============================================================
   Pagini publice: cauta.php (tabletă / telefon) și kiosk.php (monitor touch)
   ============================================================ */
:root {
  --navy: #003865; --accent: #00A3E0; --accent-100: #D9F1FB;
  --bg: #EEF2F7; --text: #1A1F2B; --muted: #5B6270; --muted-2: #8B93A3; --border: #DDE3EC;
  --cat-soci: #7C3AED; --cat-soci-bg: #EDE4FF; --cat-furnizori: #EA580C; --cat-furnizori-bg: #FFE9D6;
  --cat-clienti: #0F9D6E; --cat-clienti-bg: #D8F5EA; --cat-angajati: #2563EB; --cat-angajati-bg: #DBE9FF;
  --cat-exangajati: #6B7280; --cat-exangajati-bg: #E9ECF1;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.badge { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; line-height: 1.3; }
.badge.soci { background: var(--cat-soci-bg); color: var(--cat-soci); }
.badge.furnizori { background: var(--cat-furnizori-bg); color: var(--cat-furnizori); }
.badge.clienti { background: var(--cat-clienti-bg); color: var(--cat-clienti); }
.badge.angajati { background: var(--cat-angajati-bg); color: var(--cat-angajati); }
.badge.exangajati { background: var(--cat-exangajati-bg); color: var(--cat-exangajati); }
.dev-credit { text-align: center; font-size: 11.5px; color: var(--muted-2); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); letter-spacing: .2px; flex: none; }

/* ---------- header comun ---------- */
.ph { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 16px; flex: none; box-shadow: 0 2px 10px rgba(0,0,0,.2); position: relative; z-index: 5; }
.ph .logo { background: #fff; border-radius: 10px; padding: 6px 10px; height: 46px; display: flex; align-items: center; flex: none; }
.ph .logo img { height: 100%; width: auto; display: block; }
.ph .t { min-width: 0; line-height: 1.15; }
.ph .t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .t small { font-size: 11.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ph .sp { flex: 1; }
.ph .ib { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; border-radius: 10px; font-size: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
.ph .ib:active { background: rgba(255,255,255,.2); }
.ph .ib svg { width: 22px; height: 22px; }
.ksearch .hint .sep { color: var(--muted-2); }

/* ---------- căutare (comun) ---------- */
.search { position: relative; }
.search input { width: 100%; border: 2px solid var(--border); border-radius: 16px; padding: 16px 52px 16px 54px; font-size: 20px; background: #fff; outline: none; color: var(--text);
  box-shadow: 0 6px 24px rgba(0,56,101,.08); transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,163,224,.18), 0 6px 24px rgba(0,56,101,.08); }
.search input::placeholder { color: #9aa3b2; }
.search .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; color: var(--accent); pointer-events: none; }
.search .clr { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: #eef2f7; border-radius: 50%; color: var(--muted); font-size: 18px; display: none; }
.search.has .clr { display: block; }
.search .clr:active { background: #dfe6ef; }

/* ---------- rezultate (comun) ---------- */
.res { list-style: none; margin: 0; padding: 0; }
.res li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
  transition: transform .08s, box-shadow .12s, border-color .12s; }
.res li:active { transform: scale(.99); }
.res li.hl { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,163,224,.18); }
.res .info { flex: 1; min-width: 0; }
.res .nm { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.res .co { color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res .tn { flex: none; min-width: 74px; text-align: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 6px 10px; line-height: 1.05; }
.res .tn b { display: block; font-size: 24px; }
.res .tn small { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; opacity: .8; }
.res .tn.none { background: #e9ecf1; color: var(--muted); }
.res .tn.none b { font-size: 14px; padding: 4px 0; }
.empty { text-align: center; color: var(--muted-2); padding: 30px 16px; font-size: 15px; line-height: 1.5; }
.empty b { color: var(--muted); }
mark { background: var(--accent-100); color: inherit; border-radius: 2px; padding: 0; }
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

/* ============================================================
   cauta.php
   ============================================================ */
.cauta { display: flex; flex-direction: column; min-height: 100dvh; }
.cauta .ph .t b { font-size: 14px; }
.cauta .box { padding: 14px 14px 6px; flex: none; background: var(--bg); position: sticky; top: 0; z-index: 4; }
.cauta .list { flex: 1; padding: 6px 14px 14px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cauta .count { font-size: 12px; color: var(--muted-2); margin: 0 0 8px 4px; }
@media (min-width: 700px) {
  .cauta .box, .cauta .list { max-width: 720px; width: 100%; margin: 0 auto; }
}

/* ============================================================
   kiosk.php
   ============================================================ */
.kiosk { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.kiosk .ph { padding: 10px 18px; }
.kiosk .ph .logo { height: 54px; }
.kiosk .ph .t b { font-size: 17px; }
.kiosk .ph .t small { font-size: 12.5px; }
.kiosk .ph .clock { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; opacity: .9; margin-right: 6px; }
.ksearch { padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--border); flex: none; position: relative; z-index: 6; }
.ksearch .search input { font-size: 24px; padding: 18px 56px 18px 60px; border-radius: 18px; }
.ksearch .search .ico { width: 28px; height: 28px; left: 20px; }
.ksearch .hint { margin: 8px 4px 0; font-size: 13px; color: var(--muted); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ksearch .hint b { color: var(--navy); }
.kres { position: absolute; left: 18px; right: 18px; top: calc(100% - 4px); background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,20,45,.25);
  max-height: 46vh; overflow-y: auto; padding: 8px; display: none; z-index: 20; }
.kres.show { display: block; }
.kres .res li { margin-bottom: 6px; }
.kres .res li:last-child { margin-bottom: 0; }
.kbody { flex: 1; display: flex; min-height: 0; position: relative; }
.kmap { flex: 1; position: relative; min-width: 0; background: var(--bg); background-image: radial-gradient(circle, #d6dde8 1px, transparent 1px); background-size: 24px 24px; overflow: hidden; }
.kmap svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }
.kmap .tools { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 3; }
.kmap .tools button { width: 50px; height: 50px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font-size: 22px; box-shadow: 0 4px 14px rgba(16,24,40,.12); color: var(--navy); }
.kmap .tools button:active { background: #eef2f7; }
.kmap .legend { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; color: var(--muted); z-index: 3; display: flex; gap: 12px; align-items: center; }
.kmap .legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
/* SVG */
.kmap .stage rect { fill: var(--navy); }
.kmap .stage text { fill: #fff; font-weight: 800; font-size: 22px; letter-spacing: 4px; }
.kmap .desk rect { fill: #fff; stroke: #64748b; stroke-width: 1.5; }
.kmap .desk text { fill: #334155; font-size: 11px; font-weight: 600; }
.kmap .wall { stroke: #64748b; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kmap .entrance path { fill: #fff; stroke: #475569; stroke-width: 1.5; }
.kmap .entrance text { fill: #475569; font-size: 11px; font-weight: 700; }
.kmap .tbl { cursor: pointer; }
.kmap .tbl .shape { fill: #fff; stroke: var(--navy); stroke-width: 2.5; transition: fill .15s, stroke .15s; }
.kmap .tbl.empty .shape { stroke: #a5b1c2; stroke-dasharray: 4 3; }
.kmap .tbl .nr { font-size: 17px; font-weight: 800; fill: var(--navy); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.kmap .tbl.empty .nr { fill: #94a3b8; }
.kmap .tbl.sel .shape { fill: var(--accent); stroke: var(--navy); stroke-width: 3; }
.kmap .tbl.sel .nr { fill: #fff; }
.kmap .tbl .pulse { fill: none; stroke: var(--accent); stroke-width: 4; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; }
.kmap .tbl.sel .pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
.kmap .tbl.dim { opacity: .35; }
/* „Te afli aici” – pin la intrare */
.kmap .here { pointer-events: none; }
.kmap .here .pin { fill: var(--accent); stroke: var(--navy); stroke-width: 2; filter: drop-shadow(0 3px 3px rgba(0,56,101,.35)); animation: hereBob 2.4s ease-in-out infinite; }
.kmap .here .dot { fill: #fff; animation: hereBob 2.4s ease-in-out infinite; }
.kmap .here .shadow { fill: rgba(0,56,101,.22); transform-box: fill-box; transform-origin: center; animation: hereShadow 2.4s ease-in-out infinite; }
.kmap .here .ripple { fill: none; stroke: var(--accent); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: hereRipple 2.4s ease-out infinite; }
.kmap .here .ripple.r2 { animation-delay: 1.2s; }
.kmap .here .lbl { fill: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .6px; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.kmap .here .sub { fill: #64748b; font-size: 9.5px; font-weight: 700; letter-spacing: 1px; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
@keyframes hereBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hereShadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.75); opacity: .55; } }
@keyframes hereRipple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(4); opacity: 0; } }
/* traseul de la intrare până la masă – linie discontinuă care pulsează + săgeată */
.kmap .route { pointer-events: none; }
.kmap .route .glow { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 14; opacity: .12; animation: routeGlow 1.6s ease-in-out infinite; }
.kmap .route .draw { fill: none; stroke: var(--navy); stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: routeDraw 1.1s ease-out forwards; }
.kmap .route .dash { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; stroke-dasharray: 14 12; animation: routeDash .9s linear infinite, routePulse 1.6s ease-in-out infinite; }
.kmap .route .arrow path { fill: var(--accent); stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: routeArrow 1.6s ease-in-out infinite; }
@keyframes routeDash { to { stroke-dashoffset: -26; } }
@keyframes routePulse { 0%, 100% { opacity: .55; stroke-width: 4.5; } 50% { opacity: 1; stroke-width: 6.5; } }
@keyframes routeGlow { 0%, 100% { opacity: .08; stroke-width: 12; } 50% { opacity: .3; stroke-width: 22; } }
@keyframes routeDraw { 0% { stroke-dashoffset: 1; opacity: 1; } 75% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes routeArrow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.kmap .legend i.ln { width: 26px; height: 0; border-radius: 0; border: 0; border-top: 3px dashed var(--accent); }
/* panou masă */
.kpanel { width: 400px; flex: none; background: #fff; border-left: 1px solid var(--border); display: none; flex-direction: column; min-height: 0; z-index: 4; box-shadow: -6px 0 24px rgba(16,24,40,.08); }
.kpanel.show { display: flex; }
.kpanel .hd { padding: 16px 18px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 12px; }
.kpanel .hd h2 { margin: 0; font-size: 30px; color: var(--navy); line-height: 1; }
.kpanel .hd h2 small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.kpanel .hd .x { margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font-size: 20px; color: var(--muted); flex: none; }
.kpanel .list { flex: 1; overflow-y: auto; padding: 10px 12px; }
.kpanel .list .res li { cursor: default; }
.kpanel .list .res li:active { transform: none; }
.kpanel .foot { padding: 10px 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
/* tastatură virtuală */
.kb { flex: none; background: #e6ebf2; border-top: 1px solid var(--border); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); display: none; z-index: 6; user-select: none; }
.kb.show { display: block; }
.kb .row { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.kb button { flex: 0 0 auto; width: 7.4vw; max-width: 66px; min-width: 34px; height: 54px; border-radius: 10px; border: 0; background: #fff; box-shadow: 0 2px 0 #c9d2df; font-size: 21px; font-weight: 600; color: var(--text); }
.kb button:active { background: var(--accent-100); transform: translateY(1px); box-shadow: none; }
.kb button.w { width: 12vw; max-width: 110px; font-size: 15px; }
.kb button.sp { width: 36vw; max-width: 420px; }
.kb button.hide { background: #d8dfe8; font-size: 15px; }
/* ecran de așteptare */
.kidle { position: fixed; inset: 0; background: linear-gradient(160deg, #003865 0%, #012a4d 100%); color: #fff; z-index: 50; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 22px; text-align: center; padding: 30px; cursor: pointer; }
.kidle.show { display: flex; }
.kidle .lg { background: #EAF3F7; border-radius: 22px; padding: 22px 34px; }
.kidle .lg img { height: 78px; width: auto; display: block; }
.kidle h1 { margin: 10px 0 0; font-size: clamp(28px, 4.5vw, 52px); line-height: 1.15; }
.kidle h1 .acc { color: var(--accent); }
.kidle p { margin: 0; font-size: clamp(16px, 2.2vw, 24px); opacity: .85; }
.kidle .tap { margin-top: 26px; border: 2px solid rgba(255,255,255,.5); border-radius: 999px; padding: 14px 34px; font-size: 20px; font-weight: 700; animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }
.kiosk .dev-credit { padding: 5px 12px; font-size: 11px; background: #fff; border-top: 1px solid var(--border); }

@media (max-width: 900px), (orientation: portrait) {
  .kbody { flex-direction: column; }
  .kpanel { width: 100%; height: 48%; border-left: 0; border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(16,24,40,.08); }
  .kpanel .hd h2 { font-size: 24px; }
  .kiosk .ph .t small { display: none; }
  .ksearch { padding: 10px 12px; }
  .ksearch .search input { font-size: 19px; padding: 14px 52px 14px 54px; }
  .ksearch .hint { display: none; }
  .kres { left: 12px; right: 12px; }
  .kb button { width: 8.6vw; height: 48px; font-size: 18px; }
  .kb button.w { width: 16vw; }
  .kb button.sp { width: 34vw; }
  .kmap .legend { display: none; }
  .kiosk .ph .clock { display: none; }
}

/* ============================================================
   cauta.php – aplicația de check-in
   ============================================================ */
.cauta .ph { padding-top: calc(10px + env(safe-area-inset-top)); }
.cauta .ph .ib { width: 38px; height: 38px; }
.cauta .ph .ib svg { width: 20px; height: 20px; }
.cauta .ph .ib.off .on { display: none; }
.cauta .ph .ib.off { opacity: .55; }
.net { display: flex; align-items: center; gap: 6px; font-size: 11.5px; opacity: .85; white-space: nowrap; }
.net i { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.net.off i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.25); }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; padding: 12px 14px 10px; background: #fff; border-bottom: 1px solid var(--border); position: relative; flex: none; }
.stats .st { text-align: center; line-height: 1.05; }
.stats .st b { display: block; font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.stats .st small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 700; }
.stats .st.ok b { color: #15803d; }
.stats .st.acc b { color: var(--accent); }
.stats .bar { grid-column: 1 / -1; height: 6px; background: #e9eef5; border-radius: 999px; overflow: hidden; }
.stats .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #15803d, #34d399); border-radius: 999px; transition: width .4s; }
.cauta .box { padding: 12px 14px 8px; }
.cauta .chips { display: flex; gap: 6px; margin-top: 8px; }
.chip { flex: 1; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 10px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.chip span { font-weight: 600; opacity: .7; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.on span { opacity: .8; }
.res li.present { background: #f2fbf5; border-color: #bfe8cc; }
.res .when { display: inline-block; margin-left: 8px; color: #15803d; font-weight: 700; font-size: 12px; }
.res .ck { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 2.5px solid #c9d2df; background: #fff; color: #c9d2df; display: flex; align-items: center; justify-content: center; transition: transform .1s, background .15s, border-color .15s, color .15s; }
.res .ck svg { width: 24px; height: 24px; }
.res .ck:active { transform: scale(.9); }
.res .ck.on { background: #16a34a; border-color: #16a34a; color: #fff; box-shadow: 0 6px 16px rgba(22,163,74,.35); }
.res li.grp { background: var(--navy); color: #fff; border-color: var(--navy); padding: 8px 14px; margin-top: 4px; cursor: default; }
.res li.grp span { flex: 1; font-weight: 700; font-size: 14px; }
.res li.grp small { font-weight: 500; opacity: .8; margin-left: 6px; }
.res li.grp .all { border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.res.small li { padding: 8px 12px; margin-bottom: 6px; cursor: default; }
.res.small .nm { font-size: 15px; }
.res.small .tn { min-width: 58px; padding: 4px 8px; }
.res.small .tn b { font-size: 18px; }
.dcard { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.dcard h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.crow { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.crow .badge { width: 96px; justify-content: center; }
.crow .cbar { flex: 1; height: 8px; background: #e9eef5; border-radius: 999px; overflow: hidden; }
.crow .cbar i { display: block; height: 100%; background: #16a34a; border-radius: 999px; }
.crow b { min-width: 30px; text-align: right; }
.crow small { color: var(--muted-2); width: 44px; }
.hintbox { font-size: 12.5px; color: var(--muted); line-height: 1.5; padding: 4px 6px 10px; }
.walk { text-align: center; padding: 0 16px 20px; }
.walk p { margin: 0 0 8px; color: var(--muted); }
.btn-w { border: 0; background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 18px; font-size: 15px; font-weight: 700; }
.pop { position: fixed; z-index: 40; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(16,24,40,.22); padding: 12px 14px; max-width: 320px; font-size: 14px; line-height: 1.45; }
.pop .acts, .sheet .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.b1 { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: 14px; }
.b2 { border: 0; background: var(--navy); color: #fff; border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 14px; }
.pop .b2 { background: #b91c1c; }
.sheet { position: fixed; inset: 0; background: rgba(0,20,45,.5); z-index: 45; display: flex; align-items: flex-end; justify-content: center; }
.sheet-c { background: #fff; width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet-c h3 { margin: 0 0 12px; color: var(--navy); font-size: 18px; }
.sheet-c label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.sheet-c input, .sheet-c select { width: 100%; margin-top: 4px; border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 12px; font-size: 16px; background: #fff; }
.sheet-c .muted { font-size: 12px; color: var(--muted); }
.cauta .toasts { position: fixed; left: 10px; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: stretch; pointer-events: none; }
.cauta .toast { pointer-events: auto; background: #1e293b; color: #fff; padding: 12px 14px; border-radius: 12px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .3s; }
.cauta .toast.ok { background: #166534; }
.cauta .toast.err { background: #991b1b; }
.cauta .toast button { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 14px; }
.install { position: sticky; bottom: 0; z-index: 30; padding: 0 10px calc(8px + env(safe-area-inset-bottom)); }
.install-c { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.4; box-shadow: 0 8px 24px rgba(0,20,45,.3); }
.install-c span { flex: 1; }
.install-c .b2 { background: var(--accent); padding: 8px 12px; }
.install-c .x { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 30px; height: 30px; border-radius: 50%; flex: none; }
@media (min-width: 700px) {
  .cauta .stats, .cauta .install { max-width: 720px; width: 100%; margin: 0 auto; }
  .cauta .stats { border: 1px solid var(--border); border-radius: 0 0 14px 14px; }
}
/* kiosk – confirmare prezență */
.kpanel .me { margin: 10px 12px 0; background: #f2fbf5; border: 1px solid #bfe8cc; border-radius: 14px; padding: 12px 14px; }
.kpanel .me b { display: block; font-size: 16px; margin-bottom: 4px; }
.kpanel .me .muted { color: var(--muted); font-size: 13px; }
.kpanel .me .b2 { width: 100%; margin-top: 10px; padding: 14px; font-size: 17px; background: #16a34a; border-radius: 12px; }
.kpanel .me.done { background: #e8f7ee; }
.kpanel .me.done .ok { display: flex; align-items: center; gap: 8px; color: #15803d; font-weight: 800; font-size: 17px; margin-top: 4px; }
.kconfirm { position: fixed; inset: 0; background: rgba(0,20,45,.55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.kconfirm .c { background: #fff; border-radius: 20px; padding: 26px 26px 20px; max-width: 520px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0,20,45,.4); }
.kconfirm h2 { margin: 0 0 6px; font-size: 26px; color: var(--navy); }
.kconfirm p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.kconfirm .acts { display: flex; gap: 10px; }
.kconfirm .acts button { flex: 1; padding: 16px; font-size: 18px; border-radius: 14px; }
.kconfirm .b2 { background: #16a34a; }
.res .pres { color: #16a34a; display: inline-flex; }

/* selector de limbă (kiosk) */
.langs { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; overflow: hidden; margin-right: 4px; }
.langs button { border: 0; background: rgba(255,255,255,.08); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px; padding: 0 12px; height: 42px; border-right: 1px solid rgba(255,255,255,.2); }
.langs button:last-child { border-right: 0; }
.langs button.on { background: var(--accent); color: #fff; }
.langs.big { margin: 26px 0 0; border-color: rgba(255,255,255,.4); border-radius: 14px; }
.langs.big button { height: 56px; padding: 0 26px; font-size: 18px; font-weight: 700; letter-spacing: 0; background: rgba(255,255,255,.08); }
.langs.big button.on { background: var(--accent); }
@media (max-width: 900px), (orientation: portrait) {
  .langs button { padding: 0 9px; font-size: 12px; }
  .langs.big button { padding: 0 16px; font-size: 16px; height: 50px; }
}

/* ---------- cauta.php: ecran de parolă ---------- */
.cklock { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px 40px; background: radial-gradient(120% 90% at 50% 0%, #0b4d84 0%, var(--navy) 55%, #002a4d 100%); }
.cklock-c { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 26px 22px 22px; box-shadow: 0 24px 60px rgba(0,20,45,.35); text-align: center; animation: cklockIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes cklockIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.cklock .lock-ic { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-100); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.cklock .lock-ic svg { width: 32px; height: 32px; }
.cklock h1 { margin: 0 0 6px; font-size: 22px; color: var(--navy); }
.cklock p { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cklock label { display: block; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.cklock .pwrow { position: relative; }
.cklock input { width: 100%; border: 2px solid var(--border); border-radius: 14px; padding: 14px 52px 14px 16px; font-size: 20px; letter-spacing: 2px; outline: none; transition: border-color .15s, box-shadow .15s; }
.cklock input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,163,224,.18); }
.cklock input[aria-invalid="true"] { border-color: #dc2626; animation: cklockShake .35s; }
@keyframes cklockShake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cklock .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 50%; }
.cklock .eye svg { width: 22px; height: 22px; }
.cklock .err { margin-top: 10px; color: #b91c1c; font-size: 13px; font-weight: 600; }
.cklock .go { width: 100%; margin-top: 16px; border: 0; background: var(--accent); color: #fff; border-radius: 14px; padding: 14px; font-size: 17px; font-weight: 800; letter-spacing: .3px; box-shadow: 0 8px 20px rgba(0,163,224,.35); }
.cklock .go:active { transform: translateY(1px); }
.ph a.ib { text-decoration: none; }
/* ---------- cauta.php: căutare după numărul mesei ---------- */
.tpick { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 12px; }
.tpick button { border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.1; min-width: 64px; }
.tpick button small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted-2); font-weight: 700; margin-bottom: 2px; }
.tpick button:active { background: var(--accent-100); }
.tpick .lbl { flex-basis: 100%; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: -2px; }
.res li.grp.tbl-h { background: var(--accent); border-color: var(--accent); }
.res li.grp.tbl-h .all { background: var(--navy); }

/* ---------- cauta.php: selector de mese (din contor) ---------- */
.stats .st.tbls { border: 1.5px solid var(--border); background: var(--bg); border-radius: 12px; padding: 4px 4px 5px; margin: -4px 0; font: inherit; color: inherit; }
.stats .st.tbls b { color: var(--navy); }
.stats .st.tbls small { display: inline-flex; align-items: center; gap: 2px; color: var(--navy); }
.stats .st.tbls small svg { width: 11px; height: 11px; }
.stats .st.tbls:active { background: var(--accent-100); }
.tsheet .sheet-c { max-height: 82vh; display: flex; flex-direction: column; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.tsheet h3 { display: flex; align-items: center; gap: 8px; }
.tsheet h3 small { font-weight: 600; color: var(--muted); font-size: 13px; }
.tsheet h3 .x { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef2f7; color: var(--muted); font-size: 16px; }
.tsheet .tfilter { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 16px; margin-bottom: 8px; outline: none; }
.tsheet .tfilter:focus { border-color: var(--accent); }
.tsheet .tlist { overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; padding: 0 6px; }
.tsheet .trow { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-bottom: 1px solid var(--border); background: none; padding: 9px 4px; text-align: left; font: inherit; color: inherit; }
.tsheet .trow:active { background: var(--accent-100); }
.tsheet .trow .tn { flex: none; min-width: 64px; padding: 4px 8px; text-align: center; background: var(--navy); color: #fff; border-radius: 10px; line-height: 1.05; }
.tsheet .trow .tn small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .6px; opacity: .8; }
.tsheet .trow .tn b { display: block; font-size: 20px; }
.tsheet .trow .ti { flex: 1; min-width: 0; }
.tsheet .trow .ti .z { font-size: 12.5px; color: var(--muted); }
.tsheet .trow .ti .m { font-size: 13.5px; font-weight: 700; }
.tsheet .trow .ti .m .ok { color: #15803d; }
.tsheet .trow .pb { width: 64px; height: 6px; background: #e9eef5; border-radius: 999px; overflow: hidden; flex: none; }
.tsheet .trow .pb i { display: block; height: 100%; background: linear-gradient(90deg, #15803d, #34d399); }
.tsheet .trow.full .pb i { background: var(--accent); }
.tsheet .trow.empty .tn { background: #e9ecf1; color: var(--muted); }
@media (max-width: 360px) { .stats .st b { font-size: 24px; } .stats .st small { font-size: 9.5px; letter-spacing: .4px; } }
