/**
 * LiquidHub - Base Stylesheet
 *
 * Color scheme:
 *   Navbar: #4BAF4F (green)
 *   Active nav: #28cc22 (bright green)
 *   Cart header: #6c7ae0 (blue-purple)
 *   Hover: rgba(164,255,141,0.322) (light green)
 */

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
  --navbar-bg: #4BAF4F;
  --nav-active: #28cc22;
  --cart-header: #6c7ae0;
  --cart-even-row: #f8f6ff;
  --hover-row: rgba(164, 255, 141, 0.322);
  --danger: #dc3545;
  --sidebar-width: 220px;
  --sidebar-collapsed: 85px;
  --transition-speed: 0.5s;
  --navbar-height: 56px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  overflow-x: hidden;
}

#total_wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background-color: var(--navbar-bg) !important;
  padding: 0.4rem 1rem;
  z-index: 1030;
  height: var(--navbar-height);
}

.navbar .navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}

.navbar .navbar-brand:hover {
  color: #e0e0e0;
}

.navbar .nav-link,
.navbar .btn-nav {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.navbar .nav-link:hover,
.navbar .btn-nav:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar .material-icons {
  vertical-align: middle;
  font-size: 1.3rem;
}

/* Signout progress bar */
.signout-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#signout-progress {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: none;
}

#signout-progress.active {
  width: 100%;
  transition: width 0.8s ease-out;
}

/* ============================================
   SIDEBAR
   ============================================ */
#sidebar {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: #fff;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width var(--transition-speed) ease-in-out;
  z-index: 1020;
  padding-top: 0.5rem;
}

#sidebar.collapsed {
  width: var(--sidebar-collapsed);
  max-width: var(--sidebar-collapsed);
}

#sidebar.collapsed .nav-label {
  display: none;
  opacity: 0;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #555;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.sidebar-nav a:hover {
  background-color: var(--hover-row);
  color: #333;
}

.sidebar-nav a.active {
  background-color: var(--nav-active);
  color: #fff;
}

.sidebar-nav a .material-icons {
  margin-right: 0.75rem;
  font-size: 1.4rem;
  min-width: 24px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav .nav-label {
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
  overflow: hidden;
}

.sidebar-nav .separator {
  height: 1px;
  background-color: #ddd;
  margin: 0.25rem 0;
  border-bottom: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
#main {
  margin-left: var(--sidebar-width);
  margin-top: var(--navbar-height);
  padding: 1rem;
  min-height: calc(100vh - var(--navbar-height) - 40px);
  transition: margin-left var(--transition-speed) ease-in-out;
  flex: 1;
}

#main.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed);
}

#main.no-sidebar {
  margin-left: 0;
}

/* ============================================
   FOOTER / COPYRIGHT
   ============================================ */
#copyright {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  color: #999;
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-speed) ease-in-out;
}

#copyright.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed);
}

#copyright.no-sidebar {
  margin-left: 0;
}

/* ============================================
   CARDS & STAT CARDS
   ============================================ */
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navbar-bg);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.25rem;
}

/* ============================================
   PESO FORMATTING
   ============================================ */
.peso-symbol {
  opacity: 0.3;
  font-size: 1.4em;
}

.peso-negative {
  color: var(--danger);
}

/* ============================================
   CART / POS STYLES
   ============================================ */
.cart-header {
  background-color: var(--cart-header);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px 4px 0 0;
}

.cart-row:nth-child(even) {
  background-color: var(--cart-even-row);
}

.cart-row:hover {
  background-color: var(--hover-row);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-green {
  background-color: var(--navbar-bg);
  color: #fff;
  border: none;
}

.btn-green:hover {
  background-color: #3d9441;
  color: #fff;
}

/* ============================================
   MODAL OVERRIDES
   ============================================ */
.modal-backdrop {
  z-index: 1040;
}

#modal {
  z-index: 1050;
}

#modal-2 {
  z-index: 1060;
}

/* MicroModal overlay (#modal-1) */
#modal-1 {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1070;
  justify-content: center;
  align-items: center;
}

#modal-1 .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

#modal-1 .modal-container {
  background: #fff;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  padding: 1rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#modal-1 .modal-content-inner {
  min-width: 300px;
}

body.modal-overlay-open {
  overflow: hidden;
}

/* ============================================
   LOADING STATES
   ============================================ */
.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* ============================================
   RESPONSIVE - MOBILE (<=768px)
   ============================================ */
@media (max-width: 768px) {
  #sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85%;
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease-in-out;
    z-index: 1025;
    border-right: 1px solid #e0e0e0;
    box-shadow: none;
  }

  #sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  #sidebar.collapsed {
    width: 280px;
    max-width: 85%;
  }

  #sidebar.collapsed .nav-label {
    display: inline;
    opacity: 1;
  }

  #main,
  #copyright {
    margin-left: 0;
  }

  #main.sidebar-collapsed {
    margin-left: 0;
  }

  #copyright.sidebar-collapsed {
    margin-left: 0;
  }

  .sidebar-nav a {
    padding: 0.65rem 1rem;
  }

  /* Overlay backdrop when sidebar is open on mobile */
  body.sidebar-overlay-active::after {
    content: '';
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1024;
  }
}

/* ============================================
   RESPONSIVE - TABLET (769px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  #sidebar {
    width: var(--sidebar-collapsed);
    max-width: var(--sidebar-collapsed);
  }

  #sidebar .nav-label {
    display: none;
    opacity: 0;
  }

  #main,
  #copyright {
    margin-left: var(--sidebar-collapsed);
  }
}

/* ============================================
   RESPONSIVE - WIDE DESKTOP (>1400px)
   Limit sidebar to reasonable max-width
   ============================================ */
@media (min-width: 1400px) {
  #sidebar {
    width: var(--sidebar-width);
  }
}

/* ============================================
   SIGN-IN SCREEN
   ============================================ */
.signin-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - var(--navbar-height) - 60px);
  padding: 2rem 1rem;
}

.signin-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
}

.signin-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.signin-logo {
  font-size: 3rem;
  color: var(--navbar-bg);
  display: block;
  margin-bottom: 0.5rem;
}

.signin-header h2 {
  margin: 0 0 0.25rem 0;
  color: #333;
  font-weight: 700;
}

.signin-header p {
  margin: 0;
  font-size: 0.9rem;
}

.signin-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Employee grid */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.employee-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  position: relative;
}

.employee-btn:hover {
  border-color: var(--navbar-bg);
  background-color: #f0fdf4;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(75, 175, 79, 0.15);
}

.employee-btn:focus {
  outline: none;
  border-color: var(--navbar-bg);
  box-shadow: 0 0 0 3px rgba(75, 175, 79, 0.2);
}

.employee-icon {
  color: #9ca3af;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.employee-name {
  flex: 1;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.employee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 6px;
  flex-shrink: 0;
}

.badge-sales {
  background-color: #ef4444;
  color: #fff;
}

.badge-zero {
  background-color: #e5e7eb;
  color: #9ca3af;
}

/* PIN section */
.pin-section {
  text-align: center;
}

.pin-selected-employee {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* PIN dots */
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pin-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  transition: all 0.15s ease;
}

.pin-dot.filled {
  background: var(--navbar-bg);
  border-color: var(--navbar-bg);
  transform: scale(1.1);
}

/* Shake animation for wrong PIN */
.pin-dots.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-10px);
  }

  40% {
    transform: translateX(10px);
  }

  60% {
    transform: translateX(-8px);
  }

  80% {
    transform: translateX(8px);
  }
}

/* Numeric keypad */
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  max-width: 280px;
  margin: 0 auto 1rem;
}

.keypad-btn {
  padding: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: #374151;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  user-select: none;
  -webkit-user-select: none;
}

.keypad-btn:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.keypad-btn:active {
  background-color: #e5e7eb;
  transform: scale(0.97);
}

.keypad-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.keypad-action {
  font-size: 0.85rem;
  color: #6b7280;
}

.keypad-action .material-icons {
  font-size: 1.3rem;
}

