/* ==========================================================================

   Pritam Food — Pritam Warehouse Inventory Management System

   Modern, Responsive Business Dashboard Stylesheet

   ========================================================================== */



:root {

  --navy-950: #0a111e;

  --navy-900: #0f1c2e;

  --navy-850: #14243b;

  --navy-800: #1a2f4c;

  --navy-700: #2a4365;

  --navy-100: #e2e8f0;

  

  --pritam-gold: #c28b38;

  --pritam-gold-dark: #9e6f24;

  --pritam-gold-light: #fef8ee;

  

  --blue: #2563eb;

  --blue-hover: #1d4ed8;

  --blue-light: #eff6ff;

  --blue-border: #bfdbfe;

  

  --green: #10805c;

  --green-hover: #0a6346;

  --green-light: #e8f7f0;

  --green-border: #a7f3d0;

  

  --amber: #b45309;

  --amber-light: #fffbeb;

  --amber-border: #fde68a;

  

  --red: #c43232;

  --red-hover: #a12424;

  --red-light: #ffeded;

  --red-border: #fecaca;

  

  --purple: #7e22ce;

  --purple-light: #faf5ff;

  

  --bg: #f4f6fa;

  --card-bg: #ffffff;

  --text: #1e293b;

  --text-dark: #0f172a;

  --muted: #64748b;

  --line: #e2e8f0;

  --line-light: #f1f5f9;

  

  --radius-sm: 6px;

  --radius-md: 10px;

  --radius-lg: 14px;

  --radius-xl: 18px;

  

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);

  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);

  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);

  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

}



* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



body {

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  background: var(--bg);

  color: var(--text);

  line-height: 1.5;

  -webkit-font-smoothing: antialiased;

}



button, input, select, textarea {

  font: inherit;

}



button {

  cursor: pointer;

  transition: all 0.15s ease;

}



/* App Container & Collapsible Grid */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.app.sidebar-collapsed {
  grid-template-columns: 72px 1fr;
}

/* Sidebar Navigation */
.sidebar {
  background: var(--navy-900);
  color: #cbd5e1;
  padding: 18px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 30;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
}

/* Collapsed Rail (Desktop) */
.app.sidebar-collapsed .sidebar {
  width: 72px;
  padding: 18px 6px 14px 6px;
}

.app.sidebar-collapsed .brand {
  padding: 4px 0;
  align-items: center;
}

.app.sidebar-collapsed .brand-logo-box {
  padding: 6px;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
}

.app.sidebar-collapsed .brand-logo-box img {
  max-height: 26px;
  max-width: 26px;
}

.app.sidebar-collapsed .brand-text,
.app.sidebar-collapsed .brand-sub,
.app.sidebar-collapsed .scope-banner > div:last-child,
.app.sidebar-collapsed .nav-label,
.app.sidebar-collapsed .nav-text,
.app.sidebar-collapsed .nav-counter,
.app.sidebar-collapsed #sidebarKabaliSection .nav-label {
  display: none !important;
  opacity: 0;
}

.app.sidebar-collapsed .scope-banner {
  justify-content: center;
  padding: 8px 0;
}

.app.sidebar-collapsed .nav button {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
  position: relative;
}

.app.sidebar-collapsed .nav .ico {
  margin: 0;
}

.app.sidebar-collapsed .nav-submenu {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
  gap: 2px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Tooltips on Hover in Collapsed Mode */
.app.sidebar-collapsed .nav button:hover::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Sidebar Toggle Hamburger Button in Topbar */
.sidebar-toggle-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-right: 12px;
  padding: 0;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.sidebar-toggle-btn:focus-visible {
  outline: 2px solid var(--pritam-gold);
  outline-offset: 2px;
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive Sidebar on Tablets & Mobile (<= 860px) */
@media (max-width: 860px) {
  .app,
  .app.sidebar-collapsed {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 270px !important;
    max-width: 85vw !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200 !important;
    box-shadow: none;
    padding: 18px 12px 14px 12px !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.35);
  }

  .app.sidebar-collapsed .sidebar {
    width: 270px !important;
  }
  .app.sidebar-collapsed .brand-text,
  .app.sidebar-collapsed .brand-sub,
  .app.sidebar-collapsed .scope-banner > div:last-child,
  .app.sidebar-collapsed .nav-label,
  .app.sidebar-collapsed .nav-text,
  .app.sidebar-collapsed .nav-counter,
  .app.sidebar-collapsed #sidebarKabaliSection .nav-label {
    display: initial !important;
    opacity: 1 !important;
  }
  .app.sidebar-collapsed .nav button {
    justify-content: flex-start !important;
    padding: 10px 12px !important;
    gap: 12px !important;
  }
  .app.sidebar-collapsed .nav button:hover::after {
    display: none !important;
  }
}



.brand {

  flex-shrink: 0;

  display: flex;

  flex-direction: column;

  align-items: stretch;

  gap: 10px;

  padding: 4px 6px;

  color: #ffffff;

}



.brand-logo-box {

  background: #ffffff;

  padding: 8px 12px;

  border-radius: var(--radius-md);

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

  border: 1px solid rgba(255, 255, 255, 0.2);

  transition: transform 0.2s ease;

}



.brand-logo-box:hover {

  transform: translateY(-1px);

}



.brand-logo-box img {

  max-height: 38px;

  width: auto;

  max-width: 100%;

  display: block;

  object-fit: contain;

}



.brand-text {

  display: flex;

  flex-direction: column;

  padding: 0 4px;

}



.brand-text-title {

  font-size: 13px;

  font-weight: 800;

  color: #ffffff;

  letter-spacing: 0.5px;

}



.brand-sub {

  font-size: 9px;

  font-weight: 700;

  color: var(--pritam-gold);

  letter-spacing: 1.4px;

  text-transform: uppercase;

  margin-top: 2px;

}



.nav-label {

  padding: 0 12px;

  font-size: 10px;

  letter-spacing: 1.3px;

  color: #64748b;

  font-weight: 800;

  text-transform: uppercase;

  margin-bottom: 8px;

}



.operations-heading {

  flex-shrink: 0;

  margin-bottom: -4px;

}



/* Scrollable Operations Hub Menu Area */

.sidebar-nav-scroll,

#sidebarNavScroll {

  flex: 1 1 auto;

  min-height: 0;

  overflow-y: auto;

  overflow-x: hidden;

  overscroll-behavior-y: contain;

  padding-right: 2px;

  padding-bottom: 8px;

  margin-bottom: 0;

  scrollbar-width: thin;

  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;

}



