@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import './dropdowns.css';

:root {
  /* Typography */
  --font-family-base: "Poppins", sans-serif;

  /* Brand / semantic colors (Figma reference: white sidebar with soft blue active tint) */
  --sidebar: #ffffff;
  --sidebar-border: #EBEDEF;
  --sidebar-text: #6D747E;
  --sidebar-text-hover: #101828;
  --sidebar-active-bg: #EAF1FA;
  --sidebar-active-text: #2377FC;
  --active: #EAF1FA;
  --bg: #f5f7fb;
  --card: #ffffff;
  --border: #e5e7eb;

  /* Grays / neutrals */
  --gray-50: #111111;  /* used 1x */
  --gray-100: #222222;  /* used 2x */
  --gray-125: #292731;  /* used 12x */
  --gray-175: #333333;  /* used 1x */
  --gray-225: #444444;  /* used 2x */
  --gray-250: #555555;  /* used 4x */
  --gray-300: #5c5c5c;  /* used 1x */
  --gray-325: #5e6569;  /* used 2x */
  --gray-375: #666666;  /* used 2x */
  --gray-425: #6c757d;  /* used 2x */
  --gray-450: #7b8389;  /* used 35x */
  --gray-500: #888888;  /* used 1x */
  --gray-550: #9ca3af;  /* used 7x */
  --gray-575: #bdbdbd;  /* used 1x */
  --gray-625: #d9d9d9;  /* used 2x */
  --gray-675: #e5e5e5;  /* used 10x */
  --gray-700: #e6e6e6;  /* used 1x */
  --gray-750: #ececec;  /* used 3x */
  --gray-775: #f1f1f1;  /* used 1x */
  --gray-825: #f2f2f2;  /* used 4x */
  --gray-875: #f3f3f3;  /* used 1x */
  --gray-900: #f5f5f5;  /* used 1x */
  --gray-950: #fafafa;  /* used 1x */

  /* Slate (blue-gray) */
  --slate-50: #1f2937;  /* used 2x */
  --slate-100: #263238;  /* used 15x */
  --slate-150: #2d3748;  /* used 5x */
  --slate-200: #374151;  /* used 26x */
  --slate-250: #314158;  /* used 4x */
  --slate-350: #455360;  /* used 2x */
  --slate-400: #4b5563;  /* used 3x */
  --slate-450: #cfd4dc;  /* used 1x */
  --slate-500: #cad5e2;  /* used 13x */
  --slate-550: #cbd5e1;  /* used 5x */
  --slate-600: #d1d5db;  /* used 11x */
  --slate-650: #cfd8e3;  /* used 2x */
  --slate-750: #dbe1ea;  /* used 1x */
  --slate-800: #e4e9f0;  /* used 1x */
  --slate-850: #eef1f5;  /* used 2x */
  --slate-900: #f3f4f6;  /* used 6x */
  --slate-950: #f9fafb;  /* used 6x */

  /* Blues */
  --blue-50: #111827;  /* used 5x */
  --blue-75: #162d49;  /* used 1x */
  --blue-125: #102c5c;  /* used 1x */
  --blue-150: #1b3352;  /* used 1x */
  --blue-175: #0f2b63;  /* used 1x */
  --blue-225: #1e3a5f;  /* used 24x */
  --blue-250: #16366d;  /* used 8x */
  --blue-275: #1a4a8a;  /* used 2x */
  --blue-325: #1c398e;  /* used 5x */
  --blue-350: #0d5dd6;  /* used 3x */
  --blue-375: #2563eb;  /* used 3x */
  --blue-425: #4f46e5;  /* used 1x */
  --blue-450: #66bce8;  /* used 2x */
  --blue-475: #8ec5ff;  /* used 4x */
  --blue-525: #cfd9e8;  /* used 2x */
  --blue-550: #bfdbfe;  /* used 1x */
  --blue-575: #bedbff;  /* used 2x */
  --blue-625: #dbe3ef;  /* used 1x */
  --blue-650: #cee1ff;  /* used 1x */
  --blue-675: #dbeafe;  /* used 2x */
  --blue-725: #eef2f7;  /* used 6x */
  --blue-750: #edf2fb;  /* used 1x */
  --blue-775: #f1f5f9;  /* used 1x */
  --blue-825: #eef5ff;  /* used 3x */
  --blue-850: #eff6ff;  /* used 2x */
  --blue-875: #f7f9fc;  /* used 1x */
  --blue-925: #f8fafc;  /* used 11x */
  --blue-950: #fafbfd;  /* used 1x */

  /* Greens */
  --green-50: #007d2f;  /* used 1x */
  --green-200: #15803d;  /* used 2x */
  --green-300: #00a63e;  /* used 9x */
  --green-450: #16a34a;  /* used 12x */
  --green-550: #73e6a0;  /* used 1x */
  --green-700: #b3e4c5;  /* used 1x */
  --green-800: #c7e8d4;  /* used 3x */
  --green-950: #d1fae5;  /* used 1x */

  /* Yellows */
  --yellow-200: #facc15;  /* used 1x */
  --yellow-700: #fffdf5;  /* used 1x */

  /* Oranges */
  --orange-50: #7e2a0c;  /* used 1x */
  --orange-100: #b45309;  /* used 1x */
  --orange-150: #d95b00;  /* used 6x */
  --orange-200: #d3761b;  /* used 5x */
  --orange-250: #ea580c;  /* used 4x */
  --orange-300: #ff6b00;  /* used 1x */
  --orange-350: #f97316;  /* used 4x */
  --orange-400: #fe7614;  /* used 4x */
  --orange-450: #f18a22;  /* used 4x */
  --orange-500: #f28a2f;  /* used 2x */
  --orange-550: #f6c28b;  /* used 1x */
  --orange-600: #f6d3a8;  /* used 1x */
  --orange-650: #f5d4ad;  /* used 1x */
  --orange-700: #ffd7a8;  /* used 1x */
  --orange-750: #f5d6bf;  /* used 2x */
  --orange-800: #ffe9d9;  /* used 2x */
  --orange-850: #ffeadb;  /* used 1x */
  --orange-900: #fff1e6;  /* used 1x */
  --orange-950: #fffaf5;  /* used 2x */

  /* Reds */
  --red-50: #82181a;  /* used 1x */
  --red-150: #c10007;  /* used 1x */
  --red-200: #e7000b;  /* used 5x */
  --red-300: #c0392b;  /* used 2x */
  --red-400: #dc2626;  /* used 1x */
  --red-450: #f74a29;  /* used 1x */
  --red-550: #e74c3c;  /* used 2x */
  --red-600: #ef4444;  /* used 5x */
  --red-700: #f9bfc2;  /* used 1x */
  --red-800: #ffc9c9;  /* used 1x */
  --red-850: #ffe4e5;  /* used 2x */
  --red-950: #ffeaec;  /* used 1x */

  /* Purples */
  --purple-50: #6e1ac7;  /* used 1x */
  --purple-350: #7c3aed;  /* used 2x */
  --purple-650: #e4d9f8;  /* used 1x */
  --purple-950: #ede9fe;  /* used 2x */

  /* Blacks */
  --black: #000000;  /* used 12x */

  /* Shadows (rgba black) */
  --shadow-40: rgba(0,0,0,0.4);  /* used 2x */
  --shadow-45: rgba(0,0,0,0.45);  /* used 1x */
  --shadow-15: rgba(0,0,0,0.15);  /* used 5x */
  --shadow-10: rgba(0,0,0,0.1);  /* used 4x */
  --shadow-12: rgba(0,0,0,0.12);  /* used 2x */
  --shadow-35: rgba(0,0,0,0.35);  /* used 2x */
  --shadow-6: rgba(0,0,0,0.06);  /* used 1x */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-family-base) !important;
  padding: 0px;
  margin: 0px;
  background-color: var(--blue-925);
  overflow-x: hidden;
}

select,
input,
textarea {
  font-family: var(--font-family-base) !important;
}

button {
  font-family: var(--font-family-base) !important;
  font-weight: 600;
}


/* LAYOUT */
.LoginPage {
  display: flex;
  min-height: 100vh;
  padding: 15px;
  background: var(--card);
}

/* LEFT */
.LoginPage .left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
}

.LoginPage .left img {
  max-width: 100%;
}

/* RIGHT PANEL */
.LoginPage .right {
  flex: 1;
  background: var(--slate-850);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-radius: 20px;
}

/* CARD */
.LoginPage .card {
  width: 100%;
  max-width: 380px;
}

/* LOGO */
.LoginPage .logo-img {
  text-align: center;
}

.LoginPage .logo-img img {
  width: 220px;
}

.logo-container img{
  width: 220px;
  height: auto;
}

/* TITLE */
.LoginPage h2 {
  text-align: center;
  color: var(--gray-125);
  font-size: 24px;
  margin-bottom: 10px;
  margin-top: 20px;
}

.LoginPage .subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--gray-125);
  margin-bottom: 35px;
}

/* FIELD */
.LoginPage .field {
  margin-bottom: 30px;
}

.LoginPage label {
  font-size: 14px;
  color: var(--slate-350);
  margin-bottom: 6px;
  display: block;
}

/* INPUT */
.LoginPage .input-box {
  position: relative;
}

.LoginPage input {
  width: 100%;
  padding: 0px 12px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--slate-500);
  background: none;
  font-size: 13px;
  color: var(--gray-450);
  margin: 0px;
}

/* ICON */
.LoginPage .eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* ICON STYLE */
.LoginPage .eye-icon {
  width: 20px;
  height: 20px;
  stroke: var(--gray-450);
  fill: none;
  stroke-width: 2.5;
}

/* FORGOT */
.LoginPage .forgot {
  font-size: 12px;
  color: var(--blue-450);
  margin-bottom: 30px;
  margin-top: -25px;
  display: block;
  text-decoration: none;
}

/* BUTTON */
.LoginPage .btn {
  width: 100%;
  padding: 0px 12px;
  background: var(--sidebar);
  color: var(--card);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  height: 44px;
}

.LoginPage .btn:hover {
  background: var(--blue-75);
}

/* FOOTER */
.LoginPage .footer {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
  color: var(--gray-125);
  display: block;
}

.LoginPage .footer a {
  color: var(--blue-450);
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .LoginPage {
    flex-direction: column;
  }

  .LoginPage .left {
    display: none;
  }
}

/*---------Dashboard page------------*/


/* LAYOUT */
.dashboard {
  display: flex;
  width: 100%
}

/* ================= Sidebar (Figma Reference) ================= */
.sidebar {
  width: 260px;
  background: #ffffff;
  color: #101828;
  padding: 0;
  border-right: 1px solid #EBEDEF;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  height: 100vh;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.sidebar.collapsed {
  width: 100px;
  padding: 0;
}

/* BODY DRAWER LOCK */
body.sidebar-drawer-open {
  overflow: hidden;
}