/* Sign-in footer */
.signin-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Mobile adjustments for sign-in */
@media (max-width: 480px) {
  .signin-card {
    padding: 1.25rem;
  }

  .employee-grid {
    grid-template-columns: 1fr;
  }

  .pin-keypad {
    max-width: 240px;
  }

  .keypad-btn {
    padding: 0.75rem;
    font-size: 1.2rem;
    min-height: 48px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .employee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   POS SALES SCREEN
   ============================================ */
#pos-sales-screen {
  margin: -1rem;
  /* counteract #main padding */
}

/* Top bar: search + category filters */
.pos-top-bar {
  background: #fff;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: var(--navbar-height);
  z-index: 10;
}

.pos-search-wrap {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}

.pos-search-icon {
  color: #999;
  font-size: 1.2rem;
  margin-right: 0.25rem;
}

.pos-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
  outline: none;
  color: #333;
}

.pos-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #999;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.pos-search-btn:hover {
  color: #555;
  background: rgba(0, 0, 0, 0.05);
}

.pos-search-btn .material-icons {
  font-size: 1.1rem;
}

/* Category filter buttons */
.pos-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pos-cat-filter-btn {
  padding: 0.3rem 0.75rem;
  border: 2px solid #ddd;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  transition: all 0.2s;
  white-space: nowrap;
}

.pos-cat-filter-btn:hover {
  background: #f0f0f0;
}

.pos-cat-filter-btn.active {
  background: var(--navbar-bg);
  border-color: var(--navbar-bg);
  color: #fff !important;
}

/* Main layout: catalog left + cart right */
.pos-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - var(--navbar-height) - 120px);
}

.pos-catalog {
  flex: 1;
  padding: 0.75rem;
  overflow-y: auto;
}