.sidebar-nav-scroll::-webkit-scrollbar,

#sidebarNavScroll::-webkit-scrollbar {

  width: 5px;

}



.sidebar-nav-scroll::-webkit-scrollbar-track,

#sidebarNavScroll::-webkit-scrollbar-track {

  background: transparent;

}



.sidebar-nav-scroll::-webkit-scrollbar-thumb,

#sidebarNavScroll::-webkit-scrollbar-thumb {

  background: rgba(255, 255, 255, 0.2);

  border-radius: 4px;

}



.sidebar-nav-scroll::-webkit-scrollbar-thumb:hover,

#sidebarNavScroll::-webkit-scrollbar-thumb:hover {

  background: rgba(255, 255, 255, 0.35);

}



.nav {

  display: flex;

  flex-direction: column;

  gap: 4px;

  overscroll-behavior-y: contain;

}



.nav button {

  border: 0;

  background: transparent;

  color: #94a3b8;

  text-align: left;

  padding: 10px 12px;

  border-radius: var(--radius-md);

  display: flex;

  align-items: center;

  gap: 12px;

  font-size: 13px;

  font-weight: 600;

  position: relative;

}



.nav button:hover {

  background: rgba(255, 255, 255, 0.06);

  color: #ffffff;

}



.nav button.active {

  background: var(--navy-800);

  color: #ffffff;

  box-shadow: inset 3px 0 0 var(--pritam-gold);

}

.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 14px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  margin-top: 2px;
  margin-bottom: 4px;
}

.nav-submenu button {
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: #94a3b8;
}

.nav-submenu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-submenu button.active {
  background: var(--navy-800);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--pritam-gold);
}

.nav-submenu button.active .ico {
  color: var(--pritam-gold);
}



.nav .ico {

  width: 20px;

  height: 20px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 14px;

  color: #94a3b8;

  flex-shrink: 0;

}



.nav .ico svg {

  width: 16px;

  height: 16px;

  stroke: currentColor;

  stroke-width: 2;

  fill: none;

  stroke-linecap: round;

  stroke-linejoin: round;

}



.nav button.active .ico {

  color: var(--pritam-gold);

}



.nav-counter {

  margin-left: auto;

  font-size: 10px;

  font-weight: 800;

  padding: 2px 7px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.1);

  color: #e2e8f0;

}



.nav-counter.alert-counter {

  background: #ef4444;

  color: #fff;

  animation: pulse 2s infinite;

}



.sidebar-bottom {

  flex-shrink: 0;

  margin-top: auto;

  padding: 12px 14px;

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: var(--radius-lg);

  font-size: 11px;

  color: #94a3b8;

  line-height: 1.5;

}



.scope-banner {

  flex-shrink: 0;

  margin: 0 6px;

  padding: 9px 12px;

  background: rgba(194, 139, 56, 0.12);

  border: 1px solid rgba(194, 139, 56, 0.25);

  border-radius: var(--radius-md);

  font-size: 11px;

  color: #fbd38d;

  display: flex;

  align-items: center;

  gap: 8px;

}



/* Main Area */

.main {

  min-width: 0;

  display: flex;

  flex-direction: column;

}



/* Top Navigation Bar */

.topbar {

  height: 72px;

  background: #ffffff;

  border-bottom: 1px solid var(--line);

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 28px;

  gap: 16px;

  position: sticky;

  top: 0;

  z-index: 20;

}



.mobile-menu-btn {

  display: none;

  background: transparent;

  border: 1px solid var(--line);

  border-radius: var(--radius-sm);

  padding: 6px 10px;

  font-size: 18px;

  color: var(--text);

}



.search {

  position: relative;

  max-width: 380px;

  flex: 1;

}



.search input {

  width: 100%;

  border: 1px solid var(--line);

  background: #f8fafc;

  border-radius: var(--radius-md);

  padding: 10px 14px 10px 38px;

  font-size: 13px;

  outline: none;

  transition: all 0.2s ease;

}



.search input:focus {

  background: #ffffff;

  border-color: var(--blue);

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);

}



.search span {

  position: absolute;

  left: 12px;

  top: 9px;

  color: var(--muted);

  font-size: 15px;

}



.top-actions {

  display: flex;

  align-items: center;

  gap: 14px;

}



/* Branch Scope Selector Pill */

.branch-scope-pill {

  display: flex;

  align-items: center;

  gap: 6px;

  background: #f1f5f9;

  border: 1px solid var(--line);

  border-radius: var(--radius-md);

  padding: 6px 10px;

  font-size: 12px;

  font-weight: 600;

  color: var(--navy-900);

}



.branch-scope-pill select {

  border: none;

  background: transparent;

  outline: none;

  font-size: 12px;

  font-weight: 700;

  color: var(--navy-900);

  cursor: pointer;

}



/* Notification Bell */

.notif-btn {

  position: relative;

  width: 38px;

  height: 38px;

  border-radius: 50%;

  border: 1px solid var(--line);

  background: #ffffff;

  display: grid;

  place-items: center;

  color: var(--text);

  font-size: 17px;

  cursor: pointer;

}



.notif-btn:hover {

  background: #f8fafc;

  border-color: #cbd5e1;

}



.notif-badge {

  position: absolute;

  top: -2px;

  right: -2px;

  background: #ef4444;

  color: #fff;

  border-radius: 10px;

  padding: 1px 6px;

  font-size: 10px;

  font-weight: 800;

  border: 2px solid #ffffff;

}



/* Role Selector Badge & Profile */

.user-profile-badge {

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 6px 12px;

  background: #f8fafc;

  border: 1px solid var(--line);

  border-radius: var(--radius-lg);

  cursor: pointer;

  transition: all 0.15s ease;

}



.user-profile-badge:hover {

  background: #f1f5f9;

  border-color: #cbd5e1;

}