/* MOBILE OFF-CANVAS DRAWER */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -290px;
    top: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    box-shadow: 4px 0 24px rgba(16, 24, 40, 0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
  }

  .sidebar.active {
    left: 0;
  }

  /* Mobile drawer must always display full width with text, never squashed */
  .sidebar.collapsed {
    width: 280px !important;
    max-width: 85vw !important;
  }

  .sidebar.collapsed .text,
  .sidebar.collapsed .sidebar-brand-text {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    white-space: nowrap !important;
  }

  .sidebar.collapsed .logo {
    padding: 0 16px 0 20px !important;
    justify-content: flex-start !important;
  }

  .sidebar.collapsed .sidebar-brand {
    justify-content: flex-start !important;
    width: auto !important;
    gap: 12px !important;
  }

  .sidebar.collapsed .sidebar-brand-icon {
    margin: 0 !important;
  }

  .sidebar.collapsed .menu {
    padding: 16px 14px 20px 14px !important;
  }

  .sidebar.collapsed .menu ul {
    align-items: stretch !important;
  }

  .sidebar.collapsed .menu li {
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  .sidebar.collapsed .menu li a,
  .sidebar.collapsed .menu>a,
  .sidebar.collapsed .menu .drop-btn {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 16px !important;
    justify-content: flex-start !important;
    border-radius: 14px !important;
  }

  .sidebar.collapsed .menu li a svg,
  .sidebar.collapsed .menu>a svg,
  .sidebar.collapsed .menu .drop-btn svg {
    margin: 0 !important;
  }
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* SIDEBAR HEADER / LOGO (Aligned with Topbar header height 80px) */
.sidebar .logo {
  background: transparent;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  padding: 0 16px 0 20px;
  margin: 0;
  border-bottom: none;
  border-radius: 0;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  transition: padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: auto;
  flex: 1;
  min-width: 0;
}

.sidebar .sidebar-brand-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.sidebar .sidebar-brand-text {
  font-family: "Manrope", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #111828;
  white-space: nowrap !important;
  user-select: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease 0.08s, visibility 0.18s ease 0.08s;
}

.sidebar .sidebar-brand-text span {
  color: #146ef5;
}

/* Fallback legacy image classes */
.sidebar .logo img.d-logo,
.sidebar .logo img.dasktop {
  display: block;
  max-height: 42px;
}

.sidebar .logo img.m-logo,
.sidebar .logo img.mobile {
  display: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* Collapsed Sidebar Logo - Centered icon, no border line */
.sidebar.collapsed .logo {
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  padding: 0;
  margin: 0;
  border-bottom: none !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.sidebar.collapsed .sidebar-brand {
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0 auto;
}

.sidebar.collapsed .sidebar-brand-icon {
  margin: 0 auto;
}

.sidebar.collapsed .sidebar-brand-text {
  display: none !important;
}

.sidebar.collapsed .logo img.dasktop,
.sidebar.collapsed .logo img.d-logo {
  display: none !important;
}

.sidebar.collapsed .logo img.mobile,
.sidebar.collapsed .logo img.m-logo {
  display: block !important;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  margin: 0 auto;
}

/* ============================================================
   SIDEBAR CONTROLS: Pin (Desktop) & Close (Mobile Drawer)
   ============================================================ */
.sidebar-pin-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  margin-right: 0;
  flex-shrink: 0;
  box-shadow: none;
  outline: none;
  position: relative;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-pin-btn:hover {
  background: #F1F5F9;
  color: #1E293B;
  border: none;
  box-shadow: none;
}

.sidebar-pin-btn:focus-visible {
  outline: 2px solid #146EF5;
  outline-offset: 2px;
}

.sidebar-pin-btn .panel-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  display: block;
  flex-shrink: 0;
}

.sidebar-pin-btn .panel-chevron {
  transform-origin: 14.5px 12px;
  transform-box: view-box;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-pin-btn.is-pinned {
  background: transparent;
  color: #64748B;
  border: none;
  box-shadow: none;
}

.sidebar-pin-btn.is-pinned:hover {
  background: #F1F5F9;
  color: #1E293B;
  border: none;
  box-shadow: none;
}

.sidebar-pin-btn.is-pinned .panel-chevron {
  transform: scaleX(-1);
}

/* Hide pin button when in resting collapsed state on desktop */
.sidebar.collapsed:not(.is-hover-expanded) .sidebar-pin-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .sidebar-pin-btn {
    display: none !important;
  }
}

/* Sidebar Close Button (Mobile drawer header close) */
.sidebar-close-btn {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #475467;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

@media (max-width: 768px) {
  .sidebar-pin-btn {
    display: none !important;
  }

  .sidebar-close-btn {
    display: flex;
  }
}

/* MENU */
.sidebar .menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 14px 20px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ── Sidebar Subtle SaaS Scrollbar (Clean Figma Style) ────────────────────── */

/* WebKit / Chromium (Chrome, Edge, Opera, Safari) */
.sidebar::-webkit-scrollbar,
.sidebar .menu::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.sidebar::-webkit-scrollbar-button,
.sidebar .menu::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.sidebar::-webkit-scrollbar-track,
.sidebar .menu::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track-piece,
.sidebar .menu::-webkit-scrollbar-track-piece {
  background: transparent !important;
  border: none !important;
}

/* Default: completely invisible thumb so UI looks clean like Figma */
.sidebar::-webkit-scrollbar-thumb,
.sidebar .menu::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 999px;
  border: none;
  transition: background-color 0.2s ease;
}

/* Show subtle scrollbar only when hovered or actively scrolling */
.sidebar:hover::-webkit-scrollbar-thumb,
.sidebar:hover .menu::-webkit-scrollbar-thumb,
.sidebar .menu:hover::-webkit-scrollbar-thumb,
.sidebar.is-scrolling::-webkit-scrollbar-thumb,
.sidebar .menu.is-scrolling::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.45);
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar .menu::-webkit-scrollbar-thumb:hover {
  background-color: rgba(100, 116, 139, 0.75);
}

.sidebar::-webkit-scrollbar-thumb:active,
.sidebar .menu::-webkit-scrollbar-thumb:active {
  background-color: #64748B;
}

.sidebar::-webkit-scrollbar-corner,
.sidebar .menu::-webkit-scrollbar-corner {
  background: transparent !important;
}

/* Firefox scrollbar support */
@supports not (selector(::-webkit-scrollbar)) {
  .sidebar,
  .sidebar .menu {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s ease;
  }

  .sidebar:hover,
  .sidebar .menu:hover,
  .sidebar.is-scrolling,
  .sidebar .menu.is-scrolling {
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
  }
}

.sidebar .menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar .menu li {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sidebar .menu ul>li:nth-last-child(2) {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #EBEDEF;
}

.sidebar .menu li a,
.sidebar .menu>a,
.sidebar .menu .drop-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  min-height: 50px;
  height: 50px;
  max-height: 50px;
  border-radius: 14px;
  color: #344054;
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
}

.sidebar .menu li a svg,
.sidebar .menu>a svg,
.sidebar .menu .drop-btn svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Base Typography for Sidebar Labels: Locked, Single-Line, Never Wrap */
.sidebar .menu li a .text,
.sidebar .menu>a span,
.sidebar .menu .drop-btn span,
.sidebar .menu .text {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: clip;
  display: inline-block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease 0.08s, visibility 0.18s ease 0.08s;
}

/* Always preserve SVG luminance masks */
.sidebar .menu svg mask rect {
  fill: #FFFFFF !important;
  stroke: none !important;
}

/* Base Icon Colors (Inactive - Dark / Charcoal matching Figma) */
.sidebar .menu li a svg path,
.sidebar .menu li a svg g path,
.sidebar .menu li a svg path:not([stroke]),
.sidebar .menu>a svg path,
.sidebar .menu .drop-btn svg path:not([stroke]) {
  fill: #101828;
  stroke: none;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.sidebar .menu li a.db4 svg path,
.sidebar .menu li a.db8 svg path,
.sidebar .menu li a.db11 svg path,
.sidebar .menu li a.db11b svg path,
.sidebar .menu li a.db13 svg path,
.sidebar .menu li a.db16 svg path,
.sidebar .menu li a.db17 svg path,
.sidebar .menu li a.db17 svg rect,
.sidebar .menu .drop-btn svg path {
  fill: none;
  stroke: #101828;
}

/* Hover State */
.sidebar .menu li a:hover,
.sidebar .menu>a:hover,
.sidebar .menu .drop-btn:hover {
  background: #F4F6F8;
  color: #101828;
}

.sidebar .menu li a:hover svg path,
.sidebar .menu li a:hover svg g path,
.sidebar .menu li a:hover svg path:not([stroke]),
.sidebar .menu>a:hover svg path,
.sidebar .menu .drop-btn:hover svg path:not([stroke]) {
  fill: #101828;
  stroke: none;
}

.sidebar .menu li a.db4:hover svg path,
.sidebar .menu li a.db8:hover svg path,
.sidebar .menu li a.db11:hover svg path,
.sidebar .menu li a.db11b:hover svg path,
.sidebar .menu li a.db13:hover svg path,
.sidebar .menu li a.db16:hover svg path,
.sidebar .menu li a.db17:hover svg path,
.sidebar .menu li a.db17:hover svg rect,
.sidebar .menu .drop-btn:hover svg path {
  fill: none;
  stroke: #101828;
}

/* Active State (Figma Blue #2377FC + Soft Background #EAF1FA) */
.sidebar .menu li a.active,
.sidebar .menu>a.active {
  background: #EAF1FA !important;
  color: #2377FC !important;
  font-weight: 600;
}

.sidebar .menu li a.active .text,
.sidebar .menu li a.active span {
  color: #2377FC !important;
  font-weight: 600;
}

.sidebar .menu li a.active svg path,
.sidebar .menu li a.active svg g path,
.sidebar .menu li a.active svg path:not([stroke]),
.sidebar .menu>a.active svg path {
  fill: #2377FC !important;
  stroke: none;
}

.sidebar .menu li a.db4.active svg path,
.sidebar .menu li a.db8.active svg path,
.sidebar .menu li a.db11.active svg path,
.sidebar .menu li a.db11b.active svg path,
.sidebar .menu li a.db13.active svg path,
.sidebar .menu li a.db16.active svg path,
.sidebar .menu li a.db17.active svg path,
.sidebar .menu li a.db17.active svg rect {
  fill: none !important;
  stroke: #2377FC !important;
}

/* Collapsed Sidebar Menu - Exact 100px Proportions */
.sidebar.collapsed .menu {
  padding: 16px 18px 24px 18px;
}

.sidebar.collapsed .menu ul {
  align-items: center;
  gap: 6px;
}

.sidebar.collapsed .menu li {
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sidebar.collapsed .menu ul>li:nth-last-child(2) {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #EBEDEF;
  width: 50px;
  margin-left: auto;
  margin-right: auto;
}

.sidebar.collapsed .menu li a,
.sidebar.collapsed .menu>a,
.sidebar.collapsed .menu .drop-btn {
  width: 50px;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  padding: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.sidebar.collapsed .menu li a.active,
.sidebar.collapsed .menu>a.active,
.sidebar.collapsed .menu .drop-btn.active {
  background: #EAF1FA !important;
  border-radius: 14px;
  width: 50px;
  height: 50px;
}

.sidebar.collapsed .menu li a:hover,
.sidebar.collapsed .menu>a:hover,
.sidebar.collapsed .menu .drop-btn:hover {
  background: #F4F6F8;
  border-radius: 14px;
  width: 50px;
  height: 50px;
}

.sidebar.collapsed .menu li a svg,
.sidebar.collapsed .menu>a svg,
.sidebar.collapsed .menu .drop-btn svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Collapsed text: hidden completely so 24px icon is perfectly centered in 50px squircle */
.sidebar.collapsed .text,
.sidebar.collapsed .menu li a .text,
.sidebar.collapsed .menu>a span,
.sidebar.collapsed .menu .drop-btn span {
  display: none !important;
}

/* Hover-expanded or Pinned text: revealed smoothly once width is available */
.sidebar.is-hover-expanded .text,
.app.sidebar-pinned .sidebar .text,
.sidebar.is-hover-expanded .sidebar-brand-text,
.app.sidebar-pinned .sidebar .sidebar-brand-text {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  white-space: nowrap !important;
  animation: sbarFadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1) 0.08s both;
}

@keyframes sbarFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.app.sidebar-pinned .sidebar .text,
.app.sidebar-pinned .sidebar .sidebar-brand-text {
  opacity: 1 !important;
  animation: none !important;
}

/* MAIN */
.main {
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

/* HEADER */
.header {
  min-height: 72px;
  height: auto;
  background: #FFFFFF;
  border-bottom: 1px solid #EBEDEF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  box-sizing: border-box;
  gap: 16px;
}

.leftHeadeer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

/* TOGGLE */
.toggle {
  width: 34px;
  height: 34px;
  background: var(--sidebar);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  left: -35px;
  position: relative;
  z-index: 99;
}

.toggle svg {
  stroke: var(--card);
  width: 16px;
}

/* SEARCH FIXED */
.search {
  flex: 1;
  max-width: 500px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--slate-500);
  color: var(--gray-450);
  padding: 0px 12px 0px 35px;
  background: url(../images/search.svg) 10px center no-repeat;
  background-size: 16px;
}

/* USER */
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
  text-align: right;
}

.user h5 {
  color: var(--slate-100);
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
}

.user h5 span {
  display: block;
  color: var(--gray-450);
  font-size: 14px;
  font-weight: 400;
}

.user img {
  width: 44px;
  border-radius: 50%;
}

/* CONTENT */
.content {
  padding: 20px;
  width: 100%;
  min-height: 0;
  display: block;
  box-sizing: border-box;
  flex: 1 0 auto;
}

/* WELCOME */
.welcome {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

h3 {
  font-size: 24px;
  color: var(--gray-125);
  font-weight: 600;
}

p {
  font-size: 14px;
  color: var(--gray-125);
}

/* ── Shared Admin Page Header ────────────────────────────────────────── */
.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.admin-page-head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-page-head-title,
.admin-page-head h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-125, #111827);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.admin-page-head-desc,
.admin-page-head .sub {
  font-size: 14px;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

.admin-page-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .admin-page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  .admin-page-head .admin-page-head-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


.viewbtn {
  background: #0354C0;
  color: #FFFFFF;
  padding: 0px 25px;
  border-radius: 6px;
  border: none;
  height: 44px;
  font-size: 15px;
  line-height: 44px;
  text-decoration: none;
}

.viewbtn:hover {
  background: #024399;
  color: #FFFFFF;
}


/* RESPONSIVE */


@media(max-width:768px) {
  .search {
    max-width: 100%
  }
}


/* GRID */
.cards_4box {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* CARD */
.cards_4box .card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid var(--gray-675);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* TEXT FIXED */
.cards_4box .card h4 {
  font-size: 13px;
  color: var(--gray-125);
  /* 🔥 fixed darker */
  font-weight: 500;
  margin-bottom: 6px;
}

.cards_4box .card h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-125);
  margin-bottom: 6px;
}

.cards_4box .card p {
  font-size: 12px;
  color: var(--blue-350);
}

/* COLOR VARIANTS */
.cards_4box .card.blue p {
  color: var(--blue-350);
}

.cards_4box .card.green {
  border: 1px solid var(--gray-675);
}

.cards_4box .card.green h4 {
  color: var(--gray-125);
}

.cards_4box .card.green h2 {
  color: var(--gray-125);
}

.cards_4box .card.green p {
  color: var(--green-300);
}

.cards_4box .card.orange {
  border: 1px solid var(--orange-700);
}

.cards_4box .card.orange h4 {
  color: var(--orange-150);
}

.cards_4box .card.orange h2 {
  color: var(--orange-50);
}

.cards_4box .card.orange p {
  color: var(--red-450);
}

.cards_4box .card.red {
  border: 1px solid var(--red-800);
}

.cards_4box .card.red h4 {
  color: var(--red-150);
}

.cards_4box .card.red h2 {
  color: var(--red-50);
}

.cards_4box .card.red p {
  color: var(--red-200);
}

/* ICON */
.cards_4box .icon {
  width: 24px;
  height: 24px;
}

/* ICON COLORS */
/* .cards_4box .icon.blue svg {
  fill: #0D5DD6;
} */

/* .cards_4box .icon.green svg {
  fill: #00A63E;
} */

/* .cards_4box .icon.orange svg {
  fill: #D95B00;
} */

/* .cards_4box .icon.red svg {
  fill: #E7000B;
} */

/* SVG STYLE */
.cards_4box .icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 2;
}

/* RESPONSIVE */
@media(max-width:1024px) {
  .cards_4box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {
  .cards_4box {
    grid-template-columns: 1fr;
  }
}


/* MAIN BOX */
.all_products {
  background: var(--card);
  border-radius: 12px;
  padding: 0px;
  border: 1px solid var(--border);
  margin: 20px 0px;
}

/* FILTER ROW */
.all_products .filter-row {
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  background: var(--blue-925);
  padding: 20px;
  border-radius: 12px 12px 0px 0px;
  border-bottom: var(--gray-675) 1px solid;
}

.all_products .filter-row .title {
  width: 10%;
  float: left;
  margin-bottom: 0px;
}

.all_products .filter-row select,
.all_products .filter-row .search-input {
  width: 23.6%;
  float: left;
  margin-right: 20px;
  margin-bottom: 0px;
}

.all_products .filter-row .button.btn {
  float: left;
  width: 20%;
}

.all_products .title {
  font-size: 14px;
  font-weight: 600;
  margin-right: 10px;
  line-height: 44px;
}

/* INPUTS */
.all_products select,
.all_products input {
  height: 44px;
  border: 1px solid var(--slate-600);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  background: var(--slate-950);
}

.all_products select option {
  background-color: #0E2E5E;
}

/* BUTTON */
.all_products .btn {
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: var(--sidebar);
  color: var(--card);
  font-size: 13px;
  width: 120px;
}

.all_products .btn:hover {
  background: var(--black);
}

/* SECOND ROW (RIGHT ALIGN ICONS) */
.all_products .top-actions {
  display: flex;
  justify-content: flex-end;
  margin: 10px 20px 0px;
}

/* VIEW ICONS */
.all_products .view-toggle {
  display: flex;
  gap: 8px;
  border: 1px solid var(--gray-675);
  border-radius: 13px;
}

.all_products .view-btn {
  width: auto;
  height: 34px;
  border-radius: 8px;
  padding: 0px 15px;
  border: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none !important;
}

.all_products .view-btn.active {
  background: var(--gray-625) !important;
  border-radius: 13px 0px 0px 13px;
}

.all_products .view-btn:last-child.active {

  border-radius: 0px 13px 13px 0px;
}

.all_products .view-btn svg {
  width: 18px;
  height: 18px;
}

/* PRODUCTS */
.products {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  padding: 20px;
}

.products.list {
  grid-template-columns: 1fr 1fr;
}

/* CARD */
.products .product {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--gray-675);
  padding: 0px;
  width: 100%;
  min-width: 0;

}

/* IMAGE */

.products.list .product .pro-img {
  width: 200px;
  display: inline-block;
  padding: 20px 0px;
  background: var(--blue-925);
  border-radius: 12px 0px 0px 12px;
  margin: 0px;
  float: left;
  margin-right: 20px;
}

.products .product .pro-img {
  width: 100%;
  display: inline-block;
  padding: 20px 0px;
  background: var(--blue-925);
  border-radius: 12px 12px 0px 0px;
  margin: 0px;
  height: 170px;
}


.products .product img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* TEXT */
.products .pro-txt {
  padding: 12px;
}

.products .code {
  font-size: 12px;
  color: var(--orange-400);
  margin-bottom: 6px;
}

.products .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-125);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products .size {
  font-size: 12px;
  color: var(--gray-450);
  margin: 8px 0;
}

/* PRICE + BADGE */
.products .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.products .price {
  font-weight: 700;
  color: var(--sidebar);
  font-size: 18px;
  text-decoration: none;
}

.products .badge {
  font-size: 11px;
  padding: 0px 8px;
  border-radius: 20px;
  text-decoration: none;
  line-height: 24px;
}

.products .in {
  background: var(--green-700);
  color: var(--green-300);
}

.products .low {
  background: var(--orange-750);
  color: var(--orange-150);
}

.products .out {
  background: var(--red-700);
  color: var(--red-200);
}

/* RESPONSIVE */
@media(max-width:1024px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {
  .products {
    grid-template-columns: 1fr;
  }
}

.stock_sec .products {
  grid-template-columns: repeat(4, 1fr);
}


/* WRAPPER */
.alert-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* CARD BASE */
.alert-card {
  padding: 18px 0px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
}

.alert-card h5 {
  color: var(--orange-150);
  padding: 0px 25px 10px;
  font-size: 18px;
  font-weight: 600;
}

.out-stock h5 {
  color: var(--red-200);
}

/* LOW STOCK */
.low-stock {
  background: var(--orange-900);
  color: var(--orange-250);
}

/* OUT OF STOCK */
.out-stock {
  background: var(--red-950);
  color: var(--red-400);
}

/* UNDERLINE STYLE */
.alert-card span {
  text-decoration: underline;
  text-decoration-color: var(--blue-375);
  /* blue underline */
  text-underline-offset: 4px;
}

/* RESPONSIVE */
@media(max-width:768px) {
  .alert-row {
    grid-template-columns: 1fr;
  }
}

a.all_btn {
  background: var(--orange-150);
  border: var(--orange-150) 1px solid;
  display: inline-block;
  width: 200px;
  text-align: center;
  margin: 0px auto;
  padding: 0px;
  color: var(--card);
  font-size: 14px;
  line-height: 34px;
  border-radius: 12px;
  text-decoration: none;
}

.center-btn {
  text-align: center;
}

footer {
  display: none !important;
}

footer p {
  display: none !important;
  margin: 0px;
  padding: 0px;
}



/*---------Create Draft Invoice--------------*/

.createDraftInvoice-container {
  display: block;
  width: 100%;
}

.createDraftInvoice {
  max-width: 760px;
  width: 100%;
  margin: 0;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* Grids & Rows */
.createDraftInvoice .cdi-row {
  display: grid;
  gap: 20px;
  width: 100%;
  align-items: start;
}

.createDraftInvoice .cdi-dates-row {
  grid-template-columns: repeat(3, 1fr);
}

.createDraftInvoice .cdi-company-row {
  grid-template-columns: repeat(2, 1fr);
}

/* Backward compatibility for .grid */
.createDraftInvoice .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Form Fields */
.createDraftInvoice .cdi-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.createDraftInvoice label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 0px;
  display: block;
}

.createDraftInvoice .cdi-input-wrap,
.createDraftInvoice .input-wrap {
  position: relative;
  width: 100%;
}

/* Input Fields */
.createDraftInvoice .cdi-input,
.createDraftInvoice .input {
  width: 100%;
  height: 48px;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  padding: 0 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.createDraftInvoice .cdi-input:focus,
.createDraftInvoice .input:focus,
.createDraftInvoice input:focus {
  border-color: #9CA3AF !important;
  box-shadow: none !important;
  outline: none !important;
}

.createDraftInvoice .cdi-readonly-input,
.createDraftInvoice input[readonly],
.createDraftInvoice input:disabled {
  background-color: #F9FAFB !important;
  color: #374151 !important;
  cursor: not-allowed !important;
}

/* Date fields (Issue Date / Expiry Date) rely on the browser's own native
   calendar icon — a custom overlay icon was removed from the markup because
   having both showed two icons on the same field. */

.createDraftInvoice .cdi-readonly-input:hover,
.createDraftInvoice input[readonly]:hover,
.createDraftInvoice input:disabled:hover {
  cursor: not-allowed !important;
}

/* Date input with Calendar icon on right */
.createDraftInvoice .cdi-date-wrap {
  position: relative !important;
  width: 100% !important;
  height: 48px !important;
  display: block !important;
  line-height: 1 !important;
}

.createDraftInvoice .cdi-icon-calendar {
  position: absolute !important;
  right: 14px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  color: #6B7280 !important;
  z-index: 2 !important;
}

.createDraftInvoice .cdi-icon-calendar svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.createDraftInvoice .cdi-input.has-icon-right,
.createDraftInvoice .cdi-input.has-icon-left,
.createDraftInvoice .cdi-date-wrap .cdi-input {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 14px !important;
  padding-right: 42px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

/* Validation message compact styling - no reserved vertical space */
.createDraftInvoice .ci-err,
.createDraftInvoice span.ci-err,
.ci-err {
  display: block;
  color: #DC2626;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  margin-top: 4px;
  margin-bottom: 0;
  padding: 0;
}

/* Company Details Section */
.createDraftInvoice .cdi-section {
  width: 100%;
}

.createDraftInvoice .cdi-section-title {
  margin: 0 0 10px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #146EF5;
  line-height: 19px;
}

/* Company details container (clean white background per Figma) */
.createDraftInvoice .company {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.createDraftInvoice .company h3 {
  font-size: 16px;
  font-weight: 600;
  color: #146EF5;
  margin: 0 0 10px 0;
}

.createDraftInvoice .company label {
  color: #333333;
}

/* Select2 dropdown 48px height matching Figma */
.createDraftInvoice .select2-container {
  width: 100% !important;
}

.createDraftInvoice .select2-container .select2-selection--single {
  height: 48px !important;
  min-height: 48px !important;
  background-color: #FFFFFF !important;
  border: 1px solid #E5E5E5 !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: none !important;
  outline: none !important;
}

.createDraftInvoice .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 46px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  padding-left: 14px !important;
  padding-right: 36px !important;
}

.createDraftInvoice .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6B7280 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.createDraftInvoice .select2-container .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  width: 36px !important;
  top: 0 !important;
}

.createDraftInvoice .select2-container--open .select2-selection--single,
.createDraftInvoice .select2-container--focus .select2-selection--single {
  border-color: #E5E5E5 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Textarea */
.createDraftInvoice textarea,
.createDraftInvoice .cdi-textarea {
  width: 100%;
  height: 125px;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #111827;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.createDraftInvoice textarea:focus,
.createDraftInvoice .cdi-textarea:focus {
  border-color: #9CA3AF !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Cartons Info */
.createDraftInvoice .cdi-cartons,
.createDraftInvoice .bottom {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: #64748B;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0;
}

.createDraftInvoice .cdi-dots {
  letter-spacing: 2px;
  color: #94A3B8;
}

/* Action Buttons */
.createDraftInvoice .cdi-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.createDraftInvoice .cdi-btn-primary,
.createDraftInvoice .btn {
  width: 100%;
  height: 48px;
  background: #146EF5;
  border: none;
  border-radius: 6px;
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 0;
  padding: 0;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.createDraftInvoice .cdi-btn-primary:hover,
.createDraftInvoice .btn:hover {
  background: #0E56C4;
  color: #FFFFFF;
}

.createDraftInvoice .cdi-btn-primary:focus-visible {
  outline: 2px solid #146EF5;
  outline-offset: 2px;
}

/* Dynamic Items Table */
.createDraftInvoice .cdi-items-section {
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 16px;
  background: #F8FAFC;
}

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

.createDraftInvoice .cdi-items-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1E293B;
}

.createDraftInvoice .cdi-items-badge {
  background: #E0E7FF;
  color: #3730A3;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
}

.createDraftInvoice .cdi-items-table-wrap {
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Shared CSS Grid for Selected Items Header & Rows */
.createDraftInvoice .cdi-grid-header,
.createDraftInvoice .cdi-grid-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 100px 100px 40px;
  column-gap: 14px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  padding: 0 16px;
}

.createDraftInvoice .cdi-grid-header {
  padding-top: 6px;
  padding-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 10px;
}

.createDraftInvoice .cdi-grid-row {
  min-height: 46px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease;
}

.createDraftInvoice .cdi-grid-row:last-child {
  margin-bottom: 0;
}

.createDraftInvoice .cdi-grid-row:hover {
  border-color: #CBD5E1;
}

/* Column Alignment & Truncation */
.createDraftInvoice .cdi-col-item {
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.createDraftInvoice .cdi-item-info {
  display: block;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.createDraftInvoice .cdi-item-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  max-height: 2.7em;
  min-width: 0;
}

.createDraftInvoice .cdi-item-disc {
  font-size: 11px;
  color: #059669;
  margin-left: 4px;
  display: inline-block;
  white-space: nowrap;
  font-weight: 500;
  vertical-align: baseline;
}

.createDraftInvoice .cdi-col-qty {
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
  color: #111827;
}

.createDraftInvoice .cdi-grid-header .cdi-col-qty {
  font-weight: 500;
  color: #64748B;
}

.createDraftInvoice .cdi-col-price {
  text-align: right;
  white-space: nowrap;
  color: #4B5563;
  font-weight: 500;
}

.createDraftInvoice .cdi-grid-header .cdi-col-price {
  font-weight: 500;
  color: #64748B;
}

.createDraftInvoice .cdi-col-total {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: #111827;
}

.createDraftInvoice .cdi-grid-header .cdi-col-total {
  font-weight: 500;
  color: #64748B;
}

.createDraftInvoice .cdi-col-remove {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.createDraftInvoice .btn-remove-preview-item {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.createDraftInvoice .btn-remove-preview-item:hover {
  color: #DC2626;
  background-color: #FEF2F2;
}

@media (max-width: 640px) {
  .createDraftInvoice .cdi-grid-header,
  .createDraftInvoice .cdi-grid-row {
    grid-template-columns: minmax(0, 1fr) 48px 75px 80px 30px;
    column-gap: 8px;
    padding: 0 10px;
    font-size: 12px;
  }
  .createDraftInvoice .cdi-items-section {
    padding: 12px;
  }
}

.createDraftInvoice .cdi-items-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  margin-top: 14px;
  font-size: 13px;
  color: #475569;
}

.createDraftInvoice .cdi-items-totals .grand-total {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
}

/* FLATPICKR FIGMA-ALIGNED THEME */
.flatpickr-calendar {
  background: #FFFFFF !important;
  border: 1px solid #E5E5E5 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  width: 290px !important;
  max-width: calc(100vw - 32px) !important;
  padding: 14px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  z-index: 9999999 !important;
}

.flatpickr-calendar.arrowtop {
  margin-top: 6px !important;
}

.flatpickr-calendar.arrowbottom {
  margin-top: -6px !important;
}

.flatpickr-calendar:before,
.flatpickr-calendar:after {
  display: none !important;
}

/* 1. Header & Navigation Arrows */
.flatpickr-months {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  margin: 0 0 10px 0 !important;
  box-sizing: border-box !important;
}

/* Symmetrical Previous & Next Navigation Buttons */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  color: #64748B !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
  flex-shrink: 0 !important;
  z-index: 5 !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  width: 14px !important;
  height: 14px !important;
  fill: currentColor !important;
  display: block !important;
  margin: 0 !important;
  pointer-events: none !important;
}

/* 2. Month and Year Heading Group (‹ November 2026 ›) */
.flatpickr-months .flatpickr-month {
  flex: 1 !important;
  width: auto !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #111827 !important;
}

.flatpickr-current-month {
  position: static !important;
  width: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 36px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  line-height: 1 !important;
}

/* Hide native month dropdown and year number input */
.flatpickr-current-month select.flatpickr-monthDropdown-months,
select.flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
  display: none !important;
}

/* Custom Month / Year UI Controls in Flatpickr Header: ‹ [ October ] [ 2025 ] › */
.cdi-fp-controls {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 32px !important;
}

.cdi-fp-btn {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  padding: 4px 12px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1E293B !important;
  cursor: pointer !important;
  line-height: 20px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.cdi-fp-btn:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

.cdi-fp-btn.is-active,
.cdi-fp-btn:focus-visible {
  background: #EFF6FF !important;
  border-color: #146EF5 !important;
  color: #146EF5 !important;
  box-shadow: 0 0 0 2px rgba(20, 110, 245, 0.15) !important;
}

/* Custom Month & Year Selection Popover Overlay */
.cdi-fp-popover {
  position: absolute !important;
  top: 48px !important;
  left: 8px !important;
  right: 8px !important;
  bottom: 8px !important;
  background: #FFFFFF !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  z-index: 50 !important;
  display: none !important;
  flex-direction: column !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #E2E8F0 !important;
  padding: 8px !important;
  overflow: hidden !important;
}

.cdi-fp-popover.is-open {
  display: flex !important;
  animation: cdiFpFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes cdiFpFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Popover Mini Header for Year Range Navigation */
.cdi-fp-popover-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 2px 4px 6px 4px !important;
  border-bottom: 1px solid #F1F5F9 !important;
  margin-bottom: 6px !important;
  flex-shrink: 0 !important;
}

.cdi-fp-range-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1E293B !important;
}

.cdi-fp-nav-btn {
  width: 26px !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  border: 1px solid #E2E8F0 !important;
  background: #F8FAFC !important;
  color: #475569 !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
}

.cdi-fp-nav-btn:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

/* 3-Column Grid for Month and Year selection */
.cdi-fp-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: 1fr !important;
  gap: 6px !important;
  width: 100% !important;
  height: 100% !important;
  flex: 1 !important;
  box-sizing: border-box !important;
}

.cdi-fp-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  background: #F8FAFC !important;
  border: 1px solid #F1F5F9 !important;
  cursor: pointer !important;
  padding: 0 4px !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  text-align: center !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.cdi-fp-item:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

.cdi-fp-item.is-selected,
.cdi-fp-item.is-selected:hover {
  background: #146EF5 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  border-color: #146EF5 !important;
  box-shadow: 0 1px 3px rgba(20, 110, 245, 0.3) !important;
}

/* 3. Weekday Labels - 7 Equal Columns Grid */
.flatpickr-innerContainer {
  width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.flatpickr-rContainer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.flatpickr-weekdays {
  width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  margin-bottom: 4px !important;
  overflow: hidden !important;
}

.flatpickr-weekdaycontainer {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  justify-items: center !important;
  align-items: center !important;
}

span.flatpickr-weekday {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #9CA3AF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 28px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* 4. Days Grid & Centered Date Cells */
.flatpickr-days {
  width: 100% !important;
  box-sizing: border-box !important;
}

.dayContainer {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  row-gap: 4px !important;
  justify-items: center !important;
  align-items: center !important;
}

/* Consistent Day Cells - Perfectly Centered Flexbox */
.flatpickr-day {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1F2937 !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.flatpickr-day:hover {
  background: #F1F5F9 !important;
  border-color: #F1F5F9 !important;
  color: #0F172A !important;
}

/* Today date: subtle primary blue ring */
.flatpickr-day.today {
  border-color: #146EF5 !important;
  color: #146EF5 !important;
  font-weight: 600 !important;
  background: transparent !important;
}

.flatpickr-day.today:hover {
  background: #EFF6FF !important;
}

/* Selected date: primary blue background with white centered number */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: #146EF5 !important;
  border-color: #146EF5 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
}

/* Previous / Next month dates: muted gray */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #CBD5E1 !important;
  background: transparent !important;
  border-color: transparent !important;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  background: #F8FAFC !important;
  color: #94A3B8 !important;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  color: #E2E8F0 !important;
  cursor: not-allowed !important;
  background: transparent !important;
}

/* 5. Datepicker Inputs & Calendar SVG Icon */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0 !important;
  cursor: pointer !important;
}

.qoms-datepicker-input,
input.flatpickr-input:not(.cdi-input):not(.no-calendar-icon) {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.66667 1.66666V4.16666M13.3333 1.66666V4.16666M2.91667 7.08332H17.0833M4.16667 3.33332H15.8333C16.5237 3.33332 17.0833 3.89297 17.0833 4.58332V16.25C17.0833 16.9403 16.5237 17.5 15.8333 17.5H4.16667C3.47631 17.5 2.91667 16.9403 2.91667 16.25V4.58332C2.91667 3.89297 3.47631 3.33332 4.16667 3.33332Z' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 20px 20px !important;
  padding-right: 42px !important;
  cursor: pointer !important;
}

/* Suppress duplicate calendar icon inside .cdi-date-wrap */
.cdi-date-wrap .flatpickr-input,
.cdi-date-wrap input.flatpickr-input {
  background-image: none !important;
}

/* Alt-input general appearance */
input.flatpickr-input[readonly] {
  background-color: #FFFFFF !important;
  cursor: pointer !important;
}

input.flatpickr-input.form-control,
input.flatpickr-input.input,
input.qoms-datepicker-input {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  background-color: #FFFFFF !important;
  border: 1px solid #E5E5E5 !important;
  border-radius: 6px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

input.flatpickr-input:focus,
input.qoms-datepicker-input:focus {
  border-color: #9CA3AF !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Compact date inputs inside filter bars (e.g. Reports pages) */
.reports-page .filter-field input.flatpickr-input,
.reports-page .filter-field input.qoms-datepicker-input,
.filter-field input.flatpickr-input,
.filter-field input.qoms-datepicker-input {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  height: 100% !important;
  padding-right: 24px !important;
  background-position: right 4px center !important;
  background-size: 16px 16px !important;
  width: 105px !important;
  font-size: 13px !important;
}

/* Popover layer priority */
.cdi-fp-popover {
  z-index: 100 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .createDraftInvoice {
    padding: 16px;
    gap: 16px;
  }
  
  .createDraftInvoice .cdi-dates-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .createDraftInvoice .cdi-company-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .createDraftInvoice .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .createDraftInvoice {
    padding: 14px;
    border-radius: 6px;
  }
  
  .createDraftInvoice .cdi-field,
  .createDraftInvoice .cdi-input-wrap {
    min-width: 0;
  }

  .createDraftInvoice .cdi-cartons {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    overflow: hidden;
  }

  .createDraftInvoice .cdi-dots {
    display: inline-block;
    max-width: 110px;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    letter-spacing: 1px;
  }
}

/*-----------Inventory page------------*/

.box_filtter {
  background: var(--card);
  /* 🔥 fixed */
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0px;
}

/* LEFT */
.box_filtter .leftside {
  display: flex;
  gap: 12px;
}

/* DROPDOWN FIXED */
.box_filtter .select {
  min-width: 220px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--slate-600);
  padding: 0 12px;
  font-size: 13px;
  background: var(--slate-950);
  color: var(--gray-450);
  margin-right: 10px;
}

/* RIGHT */
.box_filtter .rightside {
  display: flex;
  gap: 10px;
}

/* BUTTON */
.box_filtter .btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  display: inline-block;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  margin-left: 10px;
  width: 170px;
  font-weight: 400;
  line-height: 38px
}

/* GREEN */
.box_filtter .green {
  background: var(--green-450);
  color: var(--card);
}

/* ORANGE */
.box_filtter .orange {
  background: var(--orange-350);
  color: var(--card);
}

/* ICON */
.box_filtter .btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--card);
  fill: none;
  stroke-width: 2;
}

/* RESPONSIVE */
@media(max-width:768px) {
  .box_filtter {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* TOP BAR */
.top-bar {
  background: var(--blue-925);
  border: 1px solid var(--gray-675);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.top-bar select {
  width: 110px;
  height: 40px;
  padding: 0px 18px;
  border: var(--slate-500) 1px solid;
  border-radius: 8px;
  margin: 0px 8px;
}

/* REMOVE DEFAULT UI */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
  display: none;
}

/* SEARCH */
.search {
  position: relative;
  width: 320px;
  max-width: 320px;
  border: var(--slate-500) 1px solid;
  border-radius: 8px;
  background: url(../../images/search-icon.webp) 8px center no-repeat;
}

.search input {
  height: 34px;
  width: 260px;
  border-radius: 8px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0px;
  background: none;
}

.search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
}

/* TABLE */
table.dataTable {
  border-collapse: separate;
  border-spacing: 0 10px;
  width: 100%;
  text-align: left;
}

/* HEADER */
table.dataTable thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-450);
  border: none !important;
  padding: 5px 8px;

}

/* ROW CARD */
table.dataTable tbody tr {
  background: var(--card);
}

/* CELLS */
table.dataTable tbody td {
  padding: 8px;
  font-size: 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.dataTable tbody td a{
  color: var(--gray-450);
  text-decoration: none !important;
}

table.dataTable tbody td img {
  width: 70px;
  height: 70px;
  background: var(--blue-925);
  padding: 10px;
  border-radius: 8px;
}


table.dataTable tbody td a {
  text-decoration: none;
  padding: 4px 0px 0px;
  float: left;
  margin-right: 10px;
  line-height: 30px;
}

table.dataTable tbody td.actions a svg {
  width: auto;
  height: 20px;
}

table.dataTable tbody td span.draft {
  background: var(--gray-875);
  color: var(--slate-100);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
}

table.dataTable tbody td span.approved {
  background: var(--green-800);
  color: var(--green-300);
}

table.dataTable tbody td span.cancelled {
  color: var(--purple-50);
  background: var(--purple-650);
}

table.dataTable tbody td span.rejected {
  background: var(--red-850);
  color: var(--red-200);
}

table.dataTable tbody td span.in_process {
  background: var(--blue-650);
  color: var(--blue-350);
}

table.dataTable tbody td span.pending {
  background: var(--orange-850);
  color: var(--orange-400);
}

table.dataTable tbody td span.Warehouse {
  background: var(--green-800);
  color: var(--green-300);
}

table.dataTable tbody td span.closed {
  background: var(--red-850);
  color: var(--red-200);
}


table.dataTable tbody td.name,
table.dataTable tbody td.price {
  font-weight: 600;
}

td.drag {
  text-align: center;
}

td.drag svg {
  padding-top: 6px;
}

/* ROUND */
table.dataTable tbody tr td:first-child {
  border-left: 1px solid var(--border);
  border-radius: 12px 0 0 12px;
}

table.dataTable tbody tr td:last-child {
  border-right: 1px solid var(--border);
  border-radius: 0 12px 12px 0;
}

/* PRODUCT */
table.dataTable .product {
  display: flex;
  align-items: center;
  gap: 10px;
}

table.dataTable .product img {
  width: 40px;
}

/* ACTIONS */
.actions svg {
  width: 14px;
  cursor: pointer;
}

.edit {
  stroke: var(--orange-350);
}

.delete {
  stroke: var(--red-600);
}

.view {
  stroke: var(--gray-450);
}

/* PAGINATION STYLE */
.dataTables_wrapper .dataTables_info,
.info-container .dataTables_info {
  float: left;
  font-size: 13px;
  color: var(--slate-200);
  margin-top: 12px;
}

.dataTables_wrapper .dataTables_paginate,
.pagination-container .dataTables_paginate {
  float: right;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}

/* BUTTON */
.dataTables_wrapper .paginate_button,
.pagination-container .paginate_button {
  border: 1px solid var(--border) !important;
  background: var(--slate-900) !important;
  color: var(--slate-200) !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

/* ACTIVE */
.dataTables_wrapper .paginate_button.current,
.pagination-container .paginate_button.current {
  background: var(--blue-225) !important;
  color: var(--card) !important;
  border-color: var(--blue-225) !important;
}

/* HOVER */
.dataTables_wrapper .paginate_button:not(.disabled):hover,
.pagination-container .paginate_button:not(.disabled):hover {
  background: var(--border) !important;
  color: var(--slate-200) !important;
}

/* DISABLED */
.dataTables_wrapper .paginate_button.disabled,
.pagination-container .paginate_button.disabled {
  opacity: 0.5;
  cursor: default !important;
}

/* Previous / Next label */
.pagination-container .paginate_button.previous,
.pagination-container .paginate_button.next {
  color: var(--slate-200) !important;
  font-weight: 500 !important;
}



/* ROUND */
tr td:first-child {
  border-radius: 12px 0 0 12px;
}

tr td:last-child {
  border-radius: 0 12px 12px 0;
}

/* DRAG HANDLE */
.drag {
  cursor: grab;
  font-size: 18px;
  color: var(--gray-550);
}

/* BUTTONS */
.actions button {
  border: none;
  background: var(--slate-900);
  padding: 6px;
  margin: 2px;
  border-radius: 6px;
  cursor: pointer;
}

.actions button:hover {
  background: var(--border);
}

.dataTables_wrapper {
  width: 100%;
  display: block;
  overflow: auto;
}

/* OPEN BUTTON */
.open-btn {
  padding: 10px 16px;
  background: var(--green-450);
  color: var(--card);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

/* OVERLAY */
.overlay_popup {
  position: fixed;
  inset: 0;
  background: var(--shadow-45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* MODAL */
.overlay_popup .modal {
  width: 520px;
  background: var(--card);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px var(--shadow-15);
  position: relative;
}

/* TITLE */
.overlay_popup .modal h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--slate-50);
  margin: 0 0 22px;
}

/* CLOSE */
.overlay_popup .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 32px;
  color: var(--slate-200);
  cursor: pointer;
}

/* LABEL */
.overlay_popup label {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-350);
  margin-bottom: 8px;
  display: block;
}

/* FILE BOX */
.overlay_popup .file-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--slate-600);
  border-radius: 10px;
  height: 48px;
  padding: 0 14px;
}

/* HIDE INPUT */
.overlay_popup .file-box input {
  display: none;
}

/* BUTTON */
.overlay_popup .file-btn {
  background: var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--blue-50);
  cursor: pointer;
  margin: 0px;
}

