/**
 * City Life Style - Dreams POS Dark Teal Edition
 * Exact match to Dreams POS Dark Teal Reference (media_1790668925398.png)
 * Typography: Plus Jakarta Sans / Inter
 * Sidebar: Deep Dark Teal (#081f24 / #0a2226) with Cyan-Teal Icons (#14b8a6)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand Accents */
  --dp-primary: #ff9f43;
  --dp-primary-hover: #f39233;
  --dp-pos-red: #ea5455;
  --dp-pos-red-hover: #dc2626;
  --dp-orange: #f97316;
  --dp-blue: #2563eb;

  /* Dreams POS Dark Teal Sidebar Palette */
  --dp-sidebar-bg: #081f24;
  --dp-sidebar-header-bg: #081f24;
  --dp-sidebar-text: #8ea7ab;
  --dp-sidebar-text-hover: #ffffff;
  --dp-sidebar-icon: #14b8a6;
  --dp-sidebar-icon-hover: #2dd4bf;
  --dp-sidebar-active-bg: #0f353b;
  --dp-sidebar-active-border: rgba(20, 184, 166, 0.4);
  --dp-sidebar-active-text: #ffffff;
  --dp-sidebar-active-icon-box: #14b8a6;
  --dp-sidebar-section: #577b81;
  --dp-sidebar-submenu-bg: #051619;
  --dp-sidebar-submenu-border: rgba(20, 184, 166, 0.15);

  /* Surface & Canvas */
  --dp-teal: #14b8a6;
  --dp-teal-glow: rgba(20, 184, 166, 0.35);
  --dp-surface: #ffffff;
  --dp-body-bg: #f8fafc;
  --dp-border: #eaedf1;
  --dp-border-light: #f1f5f9;
  --dp-text-main: #1e293b;
  --dp-text-heading: #0f172a;
  --dp-text-muted: #64748b;
  --dp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --dp-shadow-md: 0 4px 14px 0 rgba(218, 224, 235, 0.5);
  --dp-radius-sm: 6px;
  --dp-radius-md: 10px;
  --dp-radius-lg: 12px;
  --dp-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
body, 
body.skin-blue,
.wrapper, 
.content-wrapper,
.main-sidebar,
.left-side,
h1, h2, h3, h4, h5, h6,
p, span, a, input, button, select, textarea, table {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure FontAwesome and Icon fonts are NEVER overridden by Plus Jakarta Sans */
.fa, [class*="fa-"], a.fa, a[class*="fa-"], span.fa, span[class*="fa-"], button.fa, button[class*="fa-"], i.fa, i[class*="fa-"] {
  font-family: 'FontAwesome' !important;
  font-style: normal !important;
}

.glyphicon, [class*="glyphicon-"] {
  font-family: 'Glyphicons Halflings' !important;
  font-style: normal !important;
}

.ion, [class*="ion-"] {
  font-family: 'Ionicons' !important;
  font-style: normal !important;
}

body {
  background-color: var(--dp-body-bg) !important;
  color: var(--dp-text-main);
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

/* Base App Wrapper */
.skin-blue .wrapper, 
.wrapper {
  background-color: var(--dp-body-bg) !important;
  width: 100% !important;
  min-height: 100vh !important;
  position: relative;
  overflow-x: hidden;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.content-wrapper, 
.right-side {
  background-color: var(--dp-body-bg) !important;
  min-height: calc(100vh - 60px);
  margin-left: 230px !important;
  transition: margin-left 0.3s ease-in-out;
}

/* Fullwidth Layout (POS Screen & Top Nav pages without Sidebar) */
body.layout-top-nav .content-wrapper,
body.layout-top-nav .right-side,
body.layout-top-nav .main-header .navbar,
body.layout-top-nav.skin-blue .main-header .navbar,
body.layout-top-nav .main-footer {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Global Modern Sleek Scrollbar Override (Replaces AdminLTE Red Scrollbar) */
::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}
::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 4px !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 4px !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  transition: background 0.2s ease !important;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}
::-webkit-scrollbar-thumb:window-inactive {
  background: #e2e8f0 !important;
}

.content-header {
  padding: 20px 24px 8px 24px !important;
}

.content-header > h1 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--dp-text-heading) !important;
  letter-spacing: -0.02em;
  margin: 0;
}

.content-header > .breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  top: 22px !important;
  right: 24px !important;
  font-size: 12px;
  font-weight: 500;
}

.content-header > .breadcrumb li a {
  color: var(--dp-teal);
  text-decoration: none;
}

.content {
  padding: 16px 24px 30px 24px !important;
}

/* ==========================================================================
   TOP HEADER / NAVBAR (PURE WHITE WITH ACTION CONTROLS)
   ========================================================================== */
.main-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--dp-border) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  position: relative;
  z-index: 1030;
}

/* Logo Area - Deep Dark Teal Matching Sidebar */
.main-header .logo,
.skin-blue .main-header .logo,
.skin-blue .main-header .logo:hover {
  background: var(--dp-sidebar-bg) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-right: none !important;
  height: 56px !important;
  line-height: 56px !important;
  width: 230px !important;
  transition: var(--dp-transition);
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px !important;
}

.main-header .logo .logo-mini {
  display: none;
}