.user-avatar {

  width: 32px;

  height: 32px;

  border-radius: 50%;

  background: linear-gradient(135deg, #1e3a5f, #0f1c2e);

  color: #f8fafc;

  border: 1px solid rgba(255, 255, 255, 0.2);

  display: grid;

  place-items: center;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.5px;

}



.stat-icon svg {

  width: 20px;

  height: 20px;

  stroke: currentColor;

  stroke-width: 2;

  fill: none;

  stroke-linecap: round;

  stroke-linejoin: round;

}



.product-thumb {

  display: flex;

  align-items: center;

  justify-content: center;

}



.product-thumb svg {

  width: 18px;

  height: 18px;

  stroke: var(--navy-700);

  stroke-width: 2;

  fill: none;

  stroke-linecap: round;

  stroke-linejoin: round;

}



.user-meta {

  display: flex;

  flex-direction: column;

  line-height: 1.2;

}



.user-name {

  font-size: 12px;

  font-weight: 700;

  color: var(--navy-900);

}



.user-role-label {

  font-size: 10px;

  font-weight: 600;

  color: var(--pritam-gold-dark);

}



/* Content Area */

.content {

  padding: 28px 30px;

  max-width: 1680px;

  width: 100%;

  margin: 0 auto;

}



.page-head {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 16px;

  margin-bottom: 24px;

}



.eyebrow {

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 1.4px;

  color: var(--blue);

  font-weight: 800;

  margin-bottom: 6px;

  display: flex;

  align-items: center;

  gap: 6px;

}



.page-head h1 {

  margin: 0;

  font-size: 26px;

  font-weight: 800;

  letter-spacing: -0.6px;

  color: var(--navy-950);

}



.subtitle {

  color: var(--muted);

  font-size: 13px;

  margin-top: 5px;

}



.actions {

  display: flex;

  gap: 10px;

  flex-wrap: wrap;

}



/* Buttons */

.btn {

  border: 1px solid var(--line);

  background: #ffffff;

  color: var(--text-dark);

  padding: 9px 15px;

  border-radius: var(--radius-md);

  font-size: 13px;

  font-weight: 700;

  display: inline-flex;

  align-items: center;

  gap: 7px;

  box-shadow: var(--shadow-sm);

}



.btn:hover {

  background: #f8fafc;

  border-color: #cbd5e1;

}



.btn.primary {

  background: var(--blue);

  color: #ffffff;

  border-color: var(--blue);

}



.btn.primary:hover {

  background: var(--blue-hover);

  border-color: var(--blue-hover);

}



.btn.gold {

  background: var(--pritam-gold);

  color: #ffffff;

  border-color: var(--pritam-gold);

}



.btn.gold:hover {

  background: var(--pritam-gold-dark);

}



.btn.success {

  background: var(--green);

  color: #ffffff;

  border-color: var(--green);

}



.btn.danger {

  background: #ffffff;

  color: var(--red);

  border-color: var(--red-border);

}



.btn.danger:hover {

  background: var(--red-light);

}



.btn.danger-solid {

  background: var(--red);

  color: #ffffff;

  border-color: var(--red);

}



.btn.danger-solid:hover {

  background: var(--red-hover);

}



.btn.sm {

  padding: 6px 10px;

  font-size: 12px;

  border-radius: var(--radius-sm);

}



/* Grids */

.grid {

  display: grid;

  gap: 18px;

}



.stats {

  grid-template-columns: repeat(4, minmax(0, 1fr));

  margin-bottom: 22px;

}



.stats-eight {

  grid-template-columns: repeat(4, minmax(0, 1fr));

  margin-bottom: 22px;

}



/* Cards */

.card {

  background: var(--card-bg);

  border: 1px solid var(--line);

  border-radius: var(--radius-lg);

  padding: 20px;

  min-width: 0;

  box-shadow: var(--shadow-sm);

  transition: box-shadow 0.2s ease;

}



.card:hover {

  box-shadow: var(--shadow-md);

}



.stat-top {

  display: flex;

  justify-content: space-between;

  align-items: center;

  color: var(--muted);

  font-size: 12px;

  font-weight: 600;

}



.stat-icon {

  width: 36px;

  height: 36px;

  display: grid;

  place-items: center;

  border-radius: var(--radius-md);

  background: var(--blue-light);

  color: var(--blue);

  font-size: 18px;

}



.stat-value {

  font-size: 26px;

  font-weight: 800;

  letter-spacing: -0.8px;

  margin: 10px 0 4px;

  color: var(--navy-950);

}



.stat-note {

  font-size: 11px;

  color: var(--muted);

  display: flex;

  align-items: center;

  gap: 5px;

}



.stat-note.positive { color: var(--green); }

.stat-note.negative { color: var(--red); }

.stat-note.warning { color: var(--amber); }



.card-title {

  font-weight: 800;

  font-size: 15px;

  color: var(--navy-950);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 8px;

}



.card-sub {

  color: var(--muted);

  font-size: 12px;

  margin-top: 4px;

}



/* Dashboard Layout */

.dashboard-grid {

  grid-template-columns: 1.5fr 1fr;

  margin-bottom: 22px;

}



.dashboard-charts-grid {

  grid-template-columns: 1fr 1fr;

  margin-bottom: 22px;

}



/* Alerts Banner & Items */

.urgent-banner {

  padding: 14px 18px;

  border-radius: var(--radius-md);

  margin-bottom: 22px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  border-left: 5px solid;

}



.urgent-banner.danger {

  background: #fff1f2;

  border-color: #e11d48;

  color: #9f1239;

}



.urgent-banner.warning {

  background: #fffbeb;

  border-color: #f59e0b;

  color: #92400e;

}



.alert-list {

  display: flex;

  flex-direction: column;

  gap: 0;

  margin-top: 14px;

}



.alert-item {

  display: flex;

  gap: 12px;

  align-items: center;

  padding: 12px 0;

  border-bottom: 1px solid var(--line-light);

}



.alert-item:last-child {

  border-bottom: 0;

}



.alert-icon {

  width: 34px;

  height: 34px;

  border-radius: var(--radius-md);

  display: grid;

  place-items: center;

  font-size: 16px;

  flex-shrink: 0;

}



.alert-icon.danger {

  background: var(--red-light);

  color: var(--red);

}



.alert-icon.warning {

  background: var(--amber-light);

  color: var(--amber);

}



.alert-icon.info {

  background: var(--blue-light);

  color: var(--blue);

}



.alert-item strong {

  font-size: 13px;

  display: block;

  color: var(--navy-900);

}



.alert-item small {

  color: var(--muted);

  font-size: 11px;

}



.alert-action-btn {

  margin-left: auto;

  flex-shrink: 0;

}



/* Tables */

.table-card {

  padding: 0;

  overflow: hidden;

}



.table-tools {

  padding: 14px 20px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 12px;

  border-bottom: 1px solid var(--line);

  flex-wrap: wrap;

  background: #ffffff;

}



.table-tools-left {

  display: flex;

  gap: 10px;

  flex: 1;

  flex-wrap: wrap;

  align-items: center;

}



.table-tools input, .table-tools select {

  border: 1px solid var(--line);

  border-radius: var(--radius-md);

  padding: 8px 12px;

  font-size: 12px;

  background: #ffffff;

  outline: none;

  color: var(--text);

}



.table-tools input:focus, .table-tools select:focus {

  border-color: var(--blue);

}



.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  position: relative;
  scrollbar-width: auto;
  scrollbar-color: #475569 #e2e8f0;
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

/* Enhanced default native scrollbars for any unmanaged scroll containers */
.table-wrap::-webkit-scrollbar {
  height: 16px;
}

.table-wrap::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: #1e293b;
}

