/* =============================================================================
   Grey Rewards POS — UK Restaurant Theme
   Version: 1.0.0
   Designed for premium British hospitality management
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ----------------------------------------------------------------------------- */
:root {
  /* Brand Colours */
  --gr-charcoal:         #1a1a2e;
  --gr-charcoal-dark:    #12121f;
  --gr-charcoal-mid:     #252540;
  --gr-charcoal-light:   #2e2e4a;
  --gr-gold:             #c9a84c;
  --gr-gold-light:       #dbbf6e;
  --gr-gold-dark:        #a8892f;
  --gr-gold-muted:       rgba(201, 168, 76, 0.12);
  --gr-white:            #ffffff;
  --gr-off-white:        #f8f9fa;
  --gr-slate:            #4a5568;
  --gr-slate-light:      #718096;
  --gr-slate-lighter:    #a0aec0;
  --gr-mint:             #2dd4aa;
  --gr-mint-dark:        #22b08c;
  --gr-mint-muted:       rgba(45, 212, 170, 0.12);

  /* Status Colours */
  --gr-status-pending:   #f59e0b;
  --gr-status-preparing: #3b82f6;
  --gr-status-ready:     #10b981;
  --gr-status-delivered: #6b7280;
  --gr-status-cancelled: #ef4444;

  /* Spacing & Radius */
  --gr-radius-sm:        6px;
  --gr-radius:           10px;
  --gr-radius-lg:        14px;
  --gr-radius-xl:        20px;

  /* Shadows */
  --gr-shadow-xs:        0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --gr-shadow-sm:        0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --gr-shadow-md:        0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --gr-shadow-lg:        0 8px 32px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --gr-shadow-gold:      0 4px 16px rgba(201, 168, 76, 0.25);

  /* Sidebar Dimensions */
  --gr-sidebar-width:    260px;
  --gr-sidebar-collapsed: 68px;
  --gr-navbar-height:    64px;

  /* Transitions */
  --gr-transition:       0.2s ease;
  --gr-transition-slow:  0.35s ease;
}

/* -----------------------------------------------------------------------------
   2. Global Reset & Base
   ----------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #2d3748;
  background-color: #f0f2f5;
  margin: 0;
  padding: 0;
}

a {
  color: var(--gr-gold);
  text-decoration: none;
  transition: color var(--gr-transition);
}
a:hover { color: var(--gr-gold-dark); }

/* -----------------------------------------------------------------------------
   3. Layout Shell
   ----------------------------------------------------------------------------- */
.gr-app-wrapper {
  display: flex;
  min-height: 100vh;
}

.gr-main-content {
  flex: 1;
  margin-left: var(--gr-sidebar-width);
  padding-top: var(--gr-navbar-height);
  min-height: 100vh;
  transition: margin-left var(--gr-transition-slow);
  overflow-x: hidden;
}

.gr-content-area {
  padding: 1.75rem 1.5rem;
}

body.sidebar-collapsed .gr-main-content {
  margin-left: var(--gr-sidebar-collapsed);
}

/* -----------------------------------------------------------------------------
   4. Top Navbar
   ----------------------------------------------------------------------------- */
.gr-navbar,
.navbar.gr-navbar-top {
  position: fixed;
  top: 0;
  left: var(--gr-sidebar-width);
  right: 0;
  height: var(--gr-navbar-height);
  background: var(--gr-white);
  border-bottom: 2px solid var(--gr-gold);
  box-shadow: var(--gr-shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 1030;
  transition: left var(--gr-transition-slow);
}

body.sidebar-collapsed .gr-navbar,
body.sidebar-collapsed .navbar.gr-navbar-top {
  left: var(--gr-sidebar-collapsed);
}

.gr-navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gr-charcoal);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.gr-navbar-brand .brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--gr-gold), var(--gr-gold-dark));
  border-radius: var(--gr-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gr-white);
  flex-shrink: 0;
}

.gr-navbar-brand .brand-name { color: var(--gr-charcoal); }
.gr-navbar-brand .brand-name span { color: var(--gr-gold); }

.gr-navbar-locale {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gr-slate-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}

.gr-navbar-search {
  flex: 1;
  max-width: 380px;
  margin-left: auto;
}

.gr-search-input {
  border: 1px solid #e2e8f0;
  background: var(--gr-off-white);
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  color: var(--gr-charcoal);
  border-right: none;
  transition: all var(--gr-transition);
  border-radius: var(--gr-radius) 0 0 var(--gr-radius) !important;
}

.gr-search-input::placeholder { color: var(--gr-slate-lighter); }

.gr-search-input:focus {
  border-color: var(--gr-gold);
  background: var(--gr-white);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
  outline: none;
}

.gr-search-btn {
  background: var(--gr-off-white);
  border: 1px solid #e2e8f0;
  border-left: none;
  color: var(--gr-slate);
  padding: 0.45rem 0.75rem;
  border-radius: 0 var(--gr-radius) var(--gr-radius) 0 !important;
  transition: all var(--gr-transition);
}