/* Cart panel (right side, sticky) */
.pos-cart-panel {
  width: 280px;
  min-width: 280px;
  background: #fff;
  border-left: 1px solid #e0e0e0;
  position: sticky;
  top: calc(var(--navbar-height) + 90px);
  align-self: flex-start;
  max-height: calc(100vh - var(--navbar-height) - 100px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-cart-header {
  background-color: var(--cart-header);
  color: #fff;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.pos-cart-badge {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  margin-left: auto;
}

.pos-cart-customer {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pos-cart-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pos-cart-avatar .material-icons {
  color: #999;
  font-size: 1.3rem;
}

.pos-cart-customer-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pos-cart-customer-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #333;
}

.pos-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.pos-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bbb;
  padding: 2rem 0;
}

.pos-cart-empty .material-icons {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.pos-cart-empty p {
  margin: 0;
  font-size: 0.85rem;
}

.pos-cart-totals {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.pos-cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  font-size: 0.85rem;
  color: #555;
}

.pos-cart-total-balance {
  font-weight: 700;
  font-size: 1rem;
  color: #333;
  border-top: 1px solid #ddd;
  padding-top: 0.4rem;
  margin-top: 0.2rem;
}

.pos-cart-actions {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #eee;
  display: flex;
  gap: 0.5rem;
}

.pos-cart-actions .btn {
  flex: 1;
}

.pos-cart-close-row {
  padding: 0 0.75rem 0.5rem;
}

.pos-cart-sale-id {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Cart items table */
.pos-cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.pos-cart-item-row {
  border-bottom: 1px solid #f0f0f0;
}

.pos-cart-row-even {
  background-color: var(--cart-even-row);
}

.pos-cart-row-odd {
  background-color: #fff;
}

.pos-cart-item-row:hover {
  background-color: var(--hover-row);
}

.cart-item-flash {
  animation: cartItemFlash 2s ease-out;
}

@keyframes cartItemFlash {
  0%   { background-color: #10B981; color: #fff; }
  50%  { background-color: #6EE7B7; }
  100% { background-color: transparent; }
}

.pos-cart-item-check {
  width: 28px;
  padding: 0.35rem 0.25rem;
  text-align: center;
  vertical-align: top;
}

.pos-cart-item-check input[type="checkbox"] {
  cursor: pointer;
}

.pos-cart-item-status {
  width: 26px;
  padding: 0.35rem 0;
  text-align: center;
  vertical-align: top;
}

.pos-cart-item-title {
  padding: 0.35rem 0.25rem;
  vertical-align: top;
}

.cart-item-name {
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

.cart-item-name:hover {
  text-decoration: underline;
  color: var(--cart-header);
}

.cart-item-qty {
  font-size: 0.7rem;
  color: #888;
  margin-left: 2px;
}

.cart-item-notes {
  font-size: 0.72rem;
  color: #888;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.pos-cart-item-discount {
  padding: 0.35rem 0.15rem;
  vertical-align: top;
}

.cart-discount-badge {
  font-size: 0.7rem;
  color: #e91e63;
  font-weight: 600;
}

.pos-cart-item-delete {
  width: 30px;
  padding: 0.25rem 0;
  text-align: center;
  vertical-align: top;
}

.cart-delete-btn {
  padding: 0 !important;
  line-height: 1;
}

.pos-cart-item-price {
  width: 65px;
  padding: 0.35rem 0.25rem;
  text-align: right;
  font-weight: 600;
  color: #333;
  vertical-align: top;
}

/* Kitchen status icons */
.cart-kitchen-icon {
  font-size: 16px;
}

.cart-kitchen-pending {
  color: #999;
}

.cart-kitchen-sent {
  color: #f44336;
  animation: pulse-red 1.5s infinite;
}

.cart-kitchen-cooking {
  color: #ff9800;
  animation: pulse-orange 1.5s infinite;
}

.cart-kitchen-complete {
  color: #4CAF50;
}

.cart-kitchen-done {
  color: #9e9e9e;
}

@keyframes pulse-red {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes pulse-orange {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Kitchen action button */
.pos-cart-kitchen-action {
  padding: 0.25rem 0.75rem;
}

/* Cart avatar with initial */
.pos-cart-avatar span {
  font-weight: 700;
  font-size: 1rem;
  color: #666;
}

/* Open tickets modal */
.open-tickets-modal {
  max-height: 60vh;
  overflow-y: auto;
}

.open-tickets-table th {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.open-tickets-table td {
  font-size: 0.82rem;
  vertical-align: middle;
}

.open-tickets-table tbody tr {
  cursor: pointer;
}

.open-tickets-table tbody tr:hover {
  background-color: var(--hover-row) !important;
}

.open-tickets-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

/* Category blocks */
.pos-category-block {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.pos-category-header {
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pos-category-count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Item grid inside category blocks */
.pos-item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0.5rem;
}

/* Item card */
.pos-item-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.pos-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pos-item-card.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
}

.pos-item-card.out-of-stock:hover {
  transform: none;
  box-shadow: none;
}

.pos-item-card.pos-item-hidden {
  border: 2px dashed #ffab40;
  opacity: 0.7;
}

/* Item image area */
.pos-item-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 65%;
  background: #f5f5f5;
  overflow: hidden;
}

.pos-item-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-item-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Stock indicator dot */
.pos-item-stock-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.stock-in {
  background: #4CAF50;
}

.stock-limited {
  background: #FF9800;
}

.stock-out {
  background: #f44336;
}

/* Hidden badge */
.pos-item-hidden-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #ff9800;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 700;
}

/* Options icon */
.pos-item-options-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 2px;
}

/* Item info */
.pos-item-info {
  padding: 0.4rem 0.5rem;
}

.pos-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.pos-item-price {
  font-size: 0.8rem;
  color: var(--navbar-bg);
  font-weight: 700;
  margin-top: 0.15rem;
}

/* No results */
.pos-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: #bbb;
}

.pos-no-results .material-icons {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Add item bar */
.pos-add-item-bar {
  padding: 0.75rem 1rem;
  text-align: center;
  border-top: 1px solid #eee;
  background: #fff;
}

.pos-add-item-link {
  color: var(--navbar-bg);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pos-add-item-link:hover {
  color: #3d9441;
}

/* ============================================
   POS RESPONSIVE GRID
   ============================================ */

/* Large desktop (>1700px): 25% width = 4 columns */
@media (min-width: 1700px) {
  .pos-item-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop (1100-1700px): 33% width = 3 columns */
@media (min-width: 1100px) and (max-width: 1699px) {
  .pos-item-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet (768-1100px): 50% width = 2 columns */
@media (min-width: 768px) and (max-width: 1099px) {
  .pos-item-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pos-cart-panel {
    width: 240px;
    min-width: 240px;
  }
}

/* Mobile (<768px): 100% width = 1 column, cart below */
@media (max-width: 767px) {
  .pos-layout {
    flex-direction: column;
  }

  .pos-item-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pos-cart-panel {
    width: 100%;
    min-width: unset;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-height: 50vh;
    border-left: none;
    border-top: 2px solid #e0e0e0;
    z-index: 15;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(calc(100% - 50px));
    transition: transform 0.3s ease;
  }

  .pos-cart-panel.cart-expanded {
    transform: translateY(0);
  }

  .pos-cart-header {
    cursor: pointer;
  }

  .pos-catalog {
    padding-bottom: 60px;
    /* space for collapsed cart */
  }

  .pos-category-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================
   RESERVATIONS CALENDAR
   ============================================ */

.reservations-page {
  padding: 12px;
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
}

.res-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.res-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-month-title {
  margin: 0;
  min-width: 180px;
  text-align: center;
  font-weight: 600;
  color: #333;
}

.res-filters {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.res-filter-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.res-filter-label input[type="checkbox"] {
  cursor: pointer;
}

.res-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

#scheduler-container {
  flex: 1;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* DayPilot event content */
.res-event-inner {
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.3;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.res-event-name {
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.res-event-dates {
  font-size: 10px;
  opacity: 0.9;
  color: #fff;
}

.res-event-payment {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.res-payment-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.res-payment-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.res-payment-text {
  font-size: 9px;
  color: #fff;
  opacity: 0.9;
  min-width: 28px;
  text-align: right;
}

.res-room-header {
  padding: 4px;
  font-size: 12px;
}

/* DayPilot overrides */
.scheduler_default_corner {
  background: #f8f9fa !important;
}

.scheduler_default_rowheader {
  background: #f8f9fa !important;
  border-color: #e0e0e0 !important;
}

.scheduler_default_cell {
  border-color: #e8e8e8 !important;
}

.scheduler_default_timeheadergroup,
.scheduler_default_timeheadercol {
  background: var(--navbar-bg) !important;
  color: #fff !important;
  font-size: 12px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .res-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .res-filters {
    gap: 8px;
    font-size: 12px;
  }

  .reservations-page {
    padding: 6px;
  }

  .res-month-title {
    min-width: auto;
    font-size: 16px;
  }
}

/* ============================================================================
   RESERVATION DETAIL MODAL
   ============================================================================ */

.res-detail-tabs {
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 0;
}

.res-detail-tabs .nav-link {
  color: #adb5bd;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.res-detail-tabs .nav-link:hover {
  color: #495057;
}

.res-detail-tabs .nav-link.active {
  color: var(--navbar-bg);
  border-bottom: 2px solid var(--navbar-bg);
  margin-bottom: -2px;
}

.res-detail-tabs .badge {
  font-size: 10px;
  vertical-align: middle;
  margin-left: 4px;
}

.res-tab-content {
  padding-top: 16px;
}

.res-tab-pane {
  display: none;
}

.res-tab-pane.active {
  display: block;
}

/* Payment summary in details tab */
.res-payment-summary {
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 14px;
}

/* Guests table */
.res-guests-table {
  font-size: 13px;
}

.res-guests-table th {
  font-weight: 600;
  color: #6c757d;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 2px solid #dee2e6;
}

.res-guest-primary {
  background: rgba(255, 193, 7, 0.08);
}

.res-guest-icon {
  font-size: 16px;
  vertical-align: middle;
  color: #6c757d;
}

.res-guest-primary .res-guest-icon {
  color: #ffc107;
}

/* Add guest form */
.res-add-guest-form {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

.res-add-guest-form h6 {
  margin-bottom: 10px;
  color: #495057;
  font-size: 13px;
}

/* Customer search results */
.res-customer-search-results {
  max-height: 150px;
  overflow-y: auto;
  background: #fff;
  border-radius: 0 0 6px 6px;
}

.res-customer-result {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.res-customer-result:hover {
  background: #e9f5e9;
}

.res-customer-result .material-icons {
  font-size: 18px;
  color: #6c757d;
}

/* Payment overview stats */
.res-payment-overview {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
}

.res-pay-stat-value {
  font-size: 20px;
  font-weight: 700;
}

.res-pay-stat-label {
  font-size: 11px;
  color: #6c757d;
  text-transform: uppercase;
}

/* Payments table */
.res-payments-table {
  font-size: 13px;
}

.res-payments-table th {
  font-weight: 600;
  color: #6c757d;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 2px solid #dee2e6;
}

/* Add payment form */
.res-add-payment-form {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

.res-add-payment-form h6 {
  margin-bottom: 10px;
  color: #495057;
  font-size: 13px;
}

/* ============================================================================
   ITEM EDITOR STYLES
   ============================================================================ */

.item-editor {
  padding: 0 4px;
}

.item-editor-section {
  margin-bottom: 16px;
}

.item-editor-label {
  font-weight: 600;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Availability radio group */
.item-editor-avail-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.item-avail-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  background: #fafafa;
}

.item-avail-option input[type="radio"] {
  display: none;
}

.item-avail-option:hover {
  border-color: var(--avail-color, #999);
  background: #fff;
}

.item-avail-option.active {
  border-color: var(--avail-color, #4BAF4F);
  background: #fff;
  box-shadow: 0 0 0 1px var(--avail-color, #4BAF4F);
}

.item-avail-option .material-icons {
  font-size: 20px;
}

/* Variant blocks */
.item-variants-list {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fa;
  min-height: 40px;
}

.item-variant-block {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #fff;
}

.item-variant-block:last-child {
  margin-bottom: 0;
}

.item-variant-header {
  font-size: 14px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.variant-actions .btn {
  padding: 2px 6px;
}

.item-variant-option {
  margin-left: 8px;
  margin-top: 8px;
  padding: 8px;
  border-left: 3px solid #4BAF4F;
  background: #f8f9fa;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
}

.item-variant-option-data-list {
  margin-top: 4px;
}

.option-data-row {
  padding: 3px 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.option-data-row:hover {
  background: #e9ecef;
}

.option-data-row.drag-over {
  border-top: 2px solid #4BAF4F;
}

.option-data-row .form-control-sm {
  font-size: 12px;
  padding: 2px 6px;
  height: 28px;
}

.option-data-row .input-group-text {
  font-size: 12px;
  padding: 2px 6px;
}

.drag-handle {
  cursor: grab;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.btn-add-option, .btn-add-option-data {
  font-size: 12px;
}

#btn-add-variant {
  font-size: 13px;
}

/* Select2 overrides inside modal */
#modal .select2-container {
  width: 100% !important;
}

#modal .select2-container--bootstrap-5 .select2-selection {
  min-height: 38px;
}

/* Profit field styling */
#item-profit {
  background-color: #e9ecef;
  font-weight: 600;
}

/* ============================================
   SHIFT MANAGEMENT
   ============================================ */
.shift-management-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.shift-header h4 {
  color: #333;
  margin-bottom: 20px;
}

.shift-header h4 .material-icons {
  color: var(--navbar-bg);
}

.shift-status-section {
  margin-bottom: 20px;
}

.shift-current-card {
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shift-current-card.shift-open {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 2px solid #4caf50;
}

.shift-current-card.shift-none {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 2px solid #ff9800;
}

.shift-current-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.shift-current-header .material-icons {
  font-size: 32px;
}

.shift-open .shift-current-header .material-icons {
  color: #2e7d32;
}

.shift-none .shift-current-header .material-icons {
  color: #e65100;
}

.shift-status-badge {
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.badge-open {
  background-color: #4caf50;
  color: white;
}

.badge-none {
  background-color: #ff9800;
  color: white;
}

.shift-current-body {
  margin-bottom: 16px;
}

.shift-info-row {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.shift-info-row .label {
  font-weight: 600;
  min-width: 130px;
  color: #555;
}

.shift-info-row .value {
  color: #222;
}

.shift-current-actions {
  display: flex;
  gap: 10px;
}

.btn-close-shift {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-start-shift {
  display: flex;
  align-items: center;
  gap: 6px;
}

.new-shift-form {
  max-width: 400px;
}

/* Shift history table */
.shift-history-section h5 {
  color: #333;
}

.shift-history-section h5 .material-icons {
  color: var(--navbar-bg);
}

.shift-history-table {
  font-size: 14px;
}

.shift-history-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  white-space: nowrap;
  font-size: 13px;
  color: #555;
}

.shift-history-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.shift-history-table .btn-sm .material-icons {
  vertical-align: middle;
}

/* Shift detail modal */
.shift-detail table {
  margin-bottom: 0;
}

.shift-detail .table td:first-child {
  color: #666;
}

.shift-detail .table td:last-child {
  font-weight: 500;
}

.close-shift-modal p {
  color: #666;
}

/* Responsive shift */
@media (max-width: 768px) {
  .shift-management-container {
    padding: 12px;
  }

  .shift-current-card {
    padding: 16px;
  }

  .shift-info-row {
    flex-direction: column;
    gap: 2px;
  }

  .shift-info-row .label {
    min-width: unset;
    font-size: 12px;
  }

  .shift-history-table {
    font-size: 12px;
  }
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-stat-card {
  background: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-value {
  font-size: 1.4em;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 2px;
}

.stat-value .stat-peso {
  opacity: 0.3;
  font-size: 1.4em;
  font-weight: 300;
  margin-right: 1px;
}

.stat-label {
  font-size: 0.85em;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-chart-card {
  background: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 8px;
}

.dashboard-chart-card .card-title {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-period-btn {
  background: #333;
  color: #ccc;
  border: 1px solid #555;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8em;
  transition: all 0.2s;
}

.dashboard-period-btn:hover {
  background: #444;
  color: #fff;
  border-color: #666;
}

.dashboard-period-btn.active {
  background: #4BAF4F;
  color: #fff;
  border-color: #4BAF4F;
}

.dashboard-announcement {
  background: rgba(75, 175, 79, 0.15);
  border: 1px solid rgba(75, 175, 79, 0.3);
  color: #c0e0c0;
  border-radius: 8px;
}

/* Dashboard responsive */
@media (max-width: 768px) {
  .stat-value {
    font-size: 1.1em;
  }

  .stat-value .stat-peso {
    font-size: 1.2em;
  }

  .stat-label {
    font-size: 0.75em;
  }

  .dashboard-stat-card .card-body {
    padding: 10px !important;
  }

  .dashboard-stat-card .material-icons {
    font-size: 22px !important;
  }
}

/* ===================================================================
   CATEGORY MANAGEMENT
   =================================================================== */

.categories-page h4 {
  color: #e0e0e0;
}

.categories-table {
  background: #1e1e1e;
}

.categories-table thead th {
  background: #2a2a2a;
  border-bottom: 2px solid #444;
  color: #aaa;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.categories-table tbody tr {
  transition: background 0.2s;
}

.categories-table tbody tr:hover {
  background: #2a2a2a;
}

.categories-table tbody tr.dragging {
  opacity: 0.4;
  background: #333;
}

.categories-table tbody tr.drag-over {
  border-top: 2px solid #4CAF50;
}

.categories-table tbody tr.save-flash {
  animation: saveFlash 0.8s ease;
}

@keyframes saveFlash {
  0% {
    background: rgba(76, 175, 80, 0.3);
  }

  100% {
    background: transparent;
  }
}

.categories-table .drag-handle {
  cursor: grab;
  padding: 8px 4px;
}

.categories-table .drag-handle:active {
  cursor: grabbing;
}

/* Color swatches */
.color-swatches {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.color-swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}

.color-swatch:hover {
  transform: scale(1.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.color-swatch.active {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* New category row */
.new-category-row {
  background: #1a2a1a;
}

.new-category-row:hover {
  background: #1a2a1a !important;
}

/* Responsive categories */
@media (max-width: 768px) {
  .categories-table {
    font-size: 0.85em;
  }

  .color-swatch {
    width: 20px;
    height: 20px;
  }

  .categories-page h4 {
    font-size: 1.1em;
  }
}

/* ============================================================
 * PURCHASES / EXPENSES
 * ============================================================ */

#purchases-screen .peso-symbol {
  opacity: 0.3;
  font-size: 0.85em;
}

#purchases-screen .purchase-row:hover {
  background: rgba(75, 175, 79, 0.15) !important;
}

/* Supplier dropdown */
.supplier-dropdown {
  position: absolute;
  z-index: 1060;
  background: #2a2a2a;
  border: 1px solid #555;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
}

.supplier-option {
  padding: 8px 12px;
  cursor: pointer;
  color: #e5e5e5;
  border-bottom: 1px solid #3a3a3a;
}

.supplier-option:hover {
  background: rgba(75, 175, 79, 0.2);
}

.supplier-option:last-child {
  border-bottom: none;
}

/* Product autocomplete dropdown */
.product-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}

/* Line items table styling */
#line-items-table input[type="number"] {
  text-align: right;
}

#line-items-table .li-total {
  font-family: monospace;
  font-weight: bold;
}

/* Purchase details */
.purchase-details .peso-symbol {
  opacity: 0.3;
  font-size: 0.85em;
}

/* Modal XL size support */
.modal-dialog.modal-xl {
  max-width: 900px;
}

/* ===== Room Context Menu ===== */
.room-context-menu {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 4px 0;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  color: #e5e5e5;
}

.room-ctx-header {
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-ctx-divider {
  height: 1px;
  background: #444;
  margin: 4px 0;
}

.room-ctx-section {
  padding: 4px 14px 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

.room-ctx-item {
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.room-ctx-item:hover {
  background: #3a3a3a;
}

.room-ctx-item.active {
  background: #333;
  font-weight: 600;
}

.room-ctx-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.room-ctx-delete:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #ff6b6b;
}

/* Room status label in row header */
.res-room-status-label {
  font-weight: 500;
  margin-top: 1px;
}

/* Room amenities grid in edit modal */
.room-amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.room-amenities-grid .form-check-inline {
  margin-right: 0;
}

/* =============================================
   CUSTOMER MANAGEMENT
   ============================================= */

/* Customer profile card in modal */
.customer-profile-card {
  padding: 8px;
}

.customer-profile-card .profile-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.customer-profile-card .profile-avatar {
  flex-shrink: 0;
}

.customer-profile-card .profile-info {
  flex: 1;
  min-width: 0;
}

.customer-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3B82F6;
}

.customer-avatar-initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #1E40AF);
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #3B82F6;
}

/* Customer list table */
#customers-table {
  font-size: 14px;
}

#customers-table th {
  font-size: 12px;
  text-transform: uppercase;
  color: #999;
  border-bottom: 2px solid #444;
}

#customers-table .btn {
  padding: 2px 6px;
}

/* Receipts expandable rows */
.receipt-row:hover {
  background: rgba(59, 130, 246, 0.1) !important;
}

.receipt-items-row td {
  background: rgba(0, 0, 0, 0.2);
  border-top: none;
}

/* Merge dialog list items */
.list-group-item:hover {
  background: #333 !important;
}

/* Customer search input */
#customer-search {
  background: #2a2a2a;
  border-color: #444;
  color: #eee;
}

#customer-search::placeholder {
  color: #888;
}

#customer-search:focus {
  background: #333;
  border-color: #3B82F6;
  color: #fff;
  box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.25);
}

/* Duplicate warning */
#duplicate-warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: #F59E0B;
  color: #F59E0B;
}

#duplicate-warning ul {
  color: #ddd;
}

@media (max-width: 768px) {
  .customer-profile-card .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #customers-screen .d-flex.justify-content-between {
    flex-direction: column;
  }
}

/* ==========================================
   EMPLOYEE MANAGEMENT
   ========================================== */

#employees-screen .form-control-sm,
#employees-screen .form-select-sm {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e5e5e5;
  font-size: 0.85rem;
}

#employees-screen .form-control-sm:focus,
#employees-screen .form-select-sm:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #3B82F6;
  color: #fff;
  box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.25);
}

#employees-screen .btn-save-employee {
  transition: all 0.3s ease;
}

#employees-screen .btn-outline-success {
  animation: emp-save-flash 0.5s ease;
}

@keyframes emp-save-flash {
  0% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

#employees-screen .form-check-input:checked {
  background-color: #10B981;
  border-color: #10B981;
}

#employees-screen .emp-active-toggle+.form-check-label {
  font-size: 0.8rem;
  font-weight: 500;
}

#employees-screen .input-group .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  padding: 0 6px;
}

#employees-screen .input-group .btn-outline-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

#employees-screen tr.table-secondary {
  --bs-table-bg: rgba(255, 255, 255, 0.03);
}

@media (max-width: 992px) {
  #employees-screen .table {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  #employees-screen .d-flex.justify-content-between {
    flex-direction: column;
  }
}

/* ============================================
   PERMISSIONS & ROLE MANAGEMENT
   ============================================ */
#permissions-screen h4 {
  color: #e0e0e0;
}

/* Role cards */
.roles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-card {
  background: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.role-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.role-card-superuser {
  border-left: 4px solid #ffc107;
}

.role-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.role-card-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.role-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-icon {
  font-size: 32px;
  color: #4BAF4F;
  opacity: 0.8;
}

.role-card-superuser .role-icon {
  color: #ffc107;
}

.role-name {
  font-size: 1.1em;
  font-weight: 600;
  color: #e0e0e0;
}

.role-meta {
  font-size: 0.85em;
  color: #888;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.role-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.collapse-icon {
  color: #888;
  transition: transform 0.2s;
}

/* Collapsible permission groups inside role cards */
.role-card-body {
  border-top: 1px solid #404040;
  padding: 16px 20px;
  background: #252525;
}

.perm-group {
  margin-bottom: 12px;
}

.perm-group:last-child {
  margin-bottom: 0;
}

.perm-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: #ccc;
  font-size: 0.95em;
}

.perm-icon {
  font-size: 20px;
  color: #4BAF4F;
}

.perm-group-children {
  padding-left: 36px;
}

.perm-child {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  color: #aaa;
  font-size: 0.88em;
}

.perm-child-icon {
  font-size: 16px;
  color: #888;
}

/* Role Editor (modal) - two column layout */
.role-editor-columns {
  min-height: 400px;
}

.perm-column {
  border: 1px solid #404040;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.perm-column-header {
  padding: 10px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 0.95em;
}

.perm-column-body {
  flex: 1;
  min-height: 350px;
  max-height: 500px;
  overflow-y: auto;
  padding: 8px;
  background: #1e1e1e;
  transition: background 0.2s;
}

.perm-column-body.drag-over {
  background: rgba(75, 175, 79, 0.1);
  outline: 2px dashed #4BAF4F;
  outline-offset: -2px;
}

/* Draggable permission items */
.perm-drag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 4px;
  background: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 4px;
  cursor: grab;
  transition: all 0.15s;
  user-select: none;
}

.perm-drag-item:hover {
  background: #333;
  border-color: #4BAF4F;
}

.perm-drag-item.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.perm-drag-parent {
  border-left: 3px solid #4BAF4F;
  font-weight: 600;
}

.perm-drag-child {
  border-left: 3px solid #666;
  margin-left: 12px;
  font-size: 0.9em;
}

.drag-handle {
  font-size: 18px;
  color: #666;
  cursor: grab;
}

.perm-item-icon {
  font-size: 18px;
  color: #4BAF4F;
}

.perm-drag-child .perm-item-icon {
  color: #888;
}

.perm-item-name {
  color: #ddd;
  flex: 1;
}

/* Role editor modal dark theme */
.role-editor .form-control {
  background: #2a2a2a;
  border-color: #404040;
  color: #e0e0e0;
}

.role-editor .form-control:focus {
  background: #333;
  border-color: #4BAF4F;
  color: #e0e0e0;
  box-shadow: 0 0 0 0.2rem rgba(75, 175, 79, 0.25);
}

.role-editor .form-label {
  color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .role-editor-columns .col-md-6 {
    margin-bottom: 16px;
  }

  .perm-column-body {
    min-height: 200px;
    max-height: 300px;
  }

  .role-card-header {
    padding: 12px 14px;
  }

  .role-card-actions .btn {
    padding: 2px 6px;
  }
}

/* ==========================================
   Settings Screen
   ========================================== */

#settings-screen .accordion-item.settings-section {
  background: #1e1e1e;
  border: 1px solid #333;
  margin-bottom: 8px;
  border-radius: 8px !important;
  overflow: hidden;
}

#settings-screen .accordion-button {
  background: #252525;
  color: #e5e5e5;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  box-shadow: none;
  padding: 14px 18px;
}

#settings-screen .accordion-button:not(.collapsed) {
  background: #2a2a2a;
  color: #4ade80;
  box-shadow: none;
}

