/* ========================================================= METRO THEME 2.1 for Inspinia (Bootstrap-based) - Activate via <body class="theme-metro [palette-slate|emerald|graphite|...]"> - Palette classes override variables only. - All components reference variables. ========================================================= */
/* Global font baseline */
.theme-metro,
.theme-metro body,
.theme-metro .navbar-default,
.theme-metro .table,
.theme-metro .btn,
.theme-metro .nav>li>a {
  font-family: var(--metro-font-family);
  font-size: var(--metro-font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  color: var(--metro-text);
}

/* ========================================================= BASE VARIABLES (Light by default) ========================================================= */
.theme-metro {
  /* Brand color */
  --metro-primary: #0078D7;
  --metro-contrast-primary: #ffffff; /* White for contrast */
  /* Sidebar */
  --metro-sidebar-bg: #ffffff;
  --metro-sidebar-text: #1b1b1b;
  --metro-sidebar-muted: #6b6b6b;
  --metro-sidebar-hover: #f2f6fb;
  --metro-sidebar-active-bg: var(--metro-primary);
  --metro-sidebar-active-text: #ffffff;
  --metro-sidebar-border: #e6e6e6;
  --metro-sidebar-sub-bg: #f3f5f8;
  /* Slightly darker inset well */
  /* Buttons (palette-aware) */
  --metro-btn-primary-bg: var(--metro-primary);
  --metro-btn-primary-text: #fff;
  --metro-btn-primary-hover: color-mix(in srgb, var(--metro-primary) 85%, black 15%);
  --metro-btn-secondary-bg: var(--metro-sidebar-muted);
  --metro-btn-secondary-text: #fff;
  --metro-btn-secondary-hover: color-mix(in srgb, var(--metro-sidebar-muted) 80%, black 20%);
  /* Generic UI */
  --metro-text: #1b1b1b;
  --metro-muted: #6b6b6b;
  --metro-hover: #f2f6fb;
  --metro-grid: #e6e6e6;
  --metro-stripe: #fafafa;
  /* Typography */
  --metro-font-family: 'Inter', 'Segoe UI', 'Open Sans', system-ui, -apple-system, sans-serif;
  --metro-font-size-base: 14px;
  --metro-font-size-small: 13px;
  --metro-font-size-heading: 15px;
}

/* ========================================================= BUTTONS ========================================================= */
.theme-metro .btn {
  border: none !important;
  border-radius: 0 !important;
  font-weight: 500;
  padding: 0.25rem .75rem;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
  filter: brightness(.97) saturate(.9);
  line-height: 1.2;
}

.theme-metro .btn:hover {
  filter: brightness(1.05) saturate(1);
}

.theme-metro .btn:focus,
.theme-metro .btn:active {
  outline: none !important;
  box-shadow: none !important;
  opacity: .85;
}

/* ---- Metro Button Icon Alignment Fix ---- */
.theme-metro .btn i {
  font-size: 0.9em;
  /* slightly smaller */
  vertical-align: middle;
  /* align visually with text */
  margin-right: 6px;
  /* even spacing */
  line-height: 1;
  /* prevent tall icon box */
  position: relative;
  top: -1px;
  /* subtle lift */
}

/* Primary */
.theme-metro .btn-primary {
  background: var(--metro-btn-primary-bg);
  color: var(--metro-btn-primary-text);
}

.theme-metro .btn-primary:hover {
  background: var(--metro-btn-primary-hover);
}

/* Secondary */
.theme-metro .btn-secondary {
  background: var(--metro-btn-secondary-bg);
  color: var(--metro-btn-secondary-text);
}

.theme-metro .btn-secondary:hover {
  background: var(--metro-btn-secondary-hover);
}

/* ========================================================= SIDEBAR + NAVIGATION ========================================================= */
.theme-metro .navbar-default.navbar-static-side {
  background: var(--metro-sidebar-bg);
  border-right: 1px solid var(--metro-sidebar-border);
  min-height: 100vh;
}

/* Nav header (profile/logo) */
.theme-metro .nav-header {
  background: var(--metro-sidebar-bg);
  border-bottom: 1px solid var(--metro-sidebar-border);
  color: var(--metro-sidebar-text);
}

.theme-metro .nav-header .profile-element,
.theme-metro .nav-header .logo-element {
  color: var(--metro-sidebar-text);
  border-radius: 0;
  box-shadow: none !important;
}

/* Main menu items */
.theme-metro .navbar-default .nav>li>a {
  position: relative;
  color: var(--metro-sidebar-text);
  font-weight: 600;
  letter-spacing: .2px;
  padding: 14px 20px 14px 18px;
  transition: background-color .15s ease, color .15s ease;
}

.theme-metro .navbar-default .nav>li>a i {
  font-size: 18px;
  width: 22px;
  margin-right: 10px;
  text-align: center;
  opacity: .95;
}

.theme-metro .navbar-default .nav>li>a:hover {
  background: var(--metro-sidebar-hover);
}

.theme-metro .navbar-default .nav>li.active>a {
  background: var(--metro-sidebar-active-bg);
  color: var(--metro-sidebar-active-text);
}

/* Accent bar */
.theme-metro .navbar-default .nav>li>a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background-color .15s ease;
}

.theme-metro .navbar-default .nav>li>a:hover::before,
.theme-metro .navbar-default .nav>li.active>a::before {
  background: var(--metro-primary);
}

/* ========================================================= METRO 2.2 — Sidebar File-Tree Refinement ========================================================= */
/* Tighten main-level icon spacing */
.theme-metro .navbar-default .nav>li>a {
  padding: 0.75rem 1rem 0.75rem 1rem;
  /* tighter horizontal padding */
  gap: 0.55rem;
  /* reduced icon/text gap */
}

.theme-metro .navbar-default .nav>li>a i {
  font-size: 17px;
  width: 18px;
  /* smaller icon box */
  margin-right: 6px;
  opacity: 0.9;
}

/* File-tree indentation for submenus */
.theme-metro .nav-second-level {
  position: relative !important;
  left: 0 !important;
  margin-left: 1.75rem;
  /* deeper indent for file-tree feel */
  padding-left: 0.75rem;
  border-left: 2px solid var(--metro-primary);
  background: var(--metro-sidebar-sub-bg);
  box-shadow: none !important;
}