.table-wrap::-webkit-scrollbar-thumb:active {
  background: #0f172a;
}

/* Hide native scrollbar on table-wrap when synchronized custom scrollbar is active to prevent duplicates */
.table-wrap.has-sync-scrollbar,
#inventoryTableWrap {
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

.table-wrap.has-sync-scrollbar::-webkit-scrollbar,
#inventoryTableWrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#inventoryTableWrap table {
  table-layout: fixed;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Universal and Inventory Bottom Synchronized Horizontal Scrollbars */
.universal-bottom-scrollbar,
.inventory-bottom-scrollbar {
  overflow-x: auto;
  overflow-y: hidden;
  height: 16px;
  min-height: 16px;
  background: #f1f5f9;
  border-top: 1px solid #cbd5e1;
  box-sizing: border-box;
  scrollbar-width: auto;
  scrollbar-color: #475569 #e2e8f0;
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  transition: none !important;
}

.universal-bottom-scrollbar.is-floating,
.inventory-bottom-scrollbar.is-floating {
  position: fixed;
  bottom: 0;
  z-index: 50;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.2), 0 -1px 3px rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  border-top: 1px solid #94a3b8;
  border-radius: 8px 8px 0 0;
}

.universal-bottom-scrollbar.is-docked,
.inventory-bottom-scrollbar.is-docked {
  position: relative;
  width: 100%;
  border-top: 1px solid var(--line, #e2e8f0);
  box-shadow: none;
  border-radius: 0;
}

.universal-bottom-scrollbar-track,
.inventory-bottom-scrollbar-track {
  height: 1px;
  display: block;
  pointer-events: none;
}

.universal-bottom-scrollbar::-webkit-scrollbar,
.inventory-bottom-scrollbar::-webkit-scrollbar {
  height: 16px;
}

.universal-bottom-scrollbar::-webkit-scrollbar-track,
.inventory-bottom-scrollbar::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.universal-bottom-scrollbar::-webkit-scrollbar-thumb,
.inventory-bottom-scrollbar::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.universal-bottom-scrollbar::-webkit-scrollbar-thumb:hover,
.inventory-bottom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #1e293b;
}

.universal-bottom-scrollbar::-webkit-scrollbar-thumb:active,
.inventory-bottom-scrollbar::-webkit-scrollbar-thumb:active {
  background: #0f172a;
}



table {

  border-collapse: collapse;

  width: 100%;

}



th {

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 0.6px;

  color: #64748b;

  background: #f8fafc;

  text-align: left;

  padding: 12px 16px;

  font-weight: 800;

  border-bottom: 1px solid var(--line);

  white-space: nowrap;

}



td {

  font-size: 12px;

  padding: 12px 16px;

  border-top: 1px solid var(--line-light);

  color: var(--text);

  vertical-align: middle;

  white-space: nowrap;

}



tbody tr:hover {

  background: #f8fafc;

}



.product-cell {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.product-cell .product-name {
  display: block;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  text-align: left;
  margin: 0;
  padding: 0;
}

#inventoryTable .product-cell {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 0;
  margin: 0;
}

#inventoryTable .product-cell .product-name {
  display: block;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  text-align: left;
  margin: 0;
  padding: 0;
}



#inventoryTable .product-cell .muted {

  display: block;

  color: var(--muted);

  font-size: 11px;

  margin: 0;

  line-height: 1.35;

  word-break: break-word;

  padding: 0;

  text-align: left;

}



/* Ensure no product box icons or empty icon containers appear anywhere */

.product-thumb,

.product-icon,

.box-icon,

.item-box-icon,

.product-cell > svg,

.product-cell > .product-thumb,

#inventoryTable .product-thumb,

#inventoryTable .product-icon,

#inventoryTable .box-icon,

#inventoryTable .product-cell svg {

  display: none !important;

  width: 0 !important;

  height: 0 !important;

  margin: 0 !important;

  padding: 0 !important;

  border: none !important;

  overflow: hidden !important;

}



#inventoryTable tr {

  border-bottom: 1px solid var(--line-light);

  transition: background-color 0.15s ease;

}



#inventoryTable tr:hover {

  background: #f8fafc;

}



.product-thumb {

  width: 36px;

  height: 36px;

  border-radius: var(--radius-md);

  background: #f1f5f9;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  overflow: hidden;

}



.product-name {

  font-weight: 700;

  color: var(--navy-900);

  font-size: 13px;

  line-height: 1.35;

  word-break: break-word;

}



.product-cell .muted {

  color: var(--muted);

  font-size: 11px;

  margin-top: 3px;

  line-height: 1.35;

  word-break: break-word;

}



.muted {

  color: var(--muted);

  font-size: 11px;

  margin-top: 2px;

}



/* Badges */

.badge {

  display: inline-flex;

  align-items: center;

  gap: 4px;

  padding: 4px 9px;

  border-radius: 20px;

  font-size: 11px;

  font-weight: 700;

  line-height: 1.2;

}



.badge.good { background: var(--green-light); color: var(--green); }

.badge.warn { background: var(--amber-light); color: var(--amber); }

.badge.bad { background: var(--red-light); color: var(--red); }

