/* ============================================================================
   MREP Portal — Enterprise Theme
   Professional, enterprise-grade polish layered on top of the existing theme.
   Palette teal; font is Inter across the whole app (incl. the login page).
   Loaded globally after theme-bundle.css so it wins.
   ========================================================================== */
/* Inter — SELF-HOSTED (no CDN). Font files live in /theme/fonts (this file is in
   /theme/css/, so ../fonts resolves). Weights mirror the old Google Fonts import
   (300–700). DM Sans was also imported but is unused anywhere, so it's dropped. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/Inter_18pt-Light.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter_18pt-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter_18pt-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter_18pt-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Inter_18pt-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/Inter_18pt-Italic.ttf') format('truetype'); }

/* ----------------------------------------------------------------------------
   Feather icon font — re-declared with a WORKING path.
   The bundled copy (vendors.min.css) is relocated by WebOptimizer into
   /theme/css/theme-bundle.css, which breaks its url(../fonts/…) (points to the
   non-existent /theme/fonts). This file lives in /theme/css/, so ../vendors/fonts
   resolves correctly and the menu / arrow icons render. Loads after the bundle,
   so it wins for the "feather" family.
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "feather";
    src: url("../vendors/fonts/feather.woff") format("woff"),
         url("../vendors/fonts/feather.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

:root {
    /* Brand (Martin Dow blue) */
    --mrep-brand: #2AABA0;
    --mrep-brand-600: #1D8C82;
    --mrep-brand-700: #1D8C82;
    --mrep-brand-800: #16766D;
    --mrep-brand-050: #E8F8F7;    /* tint */
    --mrep-brand-100: #D0F0EE;    /* pale */
    --mrep-teal-light: #B2E8E4;   /* blue link (name kept for compatibility) */
    --mrep-brand-rgb: 42, 171, 160;

    /* Neutral scale (light enterprise) */
    --mrep-ink: #1A2332;
    --mrep-ink-soft: #2D3748;
    --mrep-muted: #8896A8;
    --mrep-line: #DDE3EC;
    --mrep-line-soft: #EEF1F6;
    --mrep-surface: #ffffff;
    --mrep-canvas: #F7F9FC;
    --mrep-canvas-2: #EEF1F6;

    /* Sidebar (light) */
    --mrep-sidebar-bg: #141B2D;

    /* Status */
    --mrep-success: #3A9E40;
    --mrep-danger: #C83438;
    --mrep-warning: #E07820;
    --mrep-info: #2070C8;

    /* Elevation */
    --mrep-shadow-sm: 0 1px 3px rgba(42, 171, 160, .07), 0 1px 2px rgba(42, 171, 160, .04);
    --mrep-shadow-md: 0 4px 16px rgba(42, 171, 160, .09), 0 2px 6px rgba(42, 171, 160, .05);
    --mrep-shadow-lg: 0 12px 40px rgba(42, 171, 160, .12), 0 4px 12px rgba(42, 171, 160, .06);

    --mrep-radius: 10px;
    --mrep-radius-sm: 7px;
    --mrep-font: 'Inter', "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- Base typography & canvas -------------------------------------------- */
/* font-family forced project-wide so the whole app matches the login page. */
body,
body .nxl-container,
body .nxl-content,
.nxl-navigation,
.nxl-header,
.btn,
.form-control,
.form-select,
table {
    font-family: var(--mrep-font) !important;
}

body {
    color: var(--mrep-ink);
    background: var(--mrep-canvas) !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.nxl-content,
.nxl-container {
    background: var(--mrep-canvas);
}

/* Page title band */
.page-title #bodyTitle,
#bodyTitle {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--mrep-ink);
}