.theme-metro .nav-second-level>li>a {
  padding: 8px 1rem 8px 2.25rem;
  font-size: 14px;
  color: var(--metro-sidebar-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 3px solid transparent;
}

.theme-metro .nav-second-level>li>a:hover,
.theme-metro .nav-second-level>li.active>a {
  background: var(--metro-sidebar-hover);
  color: var(--metro-sidebar-text);
  /* border-left-color: var(--metro-primary); */
}

/* Align dropdown arrows (carets) to the right */
.theme-metro .navbar-default .nav>li>a .fa.arrow,
.theme-metro .navbar-default .nav>li>a .ri-arrow-down-s-line {
  margin-left: auto;
  /* push to right edge */
  opacity: 0.7;
  font-size: 14px;
  transition: transform .2s ease;
}

/* Rotate caret when open */
.theme-metro .navbar-default .nav>li.open>a .fa.arrow,
.theme-metro .navbar-default .nav>li.open>a .ri-arrow-down-s-line {
  transform: rotate(180deg);
  opacity: 1;
}

/* Optional: soften transitions for nested sections */
.theme-metro .navbar-default .nav>li.open>ul.nav-second-level {
  transition: margin-left 0.2s ease, opacity 0.2s ease;
}

/*END Experiment*/
/* Mini-navbar mode */
.theme-metro.mini-navbar .navbar-default .nav>li>a {
  padding: 14px 0;
  text-align: center;
}

.theme-metro.mini-navbar .navbar-default .nav>li>a i {
  margin: 0;
  width: auto;
  font-size: 20px;
}

/* Cleanup */
.theme-metro .navbar-default,
.theme-metro .navbar-default .nav,
.theme-metro .navbar-default .nav .collapse,
.theme-metro .navbar-default .nav .in {
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Wrapper bg sync */
.theme-metro #wrapper,
.theme-metro .navbar-default.navbar-static-side>div,
.theme-metro .navbar-default .sidebar-collapse {
  background: var(--metro-sidebar-bg) !important;
}

/* ========================================================= PALETTES — Dark / Themed ========================================================= */
/* Slate (dark neutral) */
.theme-metro.palette-slate {
  --metro-primary: #636366;
  --metro-contrast-primary: #ffffff; /* White for contrast */
  --metro-sidebar-bg: #1e2228;
  --metro-sidebar-sub-bg: #252a31;
  --metro-sidebar-text: #e7ebf0;
  --metro-sidebar-muted: #b9c1c9;
  --metro-sidebar-hover: #2a3038;
  --metro-sidebar-active-bg: #15191e;
  --metro-sidebar-active-text: #ffffff;
  --metro-sidebar-border: #12161a;
  --metro-btn-primary-bg: #3d4148;
  --metro-btn-primary-hover: #565b63;
  --metro-btn-secondary-bg: #2a3038;
  --metro-btn-secondary-hover: #363c45;
}

/* Graphite (near-black + amber) */
.theme-metro.palette-graphite {
  --metro-primary: #FFB900;
  --metro-contrast-primary: #000000; /* Black for contrast */
  --metro-sidebar-bg: #1b1b1b;
  --metro-sidebar-sub-bg: #232323;
  --metro-sidebar-text: #f0f0f0;
  --metro-sidebar-muted: #c7c7c7;
  --metro-sidebar-hover: #242424;
  --metro-sidebar-active-bg: #0f0f0f;
  --metro-sidebar-active-text: #ffffff;
  --metro-sidebar-border: #0d0d0d;
  --metro-btn-primary-bg: #2a2a2a;
  --metro-btn-primary-hover: #383838;
  --metro-btn-secondary-bg: #444;
  --metro-btn-secondary-hover: #555;
}

/* Emerald (green) */
.theme-metro.palette-emerald {
  --metro-primary: #107C10;
  --metro-contrast-primary: #ffffff; /* White for contrast */
  --metro-sidebar-bg: #0d2a1d;
  --metro-sidebar-sub-bg: #103424;
  --metro-sidebar-text: #e9f3ef;
  --metro-sidebar-muted: #b8ccc4;
  --metro-sidebar-hover: #123628;
  --metro-sidebar-active-bg: #0a2016;
  --metro-sidebar-active-text: #ffffff;
  --metro-sidebar-border: #081912;
  --metro-btn-primary-bg: #146d3c;
  --metro-btn-primary-hover: #1a7f49;
  --metro-btn-secondary-bg: #103424;
  --metro-btn-secondary-hover: #164632;
}

/* Indigo */
.theme-metro.palette-indigo {
  --metro-primary: #5865F2;
  --metro-contrast-primary: #ffffff; /* White for contrast */
  --metro-sidebar-bg: #2b3263;
  --metro-sidebar-sub-bg: #343c78;
  --metro-sidebar-text: #eef0ff;
  --metro-sidebar-muted: #c9cef8;
  --metro-sidebar-hover: #3d4688;
  --metro-sidebar-active-bg: #232954;
  --metro-sidebar-active-text: #ffffff;
  --metro-sidebar-border: #1d2244;
  --metro-btn-primary-bg: #3b46b3;
  --metro-btn-primary-hover: #4956c6;
  --metro-btn-secondary-bg: #40467a;
  --metro-btn-secondary-hover: #51589b;
}

/* Teal */
.theme-metro.palette-teal {
  --metro-primary: #00B7C3;
  --metro-contrast-primary: #ffffff; /* White for contrast */
  --metro-sidebar-bg: #07333a;
  --metro-sidebar-sub-bg: #0b4048;
  --metro-sidebar-text: #e7f6f7;
  --metro-sidebar-muted: #b9d9dc;
  --metro-sidebar-hover: #0c424a;
  --metro-sidebar-active-bg: #06282d;
  --metro-sidebar-active-text: #ffffff;
  --metro-sidebar-border: #051f23;
  --metro-btn-primary-bg: #0a5f66;
  --metro-btn-primary-hover: #0e777f;
  --metro-btn-secondary-bg: #0c424a;
  --metro-btn-secondary-hover: #11585f;
}

/* Crimson */
.theme-metro.palette-crimson {
  --metro-primary: #C50F1F;
  --metro-contrast-primary: #ffffff; /* White for contrast */
  --metro-sidebar-bg: #3a0b0f;
  --metro-sidebar-sub-bg: #461016;
  --metro-sidebar-text: #fdebed;
  --metro-sidebar-muted: #efc5ca;
  --metro-sidebar-hover: #4a1016;
  --metro-sidebar-active-bg: #28070a;
  --metro-sidebar-active-text: #ffffff;
  --metro-sidebar-border: #200507;
  --metro-btn-primary-bg: #7a1119;
  --metro-btn-primary-hover: #921520;
  --metro-btn-secondary-bg: #4a1016;
  --metro-btn-secondary-hover: #60151c;
}

/* ========================================================= ICON-ONLY BUTTON FIX ========================================================= */
.theme-metro .btn-icon,
.theme-metro .btn>i:only-child {
  padding: 0.45rem 0.55rem !important;
  /* equal spacing */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: .5rem;
  /* square shape, matches height */
  height: .5rem;
  line-height: 1;
  text-align: center;
}

.theme-metro .btn>i:only-child {
  margin-right: 0 !important;
}

.theme-metro .btn-icon i,
.theme-metro .btn>i:only-child {
  font-size: 1.4rem;
  /* consistent sizing */
  vertical-align: middle;
}

/* =========================================================
   JUMPMENU BUTTON (core entity action menu)
   ========================================================= */
   .theme-metro .jumpmenu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--metro-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 34px;
    height: 34px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .theme-metro .jumpmenu-btn:hover {
    background: color-mix(in srgb, var(--metro-primary) 85%, black 10%);
    transform: translateY(-1px);
  }
  
  .theme-metro .jumpmenu-btn i {
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
    color: var(--metro-contrast-primary); /* Contrast icon color */
  }

  .theme-metro .jumpmenu-btn:hover i {
    color: var(--metro-contrast-primary); /* Maintain contrast on hover */
  }
  
  .theme-metro .jumpmenu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--metro-primary) 70%, white 30%);
  }
  