.badge.neutral { background: #f1f5f9; color: #475569; }

.badge.blue { background: var(--blue-light); color: var(--blue); }

.badge.purple { background: var(--purple-light); color: var(--purple); }

.badge.gold { background: var(--pritam-gold-light); color: var(--pritam-gold-dark); }



.link-btn {

  border: 0;

  background: none;

  color: var(--blue);

  font-size: 12px;

  font-weight: 700;

  padding: 4px 6px;

  border-radius: var(--radius-sm);

}



.link-btn:hover {

  text-decoration: underline;

  background: var(--blue-light);

}



.link-btn.danger {

  color: var(--red);

}



.link-btn.danger:hover {

  background: var(--red-light);

}



.empty {

  text-align: center;

  color: var(--muted);

  padding: 40px 20px;

  font-size: 13px;

}



.hidden {

  display: none !important;

}



/* Forms */

.form-grid {

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 16px;

}



.field {

  display: grid;

  gap: 6px;

}



.field.full {

  grid-column: 1 / -1;

}



.field label {

  font-size: 12px;

  font-weight: 700;

  color: #334155;

  display: flex;

  justify-content: space-between;

}



.field input, .field select, .field textarea {

  width: 100%;

  padding: 10px 12px;

  border: 1px solid #cbd5e1;

  border-radius: var(--radius-md);

  background: #ffffff;

  outline: none;

  font-size: 13px;

  color: var(--text-dark);

}



.field input:focus, .field select:focus, .field textarea:focus {

  border-color: var(--blue);

  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);

}



.form-actions {

  display: flex;

  justify-content: flex-end;

  gap: 10px;

  margin-top: 22px;

  padding-top: 14px;

  border-top: 1px solid var(--line-light);

}



.notice {

  padding: 12px 16px;

  border-radius: var(--radius-md);

  background: #eff6ff;

  border-left: 4px solid var(--blue);

  color: #1e40af;

  font-size: 12px;

  line-height: 1.5;

  margin-bottom: 18px;

}



/* Tab Navigation inside Pages */

.tabs {

  display: flex;

  gap: 8px;

  border-bottom: 1px solid var(--line);

  margin-bottom: 20px;

}



.tab-btn {

  padding: 10px 16px;

  border: none;

  background: transparent;

  font-size: 13px;

  font-weight: 700;

  color: var(--muted);

  border-bottom: 2px solid transparent;

  cursor: pointer;

  display: flex;

  align-items: center;

  gap: 8px;

}



.tab-btn:hover {

  color: var(--navy-900);

}



.tab-btn.active {

  color: var(--blue);

  border-bottom-color: var(--blue);

}



/* Branch Cards Grid */

.branch-grid {

  grid-template-columns: repeat(3, minmax(0, 1fr));

}



.branch-card {

  display: flex;

  flex-direction: column;

}



.branch-card h3 {

  font-size: 16px;

  font-weight: 800;

  margin: 10px 0 4px;

  color: var(--navy-900);

}



.branch-meta-row {

  display: flex;

  justify-content: space-between;

  font-size: 12px;

  margin-top: 8px;

  color: var(--muted);

}



/* Stepper / Timeline for Supply Workflow */

.stepper {

  display: flex;

  justify-content: space-between;

  position: relative;

  margin: 20px 0;

  padding: 0 10px;

}



.stepper::before {

  content: '';

  position: absolute;

  top: 14px;

  left: 20px;

  right: 20px;

  height: 3px;

  background: var(--line);

  z-index: 1;

}



.step-node {

  position: relative;

  z-index: 2;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 6px;

  font-size: 11px;

  font-weight: 700;

  color: var(--muted);

}



.step-circle {

  width: 28px;

  height: 28px;

  border-radius: 50%;

  background: #ffffff;

  border: 2px solid var(--line);

  display: grid;

  place-items: center;

  font-size: 12px;

  color: var(--muted);

}



.step-node.completed .step-circle {

  background: var(--green);

  border-color: var(--green);

  color: #ffffff;

}



.step-node.completed {

  color: var(--green);

}



.step-node.active .step-circle {

  background: var(--blue);

  border-color: var(--blue);

  color: #ffffff;

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);

}



.step-node.active {

  color: var(--blue);

}



/* Modal */

.modal-backdrop {

  position: fixed;

  inset: 0;

  background: rgba(15, 23, 42, 0.6);

  backdrop-filter: blur(3px);

  display: grid;

  place-items: center;

  padding: 20px;

  z-index: 100;

  animation: fadeIn 0.15s ease;

}



.modal {
  width: min(760px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px 26px;
  box-shadow: var(--shadow-xl);
  position: relative;
  box-sizing: border-box;
}

.modal.large {
  width: min(920px, calc(100vw - 32px));
}



.modal-head {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 20px;

  padding-bottom: 14px;

  border-bottom: 1px solid var(--line);

}



.modal-head h2 {

  margin: 0;

  font-size: 20px;

  font-weight: 800;

  color: var(--navy-950);

}



.close-btn {

  border: 0;

  background: #f1f5f9;

  border-radius: var(--radius-md);

  width: 34px;

  height: 34px;

  display: grid;

  place-items: center;

  font-size: 20px;

  color: var(--muted);

}



.close-btn:hover {

  background: #e2e8f0;

  color: var(--text-dark);

}



/* Toast */

.toast {

  position: fixed;

  right: 28px;

  bottom: 28px;

  background: var(--navy-900);

  color: #ffffff;

  padding: 14px 20px;

  border-radius: var(--radius-md);

  box-shadow: 0 10px 35px rgba(10, 17, 30, 0.3);

  font-size: 13px;

  font-weight: 600;

  z-index: 150;

  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  display: flex;

  align-items: center;

  gap: 10px;

  border-left: 4px solid var(--pritam-gold);

}



/* Printable Delivery Challan */

.print-challan {

  border: 2px solid #0f172a;

  padding: 24px;

  background: #ffffff;

  font-family: inherit;

  margin: 10px 0;

}



.challan-header {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  border-bottom: 2px solid #0f172a;

  padding-bottom: 16px;

  margin-bottom: 16px;

}



.challan-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;

  margin-bottom: 20px;

  font-size: 12px;

}



.challan-signatures {

  display: grid;

  grid-template-columns: 1fr 1fr 1fr;

  gap: 20px;

  margin-top: 40px;

  padding-top: 20px;

  border-top: 1px dashed #cbd5e1;

  text-align: center;

  font-size: 11px;

}



.sig-line {

  border-top: 1px solid #000;

  margin-top: 35px;

  padding-top: 6px;

  font-weight: 700;

}



/* Animations */

@keyframes fadeIn {

  from { opacity: 0; }

  to { opacity: 1; }

}



@keyframes slideUp {

  from { transform: translateY(16px); opacity: 0; }

  to { transform: translateY(0); opacity: 1; }

}



@keyframes pulse {

  0%, 100% { opacity: 1; }

  50% { opacity: 0.7; }

}



/* Responsive Breakpoints */