.gr-search-btn:hover {
  background: var(--gr-gold-muted);
  color: var(--gr-gold-dark);
  border-color: var(--gr-gold);
}

.gr-navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.gr-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gr-slate);
  cursor: pointer;
  transition: all var(--gr-transition);
  text-decoration: none;
}

.gr-icon-btn:hover {
  background: var(--gr-gold-muted);
  border-color: var(--gr-gold);
  color: var(--gr-gold-dark);
}

.gr-icon-btn .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--gr-status-cancelled);
  border-radius: 50%;
  border: 2px solid var(--gr-white);
}

/* User dropdown */
.gr-user-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--gr-radius);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--gr-transition);
  color: inherit;
}

.gr-user-dropdown .dropdown-toggle:hover,
.gr-user-dropdown .dropdown-toggle:focus {
  border-color: var(--gr-gold);
  background: var(--gr-gold-muted);
  outline: none;
  box-shadow: none;
}

.gr-user-dropdown .dropdown-toggle::after { display: none; }

.gr-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gr-gold), var(--gr-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--gr-white);
  flex-shrink: 0;
  overflow: hidden;
}

.gr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.gr-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.gr-user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gr-charcoal);
}

.gr-user-role {
  font-size: 0.6875rem;
  color: var(--gr-slate-light);
  font-weight: 400;
}

.gr-user-dropdown .dropdown-menu {
  border: 1px solid #e2e8f0;
  border-radius: var(--gr-radius);
  box-shadow: var(--gr-shadow-lg);
  padding: 0.375rem;
  min-width: 210px;
  margin-top: 0.375rem;
}

.gr-user-dropdown .dropdown-item {
  border-radius: var(--gr-radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--gr-slate);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--gr-transition);
}

.gr-user-dropdown .dropdown-item:hover {
  background: var(--gr-gold-muted);
  color: var(--gr-gold-dark);
}

.gr-user-dropdown .dropdown-item i,
.gr-user-dropdown .dropdown-item svg {
  width: 15px;
  height: 15px;
  opacity: 0.7;
}

.gr-user-dropdown .dropdown-divider {
  margin: 0.375rem 0;
  border-color: #f0f2f5;
}

/* -----------------------------------------------------------------------------
   5. Sidebar
   ----------------------------------------------------------------------------- */
.gr-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--gr-sidebar-width);
  height: 100vh;
  background: var(--gr-charcoal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1040;
  transition: width var(--gr-transition-slow);
}

.gr-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  height: var(--gr-navbar-height);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  overflow: hidden;
}

.gr-sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--gr-radius-sm);
  background: linear-gradient(135deg, var(--gr-gold), var(--gr-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}

.gr-sidebar-title {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
}

.gr-sidebar-title .title-main {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gr-white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.gr-sidebar-title .title-main span { color: var(--gr-gold); }

.gr-sidebar-title .title-sub {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

.gr-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.gr-sidebar-nav::-webkit-scrollbar { width: 4px; }
.gr-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.gr-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.gr-nav-section {
  padding: 0.75rem 1.25rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gr-gold);
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
}

.gr-nav-item {
  list-style: none;
  margin: 0;
  padding: 0 0.75rem;
}

.gr-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--gr-radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  transition: all var(--gr-transition);
  border-left: 3px solid transparent;
  margin-bottom: 1px;
}

.gr-nav-link:hover {
  color: var(--gr-white);
  background: rgba(255,255,255,0.06);
  border-left-color: var(--gr-gold);
}

.gr-nav-link.active {
  color: var(--gr-white);
  background: var(--gr-gold-muted);
  border-left-color: var(--gr-gold);
  font-weight: 600;
}

.gr-nav-link.active .gr-nav-icon { color: var(--gr-gold); }

.gr-nav-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  transition: color var(--gr-transition);
}

.gr-nav-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.gr-nav-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gr-nav-badge {
  margin-left: auto;
  background: var(--gr-gold);
  color: var(--gr-charcoal);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  flex-shrink: 0;
}

