/* Scoped navigation and register layout; no API or authorization replacements. */
:root {
  --lx-slate: #0f172a;
  --lx-border: #dbe3ee;
  --lx-muted: #64748b;
  --lx-blue: #0284c7;
}
#workspace .main {
  margin-left: 0;
  min-width: 0;
}
#workspace .lx-nav-header {
  background: var(--lx-slate);
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  padding: 0 24px;
  height: auto;
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 50;
  border: 0;
  box-shadow: 0 2px 8px #0f172a20;
}
.lx-logo-title {
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.lx-logo-title span {
  font-size: 10px;
  border: 1px solid #475569;
  border-radius: 4px;
  padding: 3px 5px;
  margin-left: 4px;
  color: #7dd3fc;
}
.lx-menu-bar {
  display: flex;
  gap: 3px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lx-menu-item {
  position: relative;
}
.lx-menu-btn {
  display: flex;
  gap: 8px;
  align-items: center;
  background: transparent;
  color: #cbd5e1;
  border: 1px solid transparent;
  padding: 12px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.lx-menu-btn:hover,
.lx-menu-btn[aria-expanded="true"],
.lx-menu-item.active > .lx-menu-btn {
  background: #1e293b;
  color: white;
}
#workspace
  :is(
    .lx-menu-btn,
    .lx-sub-menu button,
    .lx-exit,
    .lx-logo-title
  ):focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}
.lx-sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 245px;
  max-width: calc(100vw - 32px);
  background: white;
  border: 1px solid var(--lx-border);
  border-radius: 9px;
  box-shadow: 0 12px 28px #0f172a25;
  padding: 6px;
  list-style: none;
  z-index: 55;
  margin: 0;
}
.lx-sub-menu[hidden],
#mobile-logout[hidden] {
  display: none !important;
}
.lx-sub-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  color: #1e293b;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 11px 12px;
  border-radius: 5px;
  font-size: 12px;
}
.lx-sub-menu button:hover:enabled,
.lx-sub-menu button[aria-current="page"] {
  background: #eaf3ff;
  color: #0369a1;
}
.lx-sub-menu button:disabled {
  opacity: 1;
  color: #7b8799;
  cursor: not-allowed;
}
.lx-sub-menu small {
  font-size: 9px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 4px;
  padding: 3px 5px;
  white-space: nowrap;
}
.lx-sub-menu kbd {
  font-size: 10px;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 5px;
  border-radius: 3px;
}
.lx-context-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-size: 11px;
  min-width: 0;
}
.lx-operator {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cbd5e1;
}
.lx-session-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  max-width: 190px;
}
.lx-session-status:before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: #64748b;
  border-radius: 50%;
}
.lx-session-status[data-state="active"]:before {
  background: #4ade80;
}
.lx-session-status[data-state="paused"]:before {
  background: #fbbf24;
}
.lx-exit {
  background: #1e293b;
  color: white;
  border: 1px solid #475569;
  padding: 9px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.lx-context-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}
.lx-context-bar .context {
  margin: 0;
  flex-wrap: wrap;
}
.lx-context-bar select {
  max-width: 250px;
}
.lx-outlet-badge {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.lx-context-bar .context label {
  color: #64748b;
}
.lx-workspace-container {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 24px;
  align-items: start;
}
.lx-tills,
.lx-register-controls {
  min-width: 0;
}
.lx-till-card {
  background: white;
  border: 1px solid var(--lx-border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px #0f172a04;
}
.lx-till-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 15px;
}
.lx-till-header h3 {
  margin: 0;
  font-size: 17px;
}
.lx-badge-live {
  background: #e9f9ee !important;
  color: #166534 !important;
}
.lx-till-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}
.lx-till-card dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lx-muted);
  margin-bottom: 7px;
}
.lx-till-card dd {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.lx-register-controls > .section:first-child {
  margin-top: 0;
}
.lx-register-controls form:not(.forms) {
  display: grid;
  gap: 12px;
}
.lx-register-controls label {
  display: grid;
  gap: 6px;
}
.lx-register-controls input,
.lx-register-controls select {
  width: 100%;
  margin: 0;
  max-width: 100%;
}
.lx-register-controls .forms {
  grid-template-columns: 1fr;
}
.lx-register-controls .forms button {
  justify-self: start;
}
.lx-device-card {
  border-top: 3px solid #fbbf24;
}
.lx-float-stepper-grid {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.lx-float-btn {
  font-size: 11px;
  padding: 10px 5px;
  min-height: 38px;
  white-space: nowrap;
}
.lx-register-controls .section {
  scroll-margin-top: 90px;
}
#pos-business-settings,
#pos-register-settings,
#pos-access-settings {
  scroll-margin-top: 90px;
}
#pos-menu-toggle {
  display: none;
}
@media (max-width: 1200px) {
  #workspace .lx-nav-header {
    gap: 12px;
    padding: 0 16px;
    flex-wrap: wrap;
  }
  .lx-context-meta {
    margin-left: auto;
  }
  .lx-session-status {
    max-width: 150px;
  }
  .lx-operator {
    display: none;
  }
  .lx-menu-btn {
    padding: 11px 8px;
  }
}
@media (max-width: 1000px) {
  .lx-workspace-container {
    grid-template-columns: 1fr;
  }
  .lx-register-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .lx-register-controls > .section {
    margin-top: 0;
  }
  .lx-context-meta {
    gap: 8px;
  }
  .lx-session-status {
    display: none;
  }
}
@media (max-width: 760px) {
  #workspace .lx-nav-header {
    padding: 12px 16px;
    gap: 10px;
    min-height: 62px;
  }
  #pos-menu-toggle {
    display: flex;
    margin-left: auto;
  }
  #nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    max-height: 65vh;
    overflow: auto;
    padding: 8px 0;
  }
  #nav[data-open="true"] {
    display: block;
  }
  .lx-menu-bar {
    display: block;
  }
  .lx-menu-btn {
    width: 100%;
    justify-content: space-between;
  }
  .lx-sub-menu {
    position: static;
    max-width: none;
    min-width: 0;
    box-shadow: none;
    margin: 4px 0 8px;
  }
  .lx-context-meta {
    margin-left: 0;
  }
  .lx-context-bar {
    padding: 12px 16px;
    align-items: flex-start;
  }
  .lx-outlet-badge {
    display: none;
  }
  .lx-context-bar select {
    max-width: 180px;
  }
  .lx-context-bar .context label {
    font-size: 10px;
  }
  .lx-register-controls {
    display: block;
  }
  .lx-register-controls > .section {
    margin-top: 18px;
  }
  .lx-till-card dl {
    grid-template-columns: 1fr;
  }
  .lx-float-btn {
    min-height: 42px;
  }
  #workspace main {
    padding: 20px 16px;
  }
  .lx-session-status {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lx-menu-btn,
  .lx-sub-menu button {
    transition: none;
  }
}