@media (max-width: 1200px) {

  .app {

    grid-template-columns: 230px 1fr;

  }

  .stats, .stats-eight {

    grid-template-columns: repeat(2, minmax(0, 1fr));

  }

  .dashboard-grid, .dashboard-charts-grid {

    grid-template-columns: 1fr;

  }

  .branch-grid {

    grid-template-columns: repeat(2, minmax(0, 1fr));

  }

}



@media (max-width: 860px) {

  .app {

    grid-template-columns: 1fr;

  }

  .sidebar {

    display: none;

    position: fixed;

    inset: 0 auto 0 0;

    width: 270px;

    box-shadow: var(--shadow-xl);

  }

  .sidebar.mobile-open {

    display: flex;

  }

  .mobile-menu-btn {

    display: block;

  }

  .topbar {

    padding: 0 16px;

    height: 64px;

  }

  .content {

    padding: 20px 14px;

  }

  .page-head {

    flex-direction: column;

    align-items: flex-start;

  }

  .branch-grid {

    grid-template-columns: 1fr;

  }

  .form-grid {

    grid-template-columns: 1fr;

  }

  .top-actions .branch-scope-pill {

    display: none;

  }

}



/* Header & Page Logo Badges */

.topbar-brand,

.topbar-logo-img {

  display: none !important;

  width: 0 !important;

  height: 0 !important;

  margin: 0 !important;

  padding: 0 !important;

  overflow: hidden !important;

}







.page-head-brand {

  display: flex;

  align-items: center;

  gap: 16px;

}



.page-head-logo-box {

  background: #ffffff;

  padding: 6px 10px;

  border-radius: var(--radius-md);

  border: 1px solid var(--line);

  box-shadow: var(--shadow-sm);

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

}



.page-head-logo-box img {

  height: 38px;

  width: auto;

  max-width: 160px;

  display: block;

  object-fit: contain;

}



@media (max-width: 640px) {

  .page-head-brand {

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;

  }

  .page-head-logo-box img {

    height: 30px;

  }

}



/* Print Styles */

@media print {

  body {

    background: #ffffff !important;

    color: #000000 !important;

  }

  .sidebar, .topbar, .actions, .table-tools, .btn, .notif-btn, .tabs, .user-profile-badge, .modal-close, .close-btn, .form-actions {

    display: none !important;

  }

  .app {

    display: block !important;

  }

  .content {

    padding: 0 !important;

    max-width: 100% !important;

  }

  .card {

    border: none !important;

    box-shadow: none !important;

    padding: 0 !important;

  }

  .page-head {

    border-bottom: 2px solid #0f172a !important;

    padding-bottom: 12px !important;

    margin-bottom: 20px !important;

  }

  .page-head-brand {

    display: flex !important;

    align-items: center !important;

    gap: 16px !important;

  }

  .page-head-logo-box {

    border: 1px solid #cbd5e1 !important;

    padding: 6px 12px !important;

    background: #ffffff !important;

  }

  .page-head-logo-box img {

    height: 38px !important;

  }

  .modal-backdrop {

    position: static !important;

    background: transparent !important;

    padding: 0 !important;

    display: block !important;

  }

  .modal {

    box-shadow: none !important;

    border: none !important;

    max-width: 100% !important;

    padding: 0 !important;

    background: transparent !important;

  }

  .modal-head {

    display: none !important;

  }

  .print-challan {

    border: 2px solid #000000 !important;

    page-break-after: always;

    padding: 20px !important;

  }

}





/* Central Inventory Product Name Column Header with Dynamic Total */
.product-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.product-col-title {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-col-total {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Central Inventory Header with Product Name and Dynamic Total */
.inventory-heading-wrap {
  display: flex;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
  margin: 4px 0 6px;
  padding: 0;
}

.inventory-heading-wrap .inv-heading-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.5px;
}

.inventory-heading-wrap .inv-heading-total {
  font-size: 20px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .inventory-heading-wrap {
    gap: 12px;
  }
  .inventory-heading-wrap .inv-heading-title {
    font-size: 20px;
  }
  .inventory-heading-wrap .inv-heading-total {
    font-size: 16px;
  }
}

/* ==========================================================
   CENTRAL INVENTORY TABLE ALIGNMENT, ROWS & STICKY COLUMNS
   ========================================================== */
#inventoryTableWrap table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

#inventoryTableWrap table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
  box-sizing: border-box;
  height: 44px;
}

#inventoryTableWrap table tbody tr td {
  padding: 10px 14px;
  border-bottom: 1px solid #cbd5e1;
  font-size: 12px;
  color: #1e293b;
  background: #ffffff;
  box-sizing: border-box;
  height: 48px;
  line-height: 1.4;
}

#inventoryTableWrap table tbody tr:hover td {
  background-color: #f8fafc;
}

#inventoryTableWrap table tbody tr:last-child td {
  border-bottom: 1px solid #cbd5e1;
}

/* Sticky Product Name (First column) */
#inventoryTableWrap table th.col-product-sticky,
#inventoryTableWrap table td.col-product-sticky,
#inventoryTableWrap table th:first-child,
#inventoryTableWrap table td:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  box-sizing: border-box;
  padding: 10px 14px;
}

#inventoryTableWrap table th.col-product-sticky,
#inventoryTableWrap table th:first-child {
  background: #f8fafc;
  z-index: 14;
  box-shadow: 3px 0 6px rgba(15, 23, 42, 0.06);
  border-right: 1px solid #cbd5e1;
}

#inventoryTableWrap table td.col-product-sticky,
#inventoryTableWrap table td:first-child {
  background: #ffffff;
  box-shadow: 3px 0 6px rgba(15, 23, 42, 0.06);
  border-right: 1px solid #cbd5e1;
}

#inventoryTableWrap table tr:hover td.col-product-sticky,
#inventoryTableWrap table tr:hover td:first-child {
  background: #f8fafc;
}

/* Sticky Actions (Last column) */
#inventoryTableWrap table th.action-col-sticky,
#inventoryTableWrap table td.action-col-sticky,
#inventoryTableWrap table th:last-child,
#inventoryTableWrap table td:last-child {
  position: sticky;
  right: 0;
  z-index: 10;
  text-align: right;
  padding: 10px 16px 10px 14px;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  box-sizing: border-box;
  white-space: nowrap;
}

#inventoryTableWrap table th.action-col-sticky,
#inventoryTableWrap table th:last-child {
  background: #f8fafc;
  z-index: 14;
  box-shadow: -3px 0 6px rgba(15, 23, 42, 0.08);
  border-left: 1px solid #cbd5e1;
}