/* FILE TEXT */
.overlay_popup .file-text {
  font-size: 13px;
  color: var(--gray-450);
}

/* LINKS */
.overlay_popup .links {
  margin-top: 24px;
  display: flex;
  gap: 22px;
}

.overlay_popup .links a {
  font-size: 14px;
  color: var(--sidebar);
  text-decoration: underline;
  font-weight: 500;
}

/* DIVIDER */
.overlay_popup .divider {
  margin: 22px 0;
  border-top: 1px solid var(--border);
}

/* BUTTON GROUP */
.overlay_popup .actions {
  display: flex;
  gap: 18px;
}

/* BUTTON */
.overlay_popup .btn {
  flex: 1;
  height: 46px;
  border-radius: 10px;
  border: none;
  font-size: 14dpx;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
}

.overlay_popup .btn:hover {
  background: var(--black);
}

/* IMPORT */
.overlay_popup .import {
  background: var(--green-450);
  color: var(--card);
}

.overlay_popup .import svg {
  width: 15px;
  height: 15px;
  display: inline-block;
}

/* DISCARD */
.overlay_popup .discard {
  background: var(--orange-250);
  color: var(--card);
}

/* RESPONSIVE */
@media(max-width:600px) {
  .overlay_popup .modal {
    width: 90%;
    padding: 22px;
  }
}