.gr-sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.gr-sidebar-footer-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--gr-radius-sm);
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all var(--gr-transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.gr-sidebar-footer-item:hover {
  color: var(--gr-white);
  background: rgba(255,255,255,0.06);
}

/* Collapsed sidebar */
body.sidebar-collapsed .gr-sidebar { width: var(--gr-sidebar-collapsed); }

body.sidebar-collapsed .gr-sidebar-title,
body.sidebar-collapsed .gr-nav-label,
body.sidebar-collapsed .gr-nav-badge,
body.sidebar-collapsed .gr-nav-section {
  opacity: 0;
  pointer-events: none;
  width: 0;
  overflow: hidden;
}

body.sidebar-collapsed .gr-nav-link {
  justify-content: center;
  padding: 0.6rem;
  border-left-width: 0;
}

body.sidebar-collapsed .gr-nav-link.active,
body.sidebar-collapsed .gr-nav-link:hover {
  border-left-color: transparent;
}

/* -----------------------------------------------------------------------------
   6. Cards
   ----------------------------------------------------------------------------- */
.card,
.gr-card {
  background: var(--gr-white);
  border: 1px solid #e8ecf0;
  border-radius: var(--gr-radius-lg) !important;
  box-shadow: var(--gr-shadow-sm);
  transition: box-shadow var(--gr-transition);
}

.card:hover,
.gr-card:hover {
  box-shadow: var(--gr-shadow-md);
}

.card-header,
.gr-card-header {
  background: transparent;
  border-bottom: 1px solid #f0f2f5;
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  color: var(--gr-charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-body,
.gr-card-body {
  padding: 1.25rem;
}

.card-footer,
.gr-card-footer {
  background: transparent;
  border-top: 1px solid #f0f2f5;
  padding: 0.875rem 1.25rem;
}

/* KPI / Stat cards */
.gr-stat-card {
  background: var(--gr-white);
  border: 1px solid #e8ecf0;
  border-radius: var(--gr-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--gr-shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--gr-transition);
}

.gr-stat-card:hover {
  box-shadow: var(--gr-shadow-md);
  transform: translateY(-1px);
}

.gr-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--gr-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.gr-stat-icon.gold    { background: rgba(201,168,76,0.12);  color: var(--gr-gold-dark); }
.gr-stat-icon.mint    { background: var(--gr-mint-muted);   color: var(--gr-mint-dark); }
.gr-stat-icon.blue    { background: rgba(59,130,246,0.10);  color: #3b82f6; }
.gr-stat-icon.red     { background: rgba(239,68,68,0.10);   color: #ef4444; }

.gr-stat-value {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--gr-charcoal);
  line-height: 1;
  letter-spacing: -0.02em;
}

.gr-stat-label {
  font-size: 0.8125rem;
  color: var(--gr-slate-light);
  margin-top: 2px;
}

.gr-stat-change { font-size: 0.75rem; font-weight: 600; margin-top: 4px; }
.gr-stat-change.up   { color: var(--gr-mint-dark); }
.gr-stat-change.down { color: var(--gr-status-cancelled); }

/* -----------------------------------------------------------------------------
   7. Buttons
   ----------------------------------------------------------------------------- */
.btn-primary {
  background: linear-gradient(135deg, var(--gr-gold-light) 0%, var(--gr-gold) 50%, var(--gr-gold-dark) 100%);
  border: none;
  color: #1a1200;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--gr-radius);
  padding: 0.5rem 1.25rem;
  box-shadow: 0 2px 8px rgba(201,168,76,0.30);
  transition: all var(--gr-transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--gr-gold) 0%, var(--gr-gold-dark) 100%);
  color: #0a0900;
  box-shadow: var(--gr-shadow-gold);
  transform: translateY(-1px);
  border: none;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--gr-shadow-xs);
}

.btn-success {
  background: linear-gradient(135deg, #3de0b5, var(--gr-mint) 50%, var(--gr-mint-dark));
  border: none;
  color: #002e24;
  font-weight: 600;
  border-radius: var(--gr-radius);
  padding: 0.5rem 1.25rem;
  box-shadow: 0 2px 8px rgba(45,212,170,0.25);
  transition: all var(--gr-transition);
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(135deg, var(--gr-mint), var(--gr-mint-dark));
  color: #001a15;
  box-shadow: 0 4px 16px rgba(45,212,170,0.35);
  transform: translateY(-1px);
  border: none;
}

.btn-outline-gold {
  background: transparent;
  border: 1.5px solid var(--gr-gold);
  color: var(--gr-gold-dark);
  font-weight: 600;
  border-radius: var(--gr-radius);
  padding: 0.5rem 1.25rem;
  transition: all var(--gr-transition);
}

.btn-outline-gold:hover {
  background: var(--gr-gold-muted);
  border-color: var(--gr-gold-dark);
  color: var(--gr-gold-dark);
}

.btn-secondary {
  background: #f0f2f5;
  border: 1px solid #e2e8f0;
  color: var(--gr-slate);
  font-weight: 500;
  border-radius: var(--gr-radius);
  padding: 0.5rem 1.25rem;
  transition: all var(--gr-transition);
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e0;
  color: var(--gr-charcoal);
}

.btn-danger {
  background: linear-gradient(135deg, #f87171, #ef4444);
  border: none;
  color: var(--gr-white);
  font-weight: 600;
  border-radius: var(--gr-radius);
  transition: all var(--gr-transition);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--gr-radius-sm);
}

.btn-lg {
  padding: 0.65rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--gr-radius);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gr-radius-sm);
}

/* -----------------------------------------------------------------------------
   8. Forms
   ----------------------------------------------------------------------------- */
.form-control,
.form-select {
  border: 1px solid #e2e8f0;
  border-radius: var(--gr-radius);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--gr-charcoal);
  background: var(--gr-white);
  transition: all var(--gr-transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gr-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  outline: none;
}

.form-control::placeholder { color: var(--gr-slate-lighter); }

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gr-slate);
  margin-bottom: 0.375rem;
}

