/* HB Cafe – employee app (brief §6). Phone first; two columns on wide screens (Teams desktop). Flex-wrap layouts (FIX-07). */
body.emp { font-size: 15px; }
.e-bar { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); color: #fff; display: flex; align-items: center; gap: 8px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
.e-bar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; flex: 1; min-width: 0; }
.e-bar .brand img { width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto; }
.e-bar .brand .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.e-bar .btn { flex: 0 0 auto; }
@media (max-width: 600px) {
  .e-bar { gap: 6px; padding-inline: 10px; }
  .e-bar .btn .lbl { display: none; }
  .e-bar .btn.small:has(.lbl) { width: 38px; padding: 0; }
  .e-bar .brand { font-size: 16px; gap: 8px; }
}
.e-bar .btn { background: transparent; color: #fff; border-color: rgba(172, 204, 93, .6); min-height: 36px; }
.e-bar .btn:hover { border-color: var(--lime); }
.e-bar .back { width: 40px; padding: 0; }
[dir="rtl"] .e-bar .back svg { transform: scaleX(-1); }
.e-main { max-width: 1100px; margin: 0 auto; padding: 16px 14px 120px; display: flex; flex-direction: column; gap: 14px; }
.e-main h2 { margin: 0; font-size: 17px; }
.e-hello { font-size: 22px; font-weight: 800; margin: 0; }
.offline { background: var(--bad); color: #fff; text-align: center; padding: 6px 10px; font-weight: 700; }

/* where */
.where { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; border-inline-start: 5px solid var(--lime); }
.where > svg.i { width: 26px; height: 26px; color: var(--green); }
.where .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.where .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.where .room { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.where .sub { font-size: 13px; color: var(--muted); }

/* big actions */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.big { flex: 1 1 240px; min-height: 120px; border: 0; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-align: start; color: #fff; box-shadow: var(--shadow-lg); }
.big.drink { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.big.call { background: linear-gradient(135deg, #8a5a00, #5c3d00); }
.big svg.i { width: 54px; height: 54px; stroke-width: 1.6; background: rgba(255, 255, 255, .14); border-radius: 16px; padding: 8px; }
.big .t { font-size: 21px; font-weight: 800; display: block; }
.big .s { font-size: 13px; opacity: .85; }
.big[disabled] { filter: grayscale(.8); opacity: .55; cursor: not-allowed; }

/* quick chips (repeat / favourites) */
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; min-height: 40px; padding: 0 6px 0 14px; cursor: pointer; font-weight: 600; }
.qchip > span { padding-inline-end: 8px; }
.qchip .x { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.qchip .x:hover { background: var(--surface-2); }
.qchip svg.i { color: var(--green); }

/* request cards */
.reqs { display: flex; flex-direction: column; gap: 10px; }
.req { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; border-inline-start: 5px solid var(--green); }
.req.call { border-inline-start-color: #8a5a00; }
.req.new { animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(.97); box-shadow: 0 0 0 4px var(--lime); } 100% { transform: none; } }
.req .top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.req .no { font-weight: 800; font-size: 16px; direction: ltr; unicode-bidi: isolate; }
.req .what { flex: 1 1 200px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.req .when { font-size: 12px; color: var(--muted); }
.req .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.track { display: flex; gap: 4px; align-items: flex-start; }
.track .st { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); text-align: center; min-width: 0; }
.track .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; background: var(--surface); }
.track .dot svg.i { width: 16px; height: 16px; }
.track .bar { flex: 1 1 0; height: 3px; background: var(--line-strong); margin-top: 14px; border-radius: 2px; min-width: 6px; }
.track .st.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.track .st.done, .track .st.cur { color: var(--ink); font-weight: 700; }
.track .st.cur .dot { border-color: var(--green); box-shadow: 0 0 0 4px rgba(172, 204, 93, .5); animation: pulse 1.6s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(172, 204, 93, .15); } }
.track .bar.done { background: var(--green); }
.recent-item { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.recent-item:first-child { border-top: 0; }
.recent-item .what { flex: 1 1 180px; font-size: 13px; color: var(--muted); }
.thumbs { display: inline-flex; gap: 6px; }
.thumbs button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.thumbs button.down svg { transform: rotate(180deg); }
.thumbs button.on { background: var(--pale); border-color: var(--green); color: var(--green); }

/* order screen */
.order-layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.order-layout > .menu-col { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.order-layout > .cart-col { flex: 1 1 320px; min-width: 0; position: sticky; top: 70px; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.cats button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; min-height: 36px; padding: 0 14px; cursor: pointer; white-space: nowrap; font-weight: 600; }
.cats button.on { background: var(--green); border-color: var(--green); color: #fff; }
.drinks { display: flex; flex-wrap: wrap; gap: 10px; }
.dcard { position: relative; flex: 0 1 172px; min-width: 140px; min-height: 128px; border: 2px solid transparent; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; text-align: center; font-weight: 700; }
.dcard svg.i { width: 46px; height: 46px; stroke-width: 1.5; color: var(--green-dark); }
:root[data-theme="dark"] .dcard svg.i { color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dcard svg.i { color: var(--lime); } }
.dcard:hover { border-color: var(--lime); }
.dcard.in { border-color: var(--green); background: var(--pale); }
.dcard .qty { position: absolute; top: 8px; inset-inline-end: 8px; background: var(--green); color: #fff; border-radius: 999px; min-width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 15px; padding: 0 6px; }
.dcard[disabled] { opacity: .5; cursor: not-allowed; }
.dcard .oos { font-size: 11px; color: var(--bad); border: 1px solid var(--bad); border-radius: 999px; padding: 0 8px; }
.cart { display: flex; flex-direction: column; gap: 10px; }
.line { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.line .head { display: flex; align-items: center; gap: 10px; }
.line .head svg.i { width: 28px; height: 28px; color: var(--green); }
.line .head .name { flex: 1; font-weight: 700; min-width: 0; }
.stepper { direction: ltr; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--surface-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.stepper button[disabled] { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 38px; text-align: center; font-weight: 800; font-size: 17px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; min-height: 38px; padding: 0 10px; cursor: pointer; font-size: 13px; }
.opt.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.opt svg.i { width: 20px; height: 20px; }
.linkish { border: 0; background: transparent; color: var(--green); cursor: pointer; padding: 4px 0; font-weight: 600; align-self: flex-start; }
.sendbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(22, 50, 31, .12); padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.sendbar .in { max-width: 1100px; margin: 0 auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sendbar .info { flex: 1 1 160px; font-size: 13px; color: var(--muted); }
.sendbar .btn.primary { min-height: 52px; font-size: 17px; padding: 0 26px; flex: 1 1 220px; border-radius: 14px; }

/* call screen */
.reasons { display: flex; flex-wrap: wrap; gap: 10px; }
.reason { flex: 1 1 150px; min-height: 110px; border: 2px solid var(--line); background: var(--surface); border-radius: 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700; padding: 10px; text-align: center; box-shadow: var(--shadow); }
.reason svg.i { width: 42px; height: 42px; stroke-width: 1.5; color: #8a5a00; }
.reason.on { border-color: #8a5a00; background: var(--cream); }
:root[data-theme="dark"] .reason svg.i { color: #F0B04A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .reason svg.i { color: #F0B04A; } }

/* location picker */
.rooms-group { display: flex; flex-direction: column; gap: 8px; }
.rooms-group h3 { margin: 6px 0 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.rooms { display: flex; flex-wrap: wrap; gap: 8px; }
.roombtn { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; min-height: 56px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 8px 12px; cursor: pointer; text-align: start; font-weight: 700; }
.roombtn svg.i { width: 24px; height: 24px; color: var(--green); }
.roombtn.on { border: 2px solid var(--green); background: var(--pale); }
.roombtn .k { font-size: 12px; color: var(--muted); font-weight: 500; display: block; }

/* done */
.e-main > .done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 0; }
.e-main > .done .ok { width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; animation: pop .6s ease; }
.e-main > .done .ok svg.i { width: 48px; height: 48px; stroke-width: 2.6; }
.e-main > .done .big-no { font-size: 40px; font-weight: 800; letter-spacing: 1px; direction: ltr; }
.e-main > .done .req { width: min(520px, 100%); text-align: start; }
body.emp .toasts { inset-block-end: calc(92px + env(safe-area-inset-bottom)); }
[dir="rtl"] svg.i.flip { transform: scaleX(-1); }
.e-main > .search { flex: 0 0 auto; } /* 0.7.1: search box was stretched tall in the room picker */
.e-bar .btn.icon-only { width: 38px; padding: 0; } /* 0.7.2 theme button */

/* ── room picker: country → branch → building → floors (0.8.2) ── */
.picker { display: flex; flex-direction: column; gap: 14px; }
.picker .rooms-group { align-items: stretch; }
.pick-row { display: flex; flex-direction: column; gap: 6px; }
.pick-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.pchip svg.i { width: 18px; height: 18px; color: var(--green); }
.pchip .sub { font-size: 12px; font-weight: 600; color: var(--muted); }
.pchip.on { background: var(--green); border-color: var(--green); color: #fff; }
.pchip.on .sub, .pchip.on svg.i { color: #fff; opacity: .9; }
.pchip:focus-visible { outline: 3px solid var(--lime, #b7d65a); outline-offset: 2px; }
svg.flag { width: 22px; height: 15px; flex: 0 0 auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); vertical-align: -2px; }
.roombtn .k svg.flag { width: 16px; height: 11px; margin-inline-end: 2px; }
.pick-path { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; padding-top: 4px; border-top: 1px solid var(--line); }