/* ========================================================= TABLE HEADERS — Inherit Palette Color + Uppercase ========================================================= */
.theme-metro .table thead th {
  background: var(--metro-primary) !important;
  color: var(--metro-contrast-primary); /* Contrast text */
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.theme-metro .table thead {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ========================================================= LEFT NAV MENU — Inherit Palette Color + Uppercase ========================================================= */
.theme-metro .navbar-default.navbar-static-side {
  font-family: var(--metro-font-family);
  background: var(--metro-sidebar-bg);
  padding-top: 1rem;
}

.theme-metro .navbar-default .nav>li>a {
  padding: 0.75rem 1.25rem;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.3px;
  border-radius: 0px;
  transition: all .2s ease;
  color: var(--metro-sidebar-text); /* Default text color */
}

.theme-metro .navbar-default .nav>li>a i {
  font-size: 18px;
  opacity: .85;
}

.theme-metro .navbar-default .nav>li>a:hover {
  background: color-mix(in srgb, var(--metro-primary) 10%, black 10%);
  color: var(--metro-contrast-primary); /* Contrast text */
}

.theme-metro .navbar-default .nav>li.active>a {
  background: var(--metro-primary);
  color: var(--metro-contrast-primary); /* Contrast text */
}

/* ========================================================= DROPDOWN SYSTEM — METRO 2.1 (Flat Rework) ========================================================= */
/* Core dropdown menu — flat, crisp, square edges */
.theme-metro .dropdown-menu {
  position: absolute !important;
  /* top: 384px !important; */
  /* left: 0 !important; */
  z-index: 5000 !important;
  transform: none !important;
  /* Metro visual language — flat, square, contrasty */
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  padding: 0;
  min-width: 11rem;
  font-family: var(--metro-font-family);
  font-size: var(--metro-font-size-small);
  color: var(--metro-text);
}


/* Palette fallback for dark sidebars */
.theme-metro.palette-slate .dropdown-menu,
.theme-metro.palette-graphite .dropdown-menu,
.theme-metro.palette-indigo .dropdown-menu,
.theme-metro.palette-emerald .dropdown-menu,
.theme-metro.palette-teal .dropdown-menu,
.theme-metro.palette-crimson .dropdown-menu {
  background: #fff;
  color: #1b1b1b;
  border-color: #ccc;
}

/* Position refinement — prevent forced absolute when not needed */
.theme-metro .dropdown-menu.show {
  position: absolute !important;
  /* allow proper stacking, but scoped only to visible menus */
}

/* Optional dark variant for palettes that should use a dark dropdown */
.theme-metro.palette-graphite .dropdown-menu-dark,
.theme-metro.palette-slate .dropdown-menu-dark,
.theme-metro.palette-indigo .dropdown-menu-dark,
.theme-metro.palette-emerald .dropdown-menu-dark,
.theme-metro.palette-teal .dropdown-menu-dark,
.theme-metro.palette-crimson .dropdown-menu-dark {
  background: #2a2a2a;
  color: #e7e7e7;
  border-color: #444;
}

/* Dropdown anchor (button) context */
.theme-metro .dropdown,
.theme-metro .btn-group {
  position: relative !important;
  overflow: visible !important;
}

/* overlay dropdown css */
.dropdown.btn.print-hide.open {
    position: relative;
    z-index: 45;
}


/* Items — clean spacing, solid hover feedback */
.theme-metro .dropdown-item,
.theme-metro .dropdown-menu>li>a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 14px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--metro-text);
  text-decoration: none;
  transition: background-color 0.1s ease-in, color 0.1s ease-in;
}

/* Hover — solid flat highlight */
.theme-metro .dropdown-item:hover,
.theme-metro .dropdown-menu>li>a:hover {
  background: var(--metro-hover);
  color: var(--metro-text);
}

/* Icon alignment */
.theme-metro .dropdown-item i,
.theme-metro .dropdown-menu>li>a i {
  font-size: 0.9rem;
  opacity: 0.8;
  width: 1rem;
  text-align: center;
}

/* Divider */
.theme-metro .dropdown-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 4px 0;
}

/* Disabled state */
.theme-metro .dropdown-item.disabled,
.theme-metro .dropdown-item:disabled,
.theme-metro .dropdown-menu>.disabled>a {
  opacity: 0.5;
  pointer-events: none;
}