.input-group-text {
  background: #f0f2f5;
  border: 1px solid #e2e8f0;
  color: var(--gr-slate);
  font-size: 0.875rem;
}

/* -----------------------------------------------------------------------------
   9. Tables
   ----------------------------------------------------------------------------- */
.table-container {
  background: var(--gr-white);
  border: 1px solid #e8ecf0;
  border-radius: var(--gr-radius-lg);
  overflow: hidden;
  box-shadow: var(--gr-shadow-sm);
}

.table {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--gr-charcoal);
}

.table thead th {
  background: #f8f9fa;
  border-bottom: 2px solid #e8ecf0;
  border-top: none;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gr-slate);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }

.table-hover tbody tr {
  transition: background var(--gr-transition);
}

.table-hover tbody tr:hover {
  background: rgba(201,168,76,0.04);
}

/* -----------------------------------------------------------------------------
   10. Badges — Order Status
   ----------------------------------------------------------------------------- */
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3em 0.65em;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-status-pending {
  background: rgba(245,158,11,0.12);
  color: #92600a;
  border: 1px solid rgba(245,158,11,0.25);
}

.badge-status-preparing {
  background: rgba(59,130,246,0.10);
  color: #1d4ed8;
  border: 1px solid rgba(59,130,246,0.20);
}

.badge-status-ready {
  background: rgba(16,185,129,0.10);
  color: #065f46;
  border: 1px solid rgba(16,185,129,0.20);
}

.badge-status-delivered {
  background: rgba(107,114,128,0.10);
  color: #374151;
  border: 1px solid rgba(107,114,128,0.20);
}

.badge-status-cancelled {
  background: rgba(239,68,68,0.10);
  color: #991b1b;
  border: 1px solid rgba(239,68,68,0.20);
}

/* Bootstrap badge overrides */
.badge.bg-warning  { background: rgba(245,158,11,0.15)  !important; color: #92600a; }
.badge.bg-info     { background: rgba(59,130,246,0.12)  !important; color: #1d4ed8; }
.badge.bg-success  { background: rgba(16,185,129,0.12)  !important; color: #065f46; }
.badge.bg-secondary{ background: rgba(107,114,128,0.12) !important; color: #374151; }
.badge.bg-danger   { background: rgba(239,68,68,0.12)   !important; color: #991b1b; }
.badge.bg-primary  { background: var(--gr-gold-muted)   !important; color: var(--gr-gold-dark); }

/* =============================================================================
   11. POS Dashboard — Product Cards
   ============================================================================= */
.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.pos-product-card {
  background: var(--gr-white);
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--gr-shadow-xs);
}

.pos-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gr-shadow-md);
  border-color: var(--gr-gold);
}

.pos-product-card:active {
  transform: translateY(-1px);
  box-shadow: var(--gr-shadow-sm);
}

.pos-product-card.out-of-stock {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.4);
}

.pos-product-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f2f5;
  flex-shrink: 0;
  position: relative;
}

.pos-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pos-product-card:hover .pos-product-img img {
  transform: scale(1.04);
}

.pos-product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #f0f2f5, #e8ecf0);
  color: var(--gr-slate-lighter);
}

.pos-product-category-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gr-gold-muted);
  backdrop-filter: blur(4px);
  color: var(--gr-gold-dark);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(201,168,76,0.2);
}

.pos-product-info {
  padding: 0.625rem 0.75rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pos-product-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gr-charcoal);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pos-product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gr-gold-dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pos-product-price .currency {
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: super;
  margin-right: 1px;
}

.btn-add-to-order {
  width: 100%;
  background: linear-gradient(135deg, var(--gr-gold-light), var(--gr-gold) 50%, var(--gr-gold-dark));
  border: none;
  color: #1a1200;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.5rem;
  border-radius: var(--gr-radius-sm);
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--gr-transition);
  margin-top: auto;
  box-shadow: 0 2px 6px rgba(201,168,76,0.2);
}

.btn-add-to-order:hover {
  background: linear-gradient(135deg, var(--gr-gold), var(--gr-gold-dark));
  box-shadow: var(--gr-shadow-gold);
  transform: translateY(-1px);
}

/* Category filter pills */
.pos-category-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pos-cat-pill {
  padding: 0.3rem 0.875rem;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: var(--gr-white);
  color: var(--gr-slate);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--gr-transition);
  white-space: nowrap;
}

.pos-cat-pill:hover {
  border-color: var(--gr-gold);
  color: var(--gr-gold-dark);
  background: var(--gr-gold-muted);
}