#inventoryTableWrap table td.action-col-sticky,
#inventoryTableWrap table td:last-child {
  background: #ffffff;
  box-shadow: -3px 0 6px rgba(15, 23, 42, 0.08);
  border-left: 1px solid #cbd5e1;
}

#inventoryTableWrap table tr:hover td.action-col-sticky,
#inventoryTableWrap table tr:hover td:last-child {
  background: #f8fafc;
}

/* Customizable Column Picker Centered Viewport Modal */
.column-picker-dropdown {
  position: relative;
  display: inline-block;
}

.column-picker-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 100vmax rgba(15, 23, 42, 0.45);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.column-picker-panel.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .column-picker-panel {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }
}

.col-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}
.col-picker-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.col-picker-subtitle {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.col-picker-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.col-picker-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.col-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.col-picker-toolbar-buttons {
  display: flex;
  gap: 8px;
}
.col-picker-summary {
  font-size: 12px;
  color: #475569;
  font-weight: 700;
}

.col-picker-checkboxes-grid {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  background: #ffffff;
}
@media (max-width: 480px) {
  .col-picker-checkboxes-grid {
    grid-template-columns: 1fr;
    max-height: 50vh;
  }
}

.col-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  user-select: none;
  transition: background 0.15s;
  min-width: 0;
}
.col-checkbox-label:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.col-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--pritam-gold, #b45309);
  margin: 0;
}
.col-checkbox-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  white-space: normal;
  line-height: 1.35;
}

.col-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.col-picker-footer-note {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  font-style: italic;
}
.col-picker-footer-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   PRITAM FOOD — Professional Sweets Modals Design (Matches Screenshot 2)
   ========================================================================== */