/* ========================================================= STACKING CONTEXT FIXES — Prevent dropdown clipping ========================================================= */
.theme-metro {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

.theme-metro .wrapper-content,
.theme-metro .ibox-content,
.theme-metro .row.print-no-break,
.theme-metro .QuoteSectionHeader,
.theme-metro .form-group,
.theme-metro .table,
.theme-metro .table-responsive {
  position: static !important;
  z-index: auto !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  overflow: visible !important;
}

/* Raise dropdown anchor slightly above table content */
.theme-metro .row.print-no-break .dropdown,
.theme-metro .ibox-content .dropdown {
  position: relative !important;
  z-index: 4500 !important;
}

.theme-metro .minimalize-styl-2 {
  margin-left: 0px;
  background-color: var(--metro-sidebar-bg) !important;
  border-radius: 0px 6px 6px 0px !important;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 12px;
  padding-left: 12px;
}

.minimalize-styl-2>i {
  font-size: 26px !important;
}

.theme-metro .jumpmenu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--metro-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 34px;
  height: 34px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.theme-metro .jumpmenu-btn:hover {
  background: color-mix(in srgb, var(--metro-primary) 85%, black 10%);
  transform: scale(1.08);
  box-shadow: 0 0 8px color-mix(in srgb, var(--metro-primary) 60%, white 20%);
}

/* =========================================================
   METRO HEADER — FOCUSED FIX FOR ACTUAL HTML STRUCTURE
   Get the nav height to 56px and center all items vertically
   ========================================================= */

/* MASTER: Force entire navbar to 56px height, no wrapping */
.theme-metro .navbar.navbar-static-top {
  height: 56px;
  min-height: 56px;
  padding: 0;
  margin: 0;
  border: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  background: var(--metro-hover);
}

/* === LEFT SIDE: navbar-header (arrow + hamburger) === */
.theme-metro .navbar-header.metro-navbar-header {
  height: 56px;
  min-height: 56px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* Sidebar collapse/minimize button */
.theme-metro .navbar-header .minimalize-styl-2 {
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  background: var(--metro-sidebar-bg);
  color: var(--metro-sidebar-text);
  border: none;
  border-radius: 0 6px 6px 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-metro .navbar-header .minimalize-styl-2:hover {
  background: var(--metro-sidebar-hover);
}

.theme-metro .navbar-header .minimalize-styl-2 i {
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}

/* === CLIPBOARD / HEALTH STATUS (middle area) === */
.theme-metro .HealthStatus {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  flex-grow: 1;
  color: var(--metro-muted);
  font-size: 13px;
}

/* === RIGHT SIDE: navbar-right-group (company + user) === */
.theme-metro .navbar-right-group {
  height: 56px;
  min-height: 56px;
  padding: 0 1rem;
  margin: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* === COMPANY PICKER === */
.theme-metro .navbar-right-group .navbar-form-custom {
  height: 56px;
  min-height: 56px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.theme-metro .navbar-right-group .navbar-form-custom .input-group {
  height: 56px;
  min-height: 56px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.theme-metro .navbar-right-group .navbar-form-custom .btn.dropdown-toggle {
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  margin: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--metro-text);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-metro .navbar-right-group .navbar-form-custom .btn.dropdown-toggle:hover {
  background: var(--metro-hover);
  border-color: var(--metro-primary);
}

.theme-metro .navbar-right-group .navbar-form-custom .btn.dropdown-toggle i {
  font-size: 18px;
  color: var(--metro-primary);
  line-height: 1;
  vertical-align: middle;
}

/* Company name text in button */
.theme-metro .navbar-right-group .navbar-form-custom .btn.dropdown-toggle span {
  line-height: 1;
  vertical-align: middle;
}

/* === SALUTATION / USER MENU === */
.theme-metro .navbar-right-group #SalutationContainer {
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* User avatar + name container */
.theme-metro .salutation-container {
  display: flex;
  align-items: center;
  height: 56px;
  min-height: 56px;
  gap: 0;
  position: relative;
}

/* Clickable user toggle button */
.theme-metro .salutation-toggle {
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--metro-text);
  font-family: var(--metro-font-family);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-metro .salutation-toggle:hover {
  background: var(--metro-hover);
  border-radius: 4px;
}

/* User avatar image */
.theme-metro .salutation-toggle .user-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  border: 2px solid var(--metro-primary);
  object-fit: cover;
  vertical-align: middle;
  flex-shrink: 0;
}

/* User name text */
.theme-metro .salutation-toggle .user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--metro-text);
  line-height: 1;
  vertical-align: middle;
}

/* Dropdown caret icon */
.theme-metro .salutation-toggle .dropdown-caret {
  font-size: 16px;
  color: var(--metro-muted);
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.theme-metro .salutation-container.open .dropdown-caret {
  transform: rotate(180deg);
  color: var(--metro-primary);
}

/* === DIVIDER BETWEEN COMPANY AND USER === */
.theme-metro .navbar-right-group .divider {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 0.5rem;
  flex-shrink: 0;
}

/* === DROPDOWN MENUS === */
.theme-metro .salutation-menu,
.theme-metro .navbar-right-group .dropdown-menu {
  position: absolute;
  right: 0;
  z-index: 5000;
  min-width: 200px;
  margin-top: 1px;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.theme-metro .salutation-menu li,
.theme-metro .navbar-right-group .dropdown-menu li {
  list-style: none;
}

.theme-metro .salutation-menu li > a,
.theme-metro .navbar-right-group .dropdown-menu li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--metro-text);
  font-size: 14px;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.1s ease;
}

.theme-metro .salutation-menu li > a:hover,
.theme-metro .navbar-right-group .dropdown-menu li > a:hover {
  background: var(--metro-hover);
  color: var(--metro-primary);
}

.theme-metro .salutation-menu li > a i,
.theme-metro .navbar-right-group .dropdown-menu li > a i {
  font-size: 16px;
  width: 18px;
  text-align: center;
  color: var(--metro-muted);
  flex-shrink: 0;
}

/* =========================================================
   METRO COMPANY PICKER CARET — Match Salutation Chevron
   ========================================================= */
   .theme-metro .navbar-form-custom .btn.dropdown-toggle::after {
    content: "\ea4e";                 /* Remix Icon: ri-arrow-down-s-line */
    font-family: "remixicon";
    display: inline-block;
    font-size: 18px;
    margin-left: 8px;
    line-height: 1;
    color: var(--metro-muted);
    position: relative;
    top: 0;
    transition: transform 0.2s ease, color 0.2s ease;
    vertical-align: middle;
  }
  
  .theme-metro .navbar-form-custom.open .btn.dropdown-toggle::after,
  .theme-metro .navbar-form-custom .btn.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
    color: var(--metro-primary);
  }


/* ===== Patch A — make the arrow flush with the left sidebar ===== */
.theme-metro .navbar-static-top .navbar-header {
  padding-left: 0;               /* kill Bootstrap’s default left padding */
  gap: 12px;
}

.theme-metro .metro-navbar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 56px;                  /* keep the spacing you liked */
  position: relative;
}

/* Pull the arrow left by the old padding (15px). 
   Tweak this if your theme uses a different gutter (e.g., 20px). */
.theme-metro .metro-navbar-header .minimalize-styl-2 {
  width: 48px;
  height: 48px;
  margin-left: -15px;            /* <- attaches to sidebar edge */
  background: var(--metro-sidebar-bg);
  color: var(--metro-sidebar-text);
  border: none;
  border-radius: 0 6px 6px 0;
  align-items: center; 
  justify-content: center;
  padding: 0;
  box-shadow: none;
  transition: background-color .2s ease, transform .1s ease;
}

.theme-metro .metro-navbar-header .minimalize-styl-2:hover {
  background: var(--metro-sidebar-hover);
  transform: translateX(1px);
}

/* ===== Patch B — keep the company dropdown aligned vertically ===== */
.theme-metro .navbar-form-custom,
.theme-metro .navbar-form-custom .input-group {
  display: flex; align-items: center;
  height: 56px;                  /* same row height */
  padding: 0 !important; margin: 0;
}

.theme-metro .navbar-form-custom .btn.dropdown-toggle {
  height: 40px;                  /* sits nicely centered in a 56px row */
  display: flex; align-items: center;
  padding: 0 14px;
  border: 1px solid #ccc; border-radius: 4px;
  background: #fff;
  font-weight: 600; font-size: 16px; line-height: 1;
}

.theme-metro .navbar-form-custom .btn.dropdown-toggle i,
.theme-metro .navbar-form-custom .btn.dropdown-toggle span[class*="ri-"] {
  font-size: 20px; 
  color: var(--metro-primary);
  margin-right: 8px; 
  line-height: 1; 
  position: relative;
  top: -1px; /* tiny nudge up */
}


/* =========================================================
   METRO SALUTATION DROPDOWN — Top Right User Menu
   ========================================================= */
   .theme-metro .salutation-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    margin-right: 1rem;
  }
  
  /* The clickable area */
  .theme-metro .salutation-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--metro-font-family);
    color: var(--metro-text);
    padding: 6px 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  
  .theme-metro .salutation-toggle:hover {
    background: var(--metro-hover);
    border-radius: 4px;
  }
  
  /* Avatar */
  .theme-metro .salutation-toggle .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--metro-primary);
    object-fit: cover;
  }
  
  /* User name */
  .theme-metro .salutation-toggle .user-name {
    font-weight: 600;
    color: var(--metro-text);
    font-size: 15px;
    line-height: 1;
  }
  
  /* Caret icon */
  .theme-metro .salutation-toggle .dropdown-caret {
    font-size: 16px;
    color: var(--metro-muted);
    transition: transform 0.2s ease;
  }
  .theme-metro .salutation-container.open .dropdown-caret {
    transform: rotate(180deg);
    color: var(--metro-primary);
  }
  
  /* Dropdown menu alignment */
  .theme-metro .salutation-menu {
    right: 0;              /* align to right edge of the toggle */
    left: auto;            /* override Bootstrap’s left alignment */
    min-width: 180px;
    margin-top: 8px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 14px;
  }
  
  .theme-metro .salutation-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--metro-text);
    text-decoration: none;
    transition: background-color 0.1s ease;
  }
  .theme-metro .salutation-menu > li > a:hover {
    background: var(--metro-hover);
    color: var(--metro-primary);
  }
  
  /* Icons inside the menu */
  .theme-metro .salutation-menu i {
    font-size: 16px;
    color: var(--metro-muted);
    width: 20px;
    text-align: center;
  }
  
  /* =========================================================
   METRO TOPNAV — RIGHT ALIGNMENT FIX (Company Picker + User)
   ========================================================= */