.pos-cat-pill.active {
  background: var(--gr-gold);
  border-color: var(--gr-gold);
  color: #1a1200;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201,168,76,0.25);
}

/* =============================================================================
   12. Order Summary Panel
   ============================================================================= */
.order-panel {
  background: var(--gr-white);
  border: 1px solid #e8ecf0;
  border-radius: var(--gr-radius-lg);
  box-shadow: var(--gr-shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - var(--gr-navbar-height) - 3rem);
  overflow: hidden;
}

.order-panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--gr-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.order-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gr-charcoal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-panel-table-badge {
  background: var(--gr-gold-muted);
  color: var(--gr-gold-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,0.2);
}

.order-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}

.order-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid #f8f9fa;
}

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

.order-item-qty {
  background: var(--gr-off-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--gr-radius-sm);
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gr-charcoal);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.order-item-name {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gr-charcoal);
  line-height: 1.3;
}

.order-item-note {
  font-size: 0.6875rem;
  color: var(--gr-slate-light);
  font-style: italic;
  margin-top: 2px;
}

.order-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gr-charcoal);
  white-space: nowrap;
  flex-shrink: 0;
}

.order-item-remove {
  background: none;
  border: none;
  color: var(--gr-slate-lighter);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.875rem;
  line-height: 1;
  transition: all var(--gr-transition);
  flex-shrink: 0;
}

.order-item-remove:hover {
  color: var(--gr-status-cancelled);
  background: rgba(239,68,68,0.08);
}

.order-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.order-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: var(--gr-off-white);
  color: var(--gr-slate);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--gr-transition);
  padding: 0;
  line-height: 1;
}

.order-qty-btn:hover {
  border-color: var(--gr-gold);
  color: var(--gr-gold-dark);
  background: var(--gr-gold-muted);
}

/* Order totals */
.order-panel-totals {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid #f0f2f5;
  flex-shrink: 0;
  background: #fafbfc;
}

.order-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.2rem 0;
  color: var(--gr-slate);
}

.order-totals-row.subtotal { color: var(--gr-slate); }

.order-totals-row.discount {
  color: var(--gr-mint-dark);
  font-weight: 500;
}

.order-totals-row.tax { color: var(--gr-slate-light); }

.order-totals-divider {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 0.5rem 0;
}

.order-totals-row.grand-total {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gr-charcoal);
  margin-top: 4px;
}

.order-totals-row.grand-total .amount {
  color: var(--gr-gold-dark);
  font-size: 1.25rem;
}

/* Order action buttons */
.order-panel-actions {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid #f0f2f5;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-checkout {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--gr-gold-light), var(--gr-gold) 50%, var(--gr-gold-dark));
  border: none;
  border-radius: var(--gr-radius);
  color: #1a1200;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--gr-transition);
  box-shadow: var(--gr-shadow-gold);
}

.btn-checkout:hover {
  background: linear-gradient(135deg, var(--gr-gold), var(--gr-gold-dark));
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
  transform: translateY(-1px);
}

.btn-hold-order {
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--gr-radius);
  color: var(--gr-slate);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--gr-transition);
}

.btn-hold-order:hover {
  border-color: var(--gr-slate);
  color: var(--gr-charcoal);
}

/* =============================================================================
   13. Subscription / Pricing Cards
   ============================================================================= */
.pricing-section {
  padding: 3rem 0;
}

.pricing-heading {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gr-charcoal);
  letter-spacing: -0.03em;
}

.pricing-subheading {
  text-align: center;
  color: var(--gr-slate-light);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 991px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

/* Starter (free) — outlined */
.pricing-card {
  border-radius: var(--gr-radius-xl);
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  transition: all var(--gr-transition-slow);
}

.pricing-card.starter {
  background: var(--gr-white);
  border: 2px solid #e2e8f0;
  box-shadow: var(--gr-shadow-xs);
}

.pricing-card.starter:hover {
  border-color: #cbd5e0;
  box-shadow: var(--gr-shadow-md);
  transform: translateY(-3px);
}

/* Professional — gold featured */
.pricing-card.professional {
  background: var(--gr-white);
  border: 2px solid var(--gr-gold);
  box-shadow: var(--gr-shadow-gold);
  transform: scale(1.03);
  transform-origin: center top;
}

.pricing-card.professional:hover {
  transform: scale(1.03) translateY(-3px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.30);
}

/* Enterprise — dark */
.pricing-card.enterprise {
  background: var(--gr-charcoal);
  border: 2px solid var(--gr-charcoal-light);
  box-shadow: var(--gr-shadow-md);
}

.pricing-card.enterprise:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: 0 8px 32px rgba(26,26,46,0.4);
  transform: translateY(-3px);
}

/* Most Popular badge */
.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gr-gold-light), var(--gr-gold));
  color: #1a1200;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(201,168,76,0.3);
}