#settings-screen .accordion-button::after {
  filter: invert(1);
}

#settings-screen .accordion-button .material-icons {
  font-size: 20px;
  color: #4ade80;
}

#settings-screen .accordion-body {
  background: #1e1e1e;
  padding: 20px;
}

#settings-screen .form-label {
  color: #999 !important;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#settings-screen .form-control {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #e5e5e5;
  font-size: 0.9rem;
}

#settings-screen .form-control:focus {
  background: #333;
  border-color: #4ade80;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.15);
}

#settings-screen .btn-toggle-pass {
  background: #333;
  border-color: #444;
  color: #aaa;
}

#settings-screen .btn-toggle-pass:hover {
  background: #444;
  color: #fff;
}

#settings-screen .btn-success {
  background: #22c55e;
  border-color: #22c55e;
}

#settings-screen .btn-success:hover {
  background: #16a34a;
  border-color: #16a34a;
}

/* ==========================================
   ADMIN PANEL
   ========================================== */

#admin-screen {
  color: #e5e5e5;
}

/* System Info Cards */
.admin-info-card {
  background: #2a2a2a;
  border-radius: 6px;
  padding: 10px 12px;
  height: 100%;
}

.admin-info-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-info-value {
  font-size: 13px;
  color: #e5e5e5;
  font-weight: 500;
  word-break: break-word;
}

