/* BarPOS additions on top of the DreamsPOS theme. */

.avatar_two {
    position: relative;
    height: 2.5rem;
    width: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 500;
}

/* Mobile sidebar open state (theme hides .sidebar under 992px) */
@media (max-width: 991.98px) {
  .sidebar.sidebar-open { margin-left: 0; }
}
/* Sidebar menu scroll container — sits under the fixed sidebar-logo,
   fills the rest of the sidebar height. Replaces the theme's
   data-simplebar wrapper, which collapses to 0 height in this layout. */
.sidebar-scroll {
  margin-top: calc(2 * var(--topbar-height));
  height: calc(93% - var(--topbar-height));
  overflow-y: auto;
  width: 100%;
}
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
}
@media (max-width: 991.98px) {
  .sidebar.sidebar-open ~ .sidebar-overlay { display: block; }
}

/* --- Floor plan --- */
.floor-canvas { position: relative; min-height: 640px; border-radius: 8px;
  background: repeating-conic-gradient(rgba(127,127,127,.06) 0% 25%, transparent 0% 50%) 50%/24px 24px; }
.floor-table {
  position: absolute; width: 86px; height: 86px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; cursor: pointer; user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .12s ease;
}
.floor-table:hover { transform: scale(1.05); }
.floor-table.round { border-radius: 50%; }
.floor-table small { font-weight: 400; font-size: 11px; opacity: .85; }
.st-free           { background: #00b894; }
.st-occupied       { background: #e17055; }
.st-reserved       { background: #0984e3; }
.st-needs_bill     { background: #fdcb6e; color: #333 !important; }
.st-needs_cleaning { background: #636e72; }

/* --- POS screen --- */
.pos-bar-switch .btn { min-width: 130px; }
.pos-cat-strip { gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pos-item-card { cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; }
.pos-item-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.pos-item-card img { height: 96px; width: 100%; object-fit: cover; border-radius: 8px 8px 0 0; }
.pos-item-card.item-86 { opacity: .45; pointer-events: none; filter: grayscale(1); }
.cart-line .qty-btn { width: 28px; height: 28px; padding: 0; line-height: 1; }

/* --- KDS / BDS --- */
.kds-card { border-radius: 12px; overflow: hidden; border: 2px solid transparent; }
.kds-card.st-new         { border-color: #00b894; }
.kds-card.st-in_progress { border-color: #fdcb6e; }
.kds-card.st-ready       { border-color: #0984e3; }
.kds-card.late           { border-color: #d63031; background: rgba(214,48,49,.07); }
.kds-timer { font-variant-numeric: tabular-nums; font-weight: 700; }

/* --- Stock heat colors --- */
.stock-ok  { color: #00b894; font-weight: 600; }
.stock-low { color: #fdcb6e; font-weight: 600; }
.stock-out { color: #d63031; font-weight: 600; }