/*---------Create inventory----------*/


/* CONTAINER */
.create_inventory {}

/* UPLOAD */
.create_inventory .upload-box {
  border: 1px solid var(--gray-625);
  border-radius: 10px;
  padding: 0px;
  display: inline-block;
  float: left;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  background: var(--slate-950);
  cursor: pointer;
  width: 44px;
  height: 44px;
  line-height: 54px;
  text-align: center;
  margin-right: 20px;
}

.create_inventory .upload-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: none;
  display: inline-block;
  align-items: center;
  justify-content: center;
  color: var(--blue-425);
  font-weight: bold;
}

/* TITLE */
.create_inventory .section-title {
  font-size: 16px;
  color: var(--slate-100);
  font-weight: 600;
  margin-bottom: 12px;
}

/* GRID */
.create_inventory .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.create_inventory .full {
  grid-column: 1/3;
}

.create_inventory .field {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.create_inventory label {
  font-size: 12px;
  color: var(--slate-200);
  font-weight: 500;
}

/* INPUT */
.create_inventory input,
.create_inventory select,
.create_inventory textarea {
  width: 100%;
  height: 44px;
  border: 1px solid var(--slate-600);
  border-radius: 8px;
  padding-left: 10px;
  font-size: 13px;
  background-position: 98% center !important;
  background: none;
  margin: 0px;
}

.create_inventory textarea {
  height: 150px;
  padding: 10px;
}

/* ROW */
.create_inventory .row {
  display: flex;
  gap: 8px;
}

.create_inventory .row select {
  flex: 1;
}

.create_inventory .add-btn {
  background: var(--blue-225);
  color: var(--card);
  border: none;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  width: 180px;
  font-weight: 600;
  height: 44px;
}

.create_inventory .add-btn:hover {
  background: var(--black);
}

/* BOXES */
.create_inventory .blue {
  background: var(--blue-850);
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
  border: var(--blue-575) 1px solid;
}

.create_inventory .blue label {
  color: var(--blue-325);
}

.create_inventory .blue input,
.create_inventory .blue select,
.create_inventory .blue textarea {
  width: 100%;
  height: 44px;
  border: 1px solid var(--blue-475);
  border-radius: 8px;
  padding-left: 10px;
  font-size: 13px;
  background-position: 98% center !important;
  background-color: var(--card) !important;
}

.create_inventory .pricing {
  background: var(--blue-925);
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0px 10px;
}

.create_inventory .green {
  background: var(--green-800);
  border: 1px solid var(--green-300);
  border-radius: 10px;
  padding: 14px;
  margin-top: 16px;
}

.create_inventory .green .section-title {
  color: var(--green-300);
}

.create_inventory .green label {
  color: var(--green-50);
}

.create_inventory .green input,
.create_inventory .green select,
.create_inventory .green textarea {
  border: 1px solid var(--green-550);
  background-color: var(--card) !important;
}

/* CUSTOM CHECKBOX */
.create_inventory .check-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
  padding: 0px 20px;
}

.create_inventory .custom-check {
  display: flex;
  align-items: start;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--slate-200);
  line-height: 24px;
  justify-content: left;
  width: 100%;
}

.create_inventory .custom-check a {
  color: var(--orange-400);
}

.create_inventory .custom-check input {
  display: none;
}

.create_inventory .checkmark {
  width: 28px !important;
  height: 26px !important;
  border: 1.5px solid var(--slate-500);
  border-radius: 4px;
  background: var(--card);
  position: relative;
  float: left;
  margin-right: 10px;
}

.create_inventory .custom-check input:checked+.checkmark {
  background: var(--blue-225);
  border-color: var(--blue-225);
}

.create_inventory .custom-check input:checked+.checkmark::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: 2px solid var(--card);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* FOOTER */
.create_inventory .footer {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.create_inventory .save {
  background: var(--blue-225);
  color: var(--card);
  width: 220px;
  display: inline-block;
  height: 44px;
  line-height: 44px;
  padding: 0 30px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.create_inventory .discard {
  background: var(--card);
  border: var(--gray-450) 1px solid;
  color: var(--gray-450);
  width: 220px;
  display: inline-block;
  height: 44px;
  line-height: 44px;
  padding: 0 30px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* RESPONSIVE */
@media(max-width:600px) {
  .create_inventory .grid {
    grid-template-columns: 1fr;
  }

  .create_inventory .full {
    grid-column: auto;
  }
}

.classification {
  background: var(--blue-925);
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0px 10px;
}

.create_inventory .upload_txt {
  line-height: 40px;
}

.create_inventory .sku_div {
  width: 100%;
  border-top: var(--slate-500) 1px solid;
  margin-top: 30px;
  padding: 20px 0px;

}

.heading {
  padding: 20px 0px 15px;
}

select.statuses_select {
  width: 160px;
}

a.download-btn {
  background: var(--green-300);
  height: 40px;
  line-height: 40px;
  display: inline-block;
  color: var(--card);
  font-size: 12px;
  padding: 0px 20px;
  border-radius: 10px;
  text-decoration: none;
}

a.download-btn svg {
  width: 18px;
  float: left;
  margin-right: 5px;
  margin-top: 7px;
}


/* CUSTOM CHECKBOX */
.custom-check {
    float: left;
    width: 40px;
    margin: 0px;
    margin-top: 6px;
}

.custom-check input {
  display: none;
}

.custom-check .checkmark {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--slate-600);
  border-radius: 4px;
  background: var(--card);
  position: relative;
  cursor: pointer;
  float: left;
}

.custom-check input:checked+.checkmark {
  background: var(--blue-225);
  border-color: var(--blue-225);
}

.custom-check input:checked+.checkmark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: 2px solid var(--card);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ROW SELECT EFFECT */
tr.selected {
  background: var(--blue-825);
}

/*----------invoice_prev--------------*/


/* LAYOUT */
.invoice_prev {
  display: flex;
  gap: 14px;
  max-width: 1150px;
  margin: 0px 0px 20px;
}

/* LEFT */

/* MAIN CARD */
.invoice_prev .invoice {
  max-width: 1000px;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--slate-750);
  overflow: hidden;
  flex: 1;
}

/* HEADER */
.header_prev {
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.logo_prev {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-225);
}

.logo_prev img {
  width: 160px;
  margin-top: 7px;
}

.invoice_prev .address {
  text-align: right;
  font-size: 12px;
  color: var(--slate-100);
  font-weight: 500;
  line-height: 1.5;
}

/* BAR */
.invoice_prev .bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: var(--slate-650);
  margin: 8px 0px;
}

.invoice_prev .bar {
  flex: 1;
  background: var(--slate-650);
  padding: 0px 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
}

.invoice_prev .title {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-225);
  margin: 0px;
  background: var(--card);
  padding: 0px 10px;
  line-height: 34px;
}

/* INFO */
.invoice_prev .info {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  font-size: 13px;
  color: var(--gray-450);
}

.invoice_prev .info strong {
  display: block;
  margin-top: 6px;
  color: var(--slate-100);
}

.info_right {
  text-align: right;
}

/* BADGE */
.invoice_prev .badge {
  display: inline-block;
  background: var(--purple-950);
  color: var(--purple-350);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  margin-bottom: 10px;
  text-align: center
}

.invoice_prev .badge.draft {
  color: ;
}

/* TABLE */
.invoice_prev .table {
  padding: 0 18px;
}

.invoice_prev table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.invoice_prev th {
  font-size: 12px;
  text-align: left;
  padding: 10px 6px;
  border-top: 2px solid var(--blue-225);
  border-bottom: 2px solid var(--blue-225);
  color: var(--blue-225);
}

.invoice_prev td {
  font-size: 13px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--slate-100);
}

/* TOTAL */
.invoice_prev .total-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 10px 18px;
}

.invoice_prev .total-box {
  width: 300px;
  font-size: 13px;
  color: var(--slate-100);
}

.invoice_prev .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.invoice_prev .row:last-child {
  border: none;
}

.invoice_prev .total {
  font-weight: 700;
  font-size: 14px;
}

.invoice_prev .balance {
  margin-top: 10px;
  background: var(--blue-225);
  color: var(--card);
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
}

.invoice_prev .balance .bigsize {
  font-size: 15px;
  font-weight: 700;
}

/* SECTIONS */
.invoice_prev .section {
  border-top: 1px solid var(--border);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--gray-450);
}

.invoice_prev .section strong {
  color: var(--slate-100);
}

/* PAYMENT */
.invoice_prev .payment {
  display: flex;
  justify-content: space-between;
}

.invoice_prev .payment-left {
  font-size: 13px;
}

/* THANK YOU */
.invoice_prev .thank {
  font-size: 28px;
  color: var(--border);
  font-weight: 700;
  line-height: 130px;
}

/* NOTE */
.invoice_prev .note {
  border-top: 1px solid var(--border);
  padding: 14px 18px;
  font-size: 12px;
  color: var(--gray-325);
  text-align: left;
}

.invoice_prev .note strong {
  display: block;
}

/* RESPONSIVE */
@media(max-width:425px) {
  .invoice_prev .info {
    flex-direction: column;
    gap: 12px;
  }



  .invoice_prev .title {
    font-size: 24px;
  }

  .header_prev {

    flex-direction: column;
  }

  .invoice_prev .address {
    text-align: left;
    font-size: 12px;
    color: var(--slate-100);
    font-weight: 500;
    line-height: 1.5;
  }

  .info_right {
    text-align: left;
  }
}

/* RIGHT */
.invoice_sidebar {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* RESPONSIVE */
@media(max-width:900px) {
  .invoice_prev {
    flex-direction: column;
  }
}


/* CARD */
.invoice_sidebar .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 0px 16px;
}

/* TITLE */
.invoice_sidebar .title {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-50);
  margin: 0px;
  padding: 0px 16px;
  margin-bottom: 12px;
  text-align: left;
}

/* INPUT */
.invoice_sidebar .select,
.invoice_sidebar .textarea {
  width: calc(100% - 32px);
  border: 1px solid var(--slate-500);
  border-radius: 10px;
  background: var(--card);
  font-size: 13px;
  color: var(--slate-200);
  padding: 10px 12px;
  outline: none;
  margin: 0px 16px;
}

/* SELECT */
.invoice_sidebar .select {
  height: 40px;
  margin-bottom: 10px;
}