.pricing-plan-name {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.starter    .pricing-plan-name { color: var(--gr-slate); }
.professional .pricing-plan-name { color: var(--gr-gold-dark); }
.enterprise .pricing-plan-name { color: var(--gr-gold); }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 0.25rem;
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-period {
  font-size: 0.875rem;
  font-weight: 400;
  margin-left: 4px;
}

.starter    .pricing-price { color: var(--gr-charcoal); }
.starter    .pricing-period { color: var(--gr-slate-light); }
.professional .pricing-price { color: var(--gr-charcoal); }
.professional .pricing-period { color: var(--gr-slate-light); }
.enterprise .pricing-price { color: var(--gr-gold); }
.enterprise .pricing-period { color: rgba(201,168,76,0.6); }

.pricing-description {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.starter    .pricing-description { color: var(--gr-slate-light); }
.professional .pricing-description { color: var(--gr-slate); }
.enterprise .pricing-description { color: rgba(255,255,255,0.55); }

.pricing-divider {
  border: none;
  border-top: 1px solid;
  margin: 1.25rem 0;
}

.starter    .pricing-divider { border-color: #e2e8f0; }
.professional .pricing-divider { border-color: rgba(201,168,76,0.2); }
.enterprise .pricing-divider { border-color: rgba(255,255,255,0.1); }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.pricing-feature-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: -1px;
}

.starter    .pricing-feature { color: var(--gr-slate); }
.professional .pricing-feature { color: var(--gr-slate); }
.enterprise .pricing-feature { color: rgba(255,255,255,0.75); }

.pricing-feature.unavailable {
  opacity: 0.45;
  text-decoration: line-through;
}

/* Pricing CTA buttons */
.btn-pricing {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--gr-radius);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--gr-transition);
  text-align: center;
  display: block;
  text-decoration: none;
}

.btn-pricing.starter {
  background: transparent;
  border: 2px solid #e2e8f0;
  color: var(--gr-slate);
}

.btn-pricing.starter:hover {
  border-color: var(--gr-slate);
  color: var(--gr-charcoal);
  background: #f8f9fa;
}

.btn-pricing.professional {
  background: linear-gradient(135deg, var(--gr-gold-light), var(--gr-gold) 50%, var(--gr-gold-dark));
  border: none;
  color: #1a1200;
  box-shadow: var(--gr-shadow-gold);
}

.btn-pricing.professional:hover {
  background: linear-gradient(135deg, var(--gr-gold), var(--gr-gold-dark));
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
  transform: translateY(-1px);
  color: #0a0900;
}

.btn-pricing.enterprise {
  background: transparent;
  border: 2px solid var(--gr-gold);
  color: var(--gr-gold);
}

.btn-pricing.enterprise:hover {
  background: var(--gr-gold-muted);
  color: var(--gr-gold-light);
}

/* =============================================================================
   14. Page Header / Breadcrumb
   ============================================================================= */
.gr-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.gr-page-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gr-charcoal);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gr-page-subtitle {
  font-size: 0.875rem;
  color: var(--gr-slate-light);
  margin: 3px 0 0;
}

.breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.breadcrumb-item { color: var(--gr-slate-light); }
.breadcrumb-item.active { color: var(--gr-charcoal); font-weight: 500; }
.breadcrumb-item + .breadcrumb-item::before { color: #cbd5e0; }
.breadcrumb-item a { color: var(--gr-gold-dark); }
.breadcrumb-item a:hover { color: var(--gr-gold); }

/* =============================================================================
   15. Alerts / Toasts
   ============================================================================= */
.alert {
  border: none;
  border-radius: var(--gr-radius);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border-left: 4px solid transparent;
}

.alert-success {
  background: rgba(16,185,129,0.08);
  color: #065f46;
  border-left-color: var(--gr-mint);
}

.alert-warning {
  background: rgba(245,158,11,0.08);
  color: #92600a;
  border-left-color: var(--gr-status-pending);
}

.alert-danger {
  background: rgba(239,68,68,0.08);
  color: #991b1b;
  border-left-color: var(--gr-status-cancelled);
}

.alert-info {
  background: rgba(59,130,246,0.08);
  color: #1d4ed8;
  border-left-color: var(--gr-status-preparing);
}

/* =============================================================================
   16. Modals
   ============================================================================= */
.modal-content {
  border: none;
  border-radius: var(--gr-radius-xl);
  box-shadow: var(--gr-shadow-lg);
}

.modal-header {
  border-bottom: 1px solid #f0f2f5;
  padding: 1.25rem 1.5rem;
}

.modal-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gr-charcoal);
}

.modal-body { padding: 1.5rem; }

.modal-footer {
  border-top: 1px solid #f0f2f5;
  padding: 1rem 1.5rem;
}

.btn-close {
  opacity: 0.4;
  transition: opacity var(--gr-transition);
}
.btn-close:hover { opacity: 0.8; }

/* =============================================================================
   17. Kitchen Display / Order Cards
   ============================================================================= */