.ssr-modal-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.ssr-banner {
  background: #f8fafc;
  border: 1px solid var(--line, #e2e8f0);
  border-left: 4px solid var(--blue, #2563eb);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.ssr-banner-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-900, #0f172a);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ssr-banner-subtitle {
  font-size: 11px;
  color: var(--muted, #64748b);
}

.ssr-banner-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

.ssr-section {
  background: #f8fafc;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 6px;
  padding: 14px 16px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.ssr-section:focus-within {
  border-color: #cbd5e1;
}

.ssr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.ssr-section-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-900, #0f172a);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  letter-spacing: -0.1px;
}

.ssr-section-badge {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2px 7px;
  border-radius: 4px;
}

.ssr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.ssr-col-span-full {
  grid-column: 1 / -1;
}

.ssr-col-span-2 {
  grid-column: span 2;
}

.ssr-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ssr-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-900, #0f172a);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssr-req {
  color: #dc2626;
  font-weight: 800;
}

.ssr-input,
.ssr-select,
.ssr-textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  font-family: inherit;
  color: var(--navy-900, #0f172a);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
  transition: all 0.15s ease;
}

.ssr-input:hover,
.ssr-select:hover,
.ssr-textarea:hover {
  border-color: #94a3b8;
}

.ssr-input:focus,
.ssr-select:focus,
.ssr-textarea:focus {
  border-color: var(--blue, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ssr-input[type="date"] {
  height: 38px;
  cursor: pointer;
  padding: 7px 10px;
}

.ssr-select {
  height: 38px;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.ssr-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ssr-input-group .ssr-input {
  flex: 1;
  min-width: 0;
  height: 38px;
}

.ssr-input-group .ssr-input:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.ssr-input-group .ssr-input:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.ssr-unit-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-left: none;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  white-space: nowrap;
  user-select: none;
  height: 38px;
  box-sizing: border-box;
}

.ssr-currency-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  white-space: nowrap;
  user-select: none;
  height: 38px;
  box-sizing: border-box;
}

.ssr-textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.45;
}

.ssr-prod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 6px;
  font-size: 12px;
  color: var(--navy-900, #0f172a);
  margin-top: 6px;
  box-sizing: border-box;
}

.ssr-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ssr-meta-label {
  color: #64748b;
  font-weight: 600;
}

.ssr-meta-value {
  color: var(--navy-900, #0f172a);
  font-weight: 700;
}

.ssr-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #e2e8f0);
  width: 100%;
  box-sizing: border-box;
}

.ssr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 38px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.ssr-btn-cancel {
  background: #ffffff;
  color: var(--navy-900, #0f172a);
  border: 1px solid var(--line, #e2e8f0);
}

.ssr-btn-cancel:hover {
  background: #f8fafc;
  color: var(--navy-950, #020617);
  border-color: #cbd5e1;
}

.ssr-btn-primary {
  background: var(--blue, #2563eb);
  color: #ffffff;
  border: 1px solid var(--blue, #2563eb);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.15);
}

.ssr-btn-primary:hover {
  background: var(--blue-hover, #1d4ed8);
  border-color: var(--blue-hover, #1d4ed8);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.ssr-btn-primary:active {
  background: #1e40af;
  transform: translateY(1px);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .ssr-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ssr-col-span-mobile-2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .ssr-grid-3 {
    grid-template-columns: 1fr;
  }
  .ssr-grid-3 > * {
    grid-column: 1 / -1 !important;
  }
  .ssr-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .ssr-footer .ssr-btn {
    width: 100%;
  }
}

/* ==========================================================================
   PRITAM FOOD — Employee Management & RBAC Light Theme Redesign
   ========================================================================== */

.emp-mgmt-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Page Header Card */
.emp-header-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.emp-header-info {
  flex: 1;
  min-width: 280px;
}

.emp-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.emp-header-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.emp-header-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  max-width: 680px;
}

.emp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #1d4ed8;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  transition: all 0.15s ease-in-out;
}

.emp-btn-primary:hover {
  background: #1d4ed8;
  border-color: #1e40af;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.emp-btn-primary:active {
  background: #1e40af;
  transform: translateY(0);
}

/* KPI Summary Cards */
.emp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.emp-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.emp-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

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

.emp-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emp-kpi-icon.icon-blue { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.emp-kpi-icon.icon-emerald { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.emp-kpi-icon.icon-amber { background: #fffbeb; color: #d97706; border: 1px solid #fef3c7; }
.emp-kpi-icon.icon-purple { background: #f5f3ff; color: #7c3aed; border: 1px solid #ede9fe; }

.emp-kpi-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 9999px;
}

.emp-kpi-tag.tag-blue { background: #eff6ff; color: #1d4ed8; }
.emp-kpi-tag.tag-emerald { background: #f0fdf4; color: #15803d; }
.emp-kpi-tag.tag-amber { background: #fffbeb; color: #b45309; }
.emp-kpi-tag.tag-purple { background: #f5f3ff; color: #6d28d9; }

.emp-kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.emp-kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-top: 2px;
}

.emp-kpi-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Directory Card */
.emp-directory-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

/* Filters Wrap */
.emp-filters-wrap {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px;
}

.emp-filter-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.emp-filter-title {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 7px;
}

.emp-results-count {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 10px;
  border-radius: 9999px;
}

.emp-filters-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr 1.5fr 1.1fr auto;
  gap: 12px;
  align-items: end;
}

.emp-search-field {
  position: relative;
}

.emp-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.emp-search-field input {
  width: 100%;
  padding: 8px 32px 8px 36px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.emp-search-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.emp-clear-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  border-radius: 4px;
}

.emp-clear-search-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.emp-filter-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.emp-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.emp-filter-select-wrap select {
  width: 100%;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  box-sizing: border-box;
  transition: all 0.15s ease;
  cursor: pointer;
}

.emp-filter-select-wrap select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.emp-btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  height: 35px;
  transition: all 0.15s ease;
}

.emp-btn-reset:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Table */
.emp-table-wrap {
  overflow-x: auto;
  position: relative;
}

.emp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.emp-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}

.emp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.emp-table tbody tr:hover td {
  background: #f8fafc;
}

/* Name cell */
.emp-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.emp-avatar.avatar-admin { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.emp-avatar.avatar-wm { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.emp-avatar.avatar-ws { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.emp-avatar.avatar-bm { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

.emp-name-text {
  font-weight: 700;
  color: #0f172a;
  font-size: 13.5px;
}

.emp-title-text {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
}

.emp-session-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Username Pill */
.emp-username-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.emp-id-subtext {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Email */
.emp-email-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.emp-email-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.emp-phone-subtext {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* Role Badges */
.emp-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.emp-role-badge.role-admin { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.emp-role-badge.role-wm { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.emp-role-badge.role-ws { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.emp-role-badge.role-bm { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* Location */
.emp-location-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.emp-location-tag {
  font-size: 10.5px;
  color: #64748b;
  display: inline-block;
  margin-top: 2px;
}

/* Status Badges */
.emp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}

.emp-status-badge.status-active {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.emp-status-badge.status-inactive {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.emp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.emp-status-dot.dot-active { background: #16a34a; box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2); }
.emp-status-dot.dot-inactive { background: #94a3b8; }

/* Action buttons */
.emp-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.emp-btn-action {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.emp-btn-edit {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.emp-btn-edit:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.emp-btn-deactivate {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.emp-btn-deactivate:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #9f1239;
}

.emp-btn-activate {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.emp-btn-activate:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

/* Empty State */
.emp-empty-state {
  padding: 48px 24px;
  text-align: center;
  background: #ffffff;
}

.emp-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.emp-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.emp-empty-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.emp-btn-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.emp-btn-outline:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

/* Roles Summary Card */
.emp-roles-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.emp-roles-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.emp-roles-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.emp-btn-link {
  background: transparent;
  border: none;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.emp-btn-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.emp-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.emp-role-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  transition: all 0.15s ease;
}

.emp-role-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.emp-role-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.emp-role-card-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.emp-role-card-badge.badge-admin { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.emp-role-card-badge.badge-wm { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.emp-role-card-badge.badge-ws { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.emp-role-card-badge.badge-bm { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.emp-role-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.emp-role-card-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
}

/* Modals Light Theme */
.emp-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.emp-modal-subhead {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.emp-modal-subhead-text {
  font-size: 12px;
  color: #475569;
}

.emp-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.emp-modal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.emp-modal-field.field-full {
  grid-column: span 2;
}

.emp-modal-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}

.emp-modal-label span.req {
  color: #ef4444;
}

.emp-modal-input,
.emp-modal-select {
  width: 100%;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.emp-modal-input:focus,
.emp-modal-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.emp-modal-hint {
  font-size: 11px;
  color: #64748b;
}

.emp-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.emp-password-wrap input {
  padding-right: 75px !important;
}

.emp-password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.emp-password-toggle-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.emp-modal-static-location {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.emp-modal-static-location svg {
  color: #2563eb;
  flex-shrink: 0;
}

.emp-modal-role-callout {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #0369a1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  grid-column: span 2;
}

/* Reset Password Box in Edit Modal */
.emp-modal-reset-pwd-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.emp-reset-pwd-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emp-reset-pwd-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.emp-reset-pwd-title svg {
  color: #64748b;
  flex-shrink: 0;
}

.emp-reset-pwd-desc {
  font-size: 11px;
  color: #64748b;
}

.emp-btn-reset-password {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.emp-btn-reset-password:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.emp-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.emp-modal-btn-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.emp-modal-btn-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.emp-modal-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  border: 1px solid #1d4ed8;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  transition: all 0.15s ease;
}

.emp-modal-btn-submit:hover {
  background: #1d4ed8;
  border-color: #1e40af;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .emp-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .emp-roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .emp-filters-grid {
    grid-template-columns: 1fr 1fr;
  }
  .emp-search-field {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .emp-header-card {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
  }
  .emp-btn-primary {
    width: 100%;
    justify-content: center;
  }
  .emp-kpi-grid {
    grid-template-columns: 1fr;
  }
  .emp-roles-grid {
    grid-template-columns: 1fr;
  }
  .emp-filters-grid {
    grid-template-columns: 1fr;
  }
  .emp-search-field {
    grid-column: span 1;
  }
  .emp-btn-reset {
    width: 100%;
    justify-content: center;
  }
  .emp-modal-grid {
    grid-template-columns: 1fr;
  }
  .emp-modal-field.field-full {
    grid-column: span 1;
  }
  .emp-modal-role-callout {
    grid-column: span 1;
  }
  .emp-modal-reset-pwd-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .emp-btn-reset-password {
    justify-content: center;
    width: 100%;
  }
  .emp-modal-footer {
    flex-direction: column-reverse;
  }
  .emp-modal-btn-cancel,
  .emp-modal-btn-submit {
    width: 100%;
    justify-content: center;
  }
}
#employeeFixedScrollbar {
    position: fixed;
    bottom: 0;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f1f3f6;
    z-index: 99999;
    display: none;
    box-sizing: border-box;
}

#employeeFixedScrollbarTrack {
    height: 1px;
}
/* Hide the original employee table scrollbar */
.emp-table-wrap {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.emp-table-wrap::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

