/* Compact POS sidebar with a quiet workspace and blue active accents. */
:root {
  --lx-side-width: 232px;
  --lx-side-ink: #44516b;
  --lx-side-accent: #315fe9;
}
#workspace .main {
  margin-left: var(--lx-side-width);
}
#workspace .lx-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--lx-side-width);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e3e8f0;
  z-index: 70;
  padding: 0 14px 18px;
  box-shadow: 2px 0 8px #14213b03;
}
.lx-sidebar-brand {
  height: 82px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #eff2f7;
  margin-bottom: 26px;
  flex-shrink: 0;
}
.lx-sidebar .lx-logo-title {
  color: #18253d;
  letter-spacing: -0.04em;
  font-size: 22px;
}
.lx-sidebar .lx-logo-title span {
  color: #315fe9;
  background: #eef3ff;
  border-color: #dae5ff;
  font-size: 10px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.lx-sidebar-caption {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
  color: #99a3b5;
  padding: 0 16px;
  margin: 0 0 12px;
}
#workspace .lx-sidebar #nav {
  display: block;
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding: 0 0 12px;
  max-height: none;
  order: initial;
}
.lx-sidebar .lx-menu-bar {
  display: block;
}
.lx-sidebar .lx-menu-item {
  margin-bottom: 5px;
}
.lx-sidebar .lx-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 13px;
  gap: 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lx-side-ink);
  font-size: 12px;
  font-weight: 550;
  text-align: left;
  min-height: 44px;
}
.lx-side-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #7d8da6;
}
.lx-menu-label {
  flex: 1;
}
.lx-chevron {
  color: #8e9ab0;
  font-size: 15px;
  transition: transform 0.15s;
}
.lx-sidebar .lx-menu-btn[aria-expanded="true"] .lx-chevron {
  transform: rotate(180deg);
}
.lx-sidebar .lx-menu-btn:hover {
  background: #f5f7fb;
  color: #243b67;
}
.lx-sidebar .lx-menu-item.active > .lx-menu-btn {
  color: #234fcd;
  background: #edf2ff;
}
.lx-sidebar .lx-menu-item.active > .lx-menu-btn .lx-side-icon {
  color: #315fe9;
}
.lx-sidebar .lx-sub-menu {
  position: static;
  box-shadow: none;
  min-width: 0;
  max-width: none;
  border: 0;
  border-left: 1px solid #e6ebf4;
  margin: 6px 0 12px 22px;
  border-radius: 0;
  padding: 0 0 0 10px;
  background: transparent;
}
.lx-sidebar .lx-sub-menu button {
  font-size: 11px;
  min-height: 37px;
  padding: 9px 9px;
  gap: 5px;
  color: #738099;
  line-height: 1.4;
  white-space: normal;
}
.lx-sidebar .lx-sub-menu button:hover:enabled {
  background: #f4f7fd;
  color: #234fcd;
}
.lx-sidebar .lx-sub-menu button[aria-current="page"] {
  background: #eff4ff;
  color: #2453d6;
  font-weight: 650;
  box-shadow: inset 2px 0 #315fe9;
}
.lx-sidebar .lx-sub-menu small {
  font-size: 8px;
  white-space: normal;
  max-width: 72px;
  text-align: right;
  background: transparent;
  padding: 0;
  color: #9ca7b9;
}
.lx-sidebar .lx-sub-menu button:disabled {
  color: #a1aabd;
}
.lx-sidebar-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #edf0f6;
  padding: 18px 8px 0;
  font-size: 8px;
  color: #7f8ca3;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.lx-sidebar-footer small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0;
  color: #9aa5b7;
}
.lx-suite-mark {
  font-size: 12px;
  font-weight: 750;
  color: #315fe9;
  background: #eff4ff;
  border-radius: 8px;
  padding: 9px;
}
#workspace .lx-nav-header {
  background: white;
  color: #273750;
  border-bottom: 1px solid #e6ebf2;
  box-shadow: none;
  min-height: 64px;
  padding: 0 28px;
  gap: 12px;
  flex-wrap: nowrap;
}
.lx-header-title {
  font-size: 13px;
  font-weight: 650;
  color: #24334e;
}
.lx-header-title small {
  display: block;
  font-size: 10px;
  color: #98a2b4;
  font-weight: 400;
  margin-top: 3px;
}
.lx-operator {
  color: #52617b;
  display: block;
}
.lx-session-status {
  color: #78869d;
  font-size: 10px;
}
.lx-exit {
  background: #f7f9fc;
  border-color: #e3e9f2;
  color: #51617b;
  border-radius: 6px;
}
.lx-context-bar {
  background: #fff;
  padding: 11px 28px;
}
.lx-context-bar select {
  font-size: 11px;
}
.lx-outlet-badge {
  background: #f8faff;
  border-color: #e6edf7;
  color: #72819a;
}
#workspace main {
  padding: 26px 28px;
}
#workspace main > #content > .page-heading h1 {
  font-size: 25px;
}
.lx-workspace-container {
  gap: 22px;
}
.lx-till-card {
  padding: 20px;
  border-radius: 10px;
  box-shadow: none;
}
.lx-till-header h3 {
  font-size: 15px;
}
.lx-register-controls > .card {
  border-radius: 10px;
  box-shadow: none;
}
#pos-sidebar-close,
#pos-nav-backdrop {
  display: none;
}
@media (min-width: 1024px) {
  #workspace #pos-menu-toggle {
    display: none;
  }
  #workspace .lx-sidebar {
    visibility: visible;
    transform: none;
  }
}
@media (max-width: 1100px) {
  .lx-session-status {
    display: none;
  }
  .lx-operator {
    max-width: 120px;
  }
  .lx-workspace-container {
    grid-template-columns: 1fr;
  }
  .lx-register-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (max-width: 1023px) {
  #workspace .main {
    margin-left: 0;
  }
  #workspace .lx-sidebar {
    width: min(280px, 85vw);
    visibility: hidden;
    transform: translateX(-100%);
    transition:
      transform 0.18s ease,
      visibility 0.18s;
  }
  .lx-sidebar[data-open="true"] {
    visibility: visible !important;
    transform: translateX(0) !important;
  }
  #workspace #pos-menu-toggle {
    display: flex;
    margin-left: 0;
    order: -1;
    color: #425573;
    background: #f6f8fc;
    border: 1px solid #e2e9f3;
    font-size: 11px;
    padding: 9px 10px;
  }
  #workspace .lx-nav-header {
    padding: 12px 16px;
    min-height: 64px;
  }
  .lx-header-title {
    font-size: 12px;
  }
  .lx-header-title small {
    display: none;
  }
  .lx-context-meta {
    margin-left: auto;
  }
  .lx-operator {
    display: none;
  }
  #pos-sidebar-close {
    display: block;
    margin-left: auto;
    background: transparent;
    color: #65748d;
    font-size: 24px;
    border: 0;
    padding: 7px 10px;
  }
  .lx-sidebar-brand {
    margin-bottom: 22px;
  }
  .lx-context-bar {
    padding: 12px 16px;
  }
  #workspace main {
    padding: 22px 16px;
  }
  .lx-register-controls {
    display: block;
  }
  .lx-register-controls > .section {
    margin-top: 18px;
  }
  #pos-nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #15223980;
    border: 0;
    border-radius: 0;
    z-index: 65;
    cursor: default;
  }
  body:has(#pos-sidebar[data-open="true"]) {
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  #workspace .lx-sidebar,
  .lx-chevron {
    transition: none;
  }
}
@media (max-width: 1023px) {
  #workspace #pos-menu-toggle {
    width: auto;
    flex: 0 0 auto;
  }
  .lx-header-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
  }
  .lx-context-meta {
    flex: 0 0 auto;
    gap: 0;
  }
  .lx-exit {
    padding: 8px 10px;
    font-size: 10px;
  }
}
