/**
 * BNPOS - Point of Sale Theme
 * Modern, fast, professional - Best-in-class UI
 * UI Size: user setting (small / medium / large)
 */
:root {
  --bpos-primary: #1e40af;
  --bpos-primary-dark: #1e3a8a;
  --bpos-accent: #3b82f6;
  --bpos-green: #059669;
  --bpos-green-light: #10b981;
  --bpos-yellow: #eab308;
  --bpos-yellow-light: #facc15;
  --bpos-black: #0f172a;
  --bpos-sidebar: #0f172a;
  --bpos-card: #ffffff;
  --bpos-border: #e2e8f0;
  --bpos-font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== UI SIZE - USER SETTINGS (small / medium / large) ========== */
html.ui-small { font-size: 14px; }
html.ui-small body { font-size: 13px; line-height: 1.45; }
html.ui-small .content-header h1 { font-size: 1.25rem; }
html.ui-small .content-header h1 small { font-size: 0.85rem; }
html.ui-small label { font-size: 0.85rem; }
html.ui-small .form-control { font-size: 0.85rem; padding: 6px 10px; }
html.ui-small .table { font-size: 0.85rem; }
html.ui-small .box-title { font-size: 0.95rem; }
html.ui-small .breadcrumb { font-size: 0.8rem; }
html.ui-small .btn { padding: 5px 12px; font-size: 0.85rem; }
html.ui-small .pos-page #barcodeScanner, html.ui-small .create-sale-page #barcodeScanner { font-size: 16px !important; height: 40px !important; }
html.ui-small .pos-page .salesTable, html.ui-small .create-sale-page .salesTable { font-size: 13px; }
html.ui-small .pos-page .pos-total, html.ui-small .create-sale-page .totals-box { font-size: 14px; }
html.ui-small .dashboard-stat-card .stat-value { font-size: 1.4rem; }
html.ui-small .dashboard-hero h1 { font-size: 1.4rem; }

html.ui-medium { font-size: 15px; }
html.ui-medium body { font-size: 14px; line-height: 1.5; }
html.ui-medium .content-header h1 { font-size: 1.35rem; }
html.ui-medium .content-header h1 small { font-size: 0.9rem; }
html.ui-medium label { font-size: 0.9rem; }
html.ui-medium .form-control { font-size: 0.9rem; }
html.ui-medium .table { font-size: 0.9rem; }
html.ui-medium .box-title { font-size: 1rem; }
html.ui-medium .breadcrumb { font-size: 0.85rem; }
html.ui-medium .pos-page #barcodeScanner, html.ui-medium .create-sale-page #barcodeScanner { font-size: 18px !important; height: 44px !important; }
html.ui-medium .pos-page .salesTable, html.ui-medium .create-sale-page .salesTable { font-size: 14px; }
html.ui-medium .pos-page .pos-total, html.ui-medium .create-sale-page .totals-box { font-size: 15px; }
html.ui-medium .dashboard-stat-card .stat-value { font-size: 1.5rem; }
html.ui-medium .dashboard-hero h1 { font-size: 1.5rem; }

html.ui-large { font-size: 16px; }
html.ui-large body { font-size: 15px; line-height: 1.55; }
html.ui-large .content-header h1 { font-size: 1.5rem; }
html.ui-large .content-header h1 small { font-size: 0.95rem; }
html.ui-large label { font-size: 0.95rem; }
html.ui-large .form-control { font-size: 0.95rem; padding: 8px 12px; }
html.ui-large .table { font-size: 0.95rem; }
html.ui-large .box-title { font-size: 1.05rem; }
html.ui-large .breadcrumb { font-size: 0.9rem; }
html.ui-large .btn { padding: 7px 14px; font-size: 0.95rem; }
html.ui-large .pos-page #barcodeScanner, html.ui-large .create-sale-page #barcodeScanner { font-size: 22px !important; height: 50px !important; }
html.ui-large .pos-page .salesTable, html.ui-large .create-sale-page .salesTable { font-size: 15px; }
html.ui-large .pos-page .pos-total, html.ui-large .create-sale-page .totals-box { font-size: 18px; }
html.ui-large .dashboard-stat-card .stat-value { font-size: 1.75rem; }
html.ui-large .dashboard-hero h1 { font-size: 1.75rem; }

/* Default to medium if no class */
html:not([class*="ui-"]) { font-size: 15px; }
html:not([class*="ui-"]) body { font-size: 14px; line-height: 1.5; }

/* ========== GLOBAL FONT - CONSISTENT ========== */
body {
  font-family: var(--bpos-font);
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bpos-font);
  font-weight: 600;
  color: #1e293b;
}
label { font-weight: 600; color: #334155; }
.breadcrumb a { color: #64748b; }

/* ========== LOGIN PAGE ========== */
.login-page { background: linear-gradient(135deg, #1e40af 0%, #059669 50%, #0f172a 100%) !important; }
.login-page .login-box-body {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s ease;
}
.login-page .login-box-body:hover { box-shadow: 0 25px 70px rgba(0,0,0,0.35); }
.login-page .login-logo a { color: #fff !important; font-weight: 700; font-size: 1.5rem; }
.login-page .btn-primary {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.login-page .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.4);
  background: linear-gradient(135deg, #047857, #059669) !important;
}
.login-page .form-control {
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
}
.login-page .form-control:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5,150,105,0.2);
}

/* ========== BNPOS SIDEBAR - MODERN, SMOOTH, EASY TO NAVIGATE ========== */
.sidebar-expanded .main-sidebar {
  position: fixed;
  width: 250px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
}
.sidebar-expanded .content-wrapper,
.sidebar-expanded .main-footer {
  margin-left: 250px !important;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-expanded.sidebar-collapse .content-wrapper,
.sidebar-expanded.sidebar-collapse .main-footer {
  margin-left: 50px !important;
}
.sidebar-expanded .main-sidebar .sidebar-menu .treeview-menu {
  display: block !important;
}
.sidebar-expanded.sidebar-collapse .main-sidebar {
  width: 50px !important;
}
.sidebar-expanded.sidebar-collapse .main-sidebar .sidebar-menu .treeview-menu {
  display: none !important;
}
.sidebar-expanded .main-sidebar .treeview > a > .fa-angle-left {
  transform: rotate(-90deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-sidebar .sidebar-menu {
  padding: 10px 0;
}
.main-sidebar .sidebar-menu > li {
  margin: 3px 0;
}
.main-sidebar .treeview-menu > li > a {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-sidebar .treeview-menu > li > a:hover {
  transform: translateX(4px);
}
/* Sidebar scrollable - easy to scroll down */
.main-sidebar .sidebar {
  overflow-y: auto !important;
  overflow-x: hidden;
  max-height: calc(100vh - 50px) !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(59,130,246,0.6) rgba(15,23,42,0.3);
}
.main-sidebar .sidebar::-webkit-scrollbar { width: 8px; }
.main-sidebar .sidebar::-webkit-scrollbar-track {
  background: rgba(15,23,42,0.3);
  border-radius: 4px;
}
.main-sidebar .sidebar::-webkit-scrollbar-thumb {
  background: rgba(59,130,246,0.6);
  border-radius: 4px;
  min-height: 40px;
}
.main-sidebar .sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(59,130,246,0.9);
}
.main-sidebar .sidebar::-webkit-scrollbar-thumb:active {
  background: #3b82f6;
}
@media (max-width: 767px) {
  .sidebar-expanded .content-wrapper,
  .sidebar-expanded .main-footer { margin-left: 0 !important; }
  .sidebar-expanded .main-sidebar { transform: translate(-250px, 0); }
  .sidebar-expanded.sidebar-open .main-sidebar { transform: translate(0, 0); }
}

/* ========== SIDEBAR ========== */
.skin-blue .main-header .navbar { background: linear-gradient(90deg, #1e40af, #3b82f6) !important; }
.skin-blue .main-header .logo { background: #0f172a !important; }
.skin-blue .main-sidebar { background: #0f172a !important; }
.skin-blue .sidebar-menu > li > a {
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
}
.skin-blue .sidebar-menu > li:hover > a,
.skin-blue .sidebar-menu > li.active > a {
  background: rgba(59,130,246,0.15) !important;
  border-left-color: #3b82f6;
  color: #fff !important;
}
.skin-blue .sidebar-menu > li > a:hover { padding-left: 18px !important; }
.skin-blue .sidebar-menu .treeview-menu > li > a {
  color: #94a3b8;
  transition: all 0.2s ease;
}
.skin-blue .sidebar-menu .treeview-menu > li > a:hover {
  color: #10b981 !important;
  background: rgba(16,185,129,0.12) !important;
  padding-left: 12px !important;
}
.skin-blue .sidebar-menu .treeview.active > a { background: rgba(16,185,129,0.15) !important; border-left-color: #10b981; }

/* ========== CONTENT & BOXES ========== */
.content-wrapper { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important; }
.box {
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.box:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05); }
.box-header { border-radius: 12px 12px 0 0; }
.box.box-primary { border-top-color: #1e40af !important; }
.box.box-success { border-top-color: #059669 !important; }
.box.box-info { border-top-color: #0ea5e9 !important; }
.box.box-warning { border-top-color: #f59e0b !important; }

/* ========== BUTTONS ========== */
.btn {
  transition: all 0.25s ease;
  border-radius: 8px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: #1e40af !important;
  border-color: #1e40af !important;
  border-radius: 8px;
}
.btn-primary:hover {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  box-shadow: 0 4px 12px rgba(30,64,175,0.35);
}
.btn-success {
  background: #059669 !important;
  border-color: #059669 !important;
  border-radius: 8px;
}
.btn-success:hover {
  background: #047857 !important;
  border-color: #047857 !important;
  box-shadow: 0 4px 12px rgba(5,150,105,0.35);
}
.btn-info {
  background: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  border-radius: 8px;
}
.btn-info:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(14,165,233,0.35);
}
.btn-warning:hover { box-shadow: 0 4px 12px rgba(245,158,11,0.35); }
.btn-danger:hover { box-shadow: 0 4px 12px rgba(220,38,38,0.35); }
.btn-default:hover {
  background: #f1f5f9 !important;
  border-color: #0f172a;
}

/* ========== SMALL BOXES (dashboard) ========== */
.small-box {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.small-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.2);
}
.small-box .inner h3 { font-weight: 700; }
.small-box a { transition: background 0.2s; }
.small-box a:hover { background: rgba(0,0,0,0.15) !important; }
.small-box.bg-aqua { background: linear-gradient(135deg, #1e40af, #3b82f6) !important; }
.small-box.bg-green { background: linear-gradient(135deg, #059669, #10b981) !important; }
.small-box.bg-primary { background: linear-gradient(135deg, #1e40af, #059669) !important; }
.small-box.bg-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa) !important; }
.small-box.bg-red { background: linear-gradient(135deg, #dc2626, #ef4444) !important; }

/* ========== TABLES ========== */
.table > thead > tr > th { background: #f8fafc; color: #1e293b; font-weight: 600; border-color: #e2e8f0; }
.table-bordered > tbody > tr > td { border-color: #e2e8f0; }
.table-striped > tbody > tr:nth-of-type(odd) { background: #f8fafc; }
.table-hover > tbody > tr:hover { background: #f1f5f9 !important; }
.table > tbody > tr { transition: background 0.2s; }

/* ========== FORMS ========== */
.form-control {
  border-radius: 8px;
  transition: all 0.2s ease;
}
.form-control:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30,64,175,0.15);
}
.input-group-addon { border-radius: 8px; background: #f8fafc; border-color: #e2e8f0; }

/* ========== MODALS ========== */
.modal-content {
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}
.modal-header { border-radius: 12px 12px 0 0; }
.modal-header.bg-blue, .modal-header[style*="background"] { color: #fff !important; }
.bg-blue { background: linear-gradient(135deg, #1e40af, #3b82f6) !important; color: #fff !important; }
.bg-green { background: linear-gradient(135deg, #059669, #10b981) !important; color: #fff !important; }
.bg-yellow { background: linear-gradient(135deg, #eab308, #facc15) !important; color: #0f172a !important; }

/* ========== INFO BOXES ========== */
.info-box {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.info-box:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.2); }
.info-box.bg-aqua { background: linear-gradient(135deg, #0ea5e9, #38bdf8) !important; }
.info-box.bg-green { background: linear-gradient(135deg, #059669, #10b981) !important; }
.info-box.bg-red { background: linear-gradient(135deg, #dc2626, #ef4444) !important; }

/* ========== BREADCRUMB & HEADER ========== */
.breadcrumb { background: transparent; }
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: #1e40af !important; }
.content-header h1 { font-weight: 700; color: #1e293b; }

/* ========== NAVBAR USER MENU ========== */
.navbar-custom-menu .dropdown-toggle:hover { background: rgba(255,255,255,0.15) !important; }
.dropdown-menu > li > a { transition: all 0.2s; }
.dropdown-menu > li > a:hover { background: #f1f5f9 !important; padding-left: 18px; }

/* ========== DATA TABLE BUTTONS ========== */
.btn-group .btn { transition: all 0.2s; }
.btn-group .btn:hover { transform: scale(1.05); }
.addProductSale:hover, .btn-xs:hover { transform: scale(1.08); }

/* ========== LABELS & BADGES ========== */
.label { transition: all 0.2s; }
.badge { transition: all 0.2s; }

/* ========== POS CREATE SALE ========== */
.saleForm .form-control:focus { border-color: #1e40af; }
.newProduct .row { transition: background 0.2s; }
.newProduct .row:hover { background: #f8fafc; }

/* ========== DASHBOARD - CLASSY UI ========== */
.dashboard-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 40%, #059669 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(30,64,175,0.4);
}
.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.dashboard-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}
.dashboard-hero .hero-sub {
  opacity: 0.9;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.btn-launcher-premium {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-launcher-premium:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  color: #fff !important;
  border-color: rgba(255,255,255,0.4);
}

/* Stat cards - premium */
.dashboard-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  position: relative;
}
.dashboard-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.12);
  border-color: transparent;
}
.dashboard-stat-card .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 16px;
}
.dashboard-stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.dashboard-stat-card .stat-label {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 4px;
}
.dashboard-stat-card .stat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e40af;
  text-decoration: none;
  transition: all 0.2s;
}
.dashboard-stat-card .stat-link:hover {
  color: #1e3a8a;
  gap: 10px;
  text-decoration: none;
}
.dashboard-stat-card + .dashboard-stat-card { margin-left: 0; }
.row > [class*="col-"] .dashboard-stat-card { margin-bottom: 20px; }
@media (min-width: 992px) {
  .row > [class*="col-"] .dashboard-stat-card { margin-bottom: 0; }
}
.dashboard-stat-card.stat-sales .stat-icon { background: linear-gradient(135deg, #059669, #10b981); }
.dashboard-stat-card.stat-categories .stat-icon { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.dashboard-stat-card.stat-customers .stat-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.dashboard-stat-card.stat-products .stat-icon { background: linear-gradient(135deg, #dc2626, #f87171); }

/* Section headers */
.dashboard-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard-section-title i {
  color: #1e40af;
  font-size: 1.1rem;
}

/* Welcome card for sellers */
.welcome-card-premium {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.welcome-card-premium h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}
.welcome-card-premium p {
  color: #64748b;
  margin: 0;
}

/* Content header - refined */
.content-header.dashboard-header {
  padding: 20px 0 16px 0;
  border-bottom: none;
}
.content-header.dashboard-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}
.content-header.dashboard-header h1 small {
  color: #64748b;
  font-weight: 500;
  margin-left: 8px;
}

/* Dashboard boxes - refined */
.dashboard-low-stock { border-radius: 16px !important; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important; }
.dashboard-recent-products { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important; }
.dashboard-recent-products .box-header { background: #f8fafc !important; }
.dashboard-bestseller .box-header { background: #f8fafc !important; }

/* Dashboard row spacing */
.content .row { margin-bottom: 24px; }
.content .row:last-child { margin-bottom: 0; }

/* ========== FOOTER - BEAUTIFUL & INFORMATIVE ========== */
.main-footer-premium {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border-top: 1px solid rgba(59,130,246,0.2);
  padding: 16px 24px !important;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-left: 0 !important;
}
.main-footer-premium .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}
.main-footer-premium .footer-left strong {
  color: #e2e8f0;
  font-weight: 600;
}
.main-footer-premium .footer-divider {
  margin: 0 12px;
  opacity: 0.5;
}
.main-footer-premium .footer-tagline {
  color: #64748b;
  font-size: 0.85rem;
}
.main-footer-premium .footer-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-footer-premium .footer-link {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.main-footer-premium .footer-link:hover {
  color: #3b82f6 !important;
  background: rgba(59,130,246,0.15);
  text-decoration: none;
  transform: translateY(-1px);
}
.main-footer-premium .footer-link i {
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .main-footer-premium .footer-inner { flex-direction: column; text-align: center; }
  .main-footer-premium .footer-divider { display: none; }
}

/* ========== HOVER COLORS - RICH & INTUITIVE ========== */
.dashboard-stat-card.stat-sales:hover { border-color: rgba(5,150,105,0.3); }
.dashboard-stat-card.stat-sales .stat-link:hover { color: #059669 !important; }
.dashboard-stat-card.stat-categories:hover { border-color: rgba(30,64,175,0.3); }
.dashboard-stat-card.stat-categories .stat-link:hover { color: #1e40af !important; }
.dashboard-stat-card.stat-customers:hover { border-color: rgba(124,58,237,0.3); }
.dashboard-stat-card.stat-customers .stat-link:hover { color: #7c3aed !important; }
.dashboard-stat-card.stat-products:hover { border-color: rgba(220,38,38,0.3); }
.dashboard-stat-card.stat-products .stat-link:hover { color: #dc2626 !important; }

/* Sidebar - stronger hover & active states */
.skin-blue .sidebar-menu > li > a {
  padding: 12px 15px 12px 15px;
  border-radius: 0 10px 10px 0;
  margin: 2px 8px 2px 0;
}
.skin-blue .sidebar-menu > li:hover > a {
  background: rgba(59,130,246,0.2) !important;
  padding-left: 20px !important;
}
.skin-blue .sidebar-menu > li.active > a {
  background: linear-gradient(90deg, rgba(59,130,246,0.35), rgba(59,130,246,0.15)) !important;
  border-left: 3px solid #3b82f6;
  font-weight: 600;
}
.skin-blue .sidebar-menu .treeview-menu > li > a {
  padding: 10px 15px 10px 35px;
  border-radius: 0 8px 8px 0;
  margin: 1px 0;
}
.skin-blue .sidebar-menu .treeview-menu > li > a:hover {
  background: rgba(59,130,246,0.2) !important;
  padding-left: 40px !important;
  color: #60a5fa !important;
}
.skin-blue .sidebar-menu .treeview-menu > li.active > a {
  color: #60a5fa !important;
  font-weight: 600;
}

/* Header navbar hover */
.skin-blue .main-header .navbar .dropdown-toggle:hover {
  background: rgba(255,255,255,0.2) !important;
  border-radius: 8px;
}
.skin-blue .main-header .navbar .user-image {
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.skin-blue .main-header .navbar .dropdown-toggle:hover .user-image {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

/* Breadcrumb hover */
.breadcrumb > li > a:hover {
  color: #3b82f6 !important;
  text-decoration: underline;
}

/* Table row hover - more visible */
.table-hover > tbody > tr:hover {
  background: linear-gradient(90deg, rgba(59,130,246,0.06), transparent) !important;
  box-shadow: inset 3px 0 0 #3b82f6;
}

/* Links & anchors - consistent hover */
a:not(.btn):hover {
  transition: color 0.2s ease;
}
.content-wrapper a:not(.btn):not(.footer-link):hover {
  color: #1e40af !important;
}

/* Box header hover */
.box-header.with-border:hover {
  background: #f8fafc !important;
}

/* Sidebar toggle - easy to spot */
.sidebar-toggle:hover {
  background: rgba(255,255,255,0.15) !important;
  border-radius: 8px;
}
.sidebar-toggle:before {
  transition: transform 0.2s ease;
}
.sidebar-toggle:hover:before {
  color: #fff !important;
}

/* Content area - breathing room */
.content { padding-bottom: 24px; }

/* Products - stock add button (blue) */
.btnStockAdd.btn-primary { background: #1e40af !important; border-color: #1e40af !important; }
.btnStockAdd.btn-primary:hover { background: #1e3a8a !important; border-color: #1e3a8a !important; }
.stock-add-inline .input-group-btn .btn { min-width: 32px; }

/* Dashboard charts row spacing */
.dashboard-charts-row .box { margin-bottom: 20px; }
.dashboard-charts-row .box-body .chart { min-height: 120px; }
.dashboard-nav-guide .nav-guide-item { text-decoration: none !important; }

/* Home redesign - stat card hover */
.home-redesign .dashboard-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.12);
}

/* All pages - visible and make sense */
.content-wrapper { min-height: 100%; }

/* Smooth page feel */
.content-wrapper {
  transition: background 0.3s ease;
}

/* ========== Quick Stock Add - Modern POS Card ========== */
.quick-stock-card {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.35);
  margin-bottom: 20px;
  overflow: hidden;
}
.quick-stock-header {
  padding: 12px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}
.quick-stock-header i {
  margin-right: 8px;
  opacity: 0.95;
}
.quick-stock-body {
  background: rgba(255,255,255,0.98);
  padding: 18px 20px;
  border-radius: 0 0 12px 12px;
}
.quick-stock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}
.quick-stock-field {
  flex: 1;
  min-width: 140px;
}
.quick-stock-field.quick-stock-narrow {
  flex: 0 0 90px;
  min-width: 90px;
}
.quick-stock-field.quick-stock-action {
  flex: 0 0 auto;
}
.quick-stock-field label {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 600;
}
.quick-stock-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e40af;
  padding: 8px 0;
}
.quick-stock-selected {
  font-size: 0.9rem;
  color: #334155;
  margin-top: 4px;
  min-height: 20px;
}
.quick-stock-msg {
  margin-top: 10px;
  font-size: 0.9rem;
  min-height: 22px;
}
.quick-stock-msg.success { color: #059669; }
.quick-stock-msg.error { color: #dc2626; }
#quickStockAddBtn {
  background: #1e40af !important;
  border-color: #1e40af !important;
  padding: 10px 20px;
  font-weight: 600;
}
#quickStockAddBtn:hover {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
}
.quick-stock-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 1050;
  margin-top: 4px;
}
.quick-stock-dropdown .qs-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.quick-stock-dropdown .qs-item:last-child { border-bottom: none; }
.quick-stock-dropdown .qs-item:hover {
  background: #eff6ff;
}
.quick-stock-dropdown .qs-item strong { color: #1e293b; }
.quick-stock-dropdown .qs-item small { color: #64748b; margin-left: 6px; }
.quick-stock-field-wrap { position: relative; }