/* Database Table Count Badges */
.admin-table-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
}

.admin-table-name {
  color: #ccc;
}

.admin-table-count {
  background: #10B981;
  color: #fff;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.admin-table-badge.admin-count-error .admin-table-count {
  background: #EF4444;
}

/* API Test Groups */
.admin-api-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-api-group {
  background: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 6px;
  overflow: hidden;
}

.admin-api-group-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #333;
  color: #e5e5e5;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid #404040;
}

.admin-api-group-body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
}

/* API Test Buttons */
.admin-api-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #1a1a1a;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.15s;
  flex: 1 1 calc(50% - 6px);
  min-width: 120px;
}

.admin-api-btn:hover {
  background: #333;
  border-color: #10B981;
}

.admin-api-btn:active {
  background: #444;
}

.admin-api-btn-loading {
  opacity: 0.6;
  pointer-events: none;
}

.admin-api-btn-label {
  font-size: 13px;
  font-weight: 600;
  color: #e5e5e5;
}

.admin-api-btn-call {
  font-size: 11px;
  color: #888;
  font-family: monospace;
}

/* Response Display Area */
.admin-response-area {
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 6px;
  min-height: 400px;
  max-height: 70vh;
  overflow: auto;
  position: sticky;
  top: 70px;
}

.admin-response-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.admin-response-loading {
  display: flex;
  align-items: center;
  padding: 15px;
  color: #ccc;
  font-size: 14px;
}

.admin-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #2a2a2a;
  border-bottom: 1px solid #404040;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-response-endpoint {
  color: #10B981;
  font-size: 13px;
}

.admin-response-meta {
  font-size: 11px;
  color: #888;
}

.admin-status-success {
  background: #10B981 !important;
  color: #fff;
}

.admin-status-error {
  background: #EF4444 !important;
  color: #fff;
}

.admin-copy-btn {
  border-color: #555;
  color: #ccc;
  padding: 2px 6px;
}

