@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Pinfeeds Pos Business Solution - Design System & Brand Palette
   Based on the official Pinfeeds Logo (Royal Blue, Cyan Azure, Silver & Slate)
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --pinfeeds-blue: #0047ba;
  --pinfeeds-blue-dark: #003399;
  --pinfeeds-cyan: #00a2ff;
  --pinfeeds-cyan-light: #38bdf8;
  --pinfeeds-cyan-glow: rgba(0, 162, 255, 0.35);

  --primary: #0047ba;
  --primary-hover: #003896;
  --secondary: #10B981;
  --accent: #00a2ff;
  --accent-hover: #008be0;
  
  --dark-slate: #081020;
  --dark-slate-hover: #0e1d38;
  --dark-card: #0c162c;
  --sidebar-active-bg: linear-gradient(90deg, rgba(0, 71, 186, 0.95) 0%, rgba(0, 162, 255, 0.85) 100%);
  
  --light-bg: #f4f7fb;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --white: #ffffff;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 71, 186, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 71, 186, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 15px rgba(0, 162, 255, 0.35);
}

body {
  font-family: var(--font-body) !important;
  background-color: var(--light-bg) !important;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  color: #0f172a;
}

/* ==========================================================================
   Main Header & Navigation Bar
   ========================================================================== */

.main-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 71, 186, 0.1);
}

.main-header .logo {
  background: var(--dark-slate) !important;
  color: var(--white) !important;
  font-family: var(--font-heading) !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s ease;
  height: 50px;
  line-height: 50px;
}

.main-header .logo:hover {
  background: var(--dark-slate-hover) !important;
}

.main-header .navbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.skin-blue .main-header .navbar {
  background-color: #ffffff !important;
}

.skin-blue .main-header .logo {
  background-color: var(--dark-slate) !important;
}

.skin-blue .main-header .navbar .sidebar-toggle {
  color: #334155 !important;
}

.skin-blue .main-header .navbar .sidebar-toggle:hover {
  background-color: rgba(0, 71, 186, 0.06) !important;
  color: var(--pinfeeds-blue) !important;
}

.main-header .navbar .nav > li > a {
  color: #334155 !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

.main-header .navbar .nav > li > a:hover {
  background: rgba(0, 71, 186, 0.06) !important;
  color: var(--pinfeeds-blue) !important;
}

/* Header Action Buttons */
.main-header .navbar-custom-menu .btn {
  border-radius: var(--radius-sm) !important;
  font-weight: 600;
  margin-top: 10px;
  transition: all 0.25s ease;
}

.main-header .navbar-custom-menu .btn-success {
  background: linear-gradient(135deg, var(--pinfeeds-blue) 0%, var(--pinfeeds-cyan) 100%) !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0, 71, 186, 0.25);
  color: #fff !important;
}

.main-header .navbar-custom-menu .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 162, 255, 0.4);
}

/* ==========================================================================
   Left Sidebar Navigation
   ========================================================================== */

.main-sidebar, .left-side, .skin-blue .main-sidebar, .skin-blue .left-side {
  background-color: var(--dark-slate) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu {
  padding: 10px 0;
}

.sidebar-menu > li {
  margin: 3px 12px;
}

.sidebar-menu > li > a {
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  color: #94a3b8 !important;
  font-weight: 500;
  font-size: 13.5px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
}

.sidebar-menu > li > a > i {
  width: 22px;
  font-size: 15px;
  margin-right: 8px;
  color: #64748b;
  transition: color 0.25s ease;
}

.sidebar-menu > li:hover > a,
.sidebar-menu > li.menu-open > a {
  background: var(--dark-slate-hover) !important;
  color: #ffffff !important;
  transform: translateX(3px);
}

.sidebar-menu > li:hover > a > i,
.sidebar-menu > li.menu-open > a > i {
  color: var(--pinfeeds-cyan) !important;
}

.sidebar-menu > li.active > a {
  background: var(--sidebar-active-bg) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 71, 186, 0.35);
  border-left: 3px solid #ffffff !important;
}

.sidebar-menu > li.active > a > i {
  color: #ffffff !important;
}

.sidebar-menu > li > .treeview-menu {
  background: rgba(0, 0, 0, 0.2) !important;
  margin: 4px 0 6px 0;
  border-radius: var(--radius-sm);
  padding: 6px 0 6px 12px;
}

