/* =====================================================================
   Tijara product tour – simulator-only styles
   ---------------------------------------------------------------------
   Everything the simulated screens need that is NOT in the app's own
   stylesheets (those come from tour/css/*.sim.css, generated from the
   real files). Kept small on purpose:
     1. the demo role switcher (a tour control, not part of Tijara)
     2. narrow screens: the staff rail becomes a scrolling strip and the
        till stacks, so every tour target is visible on a phone
     3. the two standalone sign-in pages whose CSS lives inline in their
        Razor views (/store/login, /mobile/driver/login), scoped here
     4. layering against the tour player (modals under the spotlight,
        bottom tab bars lifted above the player bar)
   ===================================================================== */

/* ---------- 1. demo role switcher ---------- */
.tj-demo{position:fixed;top:72px;right:0;z-index:600;font-family:'Inter',-apple-system,'Segoe UI',Roboto,sans-serif}
.tj-demo-tab{writing-mode:vertical-rl;transform:rotate(180deg);background:#03262A;color:#fff;border:0;border-radius:0 10px 10px 0;padding:14px 8px;font-size:12px;font-weight:600;letter-spacing:.04em;cursor:pointer;box-shadow:0 8px 24px rgba(3,38,42,.3)}
.tj-demo-tab::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#F47B20;margin-bottom:8px}
.tj-demo-menu{position:absolute;top:0;right:40px;width:280px;max-height:calc(100vh - 200px);overflow:auto;background:#fff;border:1px solid #E4E9F0;border-radius:14px;box-shadow:0 20px 44px -18px rgba(6,58,64,.45);padding:6px}
.tj-demo-menu .h{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8A97A8;padding:8px 10px 6px}
.tj-demo-menu .h small{display:block;text-transform:none;letter-spacing:0;font-weight:500;margin-top:2px}
.tj-demo-menu button{display:block;width:100%;text-align:left;border:0;background:none;border-radius:10px;padding:8px 10px;cursor:pointer;color:#0B2A2E}
.tj-demo-menu button:hover{background:#ECF7F5}
.tj-demo-menu b{display:block;font-size:13.5px;font-weight:600}
.tj-demo-menu small{display:block;font-size:12px;color:#475569}

/* ---------- 2. narrow screens ---------- */
@media (max-width:960px){
  /* The real rail slides in from a burger; in the tour it stays on screen as a strip so steps can point at it. */
  .sim-lx .lx-wrap{flex-direction:column}
  .sim-lx .lx-side{position:sticky;top:0;z-index:30;transform:none;width:100%;flex:none;height:auto;flex-direction:row;align-items:center;overflow-x:auto;overflow-y:hidden;border-inline-end:0;border-bottom:1px solid var(--side-line);scrollbar-width:none}
  .sim-lx .lx-side::-webkit-scrollbar{display:none}
  .sim-lx .lx-brand{border-bottom:0;padding:8px 10px;flex:none}
  .sim-lx .lx-brand .mw0,.sim-lx .lx-brand > div:not(.mark){display:none}
  .sim-lx .lx-nav{display:flex;flex:none;padding:6px 8px;gap:2px}
  .sim-lx .lx-nav .sec,.sim-lx .lx-user,.sim-lx .lx-burger{display:none}
  .sim-lx .lx-nav a{white-space:nowrap;flex:none}
  .sim-lx .lx-nav a.on::before{display:none}
  .sim-lx .lx-top{position:static}
  .sim-lx .lx-main{width:100%}
}
@media (max-width:720px){
  .sim-lx .lx-content{padding:16px}
  /* the bell sits 70px from the right edge; keep its menu inside a phone screen */
  .sim-lx .lx-top .dropdown-menu.show{width:min(340px,calc(100vw - 24px))!important;right:-58px!important}
  .sim-lx .board{grid-template-columns:1fr}
}
@media (max-width:860px){
  .sim-pos.pos-body{height:auto;min-height:100vh;overflow:visible}
  .sim-pos #posTopBar{flex-wrap:wrap;gap:6px}
  .sim-pos .pos-container{grid-template-columns:1fr}
  .sim-pos .pos-products{border-right:0}
  .sim-pos .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
  .sim-pos .bill-lines{overflow:visible;min-height:80px}
}

/* ---------- 3. standalone sign-in pages (inline <style> of their views) ---------- */
/* /store/login — Views/Store/Login.cshtml */
.sim-storelogin{background:#F4F7F4;margin:0;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,sans-serif;box-sizing:border-box}
.sim-storelogin *{box-sizing:border-box}
.sim-storelogin .sh{width:100%;max-width:420px;background:#fff;border-radius:16px;overflow:hidden;border:1px solid rgba(0,0,0,.07)}
.sim-storelogin .sh-hd{background:#2E7D32;color:#fff;padding:26px 26px 22px}
.sim-storelogin .sh-hd h1{font-size:21px;font-weight:800;margin:0}.sim-storelogin .sh-hd p{margin:6px 0 0;opacity:.85;font-size:13px}
.sim-storelogin .sh-bd{padding:24px 26px 28px}
.sim-storelogin .lbl{font-size:12px;color:#5C6B5C;font-weight:600;margin-bottom:4px;display:block}
.sim-storelogin .inp{width:100%;padding:11px 13px;border:1px solid #DCE3DC;border-radius:9px;font-size:15px;margin-bottom:14px;background:#F8FAF8}
.sim-storelogin .btn-go{width:100%;background:#2E7D32;color:#fff;border:none;border-radius:9px;padding:12px;font-size:15px;font-weight:700;cursor:pointer}
.sim-storelogin .alt{text-align:center;margin-top:16px;font-size:13.5px;color:#5C6B5C}.sim-storelogin .alt a{color:#2E7D32;font-weight:600;text-decoration:none}
/* /mobile/driver/login — Views/Driver/Login.cshtml */
.sim-driver .d-login{min-height:100dvh;display:flex;flex-direction:column;background:var(--canvas);padding-bottom:28px}
.sim-driver .d-hero{position:relative;overflow:hidden;color:#fff;padding:28px 22px 64px;background:radial-gradient(320px 220px at 100% 0%,rgba(244,123,32,.32),transparent 65%),linear-gradient(160deg,#03262A 0%,var(--navy-900) 55%,var(--navy-700) 100%);box-shadow:inset 0 -3px 0 var(--brand-orange)}
.sim-driver .d-hero .d-eyebrow{color:#FDB515;margin-top:18px}
.sim-driver .d-hero .hi{font-size:14px;color:#CDE4E3;margin-top:6px}
.sim-driver .d-hero h1{font-size:26px;line-height:32px;font-weight:800;margin:4px 0 0;color:#fff}
.sim-driver .d-brandrow{display:flex;align-items:center;gap:12px}
.sim-driver .d-mark{width:52px;height:52px;border-radius:14px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);color:#fff;display:grid;place-items:center;font-weight:700;font-size:18px;flex:0 0 52px}
.sim-driver .d-badge{background:#fff;border-radius:12px;padding:6px 10px;display:inline-flex;box-shadow:0 8px 22px rgba(0,0,0,.25);margin-inline-start:auto}
.sim-driver .d-badge img{height:30px;width:auto;display:block}
.sim-driver .d-login .d-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;margin:-40px 16px 0;padding:24px 20px 20px;position:relative;box-shadow:0 24px 44px -20px rgba(6,58,64,.30)}
.sim-driver .d-login .d-card .d-btn.pri{margin-top:6px;border-radius:14px}
.sim-driver .d-ios{margin-top:22px;font-size:13px;line-height:19px;color:var(--text-3)}
/* driver.css draws the 560px app column on a grey page (html background) */
.tj-driver-page{min-height:100vh;background:#E9EDF2}
.sim-driver.d-app{display:flex;flex-direction:column;min-height:100vh}

/* ---------- 4. layering against the player ---------- */
/* App modals sit under the spotlight (z 890), so the highlight ring stays visible on them. */
.sim-lx .modal{z-index:850}.sim-lx .modal-backdrop{z-index:845}
/* Lift the fixed bottom tab bars above the player bar while the tour plays (like the reference's dock rule). */
body.bp-touring:not(.bp-bar-top) .sim-shop .shop-bottomnav{bottom:96px}
body.bp-touring:not(.bp-bar-top) .sim-driver .d-tabs{bottom:96px}
@media (max-width:640px){
  body.bp-touring:not(.bp-bar-top) .sim-shop .shop-bottomnav,
  body.bp-touring:not(.bp-bar-top) .sim-driver .d-tabs{bottom:128px}
  .tj-demo{top:auto;bottom:220px}
}