.admin-copy-btn:hover {
  background: #444;
  border-color: #888;
  color: #fff;
}

/* JSON Syntax Highlighting */
.admin-response-json {
  margin: 0;
  padding: 12px;
  background: transparent;
  color: #e5e5e5;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  border: none;
}

.admin-response-json .json-key {
  color: #7dd3fc;
}

.admin-response-json .json-string {
  color: #86efac;
}

.admin-response-json .json-number {
  color: #fbbf24;
}

.admin-response-json .json-boolean {
  color: #c084fc;
}

.admin-response-json .json-null {
  color: #f87171;
}

.admin-response-error {
  color: #f87171;
}

/* Responsive */
@media (max-width: 991px) {
  .admin-response-area {
    position: static;
    max-height: 50vh;
    margin-top: 15px;
  }
}

@media (max-width: 576px) {
  .admin-api-btn {
    flex: 1 1 100%;
  }
}

/* ============================================================================
   RECEIPTS
   ============================================================================ */

.receipts-container {
  padding: 0 15px;
}

.receipts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.receipts-header h4 {
  margin: 0;
  color: #e5e5e5;
}

.receipts-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 12px 15px;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #404040;
  flex-wrap: wrap;
}

.shift-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.shift-filter label {
  color: #ccc;
}

.shift-filter .form-select {
  background-color: #333;
  border-color: #555;
  color: #e5e5e5;
}

.shift-filter .form-select option {
  background-color: #333;
  color: #e5e5e5;
}

/* Tabs */
.receipts-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid #404040;
}

.receipts-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.receipts-tab:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.03);
}

.receipts-tab.active {
  color: #4CAF50;
  border-bottom-color: #4CAF50;
}

.tab-count {
  font-size: 12px;
  opacity: 0.7;
}

/* Table */
.receipts-table {
  color: #e5e5e5;
}

.receipts-table thead th {
  background: #333;
  border-bottom: 2px solid #555;
  color: #aaa;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 8px;
  white-space: nowrap;
}

.receipts-table tbody td {
  padding: 8px;
  border-bottom: 1px solid #3a3a3a;
  vertical-align: middle;
}

.receipts-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.receipts-footer td {
  background: #333 !important;
  border-top: 2px solid #555;
  padding: 10px 8px;
}

/* Status badges */
.receipt-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge-closed {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
}

.badge-open {
  background: rgba(255, 193, 7, 0.15);
  color: #FFC107;
}

.badge-void {
  background: rgba(244, 67, 54, 0.15);
  color: #F44336;
}

/* Item status indicators */
.item-status {
  display: inline-flex;
  align-items: center;
}

.status-closed {
  color: #4CAF50;
}

.status-open {
  color: #FFC107;
}

.status-void {
  color: #F44336;
}

/* Receipt detail */
.receipt-detail {
  color: #e5e5e5;
}

.receipt-detail-header {
  padding: 10px 0;
  border-bottom: 1px solid #404040;
  margin-bottom: 10px;
}

.receipt-items-table {
  color: #e5e5e5;
}

.receipt-items-table thead th {
  background: #333;
  color: #aaa;
  font-size: 12px;
  text-transform: uppercase;
}

.receipt-items-table tfoot td {
  border-top: 2px solid #555;
}

/* Action buttons row */
.receipt-actions {
  display: flex;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid #404040;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .receipts-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .shift-filter {
    width: 100%;
  }

  .shift-filter .form-select {
    width: 100%;
    max-width: 100%;
  }

  .receipts-tabs {
    overflow-x: auto;
  }
}

/* ============================================================================
   ITEM OPTIONS MODAL - Variant selection for POS items
   ============================================================================ */

.item-options-modal {
  padding: 0;
}

.item-options-header {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 16px;
}

.item-options-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.item-options-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  color: #888;
}

.item-options-info {
  flex: 1;
}

.item-options-title {
  margin: 0 0 4px;
  font-size: 1.3em;
  color: #fff;
}

.item-options-desc {
  margin: 0 0 8px;
  font-size: 0.9em;
  color: #aaa;
}

.item-options-base-price {
  font-size: 1.1em;
  color: #28cc22;
}

.item-options-base-price strong {
  font-size: 1.1em;
}

.item-options-section {
  margin-bottom: 16px;
}

.item-options-label {
  display: block;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 6px;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-options-notes {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #eee;
  resize: vertical;
}

.item-options-notes:focus {
  background: #2a2a2a;
  border-color: #28cc22;
  color: #eee;
  box-shadow: 0 0 0 2px rgba(40, 204, 34, 0.2);
}

/* Quantity spinner */
.item-options-qty-spinner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-options-qty-spinner .qty-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border-color: #555;
  color: #ccc;
}

.item-options-qty-spinner .qty-btn:hover {
  background: #28cc22;
  border-color: #28cc22;
  color: #fff;
}

.item-options-qty-value {
  font-size: 1.5em;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
  color: #fff;
}

/* Variant groups */
.item-options-variant-group {
  margin-bottom: 16px;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #3a3a3a;
}

.variant-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3a3a3a;
}

.variant-group-icon {
  color: #28cc22;
  font-size: 20px;
}

.variant-group-title {
  font-weight: 600;
  font-size: 1.1em;
  color: #fff;
  flex: 1;
}

.variant-group-price {
  color: #28cc22;
  font-size: 0.9em;
}

.variant-option-group {
  margin-bottom: 12px;
}

.variant-option-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.variant-option-header .material-icons {
  color: #888;
}

.variant-option-title {
  font-weight: 500;
  color: #ddd;
  font-size: 0.95em;
}

.variant-option-type-badge {
  margin-left: auto;
  font-size: 0.75em;
  color: #888;
  background: #333;
  padding: 2px 8px;
  border-radius: 10px;
}

.variant-option-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Choice buttons */
.variant-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  background: #333;
  border: 2px solid #444;
  border-radius: 8px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
  text-align: center;
}

.variant-choice-btn:hover {
  background: #3a3a3a;
  border-color: #28cc22;
  color: #fff;
}

.variant-choice-btn.selected {
  background: rgba(40, 204, 34, 0.15);
  border-color: #28cc22;
  color: #28cc22;
  font-weight: 500;
}

.variant-choice-name {
  font-size: 0.95em;
  line-height: 1.3;
}

.variant-choice-price {
  font-size: 0.8em;
  margin-top: 2px;
  opacity: 0.8;
}

.variant-choice-btn.selected .variant-choice-price {
  opacity: 1;
  color: #28cc22;
}

/* Running total bar */
.item-options-total-bar {
  margin: 16px 0 12px;
  padding: 12px 16px;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #28cc22;
}

.item-options-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: 600;
  color: #fff;
}

.item-options-total-price {
  font-size: 1.3em;
  color: #28cc22;
}

/* Actions */
.item-options-actions {
  margin-top: 8px;
}

.item-options-actions .btn:disabled {
  opacity: 0.5;
}

/* Zero price modal */
.zero-price-modal {
  padding: 8px 0;
}

.zero-price-header h5 {
  margin: 0 0 4px;
  color: #fff;
}

.zero-price-body {
  margin-top: 16px;
}

.zero-price-body .input-group-text {
  background: #333;
  border-color: #555;
  color: #28cc22;
  font-size: 1.2em;
  font-weight: bold;
}

.zero-price-body .form-control {
  background: #2a2a2a;
  border-color: #555;
  color: #fff;
  font-size: 1.3em;
}

.zero-price-body .form-control:focus {
  background: #2a2a2a;
  border-color: #28cc22;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(40, 204, 34, 0.2);
}

.zero-price-actions .btn:disabled {
  opacity: 0.5;
}

/* ============================================================================
   CHARGE SALE INVOICE MODAL
   ============================================================================ */

/* Dark modal theme for charge sale flow */
.modal-body:has(.charge-sale-invoice),
.modal-body:has(.payment-method-dialog),
.modal-body:has(.payment-amount-dialog) {
  background: #16161e;
  color: #e5e5e5;
}