.sidebar-menu > li > .treeview-menu > li > a {
  color: #94a3b8;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sidebar-menu > li > .treeview-menu > li > a:hover,
.sidebar-menu > li > .treeview-menu > li.active > a {
  color: var(--pinfeeds-cyan) !important;
  background: rgba(0, 162, 255, 0.1) !important;
  transform: translateX(3px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  box-shadow: var(--shadow-sm);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--pinfeeds-blue) 0%, #0066ee 100%) !important;
  color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: linear-gradient(135deg, var(--pinfeeds-blue-dark) 0%, var(--pinfeeds-blue) 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 71, 186, 0.35) !important;
}

.btn-info {
  background: linear-gradient(135deg, var(--pinfeeds-cyan) 0%, #0077dd 100%) !important;
  color: #ffffff !important;
}

.btn-info:hover {
  background: linear-gradient(135deg, #008be0 0%, #005fbb 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 162, 255, 0.35) !important;
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
  color: #ffffff !important;
}

.btn-app {
  border-radius: var(--radius-md) !important;
  background: var(--white) !important;
  color: #334155 !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.btn-app:hover {
  background: var(--pinfeeds-blue) !important;
  color: #ffffff !important;
  border-color: var(--pinfeeds-blue) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Boxes, Cards, Widgets
   ========================================================================== */

.box {
  background: var(--white);
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-top: 3px solid var(--pinfeeds-blue) !important;
  box-shadow: var(--shadow-md) !important;
  margin-bottom: 24px !important;
  transition: all 0.25s ease;
}

.box.box-primary {
  border-top-color: var(--pinfeeds-blue) !important;
}

.box.box-info {
  border-top-color: var(--pinfeeds-cyan) !important;
}

.box.box-success {
  border-top-color: #10b981 !important;
}

.box.box-solid.box-primary > .box-header {
  background: linear-gradient(135deg, var(--pinfeeds-blue), #0066ee) !important;
  color: #ffffff !important;
}

.box:hover {
  box-shadow: var(--shadow-lg) !important;
}

.box-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 20px !important;
}

.box-header .box-title {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  color: #0f172a;
  font-size: 17px;
}

.box-body {
  padding: 20px !important;
}

/* Info Box */
.info-box {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid #edf2f7;
  overflow: hidden;
  transition: all 0.25s ease;
}

.info-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg) !important;
}

.info-box-icon {
  border-radius: var(--radius-sm) !important;
  margin: 10px;
  height: 70px;
  width: 70px;
  line-height: 70px;
  background: linear-gradient(135deg, var(--pinfeeds-blue), var(--pinfeeds-cyan)) !important;
  color: #fff !important;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */

.form-control {
  border-radius: var(--radius-sm) !important;
  border: 1px solid #cbd5e1 !important;
  padding: 10px 14px;
  height: auto;
  box-shadow: none !important;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--pinfeeds-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.2) !important;
  outline: none;
}

/* Select2 Customization */
.select2-container--default .select2-selection--single {
  border-radius: var(--radius-sm) !important;
  border: 1px solid #cbd5e1 !important;
  height: 40px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  padding-left: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px;
}

.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--pinfeeds-cyan) !important;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table > thead > tr > th, table.dataTable thead th {
  border-bottom: 2px solid #e2e8f0 !important;
  color: #475569;
  font-weight: 600 !important;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  background: #f8fafc;
}

.table > tbody > tr > td {
  border-top: 1px solid #f1f5f9 !important;
  padding: 12px 14px;
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #fafbfc !important;
}

.table > tbody > tr:hover > td {
  background-color: rgba(0, 162, 255, 0.04) !important;
}

/* ==========================================================================
   Pagination & Badges
   ========================================================================== */

.pagination > li > a, .pagination > li > span {
  border-radius: var(--radius-sm) !important;
  margin: 0 2px;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
  background: #ffffff;
}

.pagination > li.active > a, .pagination > li.active > a:hover {
  background: var(--pinfeeds-blue) !important;
  border-color: var(--pinfeeds-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 71, 186, 0.35);
}

.badge, .label {
  border-radius: var(--radius-pill) !important;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.3px;
}

.badge-primary, .label-primary {
  background-color: var(--pinfeeds-blue) !important;
}

.badge-info, .label-info {
  background-color: var(--pinfeeds-cyan) !important;
}

/* ==========================================================================
   Pinfeeds POS Terminal - Luxury Fintech Interface System
   ========================================================================== */

/* Overall POS Canvas */
body.hold-transition.lockscreen {
  background: #091322 radial-gradient(circle at 10% 20%, rgba(0, 71, 186, 0.2) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0, 162, 255, 0.15) 0%, transparent 45%) !important;
  color: #1e293b;
  min-height: 100vh;
}

body.hold-transition.lockscreen .content {
  padding: 12px 18px 25px 18px !important;
}

/* POS Header Bar */
.pinfeeds-pos-header {
  background: linear-gradient(135deg, #071120 0%, #0b1a38 50%, #08142b 100%) !important;
  border: 1px solid rgba(0, 162, 255, 0.22);
  border-radius: 16px;
  padding: 8px 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 162, 255, 0.15);
  backdrop-filter: blur(12px);
}

.pos-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header Left: Brand & Badges */
.pos-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pos-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}