.kitchen-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.kitchen-order-card {
  background: var(--gr-white);
  border: 1px solid #e8ecf0;
  border-radius: var(--gr-radius-lg);
  box-shadow: var(--gr-shadow-sm);
  overflow: hidden;
  transition: all var(--gr-transition);
}

.kitchen-order-card.urgent {
  border-color: var(--gr-status-cancelled);
  box-shadow: 0 0 0 2px rgba(239,68,68,0.15);
  animation: pulse-urgent 1.5s ease-in-out infinite;
}

@keyframes pulse-urgent {
  0%, 100% { box-shadow: 0 0 0 2px rgba(239,68,68,0.15); }
  50%       { box-shadow: 0 0 0 4px rgba(239,68,68,0.25); }
}

.kitchen-order-header {
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f2f5;
  background: #fafbfc;
}

.kitchen-order-num {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--gr-charcoal);
  letter-spacing: -0.01em;
}

.kitchen-order-table {
  font-size: 0.75rem;
  color: var(--gr-slate-light);
  font-weight: 500;
}

.kitchen-order-timer {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 10px;
  border-radius: 20px;
}

.kitchen-order-timer.ok       { background: rgba(16,185,129,0.1); color: #065f46; }
.kitchen-order-timer.warning  { background: rgba(245,158,11,0.1); color: #92600a; }
.kitchen-order-timer.overdue  { background: rgba(239,68,68,0.1);  color: #991b1b; }

.kitchen-order-items { padding: 0.75rem 1rem; }

.kitchen-order-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.875rem;
  color: var(--gr-charcoal);
  border-bottom: 1px solid #f8f9fa;
}

.kitchen-order-item:last-child { border-bottom: none; }

.kitchen-item-qty {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gr-gold-muted);
  color: var(--gr-gold-dark);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.kitchen-item-note {
  font-size: 0.6875rem;
  color: var(--gr-status-pending);
  font-style: italic;
  margin-left: auto;
}

.kitchen-order-footer {
  padding: 0.625rem 1rem;
  border-top: 1px solid #f0f2f5;
  display: flex;
  gap: 0.5rem;
}

/* =============================================================================
   18. Utility Classes
   ============================================================================= */
.text-gold        { color: var(--gr-gold) !important; }
.text-gold-dark   { color: var(--gr-gold-dark) !important; }
.text-charcoal    { color: var(--gr-charcoal) !important; }
.text-mint        { color: var(--gr-mint) !important; }
.text-slate       { color: var(--gr-slate) !important; }
.text-muted-gr    { color: var(--gr-slate-light) !important; }

.bg-charcoal      { background: var(--gr-charcoal) !important; }
.bg-gold-muted    { background: var(--gr-gold-muted) !important; }
.bg-mint-muted    { background: var(--gr-mint-muted) !important; }
.bg-off-white     { background: var(--gr-off-white) !important; }

.border-gold      { border-color: var(--gr-gold) !important; }
.border-mint      { border-color: var(--gr-mint) !important; }

.shadow-gold      { box-shadow: var(--gr-shadow-gold) !important; }

.rounded-gr       { border-radius: var(--gr-radius) !important; }
.rounded-gr-lg    { border-radius: var(--gr-radius-lg) !important; }
.rounded-gr-xl    { border-radius: var(--gr-radius-xl) !important; }

/* Divider with label */
.divider-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gr-slate-lighter);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1rem 0;
}
.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Skeleton loading */
.gr-skeleton {
  background: linear-gradient(90deg, #f0f2f5 25%, #e8ecf0 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.4s ease-in-out infinite;
  border-radius: var(--gr-radius-sm);
}

@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scrollable container */
.gr-scroll-x {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}

/* =============================================================================
   19. Responsive / Mobile
   ============================================================================= */
@media (max-width: 991.98px) {
  .gr-sidebar {
    transform: translateX(-100%);
    transition: transform var(--gr-transition-slow), width var(--gr-transition-slow);
  }

  .gr-sidebar.open {
    transform: translateX(0);
  }

  .gr-main-content {
    margin-left: 0 !important;
  }

  .gr-navbar,
  .navbar.gr-navbar-top {
    left: 0 !important;
  }

  .gr-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,46,0.5);
    z-index: 1039;
    backdrop-filter: blur(2px);
  }

  .gr-sidebar.open ~ .gr-sidebar-overlay,
  .sidebar-open .gr-sidebar-overlay {
    display: block;
  }

  .pos-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .gr-content-area {
    padding: 1rem;
  }

  .gr-page-header {
    flex-direction: column;
  }

  .gr-navbar-search {
    display: none;
  }

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

  .pricing-card.professional {
    transform: none;
    order: -1;
  }

  .pricing-card.professional:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 575.98px) {
  :root {
    --gr-navbar-height: 56px;
  }

  .gr-content-area { padding: 0.875rem 0.75rem; }

  .gr-stat-card {
    padding: 1rem;
  }

  .gr-stat-value {
    font-size: 1.375rem;
  }

  .pos-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .kitchen-board {
    grid-template-columns: 1fr;
  }

  .order-panel {
    max-height: 50vh;
  }
}