.page-title .fa-info-circle {
    color: var(--mrep-muted);
    font-size: .85rem;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    border-radius: var(--mrep-radius-sm);
    font-weight: 600;
    letter-spacing: .01em;
    transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary,
.btn-success {
    background-color: var(--mrep-brand);
    border-color: var(--mrep-brand);
    color: #fff;
}

.btn-primary:hover,
.btn-success:hover,
.btn-primary:focus,
.btn-success:focus {
    background-color: var(--mrep-brand-600);
    border-color: var(--mrep-brand-600);
    box-shadow: 0 0 0 3px rgba(42, 171, 160, .22);
    color: #fff;
}

.btn-outline-primary {
    color: var(--mrep-brand-600);
    border-color: var(--mrep-brand);
}
.btn-outline-primary:hover {
    background-color: var(--mrep-brand);
    border-color: var(--mrep-brand);
    color: #fff;
}

/* ============================================================================
   Sidebar navigation — dark ink-navy (exact match to sidebar-menu.html)
   Demo tokens: bg #141B2D  soft #1B2438  border #232E47  text #B9C2D6
                dim #6E7A93  bright #F2F5FA  accent #2FBF9B
   ========================================================================== */
.nxl-navigation .navbar-wrapper {
    background: #141B2D;
    border-right: 1px solid #232E47;
    display: flex; flex-direction: column; height: 100%;
    color: #B9C2D6;
    font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
}
.nxl-navigation .navbar-content { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.nxl-navigation .m-header { padding: 16px 18px 12px; border-bottom: 1px solid #232E47; }
.nxl-navigation hr.hr1, .nxl-navigation hr.hr2 { border: none; border-top: 1px solid #232E47; margin: 6px 16px; }

/* profile / logged-user card */
.nxl-navigation .Desi {
    display: flex; align-items: center; gap: 10px;
    margin: 10px 12px; padding: 10px 12px;
    background: #1B2438; border: 1px solid #232E47; border-radius: 10px;
}
.nxl-navigation .Profile_l, .nxl-navigation .Pr { flex: 0 0 auto; line-height: 0; }
.nxl-navigation .profile_New { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #33405E; }
.nxl-navigation .Profile_R { min-width: 0; }
.nxl-navigation .Designation { color: #F2F5FA; font-weight: 600; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* search — demo .sb-search-box */
.nxl-navigation .Search_bar { margin: 14px 16px 6px; }
.Search-field {
    width: 100%; border-radius: 8px !important;
    border: 1px solid #232E47 !important;
    background: #1B2438 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E7A93' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat 11px center !important;
    background-size: 14px !important;
    color: #F2F5FA !important; padding: 8px 11px 8px 34px !important; font-size: 13.5px !important;
}
.Search-field::placeholder { color: #6E7A93 !important; }
.Search-field:focus { border-color: #2FBF9B !important; outline: none; box-shadow: none !important; }

/* nav scroll — demo .sb-nav padding: 10px 12px 16px */
#sidebar-nav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 10px 12px 16px; }
#sidebar-nav::-webkit-scrollbar { width: 5px; }
#sidebar-nav::-webkit-scrollbar-thumb { background: #232E47; border-radius: 3px; }

/* ---- Header (top bar) refinements ---------------------------------------- */
.nxl-header .header-wrapper { padding: 0 22px; min-height: 60px; }
.nxl-header .user-avtar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--mrep-line); }
.nxl-header .nxl-head-link {
    color: var(--mrep-ink-soft); border-radius: 9px; padding: 8px 12px;
    transition: background-color .15s ease;
}
.nxl-header .nxl-head-link:hover { background: var(--mrep-brand-050); color: var(--mrep-brand-700); }
.nxl-header .nxl-h-badge { border: 2px solid #fff; }
.nxl-navigation-toggle a { color: var(--mrep-ink-soft); }
.nxl-navigation-toggle a:hover { color: var(--mrep-brand); }

/* ---- Top header ---------------------------------------------------------- */
.nxl-header .header-wrapper {
    background: var(--mrep-surface);
    border-bottom: 1px solid var(--mrep-line);
    box-shadow: var(--mrep-shadow-sm);
}

.nxl-h-item .nxl-head-link {
    border-radius: 8px;
}

/* ---- Cards / content panels --------------------------------------------- */
.dashboard_graph,
.card,
.report-card {
    background: var(--mrep-surface);
    border: 1px solid var(--mrep-line);
    border-radius: var(--mrep-radius);
    box-shadow: var(--mrep-shadow-sm);
    padding: 16px;
}

/* ---- Form controls ------------------------------------------------------- */
.form-control,
.form-select,
input.reportrange-picker-field {
    border-radius: var(--mrep-radius-sm);
    border: 1px solid var(--mrep-line);
    color: var(--mrep-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mrep-brand);
    box-shadow: 0 0 0 3px rgba(42, 171, 160, .18);
}

/* ---- Bootstrap modals (used for report info etc.) ------------------------ */
.modal-content {
    border: none;
    border-radius: var(--mrep-radius);
    box-shadow: var(--mrep-shadow-lg);
    overflow: hidden;
}
.modal-header {
    background: var(--mrep-brand-050);
    border-bottom: 1px solid var(--mrep-line);
}
.modal-title { color: var(--mrep-brand-800); font-weight: 700; }

/* ---- Scrollbars ---------------------------------------------------------- */
* {
    scrollbar-width: thin;
    scrollbar-color: #c3ccd8 transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
    background: #c3ccd8;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: #a7b3c2; background-clip: content-box; }

/* ---- Footer -------------------------------------------------------------- */
.footer {
    background: var(--mrep-surface);
    border-top: 1px solid var(--mrep-line);
    color: var(--mrep-muted);
}
.footer .version strong { color: var(--mrep-brand) !important; }

/* ============================================================================
   Sidebar overrides — must beat ThemeOverRide.css   (exact sidebar-menu.html)
   ========================================================================== */
/* force the demo font on the sidebar TEXT (beats the global Inter).
   NOTE: must NOT target <i>/icon elements — they need font-family:feather,
   so we list text-bearing elements explicitly instead of using a `*` selector. */
.nxl-navigation .navbar-wrapper,
.nxl-navigation .navbar-wrapper .nxl-link,
.nxl-navigation .navbar-wrapper .m-link-label,
.nxl-navigation .navbar-wrapper .nxl-mtext,
.nxl-navigation .navbar-wrapper .nxl-caption,
.nxl-navigation .navbar-wrapper .Designation,
.nxl-navigation .navbar-wrapper .Search-field,
.nxl-navigation .navbar-wrapper .badge {
    font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif !important;
}

/* ---- resizable + wider sidebar --------------------------------------------
   Default width 296px (roomier than the old 280px). The drag handle writes
   --sb-w on <html>, and every layout offset that used a hard 280px follows it.
   Scoped to :not(.minimenu) so the collapsed (icon) mode keeps its own width.
   IMPORTANT: only on DESKTOP (>=1025px). Below that the theme's own responsive
   layout takes over — the sidebar goes off-canvas (`left:-280px`, toggled by the
   mobile hamburger) and content is full-width (`margin-left:0`); these !important
   offsets must NOT fight that or the content gets pushed off-screen. */
:root { --sb-w: 296px; }
@media (min-width: 1025px) {
    html:not(.minimenu) .nxl-navigation { width: var(--sb-w) !important; }
    html:not(.minimenu) .nxl-container   { margin-left: var(--sb-w) !important; }
    html:not(.minimenu) .nxl-header      { left: var(--sb-w) !important; }
    html:not(.minimenu) .page-header     { left: var(--sb-w) !important; }
    html:not(.minimenu) .footer_Side     { width: var(--sb-w) !important; }
}
/* mobile: hide the desktop drag-resizer */
@media (max-width: 1024px) { .nxl-navigation .sb-resizer { display: none !important; } }

/* drag-to-resize handle on the sidebar's right edge */
.nxl-navigation .sb-resizer {
    position: absolute; top: 0; right: 0; width: 5px; height: 100%;
    cursor: col-resize; z-index: 1030; background: transparent;
    transition: background .15s ease;
}
.nxl-navigation .sb-resizer:hover,
body.sb-resizing .nxl-navigation .sb-resizer { background: rgba(47,191,155,.45); }
body.sb-resizing { cursor: col-resize !important; user-select: none !important; }
html.minimenu .nxl-navigation .sb-resizer { display: none; }

/* kill ThemeOverRide's connector dots / lines — demo uses a clean guide line */
.nxl-navigation .navbar-content .nxl-submenu > .nxl-item::before,
.nxl-navigation .navbar-content .nxl-submenu > .nxl-item::after,
.nxl-navigation .navbar-content .nav.child_menu > li::before,
.nxl-navigation .navbar-content .nav.child_menu > li::after { content: none !important; }

/* item spacing — roomy rows (not compact) */
.nxl-navigation .navbar-content ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.nxl-navigation .navbar-content li.nxl-item { margin: 2px 0 !important; }

/* ---- top-parent = uppercase section caption (scrolls with the list) ---- */
.nxl-navigation .navbar-content li.nxl-item.nxl-caption {
    position: static !important;
    margin: 0 !important; padding: 13px 12px 6px !important;
    background: transparent !important;
    color: #6E7A93 !important;
    font-size: 10.5px !important; font-weight: 600 !important; letter-spacing: 1.2px !important;
    text-transform: uppercase !important; white-space: nowrap;
}
.nxl-navigation .navbar-content li.nxl-item.nxl-caption label {
    display: block !important; margin: 0 !important; color: inherit !important;
    font-size: inherit !important; font-weight: inherit !important; letter-spacing: inherit !important;
    text-transform: inherit !important; cursor: default;
}
.nxl-navigation .navbar-content li.nxl-item.nxl-caption::before,
.nxl-navigation .navbar-content li.nxl-item.nxl-caption::after { content: none !important; }
/* collapsed (icon) mode: hide the caption text */
html.minimenu .nxl-navigation .navbar-content li.nxl-item.nxl-caption { display: none; }

/* ---- parent link (demo .sb-link, scaled up a touch) ---- */
.nxl-navigation .navbar-content .nxl-link {
    display: flex !important; align-items: center !important; gap: 12px !important;
    padding: 11px 14px !important; margin: 1px 0 !important;
    border-radius: 8px !important; position: relative !important;
    font-size: 14px !important; font-weight: 500 !important; line-height: 1.35 !important;
    color: #B9C2D6 !important; text-decoration: none !important;
}
.nxl-navigation .navbar-content .nxl-link .nxl-micon { display: flex !important; align-items: center !important; gap: 12px; flex: 1 1 auto; min-width: 0; color: inherit; margin: 0 !important; }
.nxl-navigation .navbar-content .nxl-link .nxl-micon > i,
.nxl-navigation .navbar-content .nxl-link .nxl-micon > svg { font-size: 18px !important; width: 20px; text-align: center; flex: 0 0 auto; line-height: 1; }

/* icon color must follow the menu text — base / hover / active.
   (theme.min.css forces .nxl-micon i to #001327 on hover+active → black icons) */
.nxl-navigation .navbar-content .nxl-link .nxl-micon i { color: #B9C2D6 !important; }
.nxl-navigation .navbar-content .nxl-link:hover .nxl-micon i,
.nxl-navigation .navbar-content .nxl-item:hover > .nxl-link .nxl-micon i { color: #F2F5FA !important; }
.nxl-navigation .navbar-content .nxl-item.active > .nxl-link .nxl-micon i,
.nxl-navigation .navbar-content .nxl-link.active .nxl-micon i { color: #2FBF9B !important; }
.nxl-navigation .navbar-content .nxl-link .m-link-label { padding-left: 0 !important; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nxl-navigation .navbar-content .nxl-link .nxl-mtext { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- chevron: vertically centered (demo .chev) ---- */
.nxl-navigation .navbar-content .nxl-link .nxl-arrow {
    position: static !important; top: auto !important; right: auto !important;
    margin-left: auto !important; align-self: center !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    flex: 0 0 auto; color: #6E7A93 !important; transition: transform .2s ease !important;
}
.nxl-navigation .navbar-content .nxl-link .nxl-arrow i {
    font-size: 12px !important; line-height: 1 !important; display: block !important; font-weight: 400 !important; margin: 0 !important;
}
.nxl-navigation .navbar-content .nxl-hasmenu.active > .nxl-link .nxl-arrow,
.nxl-navigation .navbar-content .nxl-hasmenu.open > .nxl-link .nxl-arrow,
.nxl-navigation .navbar-content .nxl-hasmenu.nxl-trigger > .nxl-link .nxl-arrow { transform: rotate(90deg) !important; }

/* ---- hover (demo .sb-link:hover) ---- */
.nxl-navigation .navbar-content .nxl-link:hover { background: rgba(255,255,255,.05) !important; color: #F2F5FA !important; }
.nxl-navigation .navbar-content .nxl-link:hover .nxl-micon,
.nxl-navigation .navbar-content .nxl-link:hover .m-link-label,
.nxl-navigation .navbar-content .nxl-link:hover .nxl-mtext { color: #F2F5FA !important; }

/* ---- active state + STRAIGHT left rail (demo .sb-link.active::before) ---- */
.nxl-navigation .navbar-content .nxl-item.active > .nxl-link,
.nxl-navigation .navbar-content .nxl-link.active {
    background: rgba(47,191,155,.14) !important; color: #2FBF9B !important; font-weight: 600 !important;
    box-shadow: none !important;
}
.nxl-navigation .navbar-content .nxl-item.active > .nxl-link .nxl-micon,
.nxl-navigation .navbar-content .nxl-link.active .nxl-micon { color: #2FBF9B !important; }
.nxl-navigation .navbar-content .nxl-item.active > .nxl-link::before,
.nxl-navigation .navbar-content .nxl-link.active::before {
    content: "" !important; position: absolute !important;
    left: -12px !important; top: 20% !important; bottom: 20% !important;
    width: 3px !important; height: auto !important; margin: 0 !important;
    background: #2FBF9B !important; border-radius: 0 3px 3px 0 !important; opacity: 1 !important;
}

/* ---- submenu: flush with parent + thin guide line (demo .sb-children) ---- */
.nxl-navigation .navbar-content .nxl-submenu {
    list-style: none !important; margin: 1px 0 3px !important; padding: 0 !important; position: relative !important;
}
.nxl-navigation .navbar-content .nxl-submenu::before {
    content: "" !important; display: block !important; position: absolute !important;
    left: 24px; top: 2px; bottom: 6px; width: 1px; background: #232E47 !important;
}
.nxl-navigation .navbar-content .nxl-submenu .nxl-link {
    padding: 9px 12px 9px 46px !important; margin: 1px 0 !important;
    font-size: 13.5px !important; font-weight: 400 !important; color: #6E7A93 !important; line-height: 1.35 !important;
}
.nxl-navigation .navbar-content .nxl-submenu .nxl-link:hover { color: #F2F5FA !important; background: rgba(255,255,255,.05) !important; }
/* submenu active — rail sits on the guide line (demo .sb-children .sb-link.active::before) */
.nxl-navigation .navbar-content .nxl-submenu .nxl-item.active > .nxl-link,
.nxl-navigation .navbar-content .nxl-submenu .nxl-link.active {
    background: transparent !important; color: #2FBF9B !important; font-weight: 500 !important; box-shadow: none !important;
}
.nxl-navigation .navbar-content .nxl-submenu .nxl-item.active > .nxl-link::before,
.nxl-navigation .navbar-content .nxl-submenu .nxl-link.active::before {
    content: "" !important; position: absolute !important;
    left: 24px !important; top: 25% !important; bottom: 25% !important;
    width: 1.5px !important; height: auto !important; margin: 0 !important;
    background: #2FBF9B !important; border-radius: 2px !important; opacity: 1 !important;
}
/* nested (level 3, .child_menu): one step deeper, own guide line */
.nxl-navigation .navbar-content .nxl-submenu .nxl-submenu .nxl-link,
.nxl-navigation .navbar-content .nav.child_menu .nxl-link { padding-left: 64px !important; }
.nxl-navigation .navbar-content .nxl-submenu .nxl-submenu::before,
.nxl-navigation .navbar-content .nav.child_menu::before { left: 42px !important; }

/* ---- badges: inline (demo .badge), not absolute ---- */
.nxl-navigation .navbar-content a.nxl-link .badge,
.nxl-navigation .navbar-content .nxl-link .badge {
    position: static !important; margin-left: 6px !important; flex: 0 0 auto;
    font-size: 10px !important; font-weight: 600 !important; padding: 2px 7px !important; border-radius: 20px !important;
}

/* ---- footer icon bar ---- */
.footer_Side { background: #141B2D !important; padding: 10px 14px 14px !important; border-top: 1px solid #232E47 !important; }
.Footer_sidebar { background: transparent !important; border: none !important; gap: 4px !important; padding: 2px 0 !important; justify-content: space-around !important; }
.Footer_sidebar a { text-decoration: none; line-height: 0; }
.nxl-miconFooter { display: inline-flex !important; align-items: center; justify-content: center; width: 32px !important; height: 32px !important; border-radius: 8px !important; color: #6E7A93 !important; font-size: 14px !important; gap: 0 !important; cursor: pointer; transition: all .15s ease; }
.nxl-miconFooter:hover { background: rgba(255,255,255,.05) !important; color: #F2F5FA !important; }
.Footer_sidebar a:last-child .nxl-miconFooter:hover { background: rgba(227,104,104,.15) !important; color: #E36868 !important; }

/* ---- collapsed (mini) sidebar: ICONS ONLY (center icon, hide every label) ----
   theme.min.css only hides `.nxl-mtext` (submenu text); our depth-0 items put
   their text in `.m-link-label` (inside `.nxl-micon`) so it leaked as truncated
   text at the 100px rail. Hide all labels + badges and center the icon. */
html.minimenu .nxl-navigation .navbar-content .m-link-label,
html.minimenu .nxl-navigation .navbar-content .nxl-mtext,
html.minimenu .nxl-navigation .navbar-content .nxl-link .badge,
html.minimenu .nxl-navigation .navbar-content .nxl-link .nxl-arrow { display: none !important; }
html.minimenu .nxl-navigation .navbar-content .nxl-link { justify-content: center !important; padding: 11px 0 !important; }
html.minimenu .nxl-navigation .navbar-content .nxl-link .nxl-micon { flex: 0 0 auto !important; gap: 0 !important; justify-content: center; }
html.minimenu .nxl-navigation .navbar-content .nxl-link .nxl-micon > i,
html.minimenu .nxl-navigation .navbar-content .nxl-link .nxl-micon > svg { font-size: 19px !important; }
html.minimenu .nxl-navigation .Footer_sidebar { flex-direction: column; gap: 6px; }

/* hover-to-peek in mini mode: restore labels + keep the sidebar DARK navy
   (theme.min forces a white flyout panel that clashes with our dark nav). */
html.minimenu .nxl-navigation:hover .navbar-content { background-color: #141B2D !important; width: var(--sb-w, 296px) !important; border-right: 1px solid #232E47 !important; }
html.minimenu .nxl-navigation:hover .navbar-content .m-link-label,
html.minimenu .nxl-navigation:hover .navbar-content .nxl-mtext { display: inline-block !important; }
html.minimenu .nxl-navigation:hover .navbar-content .nxl-link .nxl-arrow { display: inline-flex !important; }
html.minimenu .nxl-navigation:hover .navbar-content .nxl-link { justify-content: flex-start !important; padding: 11px 14px !important; }
html.minimenu .nxl-navigation:hover .navbar-content .nxl-link .nxl-micon { gap: 12px !important; flex: 1 1 auto !important; }
html.minimenu .nxl-navigation:hover .navbar-content li.nxl-item.nxl-caption { display: block !important; }

/* ---- Collapsed (minimenu) rail — remaining fixes ---------------------------
   Footer action icons: line 472 stacks them in a column (fits the 100px rail),
   but on hover-expand there is no override so they stay VERTICAL in the wide
   flyout. Make them a centered ROW when the rail is hover-expanded. */
html.minimenu .nxl-navigation:hover .Footer_sidebar { flex-direction: row !important; flex-wrap: nowrap !important; gap: 20px !important; justify-content: center; }
html.minimenu .nxl-navigation:hover .footer_Side { width: var(--sb-w, 296px) !important; }
/* Profile name card is redundant in the collapsed rail (the avatar sits in the top
   navbar) and renders as a cramped "…- CEO" box in the flyout — hide it + its rule
   while collapsed. The full (non-mini) sidebar is unaffected. */
html.minimenu .nxl-navigation .Desi,
html.minimenu .nxl-navigation .hr2 { display: none !important; }
/* Perf: theme.min animates `transition: all .3s` across the nav; during the width
   animation the dashboard's responsive charts/grids re-layout every frame, so the
   collapse/hover feels laggy. Scope motion to width/transform; snap text/icons in. */
.nxl-navigation { transition: width .16s ease, transform .2s ease !important; }
.nxl-navigation .navbar-content { transition: width .16s ease !important; }
.nxl-navigation .nxl-mtext, .nxl-navigation .m-link-label, .nxl-navigation .logo-lg,
.nxl-navigation .logo-sm, .nxl-navigation .nxl-arrow, .nxl-navigation .nxl-micon,
.nxl-navigation .nxl-link, .nxl-navigation .m-header { transition: none !important; }

/* ============================================================================
   Report filter bars (`.row.margin-bo`) — responsive, no overlap.
   Was col-lg-1 (~90px, too narrow for a date box) → controls overlapped. Now a
   wrapping flex row where each control gets a sensible min width and grows to
   share the space; the trailing action (Filter button) sizes to content.
   ========================================================================== */
.row.margin-bo {
    display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center;
    margin-left: 0; margin-right: 0; margin-bottom: 15px !important;
}
.row.margin-bo > [class*="col-"] {
    flex: 1 1 170px; min-width: 160px; max-width: 340px; width: auto;
    padding-left: 0; padding-right: 0;
}
.row.margin-bo > [class*="col-"]:last-child { flex: 0 0 auto; min-width: auto; max-width: none; }
.row.margin-bo > [class*="col-"] > div { width: 100%; }
@media (max-width: 575.98px) {
    .row.margin-bo > [class*="col-"] { flex-basis: 100%; max-width: none; }
    .row.margin-bo > [class*="col-"]:last-child { width: 100%; }
}

/* leaf-level responsiveness: content never forces a page-wide horizontal
   scrollbar; wide tables/grids scroll inside their own card instead. */
.nxl-content .container-fluid { max-width: 100%; }
.nxl-content .dashboard_graph, .nxl-content .card, .nxl-content .report-card { max-width: 100%; }
@media (max-width: 767.98px) {
    .nxl-content .container-fluid { padding-left: 10px; padding-right: 10px; }
    .page-title { padding: 10px 12px !important; }
}