.pos-brand-link:hover {
  transform: translateY(-1px);
}

.pos-brand-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 162, 255, 0.5));
}

.pos-brand-text {
  display: flex;
  flex-direction: column;
}

.pos-brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1.1;
}

.pos-brand-tag {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: #00a2ff;
  text-transform: uppercase;
}

.pos-meta-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
}

.pos-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.pos-chip-location {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.pos-chip-status {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Header Center: Real-time clock */
.pos-header-center {
  display: flex;
  align-items: center;
}

.pos-clock-pill {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 162, 255, 0.2);
  color: #f1f5f9;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.text-cyan {
  color: #00a2ff !important;
}

/* Header Right: Glass Buttons */
.pos-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pos-glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px !important;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px !important;
  transition: all 0.2s ease !important;
  border: 1px solid transparent !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pos-glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.pos-glass-btn.btn-warning {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
}
.pos-glass-btn.btn-warning:hover {
  background: rgba(245, 158, 11, 0.3) !important;
}

.pos-glass-btn.btn-info {
  background: rgba(0, 162, 255, 0.18) !important;
  border-color: rgba(0, 162, 255, 0.4) !important;
  color: #38bdf8 !important;
}
.pos-glass-btn.btn-info:hover {
  background: rgba(0, 162, 255, 0.3) !important;
}

.pos-glass-btn.btn-primary {
  background: rgba(0, 71, 186, 0.25) !important;
  border-color: rgba(0, 71, 186, 0.5) !important;
  color: #60a5fa !important;
}
.pos-glass-btn.btn-primary:hover {
  background: rgba(0, 71, 186, 0.4) !important;
}

.pos-glass-btn.btn-success {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
}
.pos-glass-btn.btn-success:hover {
  background: rgba(16, 185, 129, 0.3) !important;
}

.pos-glass-btn.btn-danger {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
}
.pos-glass-btn.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3) !important;
}

.pos-btn-back {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
}
.pos-btn-back:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Left Side - POS Terminal Card & Inputs
   ========================================================================== */

.box.box-success {
  border-top-color: transparent !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #ffffff;
  overflow: hidden;
}

.box.box-success .box-header {
  border-bottom: 1px solid #edf2f7;
  padding: 14px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.box.box-success .box-header .box-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Input Fields & Search Bars in POS */
.pos-customer-row, .pos-search-row {
  margin-bottom: 12px;
}

.box.box-success .input-group .form-control {
  height: 44px;
  font-size: 13.5px;
  font-weight: 500;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  transition: all 0.25s ease;
}

.box.box-success .input-group .form-control:focus {
  background: #ffffff;
  border-color: #00a2ff;
  box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.15);
}

.box.box-success .input-group-addon {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-right: none;
  border-radius: 10px 0 0 10px !important;
  color: #0047ba;
  font-size: 15px;
}

.box.box-success .input-group-btn .btn {
  height: 44px;
  border-radius: 0 10px 10px 0 !important;
  border: 1.5px solid #e2e8f0;
  border-left: none;
  background: #f8fafc;
  color: #0047ba;
  font-size: 16px;
  transition: all 0.2s;
}

.box.box-success .input-group-btn .btn:hover {
  background: #eff6ff;
  color: #003896;
}

/* ==========================================================================
   Cart Table (#pos_table)
   ========================================================================== */

.pos_product_div {
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 14px;
  background: #fafbfc;
}

#pos_table {
  margin-bottom: 0 !important;
}

#pos_table thead th {
  background: linear-gradient(135deg, #091730 0%, #0d234a 100%) !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: none !important;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}

#pos_table tbody tr.product_row {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

#pos_table tbody tr.product_row:hover {
  background-color: rgba(0, 162, 255, 0.04) !important;
}

#pos_table tbody td {
  vertical-align: middle;
  padding: 10px 12px;
}