.main-header .logo .logo-lg {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Top Navbar (White) */
.skin-blue .main-header .navbar,
.main-header .navbar {
  background: #ffffff !important;
  min-height: 56px !important;
  border: none !important;
  border-bottom: 1px solid var(--dp-border) !important;
  padding: 0 16px;
  margin-left: 230px !important;
  transition: margin-left 0.3s ease-in-out;
}

@media (max-width: 767px) {
  .skin-blue .main-header .navbar,
  .main-header .navbar {
    margin-left: 0 !important;
  }
}

.sidebar-collapse .skin-blue .main-header .navbar,
.sidebar-collapse .main-header .navbar {
  margin-left: 50px !important;
}

/* Page Title in Navbar */
.dp-nav-title {
  float: left;
  font-size: 18px;
  font-weight: 800;
  color: var(--dp-text-heading);
  margin: 16px 14px 14px 6px;
  letter-spacing: -0.02em;
}

/* Sidebar Toggle (Circular Teal Badge with white chevron) */
.main-header .sidebar-toggle:before {
  content: "" !important;
  display: none !important;
}

.main-header .sidebar-toggle {
  float: left !important;
  background: transparent !important;
  padding: 14px 8px !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dp-toggle-badge {
  width: 28px;
  height: 28px;
  background: var(--dp-teal);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 2px 6px var(--dp-teal-glow);
  transition: all 0.2s ease;
}

.dp-toggle-badge:hover {
  background: #0d9488;
  transform: scale(1.05);
}

.sidebar-collapse .dp-toggle-badge i {
  transform: rotate(180deg);
}

/* Store Pill in Header */
.dp-store-badge {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: var(--dp-transition);
}

.dp-store-badge i.fa-map-marker {
  color: var(--dp-teal);
}

/* Search Bar Pill in Header */
.dp-search-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  width: 200px;
  height: 36px;
  transition: var(--dp-transition);
}

.dp-search-pill:focus-within {
  border-color: var(--dp-teal);
  box-shadow: 0 0 0 3px var(--dp-teal-glow);
  background: #ffffff;
}

.dp-search-pill input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #334155;
  width: 100%;
}

.dp-search-pill .dp-shortcut-badge {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

/* Navbar Circular Icon Buttons */
.skin-blue .main-header .navbar .nav > li > a.dp-nav-icon-btn,
.skin-blue .main-header .navbar .navbar-custom-menu .navbar-nav > li > a.dp-nav-icon-btn,
.main-header .navbar-custom-menu .navbar-nav > li > a.dp-nav-icon-btn,
.dp-nav-icon-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #475569 !important;
  font-size: 14px !important;
  margin: 10px 4px !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  text-decoration: none !important;
}