.theme-metro .navbar-static-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

/* Right-side group (Company + User) */
.theme-metro .navbar-right-group {
  display: flex;
  align-items: center;
  gap: 1rem;           /* space between company picker & user menu */
  margin-left: auto;   /* push group to right edge */
  margin-right: 1rem;
}

/* Company picker inside right group */
.theme-metro .navbar-right-group .navbar-form-custom {
  margin: 0;
  padding: 0;
  height: 56px;
  display: flex;
  align-items: center;
}

.theme-metro .navbar-right-group .navbar-form-custom .btn.dropdown-toggle {
  height: 40px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 15px;
  color: var(--metro-text);
  padding: 0 14px;
  line-height: 1;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-metro .navbar-right-group .navbar-form-custom .btn.dropdown-toggle:hover {
  background: var(--metro-hover);
  border-color: var(--metro-primary);
}

/* Salutation container inherits existing metro styling */
.theme-metro .navbar-right-group #SalutationContainer {
  display: flex;
  align-items: center;
}


/* =========================================================
   METRO TOPNAV POLISH — Divider + Consistent Icon Size
   ========================================================= */

/* Divider between company picker and user */
.theme-metro .navbar-right-group::before {
  content: "";
  display: block;
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.1);
  margin-right: 1rem;
}

/* Unify icon size across dropdowns (gear, company, user) */
.theme-metro .dropdown-menu i,
.theme-metro .navbar-right-group .dropdown-menu i,
.theme-metro .navbar-form-custom .btn.dropdown-toggle i,
.theme-metro .navbar-form-custom .btn.dropdown-toggle span[class*="ri-"],
.theme-metro .navbar-static-top .dropdown-menu i {
  font-size: 19px !important;    /* slightly larger, crisper */
  width: 20px;
  min-width: 20px;
  text-align: center;
  opacity: 0.85;
  vertical-align: middle;
  position: relative;
  top: -1px;                     /* optically centered */
}

/* Hover color alignment */
.theme-metro .dropdown-menu > li > a:hover i {
  color: var(--metro-primary);
}

/* Optional: make caret arrows in dropdowns slightly larger */
.theme-metro .salutation-toggle .dropdown-caret,
.theme-metro .navbar-form-custom .btn.dropdown-toggle::after {
  font-size: 18px;
  top: 0;
}

.theme-metro .navbar-header .dropdown > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 56px;
  color: var(--metro-muted);
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-metro .navbar-header .dropdown > a:hover {
  background: var(--metro-hover);
  color: var(--metro-primary);
  border-radius: 1px;
}

.theme-metro .navbar-header .dropdown > a i {
  font-size: 22px;
  line-height: 1;
  vertical-align: middle;
}

/* =========================================================
   New Rs Css Work
   ========================================================= */