/* TEXTAREA */
.invoice_sidebar .textarea {
  height: 90px;
  resize: none;
  margin-bottom: 12px;
}

/* BUTTON */
.invoice_sidebar .btn {
  width: calc(100% - 32px);
  height: 42px;
  line-height: 42px;
  background: var(--orange-350);
  border: none;
  border-radius: 10px;
  color: var(--card);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 10px 16px;
}

/* RESPONSIVE */
@media(max-width:480px) {
  .invoice_sidebar .card {
    width: 100%;
  }
}


/* COLORS */
.invoice_sidebar .green {
  background: var(--green-450);
}

.invoice_sidebar .green:hover {
  background: var(--green-200);
}

.invoice_sidebar .blue {
  background: var(--blue-225);
}

.invoice_sidebar .blue:hover {
  background: var(--blue-150);
}

/* FOOTER TEXT */
.invoice_sidebar .note {
  text-align: center;
  font-size: 12px;
  color: var(--gray-325);
  border: 0px;
  padding: 10px 0px;
}

/* TABLE HEADER */
.invoice_sidebar .table-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--slate-950);
  border-bottom: 1px solid var(--sidebar);
  border-top: 1px solid var(--sidebar);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-200);
}

.table-head div {
  padding: 10px;
  border-right: 1px solid var(--border);
}

.table-head div:last-child {
  border-right: none;
}

/* ROW */
.row_status {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--blue-775);
  font-size: 12px;
  color: var(--slate-200);
}

.row_status div {
  padding: 10px;
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

/* CANCELLED */
.cancelled {
  background: var(--purple-950);
  color: var(--purple-350);
}

/* DRAFT */
.draft {
  background: var(--border);
  color: var(--slate-200);
}


/*---------popup------*/



/* OVERLAY */
.overlayP {
  position: fixed;
  inset: 0;
  background: var(--shadow-40);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.overlayP.active {
  opacity: 1;
  visibility: visible;
}

/* DRAWER */
.drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: var(--card);
  box-shadow: -6px 0 20px var(--shadow-15);
  transition: .3s;
  display: flex;
  flex-direction: column;
}

.drawer.active {
  right: 0;
}

/* HEADER */
.top_bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.top_bar .title {
  font-size: 21px;
  font-weight: 500;
}

.close {
  cursor: pointer;
  font-size: 21px;
}

/* BODY */
.popup_area {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

/* LABEL */
label {
  font-size: 12px;
  color: var(--slate-250);
  margin-bottom: 4px;
  display: block;
}

/* INPUT */
input,
textarea {
  width: 100%;
  border: 1px solid var(--slate-500);
  border-radius: 8px;
  padding: 0px 10px;
  height: 44px;
  font-size: 13px;
  margin-bottom: 12px;
  background: var(--card);
  color: var(--gray-450);
}

textarea {
  height: 210px;
  resize: none;
}

/* FOOTER */
.footer {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* BUTTON */
.btn {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  cursor: pointer;
}

/* PRIMARY */
.primary {
  background: var(--blue-225);
  color: var(--card);
}

/* CANCEL */
.cancel {
  background: var(--slate-900);
  color: var(--slate-200);
}

/* RESPONSIVE */
@media(max-width:480px) {
  .drawer {
    width: 100%;
  }
}

/*-----------------CreateCreditNote------------------*/


.cardbox {
  max-width: 880px;
  margin: auto;
  background: var(--blue-875);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 30px;
}

.cardbox h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 22px;
}

.cardbox .group {
  margin-top: 20px;
}

.cardbox .group.date .input-wrap {
  width: 60%;
}

label {
  font-size: 12px;
  color: var(--slate-250);
  margin-bottom: 6px;
  display: block;
}

.input-wrap {
  position: relative;
}

.cardbox input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--slate-500);
  border-radius: 10px;
  padding: 0 40px 0 12px;
  font-size: 13px;
  background: none;
  color: var(--gray-450);
  margin: 0px;
}

/* ICON */
.cardbox .icon {
  position: absolute;
  right: 12px;
  top: 45%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* TEXTAREA */
.cardbox textarea {
  width: 100%;
  height: 130px;
  border: 1px solid var(--slate-500);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  color: var(--gray-450);
  background: none;
  margin: 0px;
}

/* FLATPICKR CUSTOM */
.flatpickr-calendar {
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px var(--shadow-10);
}


/* CARD */
.cardbox2 {
  margin: 0px -22px;
  border-radius: 12px;
  padding: 0px;
}

/* HEADER TEXT */
.cardbox2 .title {
  font-size: 14px;
  color: var(--slate-200);
  margin-bottom: 10px;
  padding: 0px 30px 15px;
}

.cardbox2 .title b {
  font-size: 15px;
}

/* TABLE */
.cardbox2 table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

/* TABLE HEADER */
.cardbox2 thead {
  background: var(--blue-225);
  color: var(--card);
}

.cardbox2 th {
  padding: 12px;
  font-size: 13px;
  text-align: center;
  color: var(--card);
}

.cardbox2 th.item,
.cardbox2 td.item {
  text-align: left;
}

/* ROW */
.cardbox2 td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--slate-200);
  vertical-align: middle;
  text-align: center;
}

/* CHECKBOX */
.cardbox2 input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green-450);
}

/* INPUT */
.cardbox2 .qty {
  width: 60px;
  height: 34px;
  border: 1px solid var(--slate-600);
  border-radius: 6px;
  text-align: left;
  font-size: 13px;
}

/* BUTTON AREA */
.cardbox2 .actions {
  display: inline-block;
  width: 100%;
  gap: 12px;
  margin: 18px 20px 0px;
}

/* BUTTON */
.cardbox2 .btn {
  width: 220px;
  display: inline-block;
  height: 40px;
  padding: 0 30px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  line-height: 36px;
  text-decoration: none;
}

/* PRIMARY */
.cardbox2 .primary {
  background: var(--blue-225);
  color: var(--card);
}

.cardbox2 .primary:hover {
  background: var(--black);
  color: var(--card);
}

/* CANCEL */
.cardbox2 .cancel {
  background: var(--card);
  border: 1px solid var(--gray-450);
  color: var(--slate-200);
}

.cardbox2 .cancel:hover {
  background: var(--blue-225);
  border: 1px solid var(--blue-225);
  color: var(--card);
}

/* RESPONSIVE */
@media(max-width:768px) {
  table {
    font-size: 12px;
  }

  .qty {
    width: 50px;
  }
}

/*--------------editinvoice1-----------------*/

.editinvoice1 {
  background: var(--blue-925);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
}

/* TITLE */
.editinvoice1 .title {
  font-size: 20px;
  font-weight: 600;
  color: var(--slate-100);
  margin-bottom: 16px;
  text-align: left;
}

/* GRID */
.editinvoice1 .grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* FIELD */
.editinvoice1 .field label {
  font-size: 13px;
  color: var(--slate-250);
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

/* INPUT WRAP */
.editinvoice1 .input-wrap {
  position: relative;
}

/* INPUT */
.editinvoice1 input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--slate-500);
  border-radius: 10px;
  padding: 0 40px 0 12px;
  font-size: 14px;
  background: var(--gray-450);
  color: var(--slate-200);
}

/* DISABLED LOOK */
.editinvoice1 input[readonly] {
  background: var(--slate-950);
}

/* ICON */
.editinvoice1 .icon {
  position: absolute;
  right: 12px;
  top: 40%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0.6;
}

/* FLATPICKR STYLE */
.editinvoice1 .flatpickr-calendar {
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px var(--shadow-10);
}

/* RESPONSIVE */
@media(max-width:768px) {
  .editinvoice1 .grid {
    grid-template-columns: 1fr;
  }
}




/* CARD */
.editinvoice2 {
  background: var(--blue-850);
  border: 1px solid var(--blue-575);
  margin-bottom: 20px;
  border-radius: 14px;
  padding: 20px;
}

/* TITLE */
.editinvoice2 .title {
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-100);
  margin-bottom: 16px;
  text-align: left;
}

/* GRID */
.editinvoice2 .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* FULL WIDTH */
/* .editinvoice2 .full{
    grid-column:1 / -1;
} */

/* LABEL */
.editinvoice2 label {
  display: block;
  font-size: 13px;
  color: var(--blue-325);
  margin-bottom: 6px;
  font-weight: 500;
}

/* SELECT WRAP */
.editinvoice2 .select-wrap {
  position: relative;
}

/* SELECT */
.editinvoice2 select {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--blue-475);
  border-radius: 10px;
  padding: 0 40px 0 12px;
  font-size: 14px;
  color: var(--gray-450);
  appearance: none;
  outline: none;
}


/* RESPONSIVE */
@media(max-width:768px) {
  .editinvoice2 .grid {
    grid-template-columns: 1fr;
  }
}


/* CARD */
.editinvoice3 {
  max-width: 900px;
  margin: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

/* TITLE */
.editinvoice3 .title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  text-decoration: underline;
  color: var(--slate-100);
  text-align: left;
}

/* ITEM BLOCK */
.editinvoice3 .item {
  padding: 0;
  position: relative;
}

/* GRID */
.editinvoice3 .row {
  display: grid;
  grid-template-columns: 30% 30% 30%;
  gap: 12px;
  margin-bottom: 10px;
}

/* LABEL */
.editinvoice3 label {
  font-size: 12px;
  color: var(--slate-250);
  display: block;
  margin-bottom: 5px;
}

/* INPUT */
.editinvoice3 input,
select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--slate-500);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--gray-450);
  background: var(--card);
}

/* REMOVE BUTTON */

.editinvoice3 .remove {
  position: absolute;
  right: 24%;
  top: 80%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--card);
  border: none;
  font-size: 34px;
  cursor: pointer;
  line-height: 0px;
  text-align: center;
}

.editinvoice3 .remove svg {
  width: 16px;
  height: 16px;
}

/* ADD BUTTON */
.editinvoice3 .add-btn {
  margin-top: 16px;
  background: var(--green-300);
  color: var(--card);
  border: none;
  padding: 12px 26px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* RESPONSIVE */
@media(max-width:768px) {
  .editinvoice3 .row {
    grid-template-columns: 50% 50%;
  }

  .editinvoice3 .remove {
    position: relative;
    margin-top: 20px;
    top: auto;
    right: auto;
  }
}

@media(max-width:480px) {
   .editinvoice3 .row {
    grid-template-columns: 100%;
  }
}



/* CARD */
.editinvoice4 {
  max-width: 900px;
  margin: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

/* TOTAL SECTION */
.editinvoice4 .totals {
  width: 100%;
  margin-left: auto;
}

.editinvoice4 .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--slate-200);
}

.editinvoice4 .row:last-child {
  border-bottom: none;
}

.editinvoice4 .total {
  font-weight: 600;
  color: var(--slate-100);
}

/* NOTE */
.editinvoice4 .note-section {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.editinvoice4 .note-label {
  font-size: 13px;
  color: var(--slate-200);
  margin-bottom: 6px;
  font-weight: 500;
}

.editinvoice4 textarea {
  width: 100%;
  height: 120px;
  border: 1px solid var(--slate-500);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  color: var(--gray-450);
  resize: none;
  background: var(--card);
}


/* BUTTON AREA */
.editinvoice4 .actions {
  display: inline-block;
  width: 100%;
  gap: 12px;
  margin: 0px;
}

/* BUTTON */
.editinvoice4 .btn {
    width: 220px;
    float: left;
    height: 44px;
    padding: 0 30px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    margin-right: 10px;
}

/* PRIMARY */
.editinvoice4 .primary {
  background: var(--blue-225);
  color: var(--card);
}

.editinvoice4 .primary:hover {
  background: var(--black);
  color: var(--card);
}

/* CANCEL */
.editinvoice4 .cancel {
  background: var(--card);
  border: 1px solid var(--gray-450);
  color: var(--slate-200);
}

.editinvoice4 .cancel:hover {
  background: var(--blue-225);
  border: 1px solid var(--blue-225);
  color: var(--card);
}

/* RESPONSIVE */
@media(max-width:600px) {
  .totals {
    width: 100%;
  }
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: transparent !important;
}

/*-----------Customer----------*/


/* PASSWORD */
.pass {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* TOGGLE */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin-top: 5px;
  margin-bottom: 0px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background: var(--slate-600);
  border-radius: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  top: 2px;
  background: var(--card);
  border-radius: 50%;
  transition: .3s;
}

input:checked+.slider {
  background: var(--green-450);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0px;
  padding: 0px;
}

.add_btn {
  background: var(--green-450);
  color: var(--card);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

/* PLUS ICON */
.add_btn::before {
  content: "+";
  font-weight: 600;
}

/* HOVER */
.add_btn:hover {
  background: var(--green-200);
}

.fieldgroup {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.fieldgroup .add_btn {
  width: 250px;
  font-size: 13px;
  height: 44px;
  background: var(--orange-400);
  padding: 0px;
  text-align: center !important;
  display: inline-block;
  line-height: 44px;
  text-decoration: none;
}


.create_inventory .white {
  background: var(--card);
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
  border: var(--gray-675) 1px solid;
}

.create_inventory .white textarea {
  height: 190px;
}



/* reference_card */
.reference_card {
  padding: 0px 0px 20px;
}

/* TITLE */
.reference_card .title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  text-decoration: underline;
  color: var(--blue-225);
}

/* ITEM BLOCK */
.reference_card .item {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 14px;
  position: relative;
  margin-top: 10px;
}

/* GRID */
.reference_card .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

/* LABEL */
.reference_card label {
  font-size: 12px;
  color: var(--slate-200);
  display: block;
  margin-bottom: 5px;
}

/* REMOVE BUTTON */
.reference_card .remove {
  position: absolute;
  right: 10px;
  top: 30px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--card);
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* ADD BUTTON */
.reference_card .add-btn {
  background: var(--green-300);
  color: var(--card);
  border: none;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  width: 180px;
  font-weight: 600;
  height: 44px;
  margin-top: 20px;
}

/* RESPONSIVE */
@media(max-width:768px) {
  .row {
    grid-template-columns: 1fr;
  }
}


.signature_btn {
  background: var(--gray-450);
  color: var(--card);
  border: none;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  width: 180px;
  font-weight: 600;
  height: 44px;
  margin-top: 20px;
}

.signature textarea {
  background: var(--card);
}

.no-border {
  border: 0px;
}

/* POPUP */
.popup_customer {
  position: relative;
  width: 880px;
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px var(--shadow-15);
  overflow-y: auto;
  height: 86vh;
}

.popup-title {
  font-size: 21px;
  font-weight: 500;
}



.catalogue .dropdown {
  width: 220px;
  position: relative;
}

/* BUTTON */
.catalogue .dropdown-btn {
  width: 100%;
  height: 44px;
  background: var(--blue-250);
  border: none;
  border-radius: 12px;
  color: var(--card);
  font-size: 15px;
  font-weight: 500;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-sizing: border-box;
}

/* ARROW */
.catalogue .arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--card);
  border-bottom: 2px solid var(--card);
  transform: rotate(45deg);
  transition: .3s;
  margin-top: -8px;
}

/* ACTIVE ARROW */
.catalogue .dropdown.active .arrow {
  transform: rotate(-135deg);
  margin-top: 10px;
}

/* MENU */
.catalogue .dropdown-menu {
  position: absolute;
  top: 55px;
  left: 0;
  width: 100%;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 10px 25px var(--shadow-12);
  overflow: hidden;
  display: none;
  z-index: 99;
}

/* SHOW MENU */
.catalogue .dropdown.active .dropdown-menu {
  display: block;
}

/* ITEM */
.catalogue .dropdown-item {
  padding: 15px 20px;
  font-size: 15px;
  color: var(--slate-200);
  cursor: pointer;
  transition: .2s;
}

.catalogue .dropdown-item:hover {
  background: var(--slate-900);
}

/* RESPONSIVE */
@media(max-width:480px) {

  .catalogue .dropdown {
    width: 100%;
  }

  .catalogue .dropdown-btn {
    height: 64px;
    font-size: 22px;
    border-radius: 18px;
  }
}


/* WRAPPER */
.cart-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 15px;
}

/* QTY SECTION */
.qty-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

/* PLUS MINUS */
.qty-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--gray-450);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

/* INPUT */
.cart-box .qty-input {
  width: 36px;
  height: 36px;
  border: 1px solid var(--slate-600);
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--blue-50);
  outline: none;
  background: var(--card);
  margin: 0px;
  padding: 0px;
}

/* ADD BUTTON */
.cart-box .add-btn {
  height: 30px;
  padding: 0px;
  border: none;
  border-radius: 6px;
  background: var(--blue-250);
  color: var(--card);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: 90%;
  margin-top: 8px;
}

/* HOVER */
.cart-box .add-btn:hover {
  background: var(--blue-125);
}

/* OUT OF STOCK */
.cart-box .add-btn:disabled,
.cart-box .add-btn:disabled:hover {
  background: var(--gray-675);
  color: var(--gray-450);
  cursor: not-allowed;
}

