/* ================================================================
   Bizey design tokens (Figma IU kit alignment)
   Use these in components so kit changes are centralized.
   ================================================================ */
:root {
  /* Mirage palette (brand blue scale) */
  --color-mirage-50: #f0f7fe;
  --color-mirage-100: #deecfb;
  --color-mirage-200: #c4dff9;
  --color-mirage-300: #9ccbf4;
  --color-mirage-400: #6dafed;
  --color-mirage-500: #4b90e6;
  --color-mirage-600: #3674da;
  --color-mirage-700: #2d60c8;
  --color-mirage-800: #2a4ea3;
  --color-mirage-900: #274481;
  --color-mirage-950: #0f172a;

  /* Semantic brand colors */
  --bizey-primary: var(--color-mirage-700);
  --bizey-primary-hover: var(--color-mirage-800);
  --bizey-primary-active: var(--color-mirage-600);
  --bizey-primary-subtle: var(--color-mirage-100);
  --bizey-primary-rgb: 45, 96, 200;
  /* Dark nav/header chrome (DESIGN surface-0) — not Bootstrap secondary */
  --bizey-surface-dark: var(--color-mirage-950);
  --bizey-nav-item-hover: #404453;
  --bizey-auth-hero-bg: var(--color-mirage-900);
  /* Muted UI text (Bootstrap secondary) */
  --bizey-secondary: #6c757d;

  /* Bootstrap theme bridge (loads after theme.min.css / bootstrap.min.css) */
  --bs-primary: var(--bizey-primary);
  --bs-primary-rgb: var(--bizey-primary-rgb);
  --bs-primary-text-emphasis: var(--color-mirage-900);
  --bs-primary-bg-subtle: var(--color-mirage-100);
  --bs-primary-border-subtle: var(--color-mirage-300);
  --bs-link-color: var(--bizey-primary);
  --bs-link-hover-color: var(--bizey-primary-hover);

  --bizey-radius-sm: 6px;
  --bizey-radius-md: 8px;
  --bizey-radius-lg: 12px;
  --bizey-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
  --bizey-shadow-dropdown: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Empty state (use with _EmptyState.cshtml) */
.empty-state {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--bs-secondary, #6c757d);
}

.empty-state-icon i {
  font-size: inherit;
}

/* Alerts – placement above main content; use with _Alert.cshtml */
.alert.alert-dismissible .btn-close {
  padding: 1rem;
}

/* Icon size utilities (replace inline font-size; no inline styles) */
.icon-size-2 {
  font-size: 2rem;
}

.icon-size-4 {
  font-size: 4rem;
}

.icon-size-64 {
  font-size: 64px;
}

/* List/container scroll and empty-state min-height (replace inline styles) */
.list-scroll-max {
  max-height: 300px;
  overflow-y: auto;
}

.empty-state-min-h {
  min-height: 500px;
}

/* Make expense report rows indicate clickability */
#myQueueTable tbody tr:hover,
#allReportsTable tbody tr:hover {
  cursor: pointer;
}

/* DataTables responsive width fix */
.dataTables_wrapper .dataTables_scroll {
  overflow-x: auto;
}

.dataTables_wrapper .dataTables_scrollBody {
  overflow-x: auto;
}

/* Ensure tables use full container width and are responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Custom 3-way Toggle Switch - Bizey Theme */
.custom-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.custom-toggle {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 3px;
  border-radius: 25px;
  position: relative;
  border: 2px solid #e1e5e9;
  background: #f8f9fa;
  width: 100%;
  max-width: 400px;
  transition: all 0.3s ease;
}

.custom-toggle:hover {
  border-color: var(--bizey-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bizey-primary-rgb), 0.25);
}

.custom-toggle input[type="radio"] {
  display: none;
}

.custom-toggle .toggle-option {
  flex: 1;
  text-align: center;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px;
  height: 100%;
}

.custom-toggle .toggle-option i {
  font-size: 16px;
  margin-right: 4px;
}

.custom-toggle .toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(33.333% - 2px);
  height: calc(100% - 6px);
  background: linear-gradient(
    135deg,
    var(--bizey-primary) 0%,
    var(--bizey-primary-hover) 100%
  );
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(var(--bizey-primary-rgb), 0.3);
}