/* Header Navigation Button Csss    */
.cs-header-lb-btn-wrap a.dropdown-toggle.count-info {
    background: #1d2126;
    display: flex;
    height: auto;
    width: auto;
    padding: 11px 11px;
    border-radius: 1px;
}
.cs-header-lb-btn-wrap a.dropdown-toggle.count-info i {
    color: #fff;
}
.cs-header-lb-btn-wrap a.dropdown-toggle.count-info:hover {
    background: #1d2126e0;
}
.cs_header_top_right_btn_wrap button.btn.btn-white.dropdown-toggle {
    background: #1d2126 !important;
    color: #fff !important;
    opacity: 1 !important;
    filter: brightness(1) saturate(1);
}
.cs_header_top_right_btn_wrap button.btn.btn-white.dropdown-toggle:hover {
    opacity: 0.85 !important;
}
.cs_header_top_right_btn_wrap button.btn.btn-white.dropdown-toggle::after {
    color: #fff !important;
}
.cs_header_top_right_btn_user_wrap button.salutation-toggle {
    background: #1d2126;
}
.cs_header_top_right_btn_user_wrap button.salutation-toggle span,
.cs_header_top_right_btn_user_wrap button.salutation-toggle i {
    color: #fff !important;
}
.cs_header_top_right_btn_user_wrap button.salutation-toggle:hover {
    background: #1d2126e0 !important;
    border-radius: 0;
}
.cs_header_top_right_btn_user_wrap ul li a:hover,
.cs_header_top_right_btn_wrap .input-group-btn.open ul li a:hover,
.cs-header-lb-btn-wrap ul.dropdown-menu.dropdown-messages li a:hover {
    background: #1d2126 !important;
    color: #fff !important;
}
.cs_header_top_right_btn_user_wrap ul li a:hover i,
.cs-header-lb-btn-wrap ul.dropdown-menu.dropdown-messages li a:hover i {
    color: #fff !important;
}

/* Issue Date field Css */
input.form-control.input-sm.text-nowrap {
    line-height: 1 !important;
}

/* General Button Css Style */
.btn_override {
    background: #1d2126 !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    opacity: 1 !important;
    color: #fff !important;
}
.btn_override:hover {
    background: #1d2126e0 !important;
    border: 0;
    opacity: 1 !important;
}
.btn_override span {
    margin-left: 10px !important;
}






.btn-ico {
  background: #1d2126 !important;
  color: #fff !important;
  padding: 4px 9px !important;
}
.btn-ico:hover {
  background: #1d2126e0 !important;
  color: #fff !important;
}


.btn-md {
    /* background: #1d2126 !important; */
    color: #fff !important;
    padding: 8px 15px !important;
    opacity: 1 !important;
}
.btn-md:hover {
    /* background: #1d2126e0 !important; */
    color: #fff !important;
    opacity: 1 !important;
}

/* Multi Step Form css */
.marq-progress {
    width: 75%;
    left: 50%;
    transform: translateX(-50%);
}
span#basic-addon2 {
    background: var(--metro-sidebar-bg);
    color: var(--metro-stripe);
}
.cs_wrap_multi_step_btn {
    border: 1px solid var(--metro-muted);
    padding: 17px 12px;
    border-radius: 1px;
    box-shadow: 0px 0px 12px 1px #0000002e;
    margin-top: 15px;
    margin-bottom: 20px;
}

.form-group-right {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  padding-right: 7px;
}

/* =========================================================
   PHONE COMPONENT — Form/List Visual Separation
   ========================================================= */

/* Form section background tint */
.theme-metro .ibox-content > div > .form-horizontal {
  background-color: var(--metro-stripe);
  padding: 10px 10px 1px 10px;
  border-radius: 2px 2px 2px 2px;
  margin: 0px 0px 10px 0px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--metro-grid);
}

.theme-metro .ibox-content > div > .form-horizontal .row {
  margin-bottom: 15px;
}
/* Divider between form and list 
.theme-metro .ibox-content > .form-horizontal + .table-responsive {
  border-top: 2px solid var(--metro-primary);
  padding-top: 20px;
  margin-top: 20px;
}*/

/* Media Qurey For Mobile*/

@media screen and (max-width: 767px) {
  .ibox-title {
    border-bottom: 2px solid var(--metro-primary) !important;
  }
  .body-small .navbar-static-side {
    display: block;
    width: 0%;
    overflow: hidden;
    transition: all 0.5s;
  }
  #page-wrapper {
    transition: all 0.5s;
  }
  nav#leftNavigation {
    padding-top: 0;
    border: 0 !important;
  }
  body.mini-navbar #page-wrapper {
    margin: 0 0 0 58%;
    transition: all 0.5s;
  }
  body.mini-navbar .navbar-static-side {
    width: 58%;
    transition: all 0.5s;
  }
  body.mini-navbar .profile-element, body.mini-navbar .nav-label, body.mini-navbar .navbar-default .nav li a span {
    display: block;
  }
  .logo-container {
    display: none !important;
  }
  .theme-metro.mini-navbar .navbar-default .nav>li>a {
    padding: 14px 17px;
    text-align: left;
  }

}

/* Mobile table transformation */
@media (max-width: 767px) {
  .theme-metro .table {
    display: block;
    width: 100%;
    min-width: unset;
  }

  .theme-metro .table thead {
    display: none; /* Hide headers on mobile */
  }

  .theme-metro .table tbody,
  .theme-metro .table tr,
  .theme-metro .table td {
    display: block;
    width: 100%;
  }

  .theme-metro .table tr {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0;
    background: #fafafa;
  }

  .theme-metro .table td {
    padding: 10px 12px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .theme-metro .table td:last-child {
    border-bottom: none;
  }

  /* Add label before each cell */
  .theme-metro .table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }

  .theme-metro .table td[data-label="Actions"]::before {
    content: none; /* Hide label for Actions */
  }

  .theme-metro .table button {
    width: 100%;
    display: block;
  }
}

/* Mobile table transformation */
@media (max-width: 767px) {
  .theme-metro .table:not(.table-static) {
    display: block;
    width: 100%;
    min-width: unset;
  }

  .theme-metro .table:not(.table-static) thead {
    display: none; /* Hide headers on mobile */
  }

  .theme-metro .table:not(.table-static) tbody,
  .theme-metro .table:not(.table-static) tr,
  .theme-metro .table:not(.table-static) td {
    display: block;
    width: 100%;
  }

  .theme-metro .table:not(.table-static) tr {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0;
    background: #fafafa;
  }

  .theme-metro .table:not(.table-static) td {
    padding: 10px 12px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .theme-metro .table:not(.table-static) td:last-child {
    border-bottom: none;
  }

  .theme-metro .table:not(.table-static) td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }

  .theme-metro .table:not(.table-static) td[data-label="Actions"]::before {
    content: none;
  }

  .theme-metro .table:not(.table-static) button {
    width: 100%;
    display: block;
  }
}