.product.out-of-stock .qty-box {
  opacity: 0.5;
}

.product.out-of-stock .qty-btn:disabled,
.product.out-of-stock .qty-input:disabled {
  cursor: not-allowed;
}

/* Icon-only "add to cart" button (sales product grid) */
.product .card_ic:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pro-heading {
  border: 1px solid var(--gray-675);
  border-radius: 8px;
  width: calc(100% - 40px);
  grid-column: 1/5;
  padding: 15px 20px;
  text-align: center;
  margin: 0px 20px;
}

.pro-heading h5 {
  color: var(--gray-125);
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 500;
}

.pro-heading h5 span {
  background: var(--orange-750);
  color: var(--orange-150);
  font-size: 12px;
  text-transform: capitalize;
  font-weight: 400;
  padding: 2px 10px;
  border-radius: 25px;
  margin-top: -5px;
}


/* CARD */
.nav-card {
  max-width: 720px;
  margin: auto;
  background: var(--blue-925);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* LEFT */
.prev {
  color: var(--gray-575);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* RIGHT */
.next {
  color: var(--orange-300);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* HOVER */
.prev:hover {
  opacity: .8;
}

.next:hover {
  opacity: .8;
}

/*---------Report & analytics------------*/

.report_analytics {
  margin: 20px 0px;
}

/* GRID */
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* CARD */
.report_card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* ORANGE CARD */
.orange-card {
  border-color: var(--orange-550);
}

/* HEADER */
.report_card .card-header {
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--blue-725);
}

.orange-card .card-header {
  background: var(--orange-950);
  border-bottom: 1px solid var(--orange-600);
}

/* TITLE */
.report_card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-150);
}

/* ICON */
.report_card .card-icon {
  font-size: 18px;
  padding-top: 5px;
}

.report_card .card-icon svg {
  width: 24px;
  height: auto;
}

/* BODY */
.report_card .card-body {
  padding: 14px;
}

/* ITEM */
.report_card .item {
  background: var(--blue-950);
  border: 1px solid var(--blue-725);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.orange-card .item {
  background: var(--orange-950);
  border: 1px solid var(--orange-650);
}

/* LEFT */
.report_card .item-left h4 {
  font-size: 13px;
  color: var(--slate-50);
  margin-bottom: 4px;
  font-weight: 600;
}

.report_card .item-left p {
  font-size: 11px;
  color: var(--gray-300);
  margin-bottom: 2px;
}

/* RIGHT */
.report_card .item-right {
  text-align: right;
}

.report_card .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-250);
}

.report_card .green {
  color: var(--green-450);
}

.red {
  color: var(--red-600);
}

.orange {
  color: var(--orange-350);
}

.report_card .small {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-450);
}

/* BOTTOM GRID FIX */
.full-width {
  grid-column: 1 / 2;
}

/* RESPONSIVE */
@media(max-width:991px) {

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

  .full-width {
    grid-column: auto;
  }

}

@media(max-width:576px) {

  .item {
    flex-direction: column;
    gap: 10px;
  }

  .item-right {
    text-align: left;
  }

}



/* POPUP */

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--shadow-35);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* ACTIVE */
.overlay.active {
  display: flex;
}

/* POPUP */
.popup {
  width: 430px;
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  box-shadow: 0 15px 40px var(--shadow-15);
  animation: popup .25s ease;
}

/* ANIMATION */
@keyframes popup {
  from {
    transform: scale(.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* HEADER */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

/* TITLE */
.popup-title {
  font-size: 21px;
  font-weight: 600;
  color: var(--slate-150);
}

/* CLOSE */
.popup .close {
  font-size: 48px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  color: var(--blue-50);
}

/* GROUP */
.popup .group {
  margin-bottom: 10px;
}

/* LABEL */
.popup label {
  display: block;
  font-size: 13px;
  color: var(--slate-400);
  margin-bottom: 6px;
}

/* INPUT */
.popup input,
.popup select,
.popup textarea {
  width: 100%;
  height: 42px;
  border: 1px solid var(--slate-600);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--slate-200);
  outline: none;
  box-sizing: border-box;
}

.popup textarea {
  height: auto;
  min-height: 80px;
  padding: 10px 12px;
}

/* ACTIONS */
.popup .actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

/* BUTTON */
.popup .btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* UPDATE */
.popup .actions .update {
  background: var(--green-450);
  color: var(--card);
}

/* DISCARD */
.popup .actions .discard {
  background: var(--orange-250);
  color: var(--card);
}

.popup .actions .btn:hover {
  background: var(--black);
}


/* TOGGLE BUTTON */
.popup .toggle_popup {
  position: absolute;
  right: 18px;
  top: 40%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ICON */
.popup .toggle_popup svg {
  width: 20px;
  height: 20px;
  stroke: var(--gray-550);
}

/* Admin modals & popups – hidden until opened */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--shadow-35);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-overlay .modal {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 15px 40px var(--shadow-15);
}

.modal-overlay .modal .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  background: none;
  border: none;
  color: var(--slate-200);
}

.modal-overlay .modal h3 {
  margin: 0 0 20px;
  font-size: 21px;
  font-weight: 600;
  color: var(--slate-150);
}

.popup:not(.active) {
  display: none !important;
}

.popup.active {
  display: block !important;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1101;
  max-height: 90vh;
  overflow-y: auto;
}

.overlay.admin-overlay {
  z-index: 1100;
}

.overlay.admin-overlay:not(.active) {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.overlay.admin-overlay.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
}

.overlay.admin-overlay .popup {
  display: none !important;
  max-height: calc(100vh - 32px);
}

.overlay.admin-overlay .popup.active,
.overlay.admin-overlay.active>.popup.active {
  display: flex !important;
  flex-direction: column !important;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}

#overlay.overlay.active {
  z-index: 1100 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
}

#overlay.overlay.active .popup.active {
  display: block;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}

.mt20 {
  margin-top: 20px;
}


/* TABLE WRAP */
.table-user {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

/* HEADER */
thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-50);
  text-align: left;
  padding: 0 12px 10px;
  white-space: nowrap;
}

tbody input.invoice-checkbox {
  width: 20px;
  height: 20px;
  margin: 4px 0px 0px;
}

/* ROW */
tbody tr {
  background: var(--card);
  border: 2px solid var(--gray-675);
}

table.dataTable.stripe>tbody>tr.odd>*,
table.dataTable.display>tbody>tr.odd>* {
  box-shadow: none !important;
}

/* TD */
tbody td {
  padding: 14px 12px;
  font-size: 12px;
  color: var(--gray-450);
  vertical-align: middle;
  border-top: 1px solid var(--blue-725);
  border-bottom: 1px solid var(--blue-725);
  white-space: nowrap;
}

/* ROUND */
tbody tr td:first-child {
  border-left: 1px solid var(--blue-725);
  border-radius: 8px 0 0 8px;
}

tbody tr td:last-child {
  border-right: 1px solid var(--blue-725);
  border-radius: 0 8px 8px 0;
}

/* EMPTY STATE */
table.dataTable tbody td.dataTables_empty,
tbody tr td.dataTables_empty,
td.dataTables_empty {
  text-align: center !important;
}

/* BADGE */
.badge {
  min-width: 62px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* LOGIN */
.login {
  background: var(--blue-675);
  color: var(--blue-375);
}

/* INVOICE */
.invoice {
  background: var(--green-950);
  color: var(--green-450);
}

/* LOCATION */
.location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-550);
}

/* LOCATION ICON */
.location svg {
  width: 11px;
  height: 11px;
  fill: var(--red-600);
  min-width: 11px;
}

/* IP */
.ip {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11px;
  color: var(--gray-550);
  display: inline-block;
}

/* DATE */
.date {
  color: var(--gray-550);
}

.user_details .footer {
  padding: 10px 0px !important;
}

.user_details .blue span.txt {
  width: 100%;
  height: 44px;
  line-height: 44px;
  border: 1px solid var(--blue-475);
  border-radius: 8px;
  padding-left: 10px;
  font-size: 13px;
  background-position: 98% center !important;
  background-color: var(--card) !important;
}

.add_customer h3 {
  font-size: 21px;
}

/*--------Profile----------*/

/* PROFILE WRAP */
.profile-upload {
  position: relative;
  width: 122px;
  height: 122px;
  margin-bottom: 24px;
}

/* IMAGE BOX */
.profile-box {
  width: 122px;
  height: 122px;
  border-radius: 12px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMAGE */
.profile-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* DEFAULT ICON */
.default-icon {
  width: 72px;
  height: 72px;
  stroke: #9CA3AF;
  stroke-width: 1.7;
  fill: none;
}

/* EDIT BUTTON */
.edit-btn {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.edit-btn:hover {
  background: #F8FAFC;
  border-color: #146EF5;
  box-shadow: 0 3px 10px rgba(20, 110, 245, 0.25);
  transform: scale(1.06);
}

/* EDIT ICON */
.edit-btn svg {
  width: 15px;
  height: 15px;
  fill: #1E293B;
  transition: fill 0.2s ease;
}

.edit-btn:hover svg {
  fill: #146EF5;
}

/* FILE INPUT */
.file-input {
  display: none;
}

/* profile_step */
.profile_step {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* STEP BAR */
.steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 8px auto 32px auto;
  width: 100%;
  max-width: 680px;
  position: relative;
}

/* STEP */
.step {
  position: relative;
  flex: 1 1 0;
  max-width: 220px;
  text-align: center;
  cursor: pointer;
  padding: 0 10px;
  box-sizing: border-box;
}

/* CONNECTING LINE */
.step::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #E2E8F0;
  z-index: 1;
}

.step:last-child::after {
  display: none;
}

/* CIRCLE */
.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 10px;
  transition: all 0.25s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px #FFFFFF;
}

/* ACTIVE */
.step.active .step-circle {
  background: #146EF5;
  color: #FFFFFF;
  box-shadow: 0 0 0 4px #FFFFFF, 0 4px 10px rgba(20, 110, 245, 0.25);
}

/* TITLE */
.step-title {
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  transition: color 0.2s ease;
  line-height: 1.3;
}

.step.active .step-title {
  color: #146EF5;
  font-weight: 600;
}

/* CONTENT */
.step-content {
  display: none;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  padding: 24px 28px;
  box-sizing: border-box;
}

/* ACTIVE CONTENT */
.step-content.active {
  display: block;
}

/* GRID */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

/* GROUP */
.group {
  display: flex;
  flex-direction: column;
}

/* FULL */
.full {
  grid-column: 1 / -1;
}

/* LABEL */
.step-content label {
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
  font-weight: 500;
}

/* INPUT */
.step-content input {
  width: 100%;
  height: 44px;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  background: #FFFFFF;
  color: #111827;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.step-content input:focus {
  border-color: #9CA3AF !important;
  box-shadow: none !important;
  outline: none !important;
}

.step-content input[readonly],
.step-content input:disabled {
  background-color: #F9FAFB !important;
  color: #6B7280 !important;
  cursor: not-allowed;
  border-color: #E5E5E5 !important;
}

/* PASSWORD */
.password-wrap {
  position: relative;
  width: 100%;
}

.password-wrap input {
  padding-right: 44px;
}

/* TOGGLE */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  padding: 4px;
  transition: color 0.15s ease;
}

.toggle-password:hover {
  color: #475569;
}

/* ICON */
.toggle-password svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* PROFILE */
.profile-title {
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 4px;
  color: #111827;
}

.change-link {
  font-size: 13px;
  color: #146EF5;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
}

.change-link:hover {
  color: #0E56C4;
}

/* BUTTONS */
.actions-profile {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* BUTTON */
.createDraftInvoice .actions-profile .btn {
  width: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 42px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* SAVE */
.createDraftInvoice .actions-profile .save {
  background: #146EF5;
  border-color: #146EF5;
  color: #FFFFFF;
}

.createDraftInvoice .actions-profile .save:hover {
  background: #0E56C4;
  border-color: #0E56C4;
  color: #FFFFFF;
}

/* CANCEL */
.createDraftInvoice .actions-profile .cancel {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  color: #374151;
  text-align: center;
}

.createDraftInvoice .actions-profile .cancel:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
  color: #111827;
}

/* RESPONSIVE */
@media(max-width:768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .steps {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .step {
    padding: 0 4px;
  }

  .step-circle {
    width: 46px;
    height: 46px;
    font-size: 15px;
    margin-bottom: 6px;
  }

  .step::after {
    top: 23px;
  }

  .step-title {
    font-size: 12px;
  }

  .createDraftInvoice .actions-profile .btn {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .step-title {
    font-size: 11px;
  }
  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .step::after {
    top: 20px;
  }
  .step-content {
    padding: 16px;
  }
}

/* XERO CARD */
.xero-card {
  max-width: 560px;
}

.xero-card .title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111827;
}

.xero-card .switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.xero-card .switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}

.xero-card .switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  position: absolute;
}

.xero-card .slider {
  position: absolute;
  inset: 0;
  background: #CBD5E1;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.xero-card .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.xero-card .switch input:checked+.slider {
  background: #10B981;
}

.xero-card .switch input:checked+.slider::before {
  transform: translateX(20px);
}

.xero-card .status {
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
}

.xero-card .alert {
  border: 1px solid #FEF3C7;
  background: #FFFBEB;
  border-radius: 6px;
  padding: 14px 16px;
  color: #92400E;
  font-size: 14px;
  line-height: 1.5;
}

.reference_field {
  margin-top: 25px;
}

.reference_field label {
  font-size: 16px;
}

.reference_field input {
  background: var(--gray-900);
}

.mt-0 {
  margin-top: 5px !important;
}


/*----- Sale Customer Details ------- */

.customer_details {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  background: var(--card);
  border: 1px solid var(--gray-700);
  border-radius: 8px;
  padding: 20px;
}

/* Header */

.customer_header {
  margin-bottom: 18px;
}

.customer_header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-100);
  margin-bottom: 4px;
}

.customer_header p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Tabs */

.customer_details .tabs {
  display: flex;
  align-items: center;
  background: #EEF4FC;
  border: 1px solid #DDE7F6;
  border-radius: 8px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn,
.customer_details .tab-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  outline: none;
  line-height: 1.4;
  user-select: none;
}

.customer_details .tab-btn:hover:not(.active) {
  background: #E0EDFD;
  color: #0354C0;
}

.customer_details .tab-btn.active {
  background: #0354C0;
  border-color: #0354C0;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(3, 84, 192, 0.2);
  cursor: default;
}

/* Tab Content */

.customer_details .tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Layout */

.customer_details .content-wrapper {
  display: flex;
  gap: 20px;
}

/* Table */

.customer_details .table-card {
  flex: 1;
  border: 1px solid var(--gray-750);
  border-radius: 8px;
  overflow: hidden;
}

.customer_details .table-header,
.customer_details .table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 0.5fr;
  align-items: center;
  padding: 16px;
  font-size: 13px;
}

.customer_details .table-header {
  background: var(--gray-950);
  color: var(--gray-225);
  font-weight: 600;
  border-bottom: 1px solid var(--gray-750);
}

.customer_details .table-row {
  border-bottom: 1px solid var(--gray-775);
  color: var(--gray-375);
}

.customer_details .table-row:last-child {
  border-bottom: none;
}

.customer_details .table-row .invoice {
  background: none;
  color: var(--gray-450);
}

.customer_details .status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.customer_details .paid {
  background: var(--orange-800);
  color: var(--orange-500);
}

.customer_details .overdue {
  background: var(--orange-800);
  color: var(--orange-500);
}

.customer_details .eye {
  cursor: pointer;
  font-size: 15px;
}

/* Right Panel */

.customer_details .details-card {
  width: 260px;
  border: 1px solid var(--gray-750);
  border-radius: 8px;
  padding: 20px;
}

.customer_details .details-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--gray-100);
}

.customer_details .details-card p {
  font-size: 13px;
  color: var(--gray-375);
  line-height: 1.8;
}

/* Responsive */

@media(max-width:900px) {

  .customer_details .content-wrapper {
    flex-direction: column;
  }

  .customer_details .details-card {
    width: 100%;
  }
}

@media(max-width:700px) {

  .customer_details .table-header {
    display: none;
  }

  .customer_details .table-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }

  .customer_details .table-row div {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
  }

  .customer_details .table-row div::before {
    font-weight: bold;
    color: var(--gray-175);
  }

  .customer_details .invoice::before {
    content: "Invoice:";
  }

  .customer_details .date::before {
    content: "Date:";
  }

  .customer_details .amount::before {
    content: "Amount:";
  }

  .customer_details .status-col::before {
    content: "Status:";
  }

  .customer_details .action::before {
    content: "Action:";
  }
}

/* ============================================================
   APP LAYOUT: Modern SaaS Two-Mode Layout (Hover = Overlay, Pinned = Layout)
   ============================================================ */