.modal-body:has(.charge-sale-invoice) + .modal-footer,
.modal-body:has(.payment-method-dialog) + .modal-footer,
.modal-body:has(.payment-amount-dialog) + .modal-footer {
  background: #16161e;
  border-top-color: #333;
}

.modal-content:has(.charge-sale-invoice),
.modal-content:has(.payment-method-dialog),
.modal-content:has(.payment-amount-dialog) {
  background: #16161e;
  color: #e5e5e5;
}

.modal-content:has(.charge-sale-invoice) .modal-header,
.modal-content:has(.payment-method-dialog) .modal-header,
.modal-content:has(.payment-amount-dialog) .modal-header {
  background: #1e1e2e;
  border-bottom-color: #333;
  color: #e5e5e5;
}

.modal-content:has(.charge-sale-invoice) .modal-header .btn-close,
.modal-content:has(.payment-method-dialog) .modal-header .btn-close,
.modal-content:has(.payment-amount-dialog) .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.charge-sale-invoice {
  font-size: 13px;
  color: #e5e5e5;
}

.charge-invoice-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1e1e2e;
  border-radius: 8px;
  margin-bottom: 12px;
}

.charge-header-left {
  flex: 1;
}

.charge-customer-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.charge-customer-name .material-icons {
  font-size: 20px;
  color: #3B82F6;
}

.charge-customer-detail {
  color: #999;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.charge-header-right {
  text-align: right;
}

.charge-sale-number {
  font-size: 18px;
  font-weight: 700;
  color: #10B981;
}

.charge-sale-detail {
  font-size: 12px;
  color: #999;
}

/* Category accordion */
.charge-items-section {
  margin-bottom: 12px;
}

.charge-category-group {
  margin-bottom: 4px;
}

.charge-category-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #252535;
  border-radius: 6px;
  cursor: pointer;
  border-left: 4px solid #666;
  transition: background 0.15s;
}

.charge-category-header:hover {
  background: #2d2d40;
}

.charge-cat-toggle {
  font-size: 20px;
  color: #999;
  margin-right: 6px;
  transition: transform 0.2s;
}

.charge-cat-title {
  flex: 1;
  font-weight: 600;
  color: #ddd;
}

.charge-cat-total {
  font-weight: 600;
  color: #10B981;
}

.charge-category-items {
  padding: 4px 12px 4px 20px;
}

.charge-items-table {
  width: 100%;
  border-collapse: collapse;
}

.charge-items-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #333;
  vertical-align: top;
}

.charge-item-title {
  flex: 1;
}

.charge-item-variant {
  font-size: 11px;
  color: #8B5CF6;
  margin-top: 2px;
}

.charge-item-notes {
  font-size: 11px;
  color: #F59E0B;
  font-style: italic;
  margin-top: 2px;
}

.charge-item-qty {
  text-align: center;
  color: #999;
  width: 40px;
}

.charge-item-each {
  text-align: right;
  color: #999;
  width: 80px;
}

.charge-item-total {
  text-align: right;
  font-weight: 600;
  color: #fff;
  width: 90px;
}

.charge-item-discount-row td {
  border-bottom: none !important;
  padding-top: 0 !important;
}

/* Totals */
.charge-totals-section {
  padding: 10px 16px;
  background: #1e1e2e;
  border-radius: 6px;
  margin-bottom: 12px;
}

.charge-total-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}

.charge-total-row.charge-discount span {
  color: #F59E0B;
}

.charge-total-row.charge-refund span {
  color: #EF4444;
}

/* Payments */
.charge-payments-section {
  padding: 10px 16px;
  background: #1e1e2e;
  border-radius: 6px;
  margin-bottom: 12px;
}

.charge-payments-title {
  color: #ddd;
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.charge-payments-table {
  width: 100%;
  border-collapse: collapse;
}

.charge-payments-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #333;
  vertical-align: middle;
}

.charge-payment-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.charge-change-row td {
  border-bottom: none !important;
  padding-top: 0 !important;
}

.charge-payments-total {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 0 0;
  font-weight: 600;
  color: #10B981;
  border-top: 1px solid #444;
  margin-top: 4px;
}

/* Balance */
.charge-balance-section {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
}

.charge-balance-due {
  background: linear-gradient(135deg, #7F1D1D, #991B1B);
  color: #fff;
}

.charge-balance-paid {
  background: linear-gradient(135deg, #065F46, #047857);
  color: #10B981;
}

/* Payment Method Dialog */
.payment-method-dialog {
  padding: 16px;
  text-align: center;
}

.payment-method-balance {
  font-size: 18px;
  color: #ddd;
  margin-bottom: 20px;
}

.payment-method-balance strong {
  color: #10B981;
  font-size: 22px;
}

.payment-method-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.payment-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 32px;
  background: #252535;
  border: 2px solid #444;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.payment-method-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.payment-method-btn .material-icons {
  font-size: 36px;
}

.payment-method-cash:hover {
  border-color: #10B981;
  background: #10B98115;
}

.payment-method-cash .material-icons {
  color: #10B981;
}

.payment-method-card:hover {
  border-color: #3B82F6;
  background: #3B82F615;
}

.payment-method-card .material-icons {
  color: #3B82F6;
}

.payment-method-other:hover {
  border-color: #8B5CF6;
  background: #8B5CF615;
}

.payment-method-other .material-icons {
  color: #8B5CF6;
}

/* Payment Amount Dialog */
.payment-amount-dialog {
  padding: 16px;
}

.payment-amount-field {
  margin-bottom: 16px;
}

.payment-amount-field label {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}

.payment-amount-field .form-control {
  background: #2a2a2a;
  border-color: #555;
  color: #fff;
}

.payment-amount-field .form-control:focus {
  background: #2a2a2a;
  border-color: #10B981;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.payment-amount-field .form-control-lg {
  font-size: 1.4em;
  font-weight: 600;
}

.payment-quick-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.payment-quick-btn {
  flex: 1;
  min-width: 80px;
}

.payment-change-display {
  padding: 12px 16px;
  background: #1e1e2e;
  border-radius: 8px;
  font-size: 18px;
  text-align: center;
  color: #e5e5e5;
}

.payment-change-display strong {
  font-size: 22px;
}

/* Discount add button in cart */
.cart-discount-add-btn {
  opacity: 0.6;
  transition: opacity 0.2s;
}

.cart-discount-add-btn:hover {
  opacity: 1;
}

.cart-discount-badge {
  font-size: 11px;
  color: #F59E0B;
  font-weight: 600;
}

/* ============================================================================
   KITCHEN DISPLAY SYSTEM
   ============================================================================ */

#kitchen-screen {
  padding: 0;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}

.kitchen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

.kitchen-header h4 {
  margin: 0;
  color: #e5e5e5;
  font-size: 18px;
  font-weight: 600;
}

.kitchen-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.kitchen-orders-col {
  width: 400px;
  min-width: 320px;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
}

.kitchen-detail-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
}

.kitchen-col-header {
  padding: 10px 16px;
  background: #252525;
  border-bottom: 1px solid #333;
  font-weight: 600;
  color: #ccc;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#kitchen-orders-list {
  flex: 1;
  overflow-y: auto;
}

#kitchen-order-detail {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.kitchen-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #666;
  font-size: 14px;
}

/* Orders list table */
.kitchen-orders-table {
  width: 100%;
  border-collapse: collapse;
}

.kitchen-orders-table thead th {
  padding: 8px 12px;
  font-size: 11px;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #333;
  background: #222;
  position: sticky;
  top: 0;
  z-index: 1;
}

.kitchen-order-row {
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #2a2a2a;
}

.kitchen-order-row:hover {
  background: #2a2a2a;
}

.kitchen-order-row.selected {
  background: #1a3a2a;
  border-left: 3px solid #10B981;
}

.kitchen-order-row td {
  padding: 10px 12px;
  color: #ccc;
  font-size: 13px;
  vertical-align: middle;
}

.kitchen-order-row .order-id {
  font-weight: 700;
  color: #e5e5e5;
  white-space: nowrap;
}

.kitchen-order-row .order-customer {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kitchen-order-row .order-time {
  color: #888;
  white-space: nowrap;
  font-size: 12px;
}

.kitchen-order-row .order-badges {
  white-space: nowrap;
}

/* Status badges */
.kitchen-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 3px;
  color: #fff;
}