/* Toggle states */
.custom-toggle input[type="radio"]:checked + .toggle-option {
  color: #ffffff;
  font-weight: 600;
}

.custom-toggle input[type="radio"]:checked + .toggle-option i {
  color: #ffffff;
}

/* Position slider based on selection - CSS approach */
.custom-toggle input[type="radio"][value="grade"]:checked ~ .toggle-slider {
  transform: translateX(0);
}

.custom-toggle input[type="radio"][value="user"]:checked ~ .toggle-slider {
  transform: translateX(100%);
}

.custom-toggle
  input[type="radio"][value="designation"]:checked
  ~ .toggle-slider {
  transform: translateX(200%);
}

/* Position slider based on selection - JavaScript class approach */
.custom-toggle.toggle-grade .toggle-slider {
  transform: translateX(0);
}

.custom-toggle.toggle-user .toggle-slider {
  transform: translateX(100%);
}

.custom-toggle.toggle-designation .toggle-slider {
  transform: translateX(200%);
}

/* Hover effects */
.custom-toggle .toggle-option:hover {
  color: var(--bizey-primary);
}

.custom-toggle .toggle-option:hover i {
  color: var(--bizey-primary);
}

/* Focus states for accessibility */
.custom-toggle input[type="radio"]:focus + .toggle-option {
  outline: 2px solid var(--bizey-primary);
  outline-offset: 2px;
}

/* Disabled state */
.custom-toggle.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.custom-toggle.disabled .toggle-option {
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .custom-toggle {
    height: 38px;
    max-width: 100%;
  }

  .custom-toggle .toggle-option {
    font-size: 13px;
    padding: 6px 8px;
  }

  .custom-toggle .toggle-option i {
    font-size: 14px;
    margin-right: 2px;
  }
}

/* Fix for DataTables fixed width issue */
table.dataTable {
  width: 100% !important;
  max-width: 100% !important;
}

/* Ensure table cells don't have fixed widths */
table.dataTable td,
table.dataTable th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Allow specific columns to be wider if needed */
table.dataTable td:last-child,
table.dataTable th:last-child {
  max-width: 120px; /* Actions column */
}

table.dataTable td:first-child,
table.dataTable th:first-child {
  max-width: 100px; /* Code column */
}

/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Custom styles */

/* Auth Pages - Based on UI Design */
.auth-cover-wrapper {
  height: 100vh;
  display: flex;
}

.auth-cover-content-inner {
  background-color: #f0f2f8;
  width: 50%;
}

.auth-cover-content-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-img {
  max-width: 80%;
}

.auth-cover-sidebar-inner {
  width: 50%;
  height: 100%;
  background-color: #ffffff;
  overflow-y: auto;
}

.auth-cover-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

.auth-cover-card {
  width: 100%;
  max-width: 480px;
}

.wd-50 {
  width: 50px;
}

/*.custom-control {
  position: relative;
  min-height: 1.5rem;
  padding-left: 1.5rem;
}

.custom-control-input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.custom-control-label {
  position: relative;
  margin-bottom: 0;
  vertical-align: top;
  cursor: pointer;
}

  .custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    background-color: #fff;
    border: 1px solid #adb5bd;
  }

  .custom-control-label::after {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem !important;
    height: 1rem !important;
    content: "";
    background: no-repeat 50% / 50% 50%;
  }*/

/*.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  border-color: #0d6efd;
  background-color: #0d6efd;
}*/

/* .custom-checkbox .custom-control-input:checked~.custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
} */

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .auth-cover-wrapper {
    flex-direction: column;
  }

  .auth-cover-content-inner,
  .auth-cover-sidebar-inner {
    width: 100%;
  }

  .auth-cover-content-inner {
    height: 30vh;
  }

  .auth-cover-sidebar-inner {
    height: 70vh;
  }
}

@media (max-width: 767.98px) {
  .auth-cover-content-inner {
    height: 20vh;
  }

  .auth-cover-sidebar-inner {
    height: 80vh;
  }
}