@media (min-width: 769px) {
  /* 1. APP WRAPPER: Two distinct layout modes */
  .app {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    min-height: 100vh;
    align-items: stretch;
    transition: grid-template-columns 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Pinned layout mode: dashboard naturally shrinks/reflows for the 260px sidebar */
  .app.sidebar-pinned {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  /* 2. SIDEBAR: Desktop stickiness, width, and transitions */
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
    align-self: flex-start;
    background: #ffffff;
    border-right: 1px solid #EBEDEF;
    box-sizing: border-box;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  /* 1. Resting Collapsed State (Desktop, Unpinned, Not Hovered) */
  .app:not(.sidebar-pinned) .sidebar.collapsed:not(.is-hover-expanded) {
    width: 100px;
    box-shadow: none;
    z-index: 99;
  }

  /* 2. Hover-Expanded State (Desktop, Unpinned, Hovered) = OVERLAY MODE
     The grid track 1 remains 100px, so .main and the dashboard NEVER move or reflow.
     The sidebar expands to 260px as an elevated overlay above dashboard content. */
  .app:not(.sidebar-pinned) .sidebar.is-hover-expanded {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
    box-shadow: 6px 0 28px rgba(16, 24, 40, 0.14), 1px 0 4px rgba(16, 24, 40, 0.06);
    border-right: 1px solid #E2E8F0;
    z-index: 1050;
  }

  /* 3. Pinned State (Desktop, Pinned) = LAYOUT PARTICIPANT MODE
     The grid track 1 is 260px, dashboard shrinks/reflows naturally. */
  .app.sidebar-pinned .sidebar {
    position: sticky;
    top: 0;
    width: 260px;
    overflow-y: hidden;
    overflow-x: hidden;
    box-shadow: none;
    z-index: 99;
  }

  /* 3. MAIN: Occupies column 2 of the grid */
  .main {
    grid-column: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .app {
    display: block;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    min-height: 100vh;
  }

  .main {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }
}

/* 4. DASHBOARD CONTENT: Fix display (was inheriting flex from .dashboard) */
.content.dashboard,
.content.content-dashboard {
  display: block !important;
}

/* ============================================================
   SIDEBAR MENU & DROPDOWN (Figma Alignment)
   ============================================================ */
.sidebar .menu>a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  min-height: 50px;
  height: 50px;
  max-height: 50px;
  border-radius: 14px;
  color: #6D747E;
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition: background-color 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.sidebar .menu>a>svg {
  min-width: 24px;
  width: 24px;
  flex-shrink: 0;
}

.sidebar .menu>a:hover {
  background: #F4F6F8;
  color: #101828;
}

.sidebar .menu>a.active {
  background: #EAF1FA !important;
  color: #2377FC !important;
  font-weight: 600;
}

/* SIDEBAR DROPDOWN (Parent sub-menus - Modern SaaS Hierarchy) */
.sidebar .menu .dropdown {
  position: relative;
  width: 100%;
}

/* 1. Parent item when dropdown is CLOSED / DEFAULT (Normal sidebar navigation appearance) */
.sidebar .menu .drop-btn {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 16px !important;
  min-height: 50px !important;
  height: 50px !important;
  max-height: 50px !important;
  border-radius: 14px !important;
  color: #344054 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  text-align: left !important;
  font-family: inherit !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
  box-sizing: border-box !important;
}

.sidebar .menu .drop-btn .text,
.sidebar .menu .drop-btn span:not(.dropdown-chevron) {
  color: #344054 !important;
  font-weight: 500 !important;
}

.sidebar .menu .drop-btn > svg:not(.dropdown-chevron) {
  min-width: 24px !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

.sidebar .menu .drop-btn > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar .menu .drop-btn > svg:not(.dropdown-chevron) path:not([stroke]) {
  fill: #737791 !important;
  stroke: none !important;
}

.sidebar .menu .drop-btn > svg:not(.dropdown-chevron) path[stroke] {
  stroke: #737791 !important;
  fill: none !important;
}

/* Hover state on CLOSED / DEFAULT parent */
.sidebar .menu .dropdown:not(.open):not(.active) .drop-btn:hover,
.sidebar .menu .dropdown.collapsed .drop-btn:hover,
.sidebar .menu .drop-btn[aria-expanded="false"]:hover {
  background: #F4F6F8 !important;
  color: #101828 !important;
}

.sidebar .menu .dropdown:not(.open):not(.active) .drop-btn:hover .text,
.sidebar .menu .dropdown.collapsed .drop-btn:hover .text,
.sidebar .menu .drop-btn[aria-expanded="false"]:hover .text {
  color: #101828 !important;
}

.sidebar .menu .dropdown:not(.open):not(.active) .drop-btn:hover > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar .menu .dropdown.collapsed .drop-btn:hover > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]) {
  fill: #101828 !important;
}

.sidebar .menu .dropdown:not(.open):not(.active) .drop-btn:hover > svg:not(.dropdown-chevron) path[stroke],
.sidebar .menu .dropdown.collapsed .drop-btn:hover > svg:not(.dropdown-chevron) path[stroke] {
  stroke: #101828 !important;
  fill: none !important;
}

/* 2. Parent item when dropdown is OPEN / EXPANDED (Subtle neutral light-gray background) */
.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn,
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn,
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"],
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn,
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn,
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"] {
  background: #F4F6F8 !important;
  color: #344054 !important;
  font-weight: 500 !important;
}

.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn .text,
.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn span:not(.dropdown-chevron),
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn .text,
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn span:not(.dropdown-chevron),
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"] .text,
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"] span:not(.dropdown-chevron),
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn .text,
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn span:not(.dropdown-chevron),
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn .text,
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn span:not(.dropdown-chevron),
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"] .text,
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"] span:not(.dropdown-chevron) {
  color: #344054 !important;
  font-weight: 500 !important;
}

.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn > svg:not(.dropdown-chevron) path:not([stroke]),
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn > svg:not(.dropdown-chevron) path:not([stroke]),
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"] > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"] > svg:not(.dropdown-chevron) path:not([stroke]),
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn > svg:not(.dropdown-chevron) path:not([stroke]),
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn > svg:not(.dropdown-chevron) path:not([stroke]),
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"] > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"] > svg:not(.dropdown-chevron) path:not([stroke]) {
  fill: #737791 !important;
  stroke: none !important;
}

.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn > svg:not(.dropdown-chevron) path[stroke],
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn > svg:not(.dropdown-chevron) path[stroke],
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"] > svg:not(.dropdown-chevron) path[stroke],
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn > svg:not(.dropdown-chevron) path[stroke],
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn > svg:not(.dropdown-chevron) path[stroke],
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"] > svg:not(.dropdown-chevron) path[stroke] {
  stroke: #737791 !important;
  fill: none !important;
}

/* Hover state on OPEN / EXPANDED parent */
.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn:hover,
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn:hover,
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"]:hover,
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn:hover,
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn:hover,
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"]:hover {
  background: #EAEFF5 !important;
  color: #101828 !important;
}

.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn:hover .text,
.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn:hover span:not(.dropdown-chevron),
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn:hover .text,
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn:hover span:not(.dropdown-chevron),
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"]:hover .text,
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"]:hover span:not(.dropdown-chevron),
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn:hover .text,
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn:hover span:not(.dropdown-chevron),
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn:hover .text,
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn:hover span:not(.dropdown-chevron),
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"]:hover .text,
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"]:hover span:not(.dropdown-chevron) {
  color: #101828 !important;
}

.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn:hover > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn:hover > svg:not(.dropdown-chevron) path:not([stroke]),
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn:hover > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn:hover > svg:not(.dropdown-chevron) path:not([stroke]),
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"]:hover > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"]:hover > svg:not(.dropdown-chevron) path:not([stroke]),
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn:hover > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn:hover > svg:not(.dropdown-chevron) path:not([stroke]),
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn:hover > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn:hover > svg:not(.dropdown-chevron) path:not([stroke]),
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"]:hover > svg:not(.dropdown-chevron) path[fill]:not([fill="none"]),
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"]:hover > svg:not(.dropdown-chevron) path:not([stroke]) {
  fill: #101828 !important;
  stroke: none !important;
}

.sidebar:not(.collapsed) .menu .dropdown.open > .drop-btn:hover > svg:not(.dropdown-chevron) path[stroke],
.sidebar:not(.collapsed) .menu .dropdown.active:not(.collapsed) > .drop-btn:hover > svg:not(.dropdown-chevron) path[stroke],
.sidebar:not(.collapsed) .menu .drop-btn[aria-expanded="true"]:hover > svg:not(.dropdown-chevron) path[stroke],
.sidebar.is-hover-expanded .menu .dropdown.open > .drop-btn:hover > svg:not(.dropdown-chevron) path[stroke],
.sidebar.is-hover-expanded .menu .dropdown.active:not(.collapsed) > .drop-btn:hover > svg:not(.dropdown-chevron) path[stroke],
.sidebar.is-hover-expanded .menu .drop-btn[aria-expanded="true"]:hover > svg:not(.dropdown-chevron) path[stroke] {
  stroke: #101828 !important;
  fill: none !important;
}

/* Modern SaaS Accordion Chevron */
.sidebar .menu .drop-btn .dropdown-chevron {
  margin-left: auto !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  flex-shrink: 0 !important;
  color: #94A3B8 !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Chevron rotated 180° when expanded */
.sidebar .menu .dropdown.open .drop-btn .dropdown-chevron,
.sidebar .menu .dropdown.active:not(.collapsed) .drop-btn .dropdown-chevron,
.sidebar .menu .drop-btn[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg) !important;
  color: #64748B !important;
}

/* Chevron rotated 0° when collapsed / closed */
.sidebar .menu .dropdown.collapsed .drop-btn .dropdown-chevron,
.sidebar .menu .dropdown:not(.active):not(.open) .drop-btn .dropdown-chevron,
.sidebar .menu .drop-btn[aria-expanded="false"] .dropdown-chevron {
  transform: rotate(0deg) !important;
  color: #94A3B8 !important;
}

.sidebar .menu .drop-btn:hover .dropdown-chevron {
  color: #101828 !important;
}

/* 3. Nested Submenu Container */
.sidebar .menu .dropdown > .dropdown-menu,
.sidebar .menu .inventory-submenu,
.sidebar .menu .customers-submenu {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden !important;
  pointer-events: none;
  transition: max-height 0.24s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease, margin 0.18s ease !important;
}

/* Smooth Accordion Expanded State */
.sidebar .menu .dropdown.open > .dropdown-menu,
.sidebar .menu .dropdown.open > .inventory-submenu,
.sidebar .menu .dropdown.open > .customers-submenu,
.sidebar .menu .dropdown.active:not(.collapsed) > .dropdown-menu,
.sidebar .menu .dropdown.active:not(.collapsed) > .inventory-submenu,
.sidebar .menu .dropdown.active:not(.collapsed) > .customers-submenu {
  max-height: 300px !important;
  opacity: 1 !important;
  margin-top: 3px !important;
  margin-bottom: 5px !important;
  pointer-events: auto !important;
}

/* Child Navigation Items - Seamless Full-Width Pills with Gentle Indentation */
.sidebar .menu .dropdown > .dropdown-menu > a,
.sidebar .menu .inventory-submenu .nav-sub-link,
.sidebar .menu .customers-submenu .nav-sub-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 16px 0 32px !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: #344054 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  width: 100% !important;
  white-space: nowrap !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
  box-sizing: border-box !important;
}

/* Child Item Small Consistent Icons */
.sidebar .menu .dropdown > .dropdown-menu > a svg,
.sidebar .menu .inventory-submenu .nav-sub-link svg,
.sidebar .menu .customers-submenu .nav-sub-link svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  transition: all 0.15s ease !important;
}

.sidebar .menu .dropdown > .dropdown-menu > a svg path,
.sidebar .menu .dropdown > .dropdown-menu > a svg g path,
.sidebar .menu .dropdown > .dropdown-menu > a svg circle,
.sidebar .menu .inventory-submenu .nav-sub-link svg path,
.sidebar .menu .inventory-submenu .nav-sub-link svg g path,
.sidebar .menu .inventory-submenu .nav-sub-link svg circle,
.sidebar .menu .customers-submenu .nav-sub-link svg path,
.sidebar .menu .customers-submenu .nav-sub-link svg g path,
.sidebar .menu .customers-submenu .nav-sub-link svg circle {
  fill: #6D747E;
  transition: all 0.15s ease !important;
}

.sidebar .menu .dropdown > .dropdown-menu > a svg path[stroke],
.sidebar .menu .dropdown > .dropdown-menu > a svg[stroke="currentColor"] path,
.sidebar .menu .inventory-submenu .nav-sub-link svg path[stroke],
.sidebar .menu .inventory-submenu .nav-sub-link svg[stroke="currentColor"] path,
.sidebar .menu .customers-submenu .nav-sub-link svg path[stroke],
.sidebar .menu .customers-submenu .nav-sub-link svg[stroke="currentColor"] path {
  fill: none;
  stroke: #6D747E;
}

/* Child Hover State */
.sidebar .menu .dropdown > .dropdown-menu > a:hover,
.sidebar .menu .inventory-submenu .nav-sub-link:hover,
.sidebar .menu .customers-submenu .nav-sub-link:hover {
  background: #F4F6F8 !important;
  color: #101828 !important;
}

.sidebar .menu .dropdown > .dropdown-menu > a:hover svg path,
.sidebar .menu .dropdown > .dropdown-menu > a:hover svg g path,
.sidebar .menu .dropdown > .dropdown-menu > a:hover svg circle,
.sidebar .menu .inventory-submenu .nav-sub-link:hover svg path,
.sidebar .menu .inventory-submenu .nav-sub-link:hover svg g path,
.sidebar .menu .inventory-submenu .nav-sub-link:hover svg circle,
.sidebar .menu .customers-submenu .nav-sub-link:hover svg path,
.sidebar .menu .customers-submenu .nav-sub-link:hover svg g path,
.sidebar .menu .customers-submenu .nav-sub-link:hover svg circle {
  fill: #101828;
}

.sidebar .menu .dropdown > .dropdown-menu > a:hover svg path[stroke],
.sidebar .menu .dropdown > .dropdown-menu > a:hover svg[stroke="currentColor"] path,
.sidebar .menu .inventory-submenu .nav-sub-link:hover svg path[stroke],
.sidebar .menu .inventory-submenu .nav-sub-link:hover svg[stroke="currentColor"] path,
.sidebar .menu .customers-submenu .nav-sub-link:hover svg path[stroke],
.sidebar .menu .customers-submenu .nav-sub-link:hover svg[stroke="currentColor"] path {
  fill: none;
  stroke: #101828;
}

/* 4. Child Active State (Quick OMS blue text/icon + soft light blue background) */
.sidebar .menu .dropdown > .dropdown-menu > a.active,
.sidebar .menu .inventory-submenu .nav-sub-link.active,
.sidebar .menu .customers-submenu .nav-sub-link.active {
  background: #EAF1FA !important;
  color: #2377FC !important;
  font-weight: 600 !important;
}

.sidebar .menu .dropdown > .dropdown-menu > a.active svg path,
.sidebar .menu .dropdown > .dropdown-menu > a.active svg g path,
.sidebar .menu .dropdown > .dropdown-menu > a.active svg circle,
.sidebar .menu .inventory-submenu .nav-sub-link.active svg path,
.sidebar .menu .inventory-submenu .nav-sub-link.active svg g path,
.sidebar .menu .inventory-submenu .nav-sub-link.active svg circle,
.sidebar .menu .customers-submenu .nav-sub-link.active svg path,
.sidebar .menu .customers-submenu .nav-sub-link.active svg g path,
.sidebar .menu .customers-submenu .nav-sub-link.active svg circle {
  fill: #2377FC !important;
}

.sidebar .menu .dropdown > .dropdown-menu > a.active svg path[stroke],
.sidebar .menu .dropdown > .dropdown-menu > a.active svg[stroke="currentColor"] path,
.sidebar .menu .inventory-submenu .nav-sub-link.active svg path[stroke],
.sidebar .menu .inventory-submenu .nav-sub-link.active svg[stroke="currentColor"] path,
.sidebar .menu .customers-submenu .nav-sub-link.active svg path[stroke],
.sidebar .menu .customers-submenu .nav-sub-link.active svg[stroke="currentColor"] path {
  fill: none;
  stroke: #2377FC !important;
}