/* Numeric Steppers (- / +) */
.input-number .btn {
  height: 32px;
  width: 32px;
  padding: 0;
  border-radius: 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.input-number .btn:hover {
  background: #0047ba;
  border-color: #0047ba;
}

.input-number .btn:hover i {
  color: #ffffff !important;
}

.input-number .input_quantity {
  height: 32px;
  border-radius: 0 !important;
  border: 1px solid #cbd5e1;
  border-left: none;
  border-right: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

/* Delete Row Icon */
.pos_remove_row {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pos_remove_row:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}

/* ==========================================================================
   Checkout Hub & Totals Panel (.pos-checkout-hub)
   ========================================================================== */

.pos-checkout-hub {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 15px rgba(0, 71, 186, 0.04);
}

/* Upper Stats Strip */
.pos-stats-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pos-stat-pill {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 95px;
  transition: all 0.2s ease;
}

.pos-stat-pill.pos-clickable {
  cursor: pointer;
}

.pos-stat-pill.pos-clickable:hover {
  border-color: #00a2ff;
  background: #f0f9ff;
  transform: translateY(-1px);
}

.pos-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 71, 186, 0.08);
  color: #0047ba;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.pos-stat-info {
  display: flex;
  flex-direction: column;
}

.pos-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pos-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

/* Radiant Grand Total Banner */
.pos-total-banner {
  background: linear-gradient(135deg, #061122 0%, #0a1f47 50%, #0047ba 100%);
  border: 1px solid rgba(0, 162, 255, 0.35);
  box-shadow: 0 8px 25px rgba(0, 71, 186, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-total-left {
  display: flex;
  flex-direction: column;
}

.pos-total-subtext {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #38bdf8;
  text-transform: uppercase;
}

.pos-total-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.pos-total-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pos-grand-amount-wrapper {
  display: flex;
  align-items: baseline;
}

.pos-grand-amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: #38bdf8;
  letter-spacing: -0.5px;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.pos-btn-cancel-sale {
  background: rgba(239, 68, 68, 0.18) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.pos-btn-cancel-sale:hover {
  background: rgba(239, 68, 68, 0.35) !important;
  color: #ffffff !important;
}

/* Action Tender Buttons Grid */
.pos-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
}

.pos-action-btn {
  border-radius: 12px !important;
  border: none !important;
  padding: 12px 14px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.pos-action-btn:hover {
  transform: translateY(-2px);
}

.pos-action-btn:active {
  transform: translateY(1px);
}

.pos-btn-content {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.pos-btn-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
}

.pos-btn-labels {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.pos-btn-headline {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0.3px;
}

.pos-btn-subline {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.2px;
}

/* Cash Button */
.pos-btn-cash {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.pos-btn-cash:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Card Button */
.pos-btn-card {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}
.pos-btn-card:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

/* Multi-Pay / Finalize Button */
.pos-btn-finalize {
  background: linear-gradient(135deg, #002f80 0%, #0047ba 50%, #00a2ff 100%) !important;
  box-shadow: 0 4px 18px rgba(0, 162, 255, 0.4);
}
.pos-btn-finalize:hover {
  box-shadow: 0 6px 24px rgba(0, 162, 255, 0.55);
}

/* Secondary Actions Strip */
.pos-secondary-actions {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.pos-pill-btn {
  flex: 1;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease !important;
}

.pos-pill-btn:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   Right Side - Product Catalog Box & Cards
   ========================================================================== */

.pos-catalog-box {
  background: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  overflow: hidden;
}

.pos-catalog-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
  border-bottom: 1px solid #edf2f7 !important;
  padding: 14px 16px !important;
}

.pos-catalog-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pos-catalog-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Category Quick-Filter Tabs */
.pos-category-pills-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.pos-category-pills-bar::-webkit-scrollbar {
  display: none;
}

.pos-cat-pill {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  outline: none;
  cursor: pointer;
}

.pos-cat-pill:hover {
  background: #eff6ff;
  border-color: #00a2ff;
  color: #0047ba;
}

.pos-cat-pill.active {
  background: linear-gradient(135deg, #0047ba 0%, #00a2ff 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 162, 255, 0.35);
}

.pos-catalog-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-control-group {
  flex: 1;
  position: relative;
}

/* Product Cards in Grid */
.pos-catalog-body {
  padding: 14px !important;
  min-height: 480px;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
}

.pos-product-card {
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1.5px solid #edf2f7 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
  position: relative;
}

.pos-product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 22px rgba(0, 71, 186, 0.12) !important;
  border-color: #00a2ff !important;
}

.pos-card-media {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 8px;
  text-align: center;
  overflow: hidden;
}

.pos-card-img {
  width: 100%;
  height: 95px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.pos-card-price-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #0047ba 0%, #00a2ff 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.2px;
}

.pos-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 71, 186, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pos-product-card:hover .pos-card-hover-overlay {
  opacity: 1;
}

.pos-add-icon {
  background: #ffffff;
  color: #0047ba;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.pos-card-body {
  padding: 10px 10px 8px 10px;
}

.pos-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: #0f172a;
  line-height: 1.3;
  height: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pos-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
}

.pos-card-sku {
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.pos-card-stock {
  color: #10b981;
  font-weight: 600;
}

.pos-stock-low {
  color: #f59e0b !important;
}

.pos-empty-catalog {
  padding: 40px 20px;
  text-align: center;
}

.pos-empty-icon {
  font-size: 42px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

/* ==========================================================================
   Payment Modal (#modal_payment)
   ========================================================================== */

#modal_payment .modal-content {
  border-radius: 20px !important;
  overflow: hidden;
  border: none;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

#modal_payment .modal-header {
  background: linear-gradient(135deg, #071122 0%, #0c1a38 100%);
  color: #ffffff;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0, 162, 255, 0.2);
}

#modal_payment .modal-header .modal-title {
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}

#modal_payment .modal-header .close {
  color: #ffffff;
  opacity: 0.7;
  font-size: 24px;
  transition: opacity 0.2s;
}

#modal_payment .modal-header .close:hover {
  opacity: 1;
}

/* Receipt Summary Card in Modal */
.pos-payment-summary-card {
  background: linear-gradient(135deg, #081226 0%, #0d1e3d 100%);
  border: 1px solid rgba(0, 162, 255, 0.3);
  border-radius: 14px;
  padding: 18px;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.pos-summary-header {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pos-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pos-summary-label {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 500;
}

.pos-summary-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}

.pos-summary-highlight {
  background: rgba(0, 162, 255, 0.12);
  border: 1px solid rgba(0, 162, 255, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
}

.pos-val-payable {
  font-size: 22px;
  color: #38bdf8;
  font-weight: 800;
}

.pos-summary-change {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
}

.pos-val-change {
  font-size: 20px;
  color: #34d399;
  font-weight: 800;
}

.pos-payment-modal-footer {
  padding: 14px 24px !important;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.pos-btn-modal-close {
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
}

.pos-btn-modal-finalize {
  border-radius: 10px !important;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 10px 24px !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease !important;
}

.pos-btn-modal-finalize:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

/* Quick Cash Tender Chips */
.pos-tender-header {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pos-quick-tender-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pos-tender-chip {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  transition: all 0.2s ease !important;
}

.pos-tender-chip:hover {
  background: #0047ba !important;
  border-color: #0047ba !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 71, 186, 0.25);
}

.pos-tender-exact {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.pos-tender-exact:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

.pos-btn-add-payment {
  background: #f8fafc !important;
  border: 1.5px dashed #94a3b8 !important;
  color: #0047ba !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 10px !important;
  transition: all 0.2s ease !important;
}
.pos-btn-add-payment:hover {
  background: #eff6ff !important;
  border-color: #0047ba !important;
}

/* ==========================================================================
   Cash Register Startup Screen
   ========================================================================== */

.pos-register-init-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 75vh;
  padding: 20px;
}

.pos-register-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 71, 186, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 32px 28px;
  text-align: center;
}

.pos-register-logo {
  height: 52px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(0, 162, 255, 0.4));
}

.pos-register-header h3 {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800;
  font-size: 22px;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.pos-register-subtitle {
  color: #64748b;
  font-size: 13.5px;
  margin-bottom: 24px;
}

.pos-register-body {
  text-align: left;
}

.pos-register-body label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.pos-register-input {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700;
  font-size: 22px !important;
  height: 52px !important;
  color: #0f172a !important;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
}

.pos-register-input:focus {
  background: #ffffff !important;
  border-color: #00a2ff !important;
  box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.15) !important;
}

.pos-register-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px 0;
}

.pos-preset-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  transition: all 0.2s ease !important;
}

.pos-preset-btn:hover {
  background: #e0f2fe !important;
  border-color: #00a2ff !important;
  color: #0047ba !important;
}

.pos-preset-btn.active {
  background: #0047ba !important;
  border-color: #0047ba !important;
  color: #ffffff !important;
}

.pos-btn-open-register {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #0047ba 0%, #00a2ff 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15.5px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 162, 255, 0.35);
  transition: all 0.2s ease !important;
}

.pos-btn-open-register:hover {
  box-shadow: 0 6px 22px rgba(0, 162, 255, 0.5);
  transform: translateY(-1px);
}


/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #64748b;
  padding: 15px 20px;
  font-size: 13px;
}

.main-footer strong, .main-footer a {
  color: var(--pinfeeds-blue);
}