/* Mobile table transformation — KEEP STATIC TABLES AS TABLES */
@media (max-width: 767px) {
  /* Force static tables to remain as tables */
  .theme-metro .table.table-static,
  .theme-metro .table.table-static thead,
  .theme-metro .table.table-static tbody,
  .theme-metro .table.table-static tr,
  .theme-metro .table.table-static td {
    display: table !important;
    width: auto !important;
  }

  .theme-metro .table.table-static thead {
    display: table-header-group !important;
  }

  .theme-metro .table.table-static tbody {
    display: table-row-group !important;
  }

  .theme-metro .table.table-static tr {
    display: table-row !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .theme-metro .table.table-static td,
  .theme-metro .table.table-static th {
    display: table-cell !important;
    width: auto !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 10px 12px !important;
  }

  .theme-metro .table.table-static td[data-label]::before {
    display: none !important;
  }

  /* Make .hide class work on mobile for static tables */
  .theme-metro .table.table-static .hide {
    visibility: hidden !important;
  }

  /* Ensure text-right works on mobile for static tables */
  .theme-metro .table.table-static .text-right {
    text-align: right !important;
  }
}

/* Ensure table wrapper doesn't force scrolling */
.theme-metro .ibox-content > div[style*="overflow-x"] {
  overflow-x: visible !important;
}

.theme-metro .table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for mobile devices */
}

.theme-metro .table {
  min-width: 100%; /* Ensure table stretches to fit content */
}

/* Mobile spacing for stacked toolbar sections */
@media (max-width: 767px) {
  .ibox-title .row > [class*="col-"] {
    margin-bottom: 10px;
  }
  
  .ibox-title .row > [class*="col-"]:last-child {
    margin-bottom: 6px;
  }

  .ibox.lookup-global-page {
    width: 90vw;
    position: relative;
    padding-right: 10px;
  }
}

.logo-container {
  perspective: 800px;
  height: 52px;                 /* slightly smaller for tighter fit */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;                   /* remove any padding/gutter */
  margin: 0;
}

.logo-flip {
  position: relative;
  width: 180px;                  /* tighten width */
  height: 90px;                 /* tighten height */
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.logo-flip img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  top: 0;
  left: 0;
}

.logo-flip img.front,
.logo-flip img.back {
  margin: 0;
  padding: 0;
  display: block;
}

.logo-flip img.back {
  transform: rotateY(180deg);
}

/* ensure both inputs sit side by side evenly */
.datetime-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.datetime-inline input[type="date"],
.datetime-inline input[type="time"] {
  flex: 1;
  min-width: 90px;
  max-width: 130px;
  padding-left: 4px;
  padding-right: 4px;
}

/* keep Bootstrap’s spacing logic for compact look */
.dtpicker-width {
  padding-left: 4px;
  padding-right: 4px;
}

/* optional: fine tune alignment inside data rows */
.table .datetime-inline {
  justify-content: space-between;
}

/* =========================================================
   METRO BUTTON DROP SHADOWS — Color-Aware
   ========================================================= */

/* PRIMARY (Blue) — Standard shadow */
.theme-metro .btn-primary {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.theme-metro .btn-primary:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

/* DEFAULT (White/Light) — Slightly stronger shadow for contrast */
.theme-metro .btn-default {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.10) !important;
}

.theme-metro .btn-default:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20), 0 2px 6px rgba(0, 0, 0, 0.14) !important;
}

/* DANGER (Red) — Slightly softer shadow to avoid visual harshness */
.theme-metro .btn-danger {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

.theme-metro .btn-danger:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16), 0 2px 5px rgba(0, 0, 0, 0.10) !important;
}

/* WARNING (Yellow/Amber) — Slightly softer shadow */
.theme-metro .btn-warning {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

.theme-metro .btn-warning:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16), 0 2px 5px rgba(0, 0, 0, 0.10) !important;
}

/* SUCCESS (Green) — Standard shadow */
.theme-metro .btn-success {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.theme-metro .btn-success:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

/* SECONDARY (Dark) — Softer shadow for dark buttons */
.theme-metro .btn-secondary {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10), 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.theme-metro .btn-secondary:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.14), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* overrides marin in generic/contactpicker */
.theme-metro .btn-circle > i {
  margin-top: 5px;
}

/* Add drop shadow to Left Button */
.theme-metro .navbar-header .minimalize-styl-2 {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Add drop shadow to Pin Button */
.theme-metro .navbar-header .dropdown > a {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Add drop shadow to Company Picker */
.theme-metro .navbar-right-group .navbar-form-custom .btn.dropdown-toggle {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Add drop shadow to User Name */
.theme-metro .salutation-toggle {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Default: Hide the button */
.toggle-mini-menu {
  display: none;
}

/* Main ibox container - shadow applied here */
.theme-metro .ibox {
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  border: none;
  border-radius: 0;
}

/* IBox title bar - clean, modern layout */
.theme-metro .ibox-title {
  min-height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  background: #fff;
  border: none;
  border-bottom: 1px solid #e6e6e6;
}

/* Primary title heading - bold, prominent */
.theme-metro .ibox-title h3 {
  margin: 0;
  line-height: 1;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--metro-text);
}

/* Direct h3 child (no flex wrapper) */
.theme-metro .ibox-title > h3 {
  width: 100%;
  padding: 16px 20px;
  margin: 0;
  line-height: 1;
}

/* Flex wrapper with title + button */
.theme-metro .ibox-title-flex {
  width: 100%;
  padding: 7px 20px;  /* 4px less top/bottom than direct h3 */
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* IBox content area - standard padding */
.theme-metro .ibox-content {
  padding: 15px 20px 20px 20px;
  background: #fff;
}

.theme-metro .ibox-title-flex h3 {
  margin: 0;
}

.theme-metro .ibox-title-flex .button-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.theme-metro .ibox-title-flex .button-group .btn-group {
  display: flex;
  position: relative;
}

.theme-metro #wrapper {
  overflow:unset;
}

/* Show the button on mobile and tablet viewports */
@media (max-width: 1024px) {
  .toggle-mini-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* =========================================================
   NESTED MODULE CONTAINERS — Sync with Contact Selection
   ========================================================= */

#phoneContainerModule,
#addressContainerModule {
  margin-top: 20px;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.5;
}

/* Base state - dimmed when no selection */
#phoneContainerModule .ibox,
#addressContainerModule .ibox {
  box-shadow: none;
  border-top: 2px solid var(--metro-grid);
  border-radius: 0;
  margin: 0;
  background: #fff;
}

/* When a contact is selected - HIGHLIGHT */
#contactContainer.contact-has-selection #phoneContainerModule,
#contactContainer.contact-has-selection #addressContainerModule {
  opacity: 1;
}

#contactContainer.contact-has-selection #phoneContainerModule .ibox,
#contactContainer.contact-has-selection #addressContainerModule .ibox {
  background-color: #f2dede; /* Light pink */
  border-top: 2px solid #3a0219; /* Deep pink border */
}