/* Collapsed sidebar: cleanly hide nested submenu and chevron without layout breakage */
.sidebar.collapsed .menu .dropdown > .dropdown-menu,
.sidebar.collapsed .menu .inventory-submenu,
.sidebar.collapsed .menu .customers-submenu {
  display: none !important;
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

.sidebar.collapsed .menu .drop-btn .dropdown-chevron {
  display: none !important;
}

/* ============================================================
   TOPBAR: Left header & modern toggle button
   ============================================================ */
.left-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.toggle-btn {
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  border: 1px solid #EBEDEF;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: all 0.2s ease;
  color: #475467;
}

.toggle-btn:hover {
  background: #F8FAFC;
  border-color: #D0D5DD;
  color: #101828;
}

.toggle-btn i {
  font-size: 16px;
  line-height: 1;
}

/* DESKTOP/WIDE: Remove header sidebar toggle icon completely */
@media (min-width: 769px) {
  .toggle-btn {
    display: none !important;
  }
}

/* MOBILE/SMALL: Header Menu Icon */
@media (max-width: 768px) {
  .toggle-btn {
    display: flex !important;
  }
}

/* Hide the old ☰ text button — new toggle-btn handles it */
.menu-toggle {
  display: none !important;
}

/* ============================================================
   TOPBAR: Right header & profile area
   ============================================================ */
.right-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn,
.header-actions .btn-primary,
.header-actions a.btn,
.header-actions button.btn,
.header-actions .viewbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  border: none;
  background: #0354C0;
  color: #FFFFFF !important;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.header-actions .btn:hover,
.header-actions .btn-primary:hover,
.header-actions a.btn:hover,
.header-actions button.btn:hover,
.header-actions .viewbtn:hover {
  background: #024399;
  color: #FFFFFF !important;
}

.header-actions .btn:active,
.header-actions .btn-primary:active,
.header-actions a.btn:active,
.header-actions button.btn:active,
.header-actions .viewbtn:active {
  transform: translateY(1px);
}

.header-actions .btn .btn-text-short {
  display: none;
}

.header-actions .btn-secondary,
.header-actions .btn-outline,
.header-actions .btn.btn-secondary,
.header-actions .btn.btn-outline,
.header-actions button.btn-secondary,
.header-actions button.btn-outline,
.header-actions a.btn-secondary,
.header-actions a.btn-outline {
  background: #FFFFFF !important;
  color: #374151 !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.header-actions .btn-secondary:hover,
.header-actions .btn-outline:hover,
.header-actions .btn.btn-secondary:hover,
.header-actions .btn.btn-outline:hover,
.header-actions button.btn-secondary:hover,
.header-actions button.btn-outline:hover,
.header-actions a.btn-secondary:hover,
.header-actions a.btn-outline:hover {
  background: #F9FAFB !important;
  border-color: #D1D5DB !important;
  color: #111827 !important;
}

.header-actions .btn-secondary svg,
.header-actions .btn-outline svg,
.header-actions .btn.btn-secondary svg,
.header-actions .btn.btn-outline svg {
  stroke: currentColor !important;
  color: inherit !important;
}

@media (max-width: 768px) {
  .header {
    padding: 10px 14px !important;
    min-height: 56px !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .left-header {
    gap: 8px !important;
    flex: 0 1 auto !important;
    min-width: 0;
  }

  .left-header .admin-page-head-title,
  .left-header h1 {
    font-size: 18px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .left-header .admin-page-head-desc,
  .left-header p.sub {
    font-size: 11px !important;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .right-header {
    gap: 8px !important;
    flex-shrink: 0;
  }

  .header-actions {
    gap: 6px !important;
    flex-shrink: 0;
  }

  .header-actions .btn,
  .header-actions .btn-primary,
  .header-actions .viewbtn {
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  .header-actions .btn .btn-text-full {
    display: none !important;
  }

  .header-actions .btn .btn-text-short {
    display: inline !important;
  }

  .profile-info {
    padding: 0 !important;
    gap: 0 !important;
  }

  .profile-info div,
  .profile-info svg {
    display: none !important;
  }

  .profile-info img {
    width: 34px !important;
    height: 34px !important;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 8px 10px !important;
  }

  .left-header .admin-page-head-title,
  .left-header h1 {
    font-size: 16px !important;
  }

  .header-actions .btn,
  .header-actions .btn-primary,
  .header-actions .viewbtn {
    height: 30px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  .profile-info img {
    width: 30px !important;
    height: 30px !important;
  }
}


.profile {
  position: relative;
  cursor: pointer;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s;
}

.profile-info:hover {
  background: var(--slate-800);
}

.profile-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info strong {
  font-size: 14px;
  color: var(--slate-100);
  display: block;
  white-space: nowrap;
  font-weight: 600;
}

.profile-info small {
  font-size: 12px;
  color: var(--gray-450);
  display: block;
  white-space: nowrap;
}

/* Profile dropdown panel */
#profileDropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 170px;
  box-shadow: 0 8px 24px var(--shadow-12);
  display: none;
  z-index: 300;
}

#profileDropdown.show {
  display: block;
}

#profileDropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--slate-100);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

#profileDropdown a:hover {
  background: var(--slate-900);
}

/* ============================================================
   HEADER background tweak (lighter, cleaner)
   ============================================================ */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ============================================================
   SIDEBAR: Responsive rules for collapsed drawer on mobile
   ============================================================ */
@media (max-width: 768px) {
  .sidebar.collapsed {
    width: 260px;
  }

  .sidebar.collapsed .menu>a>span,
  .sidebar.collapsed .menu li a .text,
  .sidebar.collapsed .text {
    display: inline;
  }

  .sidebar.collapsed .menu .drop-btn .text {
    display: inline;
  }
}

.editinvoice1 input {
  background: none;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  padding: 0;
}

.action-btn:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.action-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-view,
a.btn-view,
button.btn-view {
  color: var(--orange-450) !important;
  background: transparent !important;
}

.btn-view svg,
a.btn-view svg,
button.btn-view svg {
  stroke: var(--orange-450) !important;
  fill: none !important;
}

.btn-view:hover,
a.btn-view:hover,
button.btn-view:hover {
  color: var(--orange-200) !important;
}

.btn-view:hover svg,
button.btn-view:hover svg {
  stroke: var(--orange-200) !important;
}

.btn-edit,
a.btn-edit,
button.btn-edit {
  color: var(--orange-450) !important;
  background: transparent !important;
}

.btn-edit svg,
a.btn-edit svg,
button.btn-edit svg {
  stroke: var(--orange-450) !important;
  fill: none !important;
}

.btn-edit:hover,
a.btn-edit:hover,
button.btn-edit:hover {
  color: var(--orange-200) !important;
}

.btn-edit:hover svg,
button.btn-edit:hover svg {
  stroke: var(--orange-200) !important;
}

.btn-delete,
a.btn-delete,
button.btn-delete {
  color: var(--red-550) !important;
  background: transparent !important;
}

.btn-delete svg,
a.btn-delete svg,
button.btn-delete svg {
  stroke: var(--red-550) !important;
  fill: none !important;
}

.btn-delete:hover,
a.btn-delete:hover,
button.btn-delete:hover {
  color: var(--red-300) !important;
}

.btn-delete:hover svg,
button.btn-delete:hover svg {
  stroke: var(--red-300) !important;
}

.btn-qrcode,
a.btn-qrcode,
button.btn-qrcode {
  color: var(--gray-425) !important;
  background: transparent !important;
}

.btn-qrcode svg,
button.btn-qrcode svg {
  stroke: var(--gray-425) !important;
  fill: none !important;
}

/* Move Up / Down buttons */
.btn-move,
button.btn-move {
  color: var(--slate-200) !important;
  background: var(--slate-900) !important;
  border: 1px solid var(--border) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.btn-move svg,
button.btn-move svg {
  stroke: var(--slate-200) !important;
  fill: none !important;
}

.btn-move:hover,
button.btn-move:hover {
  background: var(--border) !important;
}

.password-container {
  position: relative;
}

.password-container .toggle-password {
  right: 12px;
  top: 40%;
}

.page-title {
  font-size: 24px;
  color: var(--gray-125);
  font-weight: 600;
}

.back_btn {
  background: var(--sidebar);
  color: var(--card);
  padding: 0px 25px;
  border-radius: 6px;
  border: none;
  height: 44px;
  font-size: 15px;
  line-height: 44px;
  text-decoration: none;
  position: absolute;
  right: 20px;
  top: 80px;
}

.title {
  text-align: center;
  margin-bottom: 10px;
}

.scanner-box {
  text-align: center;
}


.modal-overlay .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.modal-overlay .modal-actions .send-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background: var(--green-450);
  color: var(--card);
  padding: 6px;
  margin: 2px;
}

.modal-overlay .modal-actions .send-btn:hover {
  background: var(--black);
}

.modal-overlay .modal-actions .discard-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background: var(--orange-250);
  color: var(--card);
  padding: 6px;
  margin: 2px;
}

.modal-overlay .modal-actions .discard-btn:hover {
  background: var(--black);
}

.modal-overlay .form-group {
  margin-bottom: 20px;
}


/* Action Buttons */
.customer-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.customer-actions .cust-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  width: auto !important;
  height: auto !important;
  transition: background 0.2s, border-color 0.2s;
}

.customer-actions .cust-btn-invoices {
  background: var(--sidebar) !important;
  color: var(--card) !important;
  border: none !important;
}

.customer-actions .cust-btn-invoices:hover {
  background: var(--blue-275) !important;
  color: var(--card) !important;
}

.customer-actions .cust-btn-edit {
  background: var(--card) !important;
  color: var(--sidebar) !important;
  border: 2px solid var(--sidebar) !important;
}

.customer-actions .cust-btn-edit:hover {
  background: var(--sidebar) !important;
  color: var(--card) !important;
}

.qrcode-actions {
  margin-bottom: 20px;
}


/* Form Action Buttons */
.customer-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.customer-form-actions .cust-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  width: auto !important;
  height: auto !important;
  font-family: inherit !important;
  transition: background 0.2s, border-color 0.2s;
}

.customer-form-actions .cust-btn-submit {
  background: var(--sidebar) !important;
  color: var(--card) !important;
  border: none !important;
}

.customer-form-actions .cust-btn-submit:hover {
  background: var(--blue-275) !important;
  color: var(--card) !important;
}

.customer-form-actions .cust-btn-cancel {
  background: var(--card) !important;
  color: var(--sidebar) !important;
  border: 2px solid var(--sidebar) !important;
}

.customer-form-actions .cust-btn-cancel:hover {
  background: var(--sidebar) !important;
  color: var(--card) !important;
}

/* ============================================================
   Missing Admin Invoice Dropdown Styles
   ============================================================ */
.admin_invoice .more {
  position: relative;
  display: inline-block;
}

.admin_invoice .dropdown {
  position: absolute;
  right: 0;
  top: 20px;
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 4px 12px var(--shadow-10);
  display: none;
  min-width: 120px;
  z-index: 100;
  width: 100%;
}

.admin_invoice .dropdown a {
  display: inline-block !important;
  padding: 6px 10px;
  font-size: 12px;
  text-decoration: none;
  color: var(--gray-250);
  width: 90% !important;
  text-align: left !important;
  line-height: 24px !important;
}

.admin_invoice .dropdown a:hover {
  background: var(--gray-825);
}

.admin_invoice .dropdown form {
  display: block;
}

.admin_invoice .dropdown button.dropdown-btn,
.admin_invoice .dropdown button[type="submit"] {
  display: block !important;
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-250);
  line-height: 24px;
}

.admin_invoice .dropdown button.dropdown-btn:hover,
.admin_invoice .dropdown button[type="submit"]:hover {
  background: var(--gray-825);
}

.admin_invoice .dropdown.show {
  display: block !important;
}

.admin_invoice .action-icons a {
  line-height: 30px;
}

.to_pack .dropdown {
  min-width: 160px;
}

/* ============================================================
   Missing Admin Invoice Dropdown Styles
   ============================================================ */
.admin_invoice .more {
  position: relative;
  display: inline-block;
}

.admin_invoice .dropdown {
  position: absolute;
  right: 0;
  top: 20px;
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 4px 12px var(--shadow-10);
  display: none;
  min-width: 120px;
  z-index: 100;
  width: 100%;
}

.admin_invoice .dropdown a {
  display: inline-block !important;
  padding: 6px 10px;
  font-size: 12px;
  text-decoration: none;
  color: var(--gray-250);
  width: 90% !important;
  text-align: left !important;
  line-height: 24px !important;
}

.admin_invoice .dropdown a:hover {
  background: var(--gray-825);
}

.admin_invoice .dropdown form {
  display: block;
}

.admin_invoice .dropdown button.dropdown-btn,
.admin_invoice .dropdown button[type="submit"] {
  display: block !important;
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-250);
  line-height: 24px;
}

.admin_invoice .dropdown button.dropdown-btn:hover,
.admin_invoice .dropdown button[type="submit"]:hover {
  background: var(--gray-825);
}

.admin_invoice .dropdown.show {
  display: block !important;
}

.admin_invoice .action-icons a {
  line-height: 30px;
}

.to_pack .dropdown {
  min-width: 160px;
}

.stock-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  padding: 0px;
}

.stock-product-card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--gray-675);
  padding: 0px;
  width: 100%;
  min-width: 0;
}

.stock-section-title {
  margin-bottom: 30px;
}

.stock-section {
  text-align: center;
}

.stock-section a.all_btn {
  margin-top: 20px;
}

.stock-section-title {
  text-align: left;
}

.editinvoice4 .cancel {
  line-height: 40px;
  text-align: center;
  text-decoration: none;
}

table.dataTable tbody td.actions a svg {
  stroke: var(--orange-200) !important;
}

.inventory-category-page .category-pagination {
  max-width: 720px;
  margin: auto;
  background: var(--card);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 2px 8px var(--shadow-6);
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.item-qty-row input {
  width: 60px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-50);
  height: 40px;
  margin: 0px;
}

table.dataTable tbody td .order-img {
  background: var(--blue-925);
  width: 40px;
  height: 40px;
  border-radius: 6px;
  padding: 4px;
}

table.dataTable tbody td .order-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.filter-row .btn-create {
  height: 44px;
  padding: 0 25px;
  font-weight: 600;
  font-size: 13px;
  background: var(--sidebar);
  border: none;
  border-radius: 8px;
  color: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
}

.top-bar select#dtLength {
  width: 70px;
}

table.dataTable>thead>tr>th:last-child,
table.dataTable>tbody>tr>td:last-child {
  width: 160px;
  text-align: left;
  word-wrap: break-word;
}

table.dataTable>tbody>tr>td:last-child .action-icons {
  width: 160px;
  float: left;
}

.responsive_table{
  width: 100%;
  display: inline-block;
  overflow-x: auto;
}

/* ==========================================================================
   Quick OMS Theme SweetAlert2 Modal (Global)
   ========================================================================== */
.swal2-container.swal2-backdrop-show {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

.qo-swal-popup {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  border-radius: 12px !important;
  padding: 28px 24px !important;
  width: 420px !important;
  max-width: 94vw !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.qo-swal-popup .swal2-close,
.qo-swal-close-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #9CA3AF !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: color 0.15s ease, background-color 0.15s ease !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 10 !important;
}

.qo-swal-popup .swal2-close:hover,
.qo-swal-close-btn:hover {
  color: #111827 !important;
  background-color: #F3F4F6 !important;
}

.qo-swal-popup .swal2-close:focus,
.qo-swal-close-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

.qo-swal-icon-wrapper {
  border: none !important;
  margin: 0 auto 16px !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.swal2-danger-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.swal2-success-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 1px solid #D1FAE5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.swal2-warning-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.swal2-info-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.qo-swal-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.qo-swal-html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  text-align: center !important;
}

.qo-swal-actions {
  display: flex !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-content: center !important;
}

.qo-swal-btn-danger {
  flex: 1 !important;
  height: 44px !important;
  background: #DC2626 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease !important;
  margin: 0 !important;
  padding: 0 18px !important;
  box-shadow: none !important;
  outline: none !important;
}

.qo-swal-btn-danger:hover {
  background: #B91C1C !important;
}

.qo-swal-btn-cancel {
  flex: 1 !important;
  height: 44px !important;
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #475569 !important;
  border-radius: 6px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
  margin: 0 !important;
  padding: 0 18px !important;
  box-shadow: none !important;
  outline: none !important;
}

.qo-swal-btn-cancel:hover {
  background: #E2E8F0 !important;
  border-color: #CBD5E1 !important;
  color: #1E293B !important;
}

.qo-swal-btn-primary {
  min-width: 130px !important;
  height: 42px !important;
  background: #0354C0 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease !important;
  margin: 0 !important;
  padding: 0 24px !important;
  box-shadow: none !important;
  outline: none !important;
}

.qo-swal-btn-primary:hover {
  background: #02449B !important;
}

.qo-swal-btn-primary:focus,
.qo-swal-btn-primary:focus-visible,
.qo-swal-btn-primary:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.qo-swal-popup .swal2-confirm.swal2-styled {
  background-color: #0354C0 !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  min-width: 130px !important;
  height: 42px !important;
  padding: 0 24px !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.qo-swal-popup .swal2-confirm.swal2-styled:hover {
  background-color: #02449B !important;
}

.qo-swal-popup .swal2-confirm.swal2-styled:focus,
.qo-swal-popup .swal2-confirm.swal2-styled:focus-visible,
.qo-swal-popup .swal2-confirm.swal2-styled:active,
.qo-swal-popup .swal2-actions button:focus,
.qo-swal-popup .swal2-actions button:focus-visible,
.qo-swal-popup .swal2-actions button:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}