.badge-pending {
  background: #EF4444;
}

.badge-cooking {
  background: #F59E0B;
}

.badge-complete {
  background: #10B981;
}

.badge-sent {
  background: #666;
}

/* Pulse animations */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes pulse-fast {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.pulse-slow {
  animation: pulse-slow 1000ms ease-in-out infinite;
}

.pulse-fast {
  animation: pulse-fast 500ms ease-in-out infinite;
}

/* Order detail */
.kitchen-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #222;
  border-bottom: 1px solid #333;
}

.kitchen-detail-info {
  font-size: 14px;
  color: #e5e5e5;
}

.kitchen-detail-time {
  font-size: 12px;
  color: #888;
}

/* Detail table */
.kitchen-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.kitchen-detail-table thead th {
  padding: 10px 16px;
  font-size: 11px;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #333;
  background: #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 1;
}

.kitchen-item-row {
  border-bottom: 1px solid #2a2a2a;
  transition: background 0.15s;
}

.kitchen-item-row td {
  padding: 12px 16px;
  color: #ccc;
  font-size: 13px;
  vertical-align: middle;
}

.kitchen-item-row .item-name {
  font-weight: 600;
  color: #e5e5e5;
  font-size: 14px;
}

.kitchen-item-row .item-qty {
  font-weight: 700;
  color: #e5e5e5;
  text-align: center;
  font-size: 15px;
}

.kitchen-item-row .item-notes {
  font-size: 12px;
  font-style: italic;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kitchen-item-row .item-time {
  color: #888;
  font-size: 12px;
}

.kitchen-item-row .item-status {
  white-space: nowrap;
}

/* Row status highlighting */
.kitchen-item-row.status-pending {
  border-left: 3px solid #EF4444;
}

.kitchen-item-row.status-cooking {
  border-left: 3px solid #F59E0B;
}

.kitchen-item-row.status-complete {
  border-left: 3px solid #10B981;
}

.kitchen-item-row.status-sent {
  border-left: 3px solid #666;
  opacity: 0.6;
}

/* Status buttons (radio-like) */
.kitchen-status-btn {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 2px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #2a2a2a;
  color: #999;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.kitchen-status-btn:hover {
  background: #333;
  color: #e5e5e5;
}

.kitchen-status-btn.active {
  color: #fff;
  border-color: transparent;
}

.status-btn-pending.active {
  background: #EF4444;
  animation: pulse-slow 1000ms ease-in-out infinite;
}

.status-btn-cooking.active {
  background: #F59E0B;
  color: #1a1a1a;
}

.status-btn-complete.active {
  background: #10B981;
  animation: pulse-fast 500ms ease-in-out infinite;
}

.status-btn-sent.active {
  background: #666;
  animation: none;
}

/* Responsive kitchen */
@media (max-width: 768px) {
  .kitchen-layout {
    flex-direction: column;
  }

  .kitchen-orders-col {
    width: 100%;
    min-width: unset;
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid #333;
  }

  .kitchen-detail-col {
    flex: 1;
  }
}

/* ============================================================================
   IMAGE MANAGEMENT - Item editor image section and image library modal
   ============================================================================ */

/* Item editor image row */
.item-editor-image-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.item-editor-image-preview {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #333;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}

.item-editor-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-editor-no-image {
  flex-direction: column;
  color: #666;
  font-size: 11px;
}

.item-editor-no-image .material-icons {
  font-size: 28px;
  color: #444;
}

.item-editor-image-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Image library modal tabs */
.image-library-modal {
  min-height: 400px;
}

.img-lib-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
}

.img-lib-tab {
  background: transparent;
  border: 1px solid #444;
  color: #aaa;
  padding: 6px 14px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  transition: all 0.2s;
}

.img-lib-tab .material-icons {
  font-size: 16px;
}

.img-lib-tab:hover {
  background: #2a2a2a;
  color: #fff;
}

.img-lib-tab.active {
  background: #10B981;
  color: #fff;
  border-color: #10B981;
}

/* Image library panels */
.img-lib-panel {
  display: none;
}

.img-lib-panel.active {
  display: block;
}

/* Upload area */
.img-upload-area {
  border: 2px dashed #444;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.img-upload-area:hover,
.img-upload-area.drag-over {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.05);
}

.img-upload-area p {
  margin: 8px 0 0;
  color: #888;
}

/* Upload preview */
.img-upload-preview {
  text-align: center;
}

.img-upload-preview img {
  max-width: 300px;
  max-height: 300px;
  border-radius: 8px;
  border: 2px solid #333;
  margin-bottom: 12px;
}

.img-upload-preview-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Search bar */
.img-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.img-search-bar .form-control {
  background: #1a1a1a;
  border-color: #333;
  color: #e5e5e5;
}

/* Search results grid */
.img-search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.img-search-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  aspect-ratio: 1;
  background: #1a1a1a;
}

.img-search-item:hover {
  border-color: #10B981;
  transform: scale(1.02);
}

.img-search-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-search-credit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #aaa;
  font-size: 10px;
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Library grid */
.img-library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.img-library-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #333;
  transition: border-color 0.2s;
  background: #1a1a1a;
}

.img-library-item:hover {
  border-color: #10B981;
}

.img-library-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.img-library-item-info {
  padding: 4px 8px;
  font-size: 11px;
}

.img-library-filename {
  display: block;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.img-library-meta {
  display: block;
  color: #666;
  font-size: 10px;
}

/* AI generate */
.img-gen-success {
  text-align: center;
  padding: 20px;
}

.img-gen-preview {
  max-width: 300px;
  max-height: 300px;
  border-radius: 8px;
  border: 2px solid #10B981;
  margin-bottom: 12px;
}

.img-gen-info {
  margin-top: 8px;
}

/* Spin animation for loading icons */
@keyframes img-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.spin {
  animation: img-spin 1.5s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {

  .img-search-grid,
  .img-library-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .img-lib-tabs {
    flex-wrap: wrap;
  }

  .item-editor-image-row {
    flex-direction: column;
  }
}

/* ============================================================================
   PREFERENCE MANAGEMENT
   ============================================================================ */

.item-preferences-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pref-block {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid #17a2b8;
}

.pref-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pref-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e0e0e0;
  font-size: 14px;
}

.pref-block-actions {
  display: flex;
  gap: 4px;
}

.pref-choice-badge {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.pref-choice-badge.pref-single {
  background: rgba(23, 162, 184, 0.2);
  color: #17a2b8;
  border: 1px solid rgba(23, 162, 184, 0.3);
}

.pref-choice-badge.pref-multi {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.pref-options-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 4px;
}

.pref-option-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #333;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.pref-option-row:hover {
  background: #3a3a3a;
  border-color: #555;
}

.pref-option-row.drag-over {
  border-color: #17a2b8;
  background: rgba(23, 162, 184, 0.1);
}

.pref-option-label {
  flex: 1;
  color: #ccc;
  font-size: 13px;
}

.pref-add-option-row {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  align-items: center;
}

.pref-add-option-row .form-control {
  background: #333;
  border-color: #555;
  color: #e0e0e0;
  font-size: 13px;
}

/* Autocomplete dropdown */
.pref-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #2a2a2a;
  border: 1px solid #555;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1060;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pref-ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #3a3a3a;
  transition: background 0.15s;
}

.pref-ac-item:last-child {
  border-bottom: none;
}

.pref-ac-item:hover {
  background: #3a3a3a;
}

.pref-ac-item.pref-ac-mapped {
  opacity: 0.5;
  cursor: not-allowed;
}

.pref-ac-title {
  flex: 1;
  color: #e0e0e0;
  font-size: 13px;
}

.pref-ac-count {
  color: #888;
  font-size: 11px;
}

.pref-ac-mapped-label {
  font-size: 10px;
  color: #888;
  background: #444;
  padding: 1px 6px;
  border-radius: 8px;
}

.pref-add-row .form-control,
.pref-add-row .form-select {
  background: #333;
  border-color: #555;
  color: #e0e0e0;
}