#phoneContainerModule .ibox-title,
#addressContainerModule .ibox-title {
  background: #f2dede; /* Slightly darker pink for title */
  border-bottom: 1px solid #20010e;
  padding-left: 20px;
  padding-right: 20px;
  color: #20010e; /* Dark text for contrast */
  font-weight: 600;
}

#phoneContainerModule .ibox-content,
#addressContainerModule .ibox-content {
  padding: 15px 20px 20px 20px;
  background: #fce4ec;
}

/* Highlight the entire container when selected */
#contactContainer.contact-has-selection #phoneContainerModule,
#contactContainer.contact-has-selection #addressContainerModule {
  background: #f2dede;
}

/* =========================================================
   CompanyMultiSelect DROPDOWN — Styling for ActionMenu items
   ========================================================= */

   .CompanyMultiSelect .btn-group {
    width: 100%;
  }
  
  .CompanyMultiSelect .btn-group .multiselect.dropdown-toggle.btn.btn-default {
    width: 100%;
    text-align: left;
    border: 1px solid #ced0d1 !important; /* Stronger border to make it look enabled */
    background: white !important;
    background-color: transparent !important;
    padding: 6px 30px 6px 12px; /* Extra right padding for arrow */
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none !important;
    font-size: 14px;
    line-height: 1.42857143;
    position: relative; /* For pseudo-element positioning */
  }
  
  .CompanyMultiSelect .btn-group .multiselect.dropdown-toggle.btn.btn-default::after {
    content: "\ea4e"; /* RemixIcon: ri-arrow-down-s-line */
    font-family: "remixicon";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px; /* Increased for bolder appearance */
    font-weight: bold; /* Added for extra boldness */
    color: #000000;
    pointer-events: none;
    transition: transform 0.2s ease;
  }
  
  .CompanyMultiSelect .btn-group .multiselect.dropdown-toggle.btn.btn-default:hover,
  .CompanyMultiSelect .btn-group .multiselect.dropdown-toggle.btn.btn-default:focus {
    border-color: #1ab394 !important; /* Darker border on hover */
    background-color: #f8f8f8 !important;
    box-shadow: none !important;
  }
  
  .CompanyMultiSelect .btn-group .multiselect.dropdown-toggle.btn.btn-default .caret {
    display: none;
  }
  
  .CompanyMultiSelect .multiselect-container.dropdown-menu {
    width: 100%;
    min-width: 100%;
  }

/* =========================================================
   JUMPMENU DROPDOWN — Styling for ActionMenu items
   ========================================================= */


.content-header-menu-icon {
    color: var(--metro-primary) !important;
}

/* Jumpmenu dropdown container */
#JumpMenu {
  position: absolute !important;
  top: 100%;
  left: 0;
  z-index: 5000;
  min-width: 200px;
  margin: 4px 0 0 0;
  padding: 0;
  background: #1d2126;
  border: 1px solid #2a2f36;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  list-style: none;
}

/* Menu items */
#JumpMenu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#JumpMenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #e7e7e7;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.1s ease, color 0.1s ease;
  line-height: 1;
}

#JumpMenu li a:hover {
  background: #2a3038;
  color: var(--metro-primary);
}

/* Icons in menu items */
#JumpMenu li a span[class*="ri-"],
#JumpMenu li a span[class*="fa-"] {
  font-size: 16px;
  width: 18px;
  text-align: center;
  color: #b9c1c9;
  flex-shrink: 0;
}

#JumpMenu li a:hover span[class*="ri-"],
#JumpMenu li a:hover span[class*="fa-"] {
  color: var(--metro-primary);
}

/* Divider between groups (if used) */
#JumpMenu li.divider {
  height: 1px;
  background: #2a3038;
  margin: 4px 0;
  padding: 0;
}

/* Tight-fit cells for minimal width */
.table-fit {
    width: 1px;
    white-space: nowrap;
    text-align: right;
}

.table-fit-right {
  text-align: right !important;
}

.table-fit-left {
  width: 1px;
  text-wrap: none;
  text-align: left !important;
  white-space: nowrap;
}

.table-fit-max {
  width: 100%;
}

.ledger-search-group {
  display: flex;
  gap: 0;
  width: 100%;
  align-items: flex-end;
}

.ledger-search-group .form-control {
  height: 42px;
  font-size: 15px;
  border-radius: 0;
}

.ledger-search-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  height: 42px;
  padding: 0 20px;
}

/* Mobile responsive for quote search group */
@media (max-width: 768px) {
  .quote-search-group,
  .salesorder-search-group,
  .ledger-search-group {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-search-group > div,
  .salesorder-search-group > div,
  .ledger-search-group > div {
    width: 100%;
  }

  .quote-search-group .btn,
  .salesorder-search-group .btn,
  .ledger-search-group .btn {
    border-radius: 0;
    width: 100%;
  }
}

.invoice-search-group {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr auto;
  gap: 0;
  width: 100%;
  align-items: flex-end;
}

.invoice-search-group .form-control {
  height: 42px;
  font-size: 15px;
  border-radius: 0;
}

.invoice-search-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  height: 42px;
  padding: 0 20px;
}

.supplier-search-group {
  display: grid;
  grid-template-columns: 4fr 3fr auto;
  gap: 0;
  width: 100%;
  align-items: flex-end;
}

.supplier-search-group .form-control {
  height: 42px;
  font-size: 15px;
  border-radius: 0;
}

.supplier-search-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  height: 42px;
  width: 30px;
  padding: 0;
}

/* === EMPLOYEE PICKER FLEXBOX CONTAINER === */
.employee-picker-container {
  display: flex;
  margin-top: 5px;
  margin-bottom: 5px;
}

.employee-picker-form {
  flex: 1;
  padding: 5px;
  border-radius: 4px;
}

.employee-picker-form h4 {
  margin-top: 0;
  margin-bottom: 5px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .quote-search-group,
  .salesorder-search-group {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-search-group > div,
  .salesorder-search-group > div {
    width: 100%;
  }

  .quote-search-group .btn,
  .salesorder-search-group .btn {
    border-radius: 0;
    width: 100%;
  }

  .invoice-search-group {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .invoice-search-group .btn {
    border-radius: 0;
    width: 100%;
  }

  .supplier-search-group {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .supplier-search-group .btn {
    border-radius: 0;
    width: 100%;
  }
}