/* =============================================================================
   20. Print Styles (Receipt / Report)
   ============================================================================= */
@media print {
  .gr-sidebar,
  .gr-navbar,
  .gr-navbar-actions,
  .btn-add-to-order,
  .order-panel-actions,
  .no-print {
    display: none !important;
  }

  .gr-main-content {
    margin-left: 0 !important;
    padding-top: 0 !important;
  }

  .card,
  .gr-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }

  body {
    background: white;
    font-size: 12pt;
  }
}

/* =============================================================================
   21. Animations
   ============================================================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

.animate-fade-in       { animation: fadeIn 0.3s ease both; }
.animate-slide-right   { animation: slideInRight 0.3s ease both; }
.animate-bounce-in     { animation: bounceIn 0.4s ease both; }

/* Stagger delays for grid items */
.animate-fade-in:nth-child(1)  { animation-delay: 0.05s; }
.animate-fade-in:nth-child(2)  { animation-delay: 0.10s; }
.animate-fade-in:nth-child(3)  { animation-delay: 0.15s; }
.animate-fade-in:nth-child(4)  { animation-delay: 0.20s; }
.animate-fade-in:nth-child(5)  { animation-delay: 0.25s; }
.animate-fade-in:nth-child(6)  { animation-delay: 0.30s; }

/* =============================================================================
   22. Bootstrap Overrides (ensuring theme coherence)
   ============================================================================= */
/* Override Bootstrap's default primary colour variables */
:root {
  --bs-primary:        #c9a84c;
  --bs-primary-rgb:    201, 168, 76;
  --bs-success:        #2dd4aa;
  --bs-success-rgb:    45, 212, 170;
  --bs-link-color:     #c9a84c;
  --bs-link-hover-color: #a8892f;
}

/* Nav tabs gold underline */
.nav-tabs {
  border-bottom: 2px solid #e2e8f0;
  gap: 0.25rem;
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--gr-slate);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  border-radius: 0;
  transition: all var(--gr-transition);
}

.nav-tabs .nav-link:hover {
  color: var(--gr-gold-dark);
  border-bottom-color: rgba(201,168,76,0.4);
}

.nav-tabs .nav-link.active {
  color: var(--gr-gold-dark);
  border-bottom-color: var(--gr-gold);
  background: transparent;
  font-weight: 700;
}

/* Nav pills */
.nav-pills .nav-link {
  border-radius: var(--gr-radius-sm);
  color: var(--gr-slate);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  transition: all var(--gr-transition);
}

.nav-pills .nav-link:hover {
  background: var(--gr-gold-muted);
  color: var(--gr-gold-dark);
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--gr-gold-light), var(--gr-gold) 50%, var(--gr-gold-dark));
  color: #1a1200;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201,168,76,0.25);
}

/* Pagination */
.pagination .page-link {
  border: 1px solid #e2e8f0;
  color: var(--gr-slate);
  border-radius: var(--gr-radius-sm) !important;
  margin: 0 2px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  transition: all var(--gr-transition);
}

.pagination .page-link:hover {
  background: var(--gr-gold-muted);
  border-color: var(--gr-gold);
  color: var(--gr-gold-dark);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--gr-gold-light), var(--gr-gold));
  border-color: var(--gr-gold);
  color: #1a1200;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(201,168,76,0.25);
}

/* Progress bars */
.progress {
  border-radius: 20px;
  background: #f0f2f5;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--gr-gold-light), var(--gr-gold));
  border-radius: 20px;
}

.progress-bar.bg-success {
  background: linear-gradient(90deg, #3de0b5, var(--gr-mint)) !important;
}

/* Dropdown menus */
.dropdown-menu {
  border: 1px solid #e2e8f0;
  border-radius: var(--gr-radius);
  box-shadow: var(--gr-shadow-lg);
  padding: 0.375rem;
  font-size: 0.875rem;
}

.dropdown-item {
  border-radius: var(--gr-radius-sm);
  padding: 0.45rem 0.75rem;
  color: var(--gr-slate);
  transition: all var(--gr-transition);
}

.dropdown-item:hover {
  background: var(--gr-gold-muted);
  color: var(--gr-gold-dark);
}

.dropdown-item.active,
.dropdown-item:active {
  background: var(--gr-gold);
  color: #1a1200;
}

.dropdown-divider { border-color: #f0f2f5; margin: 0.375rem 0; }

/* Tooltips */
.tooltip-inner {
  background: var(--gr-charcoal);
  border-radius: var(--gr-radius-sm);
  font-size: 0.75rem;
  padding: 5px 10px;
}

/* =============================================================================
   END — Grey Rewards POS Theme v1.0
   ============================================================================= */
