/* ===================================== */
/* GLOBAL POS WRAPPER                    */
/* ===================================== */

.pos-wrapper {
  background: #eef2f7;
  padding: 10px;
  border-radius: 20px;
}

/* ===================================== */
/* TOP BAR (HEADER)                      */
/* ===================================== */

.pos-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 12px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pos-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  color: #2d3436;
  font-weight: 500;
}

.pos-logo {
  font-weight: 700;
  font-size: 18px;
  color: #6c5ce7;
}

.pos-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.pos-time {
  font-size: 18px;
}

.pos-user {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffeaa7;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================== */
/* CATEGORY TABS                         */
/* ===================================== */

.pos-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.pos-tab {
  padding: 10px 18px;
  border-radius: 14px;
  background: #ffffff;
  color: #555;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.pos-tab:hover {
  background: #eef3ff;
}

.pos-tab.active {
  background: linear-gradient(135deg, #ffd166, #ffb703);
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.pos-tab i {
  margin-right: 6px;
}

/* ===================================== */
/* TREE MENU (PREMIUM)                   */
/* ===================================== */

.pos-menu.x-treelist {
  background: #f4f6fb !important;
  padding: 12px !important;
  border-radius: 18px !important;
  border: none !important;
}

.pos-menu .x-treelist-item {
  margin-bottom: 10px !important;
  position: relative !important;
}

.pos-menu .x-treelist-row {
  background: rgba(255,255,255,0.9) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  backdrop-filter: blur(6px) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06) !important;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  cursor: pointer !important;
}

/* HOVER */
.pos-menu .x-treelist-row:hover {
  background: #eef3ff !important;
  transform: translateX(4px) scale(1.02) !important;
}

/* CLICK */
.pos-menu .x-treelist-row:active {
  transform: scale(0.97) !important;
}

/* SELECTED ONLY ITEM */
.pos-menu .x-treelist-item-selected > .x-treelist-row {
  background: linear-gradient(135deg, #ffd166, #ffb703) !important;
  color: #000 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
}

/* LEFT ACTIVE LINE */
.pos-menu .x-treelist-item-selected > .x-treelist-row::before {
  content: '' !important;
  position: absolute !important;
  left: -6px !important;
  top: 10% !important;
  height: 80% !important;
  width: 5px !important;
  border-radius: 10px !important;
  background: #ff9f1c !important;
}

/* TEXT */
.pos-menu .x-treelist-text {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #2d3436 !important;
}

/* ICON */
.pos-menu i.fa,
.pos-menu i.fas {
  font-size: 16px !important;
  width: 20px !important;
  text-align: center !important;
  color: #636e72 !important;
  transition: all 0.3s ease !important;
}

.pos-menu .x-treelist-item-selected i {
  color: #000 !important;
  transform: scale(1.1) !important;
}

/* EXPAND ANIMATION */
.pos-menu .x-treelist-expander {
  transition: transform 0.3s ease !important;
}

.pos-menu .x-treelist-item-expanded > .x-treelist-row .x-treelist-expander {
  transform: rotate(90deg) !important;
}

/* CHILD */
.pos-menu .x-treelist-item-child .x-treelist-row {
  margin-left: 10px !important;
  padding-left: 18px !important;
  background: #fafbff !important;
}

/* SCROLL */
.pos-menu .x-scroller::-webkit-scrollbar {
  width: 6px;
}

.pos-menu .x-scroller::-webkit-scrollbar-thumb {
  background: #dcdde1;
  border-radius: 10px;
}