.skin-blue .main-header .navbar .nav > li > a.dp-nav-icon-btn i,
.skin-blue .main-header .navbar .nav > li > a.dp-nav-icon-btn .fa,
.main-header .navbar-custom-menu .navbar-nav > li > a.dp-nav-icon-btn i,
.main-header .navbar-custom-menu .navbar-nav > li > a.dp-nav-icon-btn .fa,
.dp-nav-icon-btn i,
.dp-nav-icon-btn .fa {
  color: #475569 !important;
  font-size: 15px !important;
  display: inline-block !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.skin-blue .main-header .navbar .nav > li > a.dp-nav-icon-btn:hover,
.skin-blue .main-header .navbar .nav > li > a.dp-nav-icon-btn:hover i,
.main-header .navbar-custom-menu .navbar-nav > li > a.dp-nav-icon-btn:hover,
.main-header .navbar-custom-menu .navbar-nav > li > a.dp-nav-icon-btn:hover i,
.dp-nav-icon-btn:hover,
.dp-nav-icon-btn:hover i,
.dp-nav-icon-btn:hover .fa {
  background: #f1f5f9 !important;
  color: #14b8a6 !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
}

.dp-notif-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #ea5455;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

/* Red-Orange POS Button */
.dreams-btn-pos,
.navbar-nav > li > a[href*="pos"] {
  background: var(--dp-pos-red) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  margin: 10px 8px !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: 0 2px 8px rgba(234, 84, 85, 0.3) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  transition: var(--dp-transition);
}

.dreams-btn-pos:hover,
.navbar-nav > li > a[href*="pos"]:hover {
  background: var(--dp-pos-red-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Custom Menu Right */
.navbar-custom-menu {
  float: right !important;
}

.navbar-custom-menu > .navbar-nav {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.navbar-nav > .user-menu .user-image {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid #e2e8f0 !important;
  margin: 10px 6px !important;
}

.navbar-nav > .user-menu > a {
  padding: 10px 6px !important;
  display: flex !important;
  align-items: center;
}

/* Dropdown Menus */
.dropdown-menu {
  border-radius: var(--dp-radius-md) !important;
  border: 1px solid var(--dp-border) !important;
  box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.1) !important;
  padding: 8px 0;
}

.dropdown-menu > li > a {
  padding: 9px 18px !important;
  font-weight: 500;
  color: var(--dp-text-main);
  transition: var(--dp-transition);
}

.dropdown-menu > li > a:hover {
  background: #f1f5f9 !important;
  color: var(--dp-teal) !important;
}

/* ==========================================================================
   SIDEBAR NAVIGATION (DREAMS POS DARK TEAL EDITION)
   ========================================================================== */
.main-sidebar, 
.left-side,
.skin-blue .main-sidebar, 
.skin-blue .left-side {
  background: var(--dp-sidebar-bg) !important;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding-top: 64px !important;
  width: 230px !important;
  z-index: 810;
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

.sidebar {
  padding-top: 8px !important;
  padding-bottom: 40px !important;
}

.sidebar-menu {
  padding: 4px 0 30px 0 !important;
  margin: 0 !important;
}

/* Section Header (Main, Inventory, Sales, Reports & Settings) */
.sidebar-menu > li.header,
.skin-blue .sidebar-menu > li.header {
  color: var(--dp-sidebar-section) !important;
  background: transparent !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 16px 20px 6px 20px !important;
  margin-top: 4px !important;
  border: none !important;
}

/* Inactive Sidebar Links */
.sidebar-menu > li > a,
.skin-blue .sidebar-menu > li > a {
  padding: 10px 14px !important;
  margin: 3px 12px !important;
  border-radius: 8px !important;
  color: var(--dp-sidebar-text) !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
  transition: var(--dp-transition) !important;
  display: flex !important;
  align-items: center !important;
  border: 1px solid transparent !important;
  background: transparent !important;
}

/* Sidebar Icons - Vibrant Cyan-Teal (#14b8a6) */
.sidebar-menu > li > a > i,
.sidebar-menu > li > a > i.text-aqua,
.sidebar-menu > li > a > i[class*="text-"],
.sidebar-menu > li > a > .fa,
.skin-blue .sidebar-menu > li > a > i,
.skin-blue .sidebar-menu > li > a > i.text-aqua,
.skin-blue .sidebar-menu > li > a > i[class*="text-"] {
  color: var(--dp-sidebar-icon) !important;
  font-size: 16px !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  line-height: 24px !important;
  text-align: center !important;
  margin-right: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

/* Hover State */
.sidebar-menu > li:hover > a,
.skin-blue .sidebar-menu > li:hover > a {
  color: var(--dp-sidebar-text-hover) !important;
  background: rgba(20, 184, 166, 0.08) !important;
  border-radius: 8px !important;
}

.sidebar-menu > li:hover > a > i,
.skin-blue .sidebar-menu > li:hover > a > i {
  color: var(--dp-sidebar-icon-hover) !important;
}

/* ACTIVE STATE (Dreams POS Dark Teal Floating Pill with Border & Solid Teal Icon Box) */
.sidebar-menu > li.active > a,
.skin-blue .sidebar-menu > li.active > a {
  background: var(--dp-sidebar-active-bg) !important;
  color: var(--dp-sidebar-active-text) !important;
  font-weight: 600 !important;
  border: 1px solid var(--dp-sidebar-active-border) !important;
  border-radius: 8px !important;
}

.sidebar-menu > li.active > a > i,
.skin-blue .sidebar-menu > li.active > a > i {
  background: var(--dp-sidebar-active-icon-box) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  width: 26px !important;
  height: 26px !important;
  line-height: 26px !important;
  font-size: 13px !important;
}

/* Chevron Dropdown Indicators */
.sidebar-menu .pull-right-container {
  margin-right: 2px !important;
  margin-top: -2px !important;
}

.sidebar-menu .pull-right-container > .fa-angle-left {
  color: #4b6b72 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.sidebar-menu > li:hover .pull-right-container > .fa-angle-left,
.sidebar-menu > li.active .pull-right-container > .fa-angle-left,
.sidebar-menu > li.menu-open .pull-right-container > .fa-angle-left {
  color: var(--dp-sidebar-icon) !important;
}

.sidebar-menu li.menu-open > a > .pull-right-container > .fa-angle-left,
.sidebar-menu li.active > a > .pull-right-container > .fa-angle-left {
  transform: rotate(-90deg) !important;
}

/* Submenu Treeview */
.sidebar-menu .treeview-menu,
.skin-blue .sidebar-menu .treeview-menu {
  background: var(--dp-sidebar-submenu-bg) !important;
  padding: 6px 0 !important;
  margin: 2px 12px 6px 12px !important;
  border-radius: 8px !important;
  border: 1px solid var(--dp-sidebar-submenu-border) !important;
}

.sidebar-menu .treeview-menu > li > a {
  padding: 8px 12px 8px 22px !important;
  font-size: 13px !important;
  color: var(--dp-sidebar-text) !important;
  border-radius: 6px !important;
  margin: 2px 6px !important;
  transition: var(--dp-transition) !important;
  display: flex !important;
  align-items: center !important;
}

.sidebar-menu .treeview-menu > li > a > i {
  font-size: 11px !important;
  width: 14px !important;
  margin-right: 8px !important;
  color: #577b81 !important;
  transition: all 0.2s ease !important;
}

.sidebar-menu .treeview-menu > li:hover > a,
.sidebar-menu .treeview-menu > li.active > a {
  color: #ffffff !important;
  background: rgba(20, 184, 166, 0.12) !important;
  font-weight: 600 !important;
}

.sidebar-menu .treeview-menu > li:hover > a > i,
.sidebar-menu .treeview-menu > li.active > a > i {
  color: var(--dp-teal) !important;
}

/* Sidebar Collapsed State */
.sidebar-collapse .content-wrapper,
.sidebar-collapse .right-side,
.sidebar-collapse .main-footer {
  margin-left: 50px !important;
}

.sidebar-collapse .main-sidebar,
.sidebar-collapse .skin-blue .main-sidebar {
  width: 50px !important;
}

/* ==========================================================================
   DASHBOARD HEADER ROW (WELCOME GREETING & POS BUTTON)
   ========================================================================== */
.dp-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.dp-welcome-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--dp-text-heading);
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}

.dp-welcome-sub {
  font-size: 13px;
  color: var(--dp-text-muted);
  margin: 0;
  font-weight: 500;
}

.dp-welcome-sub a {
  color: var(--dp-blue);
  text-decoration: none;
  font-weight: 600;
}

.dp-welcome-sub a:hover {
  text-decoration: underline;
}

.dp-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dp-btn-pos {
  background: var(--dp-pos-red);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 8px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(234, 84, 85, 0.35);
  text-decoration: none !important;
  border: none;
  transition: var(--dp-transition);
}

.dp-btn-pos:hover {
  background: var(--dp-pos-red-hover);
  transform: translateY(-1px);
}

.dp-btn-outline {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: var(--dp-transition);
  text-decoration: none !important;
}

.dp-btn-outline:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* ==========================================================================
   UNIFIED 5-COLUMN METRIC BAR CARD (ROW 1 - DREAMS POS SIGNATURE)
   ========================================================================== */
.dp-metric-bar-card {
  background: #ffffff;
  border: 1px solid #eaedf1;
  border-radius: var(--dp-radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
}

.dp-metric-col {
  width: 20%;
  padding: 4px 24px;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dp-metric-bar-card.cols-4 .dp-metric-col {
  width: 25%;
}

.dp-metric-bar-card.cols-3 .dp-metric-col {
  width: 33.333%;
}

.dp-metric-bar-card.cols-2 .dp-metric-col {
  width: 50%;
}

.dp-metric-col:last-child {
  border-right: none;
}

@media (max-width: 1199px) {
  .dp-metric-col {
    width: 33.333%;
    margin-bottom: 16px;
  }
  .dp-metric-col:nth-child(3) {
    border-right: none;
  }
  .dp-metric-bar-card.cols-4 .dp-metric-col {
    width: 50%;
    margin-bottom: 16px;
  }
  .dp-metric-bar-card.cols-4 .dp-metric-col:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 767px) {
  .dp-metric-col,
  .dp-metric-bar-card.cols-4 .dp-metric-col,
  .dp-metric-bar-card.cols-3 .dp-metric-col,
  .dp-metric-bar-card.cols-2 .dp-metric-col {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  .dp-metric-col:last-child,
  .dp-metric-bar-card.cols-4 .dp-metric-col:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
  }
}

.dp-metric-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dp-metric-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--dp-text-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dp-metric-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dp-text-muted);
}

.dp-metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 6px;
  width: fit-content;
}

.dp-metric-trend.dp-trend-up {
  background: #dcfce7;
  color: #16a34a;
}

.dp-metric-trend.dp-trend-down {
  background: #fee2e2;
  color: #ef4444;
}

/* ==========================================================================
   ROW 2: CHARTS & DARK TEAL STATISTICS
   ========================================================================== */
.box {
  background: var(--dp-surface) !important;
  border: 1px solid var(--dp-border) !important;
  border-radius: var(--dp-radius-lg) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  border-top: none !important;
  margin-bottom: 24px !important;
  transition: var(--dp-transition);
}

.box-header {
  border-bottom: 1px solid var(--dp-border-light) !important;
  padding: 16px 20px !important;
  background: transparent !important;
}

.box-header.with-border {
  border-bottom: 1px solid var(--dp-border-light) !important;
}

.box-header .box-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--dp-text-heading) !important;
  letter-spacing: -0.01em;
}

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

/* Chart Summary Mini Cards */
.dp-chart-summary-row {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.dp-chart-sub-card {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #eaedf1;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dp-chart-sub-title {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 2px;
}

.dp-chart-sub-val {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.dp-chart-sub-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  background: #dcfce7;
  color: #16a34a;
}

.dp-chart-sub-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.dp-icon-teal-box   { background: #e6fffa; color: #14b8a6; }
.dp-icon-orange-box { background: #fff7ed; color: #f97316; }

/* Dark Teal Stock Statistics Card (Matches media_1790668925398.png) */
.dp-dark-stats-card {
  background: #082228 !important;
  border: 1px solid rgba(20, 184, 166, 0.25) !important;
  border-radius: var(--dp-radius-lg) !important;
  color: #ffffff !important;
  padding: 20px !important;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px 0 rgba(8, 34, 40, 0.4);
}

.dp-dark-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dp-dark-stats-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.dp-dark-stats-refresh {
  color: var(--dp-teal);
  cursor: pointer;
  font-size: 14px;
}

.dp-dark-stats-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dp-dark-metric-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  width: 140px;
}

.dp-dark-metric-label {
  font-size: 11.5px;
  color: #8ea7ab;
  font-weight: 500;
}

.dp-dark-metric-num {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* 3 Vertical Pillar Meters */
.dp-pillar-meters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 140px;
  padding-right: 10px;
}

.dp-pillar {
  width: 28px;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  transition: height 0.5s ease;
}

.dp-pillar-teal   { background: #14b8a6; height: 90%; }
.dp-pillar-orange { background: #f97316; height: 75%; }
.dp-pillar-red    { background: #ef4444; height: 60%; }

/* Weekly Sales Bar Chart */
.dp-weekly-chart-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 130px;
  padding: 10px 0 0 0;
  gap: 8px;
}

.dp-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.dp-bar-track {
  width: 100%;
  background: #f1f5f9;
  border-radius: 6px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dp-bar-fill {
  width: 100%;
  background: var(--dp-teal);
  border-radius: 6px 6px 0 0;
  transition: height 0.4s ease;
}

.dp-bar-col:hover .dp-bar-fill {
  background: #0d9488;
}

.dp-bar-day {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

/* Category Progress Bars */
.dp-cat-row {
  margin-bottom: 14px;
}

.dp-cat-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.dp-cat-progress {
  height: 8px;
  background: #f1f5f9;
  border-radius: 20px;
  overflow: hidden;
}

.dp-cat-bar {
  height: 100%;
  border-radius: 20px;
}

.dp-gradient-teal   { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.dp-gradient-orange { background: linear-gradient(90deg, #f97316, #fb923c); }
.dp-gradient-purple { background: linear-gradient(90deg, #6366f1, #818cf8); }
.dp-gradient-blue   { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }

/* Stock Alert Item Row */
.dp-stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  transition: var(--dp-transition);
}

.dp-stock-item:hover {
  background: #f8fafc;
}

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

.dp-stock-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dp-stock-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e6fffa;
  color: #14b8a6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.dp-stock-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #1e293b;
}

.dp-stock-sku {
  font-size: 11.5px;
  color: #94a3b8;
}

.dp-stock-badge-red {
  background: #fee2e2;
  color: #ef4444;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   TABLES & DATATABLES
   ========================================================================== */
.table {
  width: 100% !important;
  margin-bottom: 0 !important;
}

.table > thead > tr > th,
.table > thead > tr > td {
  background-color: #fafbfe !important;
  color: #64748b !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 12px 16px !important;
  border-bottom: 1.5px solid var(--dp-border) !important;
  border-top: none !important;
  vertical-align: middle;
}

.table > tbody > tr > td {
  padding: 12px 16px !important;
  border-top: 1px solid var(--dp-border-light) !important;
  color: #334155 !important;
  font-size: 13px !important;
  vertical-align: middle !important;
}

.table > tbody > tr:hover {
  background-color: #f8fafc !important;
}

/* Badges */
.label, 
.badge {
  border-radius: 4px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: inline-block;
}

.label-success, 
.bg-green {
  background-color: #dcfce7 !important;
  color: #16a34a !important;
}

.label-danger, 
.bg-red {
  background-color: #fee2e2 !important;
  color: #ef4444 !important;
}

.label-warning, 
.bg-yellow {
  background-color: #fff2e8 !important;
  color: #ff9f43 !important;
}

.label-info, 
.bg-aqua {
  background-color: #e0f9fc !important;
  color: #00cfe8 !important;
}

.label-primary {
  background-color: #e7edfe !important;
  color: #2e63f6 !important;
}

/* ==========================================================================
   FORM CONTROLS & SELECT2
   ========================================================================== */
.form-control {
  border-radius: var(--dp-radius-sm) !important;
  border: 1.5px solid #dce0e5 !important;
  background-color: #ffffff !important;
  color: var(--dp-text-main) !important;
  height: 40px;
  padding: 8px 14px;
  font-size: 13.5px;
  box-shadow: none !important;
  transition: var(--dp-transition);
}

.form-control:focus {
  border-color: var(--dp-teal) !important;
  box-shadow: 0 0 0 3px var(--dp-teal-glow) !important;
  outline: none !important;
}

.select2-container--default .select2-selection--single {
  border-radius: var(--dp-radius-sm) !important;
  border: 1.5px solid #dce0e5 !important;
  height: 40px !important;
  padding: 6px 12px !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
  border-color: var(--dp-teal) !important;
  box-shadow: 0 0 0 3px var(--dp-teal-glow) !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  border-radius: var(--dp-radius-sm) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 16px;
  border: none !important;
  transition: var(--dp-transition) !important;
}

.btn-primary {
  background: var(--dp-teal) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px var(--dp-teal-glow) !important;
}

.btn-primary:hover {
  background: #0d9488 !important;
  transform: translateY(-1px);
}

.btn-success {
  background: #10b981 !important;
  color: #ffffff !important;
}

.btn-info {
  background: #0ea5e9 !important;
  color: #ffffff !important;
}

.btn-danger {
  background: var(--dp-pos-red) !important;
  color: #ffffff !important;
}

.btn-default {
  background: #ffffff !important;
  color: #64748b !important;
  border: 1.5px solid #dce0e5 !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: #ffffff !important;
  border-top: 1px solid var(--dp-border) !important;
  color: var(--dp-text-muted) !important;
  padding: 16px 24px !important;
  margin-left: 230px !important;
  transition: margin-left 0.3s ease-in-out;
}

/* ==========================================================================
   ALL PAGES: DATATABLES ENHANCEMENTS
   ========================================================================== */
div.dataTables_wrapper div.dataTables_length select {
  border-radius: 6px !important;
  border: 1px solid #dce0e5 !important;
  padding: 5px 10px !important;
  font-size: 13px !important;
  color: #334155 !important;
  background: #ffffff !important;
  outline: none !important;
}

div.dataTables_wrapper div.dataTables_filter input {
  border-radius: 20px !important;
  border: 1px solid #dce0e5 !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  color: #334155 !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
  border-color: var(--dp-teal) !important;
  box-shadow: 0 0 0 3px var(--dp-teal-glow) !important;
}

div.dataTables_wrapper div.dataTables_info {
  font-size: 12.5px !important;
  color: #64748b !important;
  padding-top: 14px !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  margin: 12px 0 0 0 !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination > li > a {
  border-radius: 6px !important;
  margin: 0 2px !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
  transition: all 0.2s ease;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.active > a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.active > a:hover {
  background-color: var(--dp-teal) !important;
  border-color: var(--dp-teal) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px var(--dp-teal-glow) !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination > li > a:hover {
  background-color: #f1f5f9 !important;
  color: var(--dp-teal) !important;
}

/* DataTables Export Buttons (Copy, Excel, PDF, Print, CSV, Columns) */
div.dt-buttons .btn,
.dt-buttons > .btn {
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
  margin-right: 4px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
}

div.dt-buttons .btn:hover,
.dt-buttons > .btn:hover {
  background: #f8fafc !important;
  color: var(--dp-teal) !important;
  border-color: var(--dp-teal) !important;
}

/* ==========================================================================
   ALL PAGES: MODALS
   ========================================================================== */
.modal-content {
  border-radius: 12px !important;
  border: 1px solid #eaedf1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
}

.modal-header {
  background: var(--dp-sidebar-bg) !important;
  color: #ffffff !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.modal-header .modal-title {
  font-weight: 700 !important;
  font-size: 16px !important;
  color: #ffffff !important;
}

.modal-header .close {
  color: #ffffff !important;
  opacity: 0.8 !important;
  text-shadow: none !important;
  transition: all 0.2s ease;
}

.modal-header .close:hover {
  opacity: 1 !important;
  transform: scale(1.1);
}

.modal-body {
  padding: 22px !important;
  background: #ffffff !important;
}

.modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #eaedf1 !important;
  padding: 14px 20px !important;
}

/* ==========================================================================
   ALL PAGES: FORM LABELS & INPUT GROUPS
   ========================================================================== */
label {
  font-weight: 600 !important;
  color: #334155 !important;
  font-size: 13px !important;
  margin-bottom: 6px !important;
}

.input-group-addon {
  border: 1.5px solid #dce0e5 !important;
  border-right: none !important;
  background: #f8fafc !important;
  color: #64748b !important;
  border-radius: 6px 0 0 6px !important;
}

/* ==========================================================================
   ALL PAGES: TABS & NAVS
   ========================================================================== */
.nav-tabs-custom {
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid #eaedf1 !important;
  background: #ffffff !important;
  overflow: hidden;
}

.nav-tabs > li > a {
  border-radius: 6px 6px 0 0 !important;
  font-weight: 600 !important;
  color: #64748b !important;
  padding: 10px 18px !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  border-bottom: 2px solid var(--dp-teal) !important;
  color: var(--dp-teal) !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   ALL PAGES: ALERTS
   ========================================================================== */
.alert {
  border-radius: 8px !important;
  border: none !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
}

.alert-success {
  background: #dcfce7 !important;
  color: #166534 !important;
  border-left: 4px solid #16a34a !important;
}

.alert-danger {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-left: 4px solid #ef4444 !important;
}

.alert-warning {
  background: #fff2e8 !important;
  color: #9a3412 !important;
  border-left: 4px solid #ff9f43 !important;
}

.alert-info {
  background: #e0f9fc !important;
  color: #155e75 !important;
  border-left: 4px solid #00cfe8 !important;
}

/* ==========================================================================
   DREAMS POS: ALL LIST PAGES & TABLE ENHANCEMENTS
   ========================================================================== */
/* Page Header Banner */
.content-header > h1 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--dp-text-heading) !important;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}

.content-header > h1 small {
  font-size: 13px !important;
  color: var(--dp-text-muted) !important;
  font-weight: 500 !important;
}

.content-header > .breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  top: 20px !important;
  right: 24px !important;
  font-size: 12.5px;
  font-weight: 500;
}

.content-header > .breadcrumb li a {
  color: var(--dp-teal) !important;
  text-decoration: none !important;
  font-weight: 600;
}

.content-header > .breadcrumb li.active {
  color: var(--dp-text-muted) !important;
}

/* List Top Action Buttons ("Create Item", "New Customer", "New Sale") */
.box-header .box-tools .btn,
.box-header .btn-info,
.box-header a.btn-info,
.box-header .btn-primary,
.box-header a.btn-primary {
  background: var(--dp-teal) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  box-shadow: 0 2px 8px var(--dp-teal-glow) !important;
  border: none !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.box-header .box-tools .btn:hover,
.box-header .btn-info:hover,
.box-header a.btn-info:hover,
.box-header .btn-primary:hover,
.box-header a.btn-primary:hover {
  background: #0d9488 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--dp-teal-glow) !important;
}

/* List Filter Bar (Warehouse, Item Type, Dates, etc.) */
.box-header .row label {
  font-weight: 600 !important;
  font-size: 12.5px !important;
  color: #475569 !important;
  margin-bottom: 4px !important;
}

/* List Tables Layout */
.table-responsive {
  border: none !important;
  border-radius: 10px;
}

.table-bordered {
  border: 1px solid #eaedf1 !important;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
  border: 1px solid #f1f5f9 !important;
}

.table > thead > tr > th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 12px 14px !important;
  border-bottom: 2px solid #eaedf1 !important;
}

.table > tbody > tr > td {
  padding: 12px 14px !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  vertical-align: middle !important;
}

/* Image Thumbnails in Lists (Ekko Lightbox / Item Thumbnails) */
.table img,
.img-thumbnail {
  border-radius: 6px !important;
  border: 1px solid #eaedf1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.table img:hover {
  transform: scale(1.1);
}

/* List Table Action Dropdowns */
.table .btn-group > .btn.dropdown-toggle,
.table .btn-default.btn-sm,
.table .btn-default.btn-xs {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 5px 12px !important;
  transition: all 0.2s ease;
}

.table .btn-group > .btn.dropdown-toggle:hover,
.table .btn-default.btn-sm:hover,
.table .btn-default.btn-xs:hover {
  background: #f8fafc !important;
  border-color: var(--dp-teal) !important;
  color: var(--dp-teal) !important;
}

.table .dropdown-menu {
  border-radius: 10px !important;
  border: 1px solid #eaedf1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  padding: 6px 0 !important;
  min-width: 150px;
}

.table .dropdown-menu > li > a {
  padding: 8px 16px !important;
  font-size: 13px !important;
  color: #334155 !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.table .dropdown-menu > li > a:hover {
  background: #f1f5f9 !important;
  color: var(--dp-teal) !important;
}

.table .dropdown-menu > li > a > i {
  color: var(--dp-teal) !important;
  font-size: 13px !important;
  width: 16px;
  text-align: center;
}

/* Status Labels in Lists */
.table .label,
.table .badge {
  border-radius: 20px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   DREAMS POS: ALL FORM PAGES & INPUT ENHANCEMENTS
   ========================================================================== */
/* Form Cards */
.box.box-primary {
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid #eaedf1 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
  margin-bottom: 24px !important;
}

.box.box-primary > .box-header {
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 18px 24px !important;
}

.box.box-primary > .box-header .box-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--dp-text-heading) !important;
  letter-spacing: -0.01em;
}

.box.box-primary > .box-body {
  padding: 24px !important;
}

/* Form Groups & Labels */
.form-group {
  margin-bottom: 18px !important;
}

.form-group label {
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
  display: inline-block;
}

.form-group label .text-danger,
label span.text-danger {
  color: #ef4444 !important;
  font-weight: 700;
  margin-left: 2px;
}

/* Form Controls (Inputs, Textareas) */
.form-control {
  border: 1.5px solid #dce0e5 !important;
  border-radius: 8px !important;
  height: 42px !important;
  padding: 8px 14px !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.form-control:focus {
  border-color: var(--dp-teal) !important;
  box-shadow: 0 0 0 3px var(--dp-teal-glow) !important;
  outline: none !important;
}

textarea.form-control {
  height: auto !important;
  min-height: 90px !important;
  border-radius: 8px !important;
}

/* Select2 Form Enhancements */
.select2-container--default .select2-selection--single {
  border: 1.5px solid #dce0e5 !important;
  border-radius: 8px !important;
  height: 42px !important;
  padding: 6px 14px !important;
  background-color: #ffffff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 28px !important;
  color: #1e293b !important;
  font-size: 13.5px !important;
  padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
  right: 10px !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
  border-color: var(--dp-teal) !important;
  box-shadow: 0 0 0 3px var(--dp-teal-glow) !important;
}

.select2-dropdown {
  border-radius: 10px !important;
  border: 1px solid #eaedf1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--dp-teal) !important;
}

/* Input Groups in Forms (Addon Buttons e.g., Add Brand, Add Category) */
.input-group-addon {
  border: 1.5px solid #dce0e5 !important;
  border-right: none !important;
  background: #f8fafc !important;
  color: #64748b !important;
  border-radius: 8px 0 0 8px !important;
}

.input-group .input-group-btn > .btn {
  border: 1.5px solid #dce0e5 !important;
  border-left: none !important;
  border-radius: 0 8px 8px 0 !important;
  height: 42px !important;
  background: #f8fafc !important;
  color: var(--dp-teal) !important;
  font-size: 13px !important;
}

.input-group .input-group-btn > .btn:hover {
  background: #e6fffa !important;
}

/* Form Action Buttons in Footer */
.box-footer {
  background: #fafbfc !important;
  border-top: 1px solid #f1f5f9 !important;
  padding: 18px 24px !important;
  border-bottom-left-radius: 14px !important;
  border-bottom-right-radius: 14px !important;
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Ensure legacy <center> and grid columns in .box-footer display cleanly in flex layout */
.box-footer center,
.box-footer > center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  gap: 14px !important;
  float: none !important;
  margin: 0 auto !important;
}

.box-footer center > div,
.box-footer center > .col-md-3,
.box-footer center > .col-sm-3,
.box-footer center > [class*="col-"] {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 130px !important;
}

.box-footer .btn-block {
  width: auto !important;
  display: inline-block !important;
}

/* Save / Submit Button (#save, button[type="submit"], .btn-success) */
#save,
#update,
#create,
button[type="submit"],
.btn-success,
.box-footer .btn-success {
  background: var(--dp-teal) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  min-width: 130px !important;
  box-shadow: 0 2px 8px var(--dp-teal-glow) !important;
  border: none !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#save:hover,
#update:hover,
#create:hover,
button[type="submit"]:hover,
.btn-success:hover,
.box-footer .btn-success:hover {
  background: #0d9488 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--dp-teal-glow) !important;
}

/* Close / Cancel Button (.btn-warning, .btn-default, a.btn-warning) */
a.btn-warning,
.btn-warning,
.box-footer .btn-warning,
.box-footer .btn-default {
  background: #ffffff !important;
  color: #64748b !important;
  border: 1.5px solid #dce0e5 !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  border-radius: 8px !important;
  padding: 10px 22px !important;
  min-width: 120px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

a.btn-warning:hover,
.btn-warning:hover,
.box-footer .btn-warning:hover,
.box-footer .btn-default:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Sales & Purchase Forms: Item Selection & Totals Table */
#sales-table,
#purchase-table,
.items-table {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eaedf1;
  margin-top: 12px;
}

#sales-table thead th,
#purchase-table thead th {
  background-color: #081f24 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 10px 12px !important;
  border: none !important;
}

#sales-table tbody td,
#purchase-table tbody td {
  padding: 10px 12px !important;
  border-top: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

/* ==========================================================================
   GLOBAL INFO-BOX MODERN TRANSFORMATION (FOR ALL LIST PAGES)
   ========================================================================== */
.info-box {
  background: #ffffff !important;
  border: 1px solid #eaedf1 !important;
  border-radius: var(--dp-radius-lg) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  min-height: 85px !important;
  display: flex !important;
  align-items: center !important;
  padding: 14px 20px !important;
  margin-bottom: 20px !important;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.info-box .info-box-icon,
.info-box-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  float: none !important;
  background: rgba(20, 184, 166, 0.12) !important;
  color: #14b8a6 !important;
  box-shadow: none !important;
  margin: 0 16px 0 0 !important;
  padding: 0 !important;
}

.info-box-icon.bg-5,
.info-box-icon.bg-red,
.info-box-icon.bg-yellow,
.info-box-icon.bg-green,
.info-box-icon.bg-aqua {
  background: rgba(20, 184, 166, 0.12) !important;
  color: #14b8a6 !important;
}

.info-box-content {
  padding: 0 !important;
  margin-left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.info-box-number {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--dp-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 2px !important;
}

.info-box-text {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--dp-text-heading) !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  white-space: normal !important;
}

/* ==========================================================================
   BUTTONS & ACTION CONTROLS ON LIST & FORM PAGES
   ========================================================================== */
.btn-info,
.box-tools .btn-info,
a.btn-info {
  background: var(--dp-teal) !important;
  border-color: var(--dp-teal) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  box-shadow: 0 2px 8px var(--dp-teal-glow) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
}

.btn-info:hover,
.box-tools .btn-info:hover,
a.btn-info:hover {
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--dp-teal-glow) !important;
}

.btn-primary {
  background: #081f24 !important;
  border-color: #081f24 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  box-shadow: 0 2px 6px rgba(8, 31, 36, 0.25) !important;
  transition: all 0.2s ease !important;
}

.btn-primary:hover {
  background: #0f353b !important;
  border-color: #0f353b !important;
  color: #ffffff !important;
}

/* ==========================================================================
   DATATABLES & TABLES MODERN STYLING
   ========================================================================== */
table.dataTable,
.table.custom_hover {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 1px solid #eaedf1 !important;
  margin-top: 14px !important;
  margin-bottom: 14px !important;
}

table.dataTable thead th,
.table.custom_hover thead th,
.table thead.bg-gray th,
.table thead th {
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 12px 14px !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  border-top: none !important;
}

table.dataTable tbody td,
.table tbody td {
  padding: 12px 14px !important;
  font-size: 13px !important;
  color: #1e293b !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-top: none !important;
  vertical-align: middle !important;
}

table.dataTable tbody tr:hover,
.table.custom_hover tbody tr:hover {
  background-color: #f8fafc !important;
}

table.dataTable tfoot tr,
.table tfoot tr.bg-gray,
.table tfoot tr {
  background: #f8fafc !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  border-top: 2px solid #e2e8f0 !important;
}

/* DataTables Filter & Pagination */
.dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid #dce0e5 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  outline: none !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--dp-teal) !important;
  box-shadow: 0 0 0 3px var(--dp-teal-glow) !important;
}

.dataTables_wrapper .dataTables_length select {
  border: 1.5px solid #dce0e5 !important;
  border-radius: 8px !important;
  padding: 5px 10px !important;
  outline: none !important;
  font-size: 13px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 6px !important;
  padding: 5px 12px !important;
  border: 1px solid transparent !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  transition: all 0.2s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--dp-teal) !important;
  color: #ffffff !important;
  border-color: var(--dp-teal) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* Modern Status Badges */
.label {
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 8px !important;
  display: inline-block !important;
  letter-spacing: 0.02em !important;
}

.label-success,
.label.bg-green {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid rgba(22, 163, 74, 0.2) !important;
}

.label-danger,
.label.bg-red {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.label-warning,
.label.bg-yellow {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.label-info,
.label.bg-aqua {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid rgba(14, 165, 233, 0.2) !important;
}

/* ==========================================================================
   MODERN DREAMS POS MODALS
   ========================================================================== */
.modal-content {
  border-radius: 12px !important;
  border: 1px solid #eaedf1 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
}

.modal-header,
.modal-header.header-custom {
  background: #081f24 !important;
  background-image: none !important;
  color: #ffffff !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.modal-header .modal-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  letter-spacing: -0.01em !important;
}

.modal-header .close {
  color: #ffffff !important;
  opacity: 0.8 !important;
  font-size: 22px !important;
  text-shadow: none !important;
  margin-top: -2px !important;
}

.modal-header .close:hover {
  opacity: 1 !important;
}

.modal-body {
  padding: 20px !important;
  background: #ffffff !important;
}

.modal-footer {
  padding: 12px 20px !important;
  background: #f8fafc !important;
  border-top: 1px solid #eaedf1 !important;
}

/* ==========================================================================
   SALES LIST INTERACTIVE POWER FEATURES
   ========================================================================== */
.sales-status-pill {
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  padding: 5px 14px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.sales-status-pill:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
}

.sales-status-pill.active-status-pill {
  background: var(--dp-teal, #0d9488) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px var(--dp-teal-glow, rgba(13, 148, 136, 0.35)) !important;
}

.sales-status-pill.active-status-pill i {
  color: #ffffff !important;
}

.date-preset-btn {
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
  padding: 3px 9px !important;
  transition: all 0.15s ease !important;
}

.date-preset-btn.btn-primary {
  background: var(--dp-teal, #0d9488) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}



