/* Shared chrome for staff apps: Restaurant, Rider, Admin */
.staff-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(circle at 15% 10%, rgba(253,210,3,.22) 0, transparent 40%),
  radial-gradient(circle at 90% 90%, rgba(235,2,0,.14) 0, transparent 40%), var(--fb-black); }
.staff-login .panel { width: 100%; max-width: 400px; background: #fff; border-radius: 26px; padding: 26px 22px; box-shadow: var(--fb-shadow-3); }
.staff-login .head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 20px; }
.staff-login .head img { width: 120px; height: auto; margin-top: -70px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.app-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--fb-black); color: var(--fb-yellow); border-radius: var(--fb-r-pill); padding: 4px 12px; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.demo-creds { margin-top: 16px; background: var(--fb-yellow-wash); border: 1.5px dashed var(--fb-amber); border-radius: 14px; padding: 10px 12px; font-size: 13px; }
.demo-creds button { background: none; border: 0; padding: 2px 0; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }

.staffbar { background: var(--fb-black); color: #fff; padding: 10px 14px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; }
.staffbar img { width: 38px; height: 38px; border-radius: 10px; background: var(--fb-yellow); object-fit: cover; }
.staffbar .title { font-family: var(--fb-font-display); font-weight: 800; font-size: 18px; line-height: 1.1; }
.staffbar .sub { font-size: 12px; color: rgba(255,255,255,.65); }
.staffbar .icon-btn { color: #fff; }
.staffbar .icon-btn:hover { background: rgba(255,255,255,.1); }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.7); }
.conn .dot { background: #9A958F; }
.conn.on .dot { background: #3DDC6E; box-shadow: 0 0 0 3px rgba(61,220,110,.2); }

.tabs { display: flex; gap: 4px; padding: 8px 12px 0; background: var(--fb-black); overflow-x: auto; scrollbar-width: none; position: sticky; top: 58px; z-index: 29; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; color: rgba(255,255,255,.65); font-weight: 800; padding: 10px 14px 12px; border-radius: 12px 12px 0 0; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.tabs button.on { background: var(--fb-bg); color: var(--fb-black); }
.tabs .count { background: var(--fb-red); color: #fff; border-radius: var(--fb-r-pill); padding: 0 7px; font-size: 12px; min-width: 20px; text-align: center; }
.tabs button.on .count { background: var(--fb-black); color: var(--fb-yellow); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--fb-line); border-radius: 16px; padding: 12px 14px; }
.stat .k { font-size: 12px; font-weight: 800; color: var(--fb-ink-3); text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-family: var(--fb-font-display); font-weight: 800; font-size: 24px; margin-top: 2px; }
.stat.hl { background: var(--fb-yellow); border-color: var(--fb-black); box-shadow: 0 3px 0 var(--fb-black); }
.stat.hl .k { color: rgba(19,18,19,.7); }
.stat.dark { background: var(--fb-black); color: #fff; border-color: var(--fb-black); }
.stat.dark .k { color: rgba(255,255,255,.6); }
.stat.dark .v { color: var(--fb-yellow); }

.ticket { background: #fff; border-radius: 20px; border: 1px solid var(--fb-line); box-shadow: var(--fb-shadow-1); overflow: hidden; }
.ticket.new { border: 2px solid var(--fb-red); box-shadow: 0 0 0 4px var(--fb-red-soft), var(--fb-shadow-2); animation: fbring 1.6s infinite; }
@keyframes fbring { 50% { box-shadow: 0 0 0 8px rgba(235,2,0,.08), var(--fb-shadow-2); } }
.ticket-head { padding: 12px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1.5px dashed var(--fb-line-2); }
.ticket-head .code { font-family: var(--fb-font-display); font-weight: 800; font-size: 18px; }
.ticket-body { padding: 12px 14px; }
.ticket-items .it { display: flex; gap: 10px; padding: 3px 0; }
.ticket-items .q { font-weight: 800; min-width: 30px; }
.ticket-foot { padding: 12px 14px; display: flex; gap: 8px; background: #FCFBF8; border-top: 1px solid var(--fb-line); }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.timer.late { color: var(--fb-red); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.grid-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 400px) { .grid-tickets { grid-template-columns: 1fr; } }