/* Phase 3/4: Buttons – Figma IU kit (design tokens) */
.btn,
.btn-primary,
.btn-light-brand,
.btn-danger,
.btn-light {
  border-radius: var(--bizey-radius-sm);
}

.btn-sm {
  border-radius: var(--bizey-radius-sm);
}

.btn-icon.rounded-circle {
  border-radius: 50%;
}

.btn-primary {
  background-color: var(--bizey-primary) !important;
  border-color: var(--bizey-primary) !important;
}

.btn-primary:hover {
  background-color: var(--bizey-primary-hover) !important;
  border-color: var(--color-mirage-900) !important;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow:
    0 0 0 0.1rem white,
    0 0 0 0.25rem color-mix(in srgb, var(--bizey-primary) 45%, transparent);
}

body {
  margin-bottom: 60px;
  background-color: #ecf0f1 !important;
}

.c-pointer {
  cursor: pointer;
}

/* Phase 3: Form controls – Figma IU kit (design tokens) */
.form-control,
.input-group .form-control {
  border-radius: var(--bizey-radius-sm);
}

.input-group .input-group-text {
  border-radius: var(--bizey-radius-sm) 0 0 var(--bizey-radius-sm);
}

.input-group .form-control:not(:first-child) {
  border-radius: 0 var(--bizey-radius-sm) var(--bizey-radius-sm) 0;
}

/* Phase 3: Checkbox, radio, switch – Figma IU kit (design tokens) */
.form-check-input {
  border-radius: var(--bizey-radius-sm);
}

.form-check-input[type="checkbox"] {
  border-radius: var(--bizey-radius-sm);
}

.form-switch .form-check-input {
  border-radius: 9999px;
  width: 2.5em;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.hide {
  display: none !important;
}

/*.custom-checkbox .custom-control-label:before {
    background-color: #dedede !important;
}*/

.nxl-navigation {
  width: 240px;
}

.nxl-header {
  left: 240px;
}

.nxl-container {
  margin-left: 240px;
  top: 61px;
  /*top: 70px;*/
  /*top: 13px;*/
}

/*.avatar-md {
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  min-width: 30px;
  min-height: 30px;
}*/

/*.avatar-md * {
    font-size: 16px;
}*/

/*a[class*='edit-'] {
    background-color: #3454d1 !important;
    color: #fff;
}*/

/*a[class*='delete-'] {
    background-color: #ea4d4d !important;
    color: #fff;
}*/

html.app-header-dark .nxl-navigation .m-header .logo-lg {
  width: 100%;
  height: 100%;
  filter: invert(0);
}

/* Phase 4: Cards – Figma IU kit alignment (design tokens) */
.card.stretch,
.card.stretch-full {
  border-radius: var(--bizey-radius-md);
  box-shadow: var(--bizey-shadow-card);
}

.card .card-header {
  border-radius: var(--bizey-radius-md) var(--bizey-radius-md) 0 0;
}

.card .card-header .card-title {
  font-size: 1.25rem !important;
}

.card .card-loader {
  z-index: 1024;
}

/* Phase 4: Tables – DataTables / table alignment */
.table-responsive .table tr td {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.table-responsive .table tbody tr:last-child * {
  /*border-color: #dcdee4;*/
  border-bottom-width: 1px;
  border-bottom-color: inherit;
}

.table-responsive .table tbody tr:last-child td input {
  border-bottom-color: #dcdee4 !important;
  border-bottom-width: 1px !important;
  border-bottom-style: solid !important;
}

.dataTables_wrapper table thead th {
  border-top: 1px solid #dcdee4;
  border-bottom: 1px solid #dcdee4;
}

/* Phase 4: Modals – Figma IU kit alignment (design tokens) */
.modal-content {
  border-radius: var(--bizey-radius-md);
  box-shadow: var(--bizey-shadow-dropdown);
}

.modal-header {
  border-radius: var(--bizey-radius-md) var(--bizey-radius-md) 0 0;
}

.modal-header .btn-close {
  /* theme default */
}

.modal-title {
  font-size: 1.25rem !important;
}

.col-form-label,
.form-label {
  font-size: 14px !important;
}

/* Phase 5: Page header structure */
.page-header {
  min-height: 55px !important;
}

.page-header-left {
  flex-wrap: wrap;
}

.page-header-right-items-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-content {
  padding-top: 0;
}

/* Phase 5: Dropdowns – Figma IU kit (design tokens) */
.dropdown-menu,
.nxl-h-dropdown.dropdown-menu {
  border-radius: var(--bizey-radius-md);
  box-shadow: var(--bizey-shadow-dropdown);
}

/* Phase 5: Search dropdown – header search (nxl-search-dropdown) */
.nxl-search-dropdown {
  min-width: 280px;
  padding: 0.75rem;
}

.nxl-search-dropdown .search-form .form-control {
  border-radius: var(--bizey-radius-sm);
}

/* Badges / Avatars – Figma IU kit (design tokens) */
/*.avatar-text {
  border-radius: var(--bizey-radius-md);
}*/

.avatar-text.rounded-circle {
  border-radius: 50%;
}

.badge,
.nxl-badge {
  border-radius: var(--bizey-radius-sm);
}

.badge.rounded-pill,
.nxl-badge.rounded-pill {
  border-radius: 50rem;
}

/* Phase 6: Pagination – pagination-common-style (used in Admin/Expense/Approval views) */
.pagination-common-style {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.pagination-common-style li a {
  display: flex;
  align-items: center;
  justify-content: center;
  /* min-width: 2rem; */
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: var(--bizey-radius-sm);
  color: #495057;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.pagination-common-style li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.pagination-common-style li a.active {
  background-color: var(--bizey-primary);
  color: #fff;
}

.pagination-common-style li a.disabled,
.pagination-common-style li span.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* Phase 6: Tabs – nav-tabs-custom-style (ExpenseList and others) */
.nav-tabs.nav-tabs-custom-style .nav-link {
  border-radius: var(--bizey-radius-sm) var(--bizey-radius-sm) 0 0;
  border: 1px solid transparent;
}

.nav-tabs.nav-tabs-custom-style .nav-link.active {
  border-color: #dee2e6 #dee2e6 #fff;
}

.nxl-navigation .m-header {
  height: 60px !important;
  /*height: 70px !important;*/
}

.nxl-header {
  min-height: 60px !important;
  max-height: 60px !important;
  /*  min-height: 70px !important;
  max-height: 70px !important;*/
}

/*.dataTables_wrapper .row:last-child {
  padding: 0;
  border-top: none !important;
}

.dataTables_wrapper .row:first-child {
  padding: 10px;
}*/

/* Remove margin-bottom from all DataTables wrapper search rows */
/*[id$="_wrapper"] .row.mb-3,
.dataTables_wrapper .row.mb-3 {
  margin-bottom: 0 !important;
}

[id$="_wrapper"] .row.mt-3,
.dataTables_wrapper .row.mt-3 {
  margin-top: 0 !important;
}*/

/* Ensure DataTables wrapper doesn't hide table borders */
/*[id$="_wrapper"],
.dataTables_wrapper {
  border: none !important;
}*/

/* Ensure table borders are visible inside DataTables wrapper */
/*[id$="_wrapper"] table,
.dataTables_wrapper table {
  border-collapse: separate;
  border-spacing: 0;
}

[id$="_wrapper"] table thead th,
.dataTables_wrapper table thead th {
  border-top: 1px solid #dcdee4;
  border-bottom: 1px solid #dcdee4;
}

[id$="_wrapper"] table tbody td,
.dataTables_wrapper table tbody td {
  border-bottom: 1px solid #dcdee4;
}*/

.spinner-border {
  height: 1rem;
  width: 1rem;
  border-width: medium;
}

.card-loader .spinner-border {
  height: 2.5rem;
  width: 2.5rem;
  border-width: medium;
}

.bd-0 {
  border-width: 0 !important;
}

.nxl-header .header-wrapper .nxl-h-item {
  min-height: 60px;
}

.pace {
  display: none !important;
}

/*html.app-navigation-dark .nxl-navigation .navbar-content .nxl-link {
  color: #ffffff;
}*/

html.app-navigation-dark
  .nxl-navigation
  .navbar-content
  .nxl-navbar
  > .nxl-item:focus
  > .nxl-link,
html.app-navigation-dark
  .nxl-navigation
  .navbar-content
  .nxl-navbar
  > .nxl-item:hover
  > .nxl-link,
html.app-navigation-dark
  .nxl-navigation
  .navbar-content
  .nxl-item:focus
  > .nxl-link,
html.app-navigation-dark
  .nxl-navigation
  .navbar-content
  .nxl-item:hover
  > .nxl-link {
  background-color: var(--bizey-nav-item-hover);
}

html.app-navigation-dark
  .nxl-navigation
  .navbar-content
  .nxl-navbar
  > .nxl-item.active
  > .nxl-link,
html.app-navigation-dark
  .nxl-navigation
  .navbar-content
  .nxl-item.active
  > .nxl-link {
  background-color: var(--bizey-primary);
}

html.app-navigation-dark .nxl-navigation,
html.app-header-dark .nxl-navigation .m-header,
html.app-header-dark .nxl-header {
  background: var(--bizey-surface-dark);
}

.powered-by {
  position: absolute;
  bottom: 0;
}

.sidebar-mockup .crop {
  width: 100px;
  height: 25px;
  overflow: hidden;
}

.sidebar-mockup .crop img {
  width: 200px;
  height: 175px;
  margin: -75px 0 0 10px;
}

/* --- MOCKUP CONTAINER (Simulating your Sidebar) --- */
.sidebar-mockup {
  width: 240px;
  background-color: var(--bizey-surface-dark);
  /*background-color: #1f2228;*/
  /* height: 400px; */
  border-radius: 12px;
  position: fixed;
  bottom: 0;
  padding: 5px 20px;
  /* padding-top: 0; */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.label {
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  font-weight: bold;
  text-transform: uppercase;
}

/* --- SHARED STYLES --- */
.powered-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.logo-img {
  height: 24px; /* Adjust based on your actual logo aspect ratio */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  /* Invert filter to make dark logos white if needed */
  /* filter: brightness(0) invert(1); */
}

/* --- OPTION 3: The Minimal Split (Cleanest) --- */
.opt-minimal {
  border-top: 1px solid #2d303e;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.opt-minimal .powered-text {
  margin: 0;
  color: #b1b4c0;
  /*color: #555c6b;*/
  font-size: 9px;
}

.opt-minimal img {
  height: 50px /*20px*/;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.opt-minimal:hover img {
  opacity: 1;
}

/* --- OPTION 4: The Inset Well (Depth) --- */
.opt-inset {
  background-color: #13141c; /* Darker than sidebar */
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.opt-inset .powered-text {
  color: #4b5563;
  margin-bottom: 6px;
}

/* Sidebar Mockup - Collapsed State */
html.minimenu .sidebar-mockup {
  width: 100px;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 5px;
}

html.minimenu .sidebar-expanded-content {
  display: none !important;
}

/* Collapsed sidebar: show collapsed content; default state hides it via .d-none */
.sidebar-collapsed-content {
  display: none;
}

html.minimenu .sidebar-collapsed-content {
  display: flex !important;
  justify-content: center;
  width: 100%;
  padding-top: 5px;
  border-top: 1px solid #2d303e;
}

.logo-img-mini {
  max-width: 50px /*30px*/;
  height: auto;
}

html.minimenu .sidebar-mockup .opt-minimal {
  padding-left: 0;
  padding-right: 0;
}

/* ================================================================
   SIDEBAR FLOATING SUBMENU BEHAVIOR (Collapsed State)
   When minimenu is active: only the hovered item shows its submenu
   or label - sidebar does NOT expand.
   ================================================================ */

/* 1. Disable Sidebar Expansion on Hover */
html.minimenu .nxl-navigation,
html.minimenu .nxl-navigation:hover,
html.minimenu .nxl-navigation .navbar-wrapper,
html.minimenu .nxl-navigation .navbar-wrapper:hover,
html.minimenu .nxl-navigation .navbar-content,
html.minimenu .nxl-navigation .navbar-content:hover {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  overflow: visible !important;
}

/* Allow floating submenus to escape - navbar-content must not clip */
html.minimenu .nxl-navigation .navbar-content {
  overflow: visible !important;
}

html.minimenu .nxl-navigation .navbar-wrapper .ps {
  overflow: visible !important;
}

/* 2. Configure Menu Items for Floating Context */
html.minimenu .nxl-navbar > .nxl-item.nxl-caption {
  display: none !important;
}

html.minimenu .nxl-navbar > .nxl-item:not(.nxl-caption) {
  position: relative;
}

/* Hide text and arrow inside sidebar - they appear only in the floating panel */
html.minimenu .nxl-navbar > .nxl-item > .nxl-link .nxl-mtext,
html.minimenu .nxl-navbar > .nxl-item > .nxl-link .nxl-arrow {
  display: none !important;
}

/* 3. Floating Submenus (Parent Items with .nxl-hasmenu) */
html.minimenu .nxl-navbar > .nxl-item.nxl-hasmenu > .nxl-submenu {
  position: absolute !important;
  left: 100px !important;
  top: 0 !important;
  min-width: 220px !important;
  width: auto !important;
  max-width: 280px !important;
  background-color: #1f2228 !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
  border-radius: 0 8px 8px 0 !important;
  border: 1px solid #2d303e !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  z-index: 1050 !important;
  display: block !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

html.minimenu .nxl-navbar > .nxl-item.nxl-hasmenu:hover > .nxl-submenu {
  display: block !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Submenu links - visible and styled */
html.minimenu .nxl-navbar > .nxl-item.nxl-hasmenu > .nxl-submenu .nxl-link {
  display: flex !important;
  align-items: center;
  padding: 10px 16px !important;
  color: #e4e6ef !important;
  white-space: nowrap;
}

html.minimenu
  .nxl-navbar
  > .nxl-item.nxl-hasmenu
  > .nxl-submenu
  .nxl-link:hover {
  background-color: #404453 !important;
  color: #fff !important;
}

/* 4. Floating Tooltips (Single Items without submenu) */
html.minimenu
  .nxl-navbar
  > .nxl-item:not(.nxl-hasmenu):not(.nxl-caption)
  .nxl-link {
  position: relative;
}

html.minimenu
  .nxl-navbar
  > .nxl-item:not(.nxl-hasmenu):not(.nxl-caption)
  .nxl-mtext {
  display: block !important;
  position: absolute !important;
  left: 70px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-color: #1f2228 !important;
  color: #fff !important;
  padding: 8px 15px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid #2d303e !important;
  z-index: 1050 !important;
  pointer-events: none !important;
  opacity: 0;
  transition: opacity 0.2s ease;
}

html.minimenu
  .nxl-navbar
  > .nxl-item:not(.nxl-hasmenu):not(.nxl-caption):hover
  .nxl-mtext {
  opacity: 1;
}

/* 5. Perfect Scrollbar - ensure it doesn't clip floating content */
html.minimenu .nxl-navigation .navbar-content .ps__rail-y {
  display: none;
}

html.minimenu .nxl-navigation .navbar-content .nxl-link {
  margin: 3px 20px;
}

html.minimenu .nxl-navigation:hover .navbar-content .nxl-link {
  margin: 3px 20px;
  padding: 12px 20px;
  border-radius: 6px 6px;
}

html.app-navigation-dark.minimenu .nxl-navigation:hover .navbar-content {
  background-color: #1f2228;
}

/* Tooltip text transform */
.tooltip {
  text-transform: math-auto;
}

/* Rich helper for blocked submit (workflow / validation) — Bootstrap tooltip + tokens */
.tooltip.bizey-submit-blocked-tooltip {
  --bs-tooltip-max-width: min(320px, 92vw);
  --bs-tooltip-bg: #1f2937;
  --bs-tooltip-color: #f8fafc;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.14));
}

.tooltip.bizey-submit-blocked-tooltip .tooltip-inner {
  max-width: min(320px, 92vw);
  text-align: left;
  padding: 0.65rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  border-radius: var(--bizey-radius-sm);
  box-shadow: var(--bizey-shadow-dropdown);
}
