﻿
.dl-horizontal dt {
    white-space: normal;
}



body {
    background-color: rgb(233 238 239) !important;
    font-family: "Poppins", sans-serif;
    /*"SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";*/
}

.modal-backdrop {
    width: 111.11vw;
    height: 111.11vh;
}

.modal-dialog {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5) !important;
}
#toast-container > div {
    transition: all 0.05s ease !important;
    animation-duration: 0.05s !important;
}
ul.pagination{
    overflow:auto;
}

.body {
    overflow: auto;
    /* Firefox */
    scrollbar-width: none;
    /* Chrome, Edge, Safari */
    -ms-overflow-style: none;
}

    body::-webkit-scrollbar {
        display: none;
    }

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #2876e1;
    color: white !important;
}
@media (min-width: 768px) {
    html {
        overflow-x: hidden;
    }
    body {
        transform: scale(0.90);
        transform-origin: top left;
        width: 111.11%;
        overflow-x: hidden;
    }
}

@media (max-width: 767px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    #content,
    .flx-main-content,
    .tab-area,
    .mobile-tab-container,
    .mobile-tab-content,
    #tab-content,
    .container,
    .container-fluid {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .modal-backdrop {
        width: 100vw !important;
        height: 100vh !important;
    }
}
.dashboard-widget {
    background: white;
    margin: 7px
}

.page-content {
    margin-top: 6px;
}

.row > [class^="col"] {
    padding-right: 5px !important;
    padding-left: 5px !important;
}

.form-control {
    border: 1px solid #7f7e8b !important;
    border-radius: 0px !important;
}

.btn-primary {
    border-radius: 0px !important;
    background: #3c8faa !important;
}

.btn-secondary {
    border-radius: 0px !important;
}

.modal-content {
    border-radius: 0px !important;
}

ptions-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

@media print {
    /* undo any desktop/body scaling */
    body {
        transform: none !important;
        width: auto !important;
        overflow: visible !important;
        margin: 0;
        padding: 0;
    }

    /* undo your flex‐wrapper / full‐height layout */
    .flx-wrapper,
    .flx-wrapper *,
    .flx-content,
    .flx-content * {
        display: block !important;
        height: auto !important;
        min-height: auto !important;
        flex: none !important;
        overflow: visible !important;
    }

    /* zero out the printed page margins and let browser size to content */
    @page {
        margin: 0;
        size: auto;
    }

    /* now your existing hide/show logic… */
    /* hide everything */
    body * {
        visibility: hidden !important;
    }
    /* show only the print area */
    .print-area, .print-area * {
        visibility: visible !important;
    }
    /* position the print area at the top left */
    .print-area {
        position: absolute;
        top: 0;
        left: 0;
        width: auto !important;
    }
}


.context-menu {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

    .context-menu ul {
        list-style: none;
        padding: 5px;
        margin: 0;
    }

        .context-menu ul li {
            padding: 8px 12px;
            cursor: pointer;
        }

            .context-menu ul li:hover {
                background: #f0f0f0;
            }

.switch-toggle {
    width: 162px !important;
    height: 38px !important;
    border: 1px solid #a69898 !important;
    border-radius: 0px !important;
    /*--width: 260px;
    --height: 50px;*/
    /* --offset: 2px; */
    /* --radius: 4px;
    /*--offset: 2px;*/
    --radius: 4px;
    position: relative;
    /* width: var(--width);
    height: var(--height);*/
    padding: var(--offset);
    background: rgba(227, 229, 232, 0.5);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    font-style: normal;
}

.modal-backdrop {
    width: 111.11%;
    height: 111.11vh;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown button {
    border: 0px !important;
}

.dropdown-display {
    padding: 6px 10px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #fff;
}

.btn-helper {
    color: white !important;
    max-width: 45px;
    background: #3c8faa !important;
}

.highlighted {
    background: #0a58ca !important;
    color: #ffffff !important;
}

.selected td {
    color: white !important;
    background-color: #adb7b9 !important;
}

.products-table th {
    background: #dce0e3 !important;
    color: black !important;
}
table.dropdown-table {
    min-width: 100%;
}

.custom-dropdown-wrapper tr:nth-child(even) {
    background-color: #f2f2f2; /* Light gray */
}

.custom-dropdown-wrapper li:nth-child(even) {
    background-color: #f2f2f2; /* Light gray */
}

.custom-dropdown-menu {
    max-height: 400px !important;
}


.custom-dropdown-wrapper table tr:hover {
    background: #d8dee6;
}

.custom-dropdown-wrapper .custom-dropdown-menu li:hover {
    background: #d8dee6 !important;
}

.toast-container {
    border-radius: 0px;
}
.form-check-input[type=checkbox] {
    border-color: black !important;
}
.btn:hover {
    background-color: #53a0ae;
    border-color: #0a58ca;
}

.custom-dropdown-wrapper table tr {
    border-right: black !important;
    cursor: pointer;
}

table.dropdown-table tr td {
    padding: 4px;
    border-bottom: 1px solid #ffffff !important;
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    width: fit-content;
    /* Ensure it’s visible when open */
}

/*   .custom-dropdown-menu tr {
        border-bottom: 1px solid #c8c8d9;
    }*/
/*.items-table {
    height:32vh;
}*/

.modal-backdrop {
    width: 111.11vw !important;
    height: 111.11vh !important;
}

.nav-tabs .nav-item {
    border: 1px solid #c1b3b3 !important;
}

.table-container {
    height: 66vh;
    overflow: auto;
}
/* The outer wrapper is set to use flexbox and fill the viewport */
.flx-wrapper {
    display: flex;
    flex-direction: column;
}




.navbar-dark {
    --bs-navbar-color: white !important;
    background-color: #1d7faa !important;
}

.bg-dark {
}

/* The form is made a flex container; its content area will grow */
.flx-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0;
}
/* The main content (everything above the footer) */
.flx-content {
    flex: 1;
}
/* The footer remains at the bottom */
.flx-footer {
    background: #fff;
    padding: 15px;
    z-index: 33;
    /* Additional styles (box-shadow, border-top, etc.) can be added here */
}

.items-table td {
    padding: 0px !important;
}



/*workaround form table > tr background not working*/
tr.inputpicker-element.inputpicker-element-1.inputpicker-active td {
    background: blue;
}

.switch-toggle input[type="checkbox"] {
    cursor: pointer;
    position: absolute;
    inset: 0;
    appearance: none;
    z-index: 2;
}

    .switch-toggle input[type="checkbox"]:checked + label.switch-toggle-label:before {
        translate: 100% 0;
    }

    .switch-toggle input[type="checkbox"]:checked + label.switch-toggle-label span:nth-child(1) {
        color: gray;
    }

    .switch-toggle input[type="checkbox"]:checked + label.switch-toggle-label span:nth-child(2) {
        color: #1a1a1a;
    }

    .switch-toggle input[type="checkbox"] + label.switch-toggle-label {
        position: absolute;
        inset: var(--offset, 0);
        padding: 10px 0;
        display: block;
        user-select: none;
        pointer-events: none;
        display: grid;
        gap: 2px;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        place-items: center;
    }

        .switch-toggle input[type="checkbox"] + label.switch-toggle-label:before {
            content: "";
            position: absolute;
            width: 50%;
            inset: 0;
            background: #fff;
            border-radius: calc(var(--radius) - var(--offset));
            box-shadow: 0px 10px 20px 0px rgba(16, 39, 68, 0.1);
            translate: 0 0;
            transition: translate 250ms cubic-bezier(0.93, 0.26, 0.07, 0.69);
        }

        .switch-toggle input[type="checkbox"] + label.switch-toggle-label span {
            position: relative;
            transition: 200ms linear;
        }

            .switch-toggle input[type="checkbox"] + label.switch-toggle-label span:nth-child(1) {
                color: #1a1a1a;
            }

            .switch-toggle input[type="checkbox"] + label.switch-toggle-label span:nth-child(2) {
                color: gray;
            }


.table-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

    .table-row:hover {
        background-color: #f5f5f5;
    }

.selected {
    background-color: #d1ecf1 !important;
}


/* Loading Bar */
.linear-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #4caf50, #2196F3);
    background-size: 200% 100%;
    
    : loading-animation 2s linear infinite;
    z-index: 9999;
}

@keyframes loading-animation {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(100%);
    }
}

.window {
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.title-bar {
    display: flex;
    justify-content: right;
    align-items: center;
    background-color: #0078d7;
    color: white;
    padding: 5px;
    cursor: move;
}

.window-controls button {
    background: none;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
}

    .window-controls button:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.content {
    height: calc(100% - 40px); /* Adjust based on title-bar height */
    overflow: auto;
}

.options-btn {
    border: none;
    background: transparent
}

/* Importing Google Fonts and Boxicons */
@import "https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap";
@import "https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css";

/* ═══════════════════════════════════════════════════════════
   FLX SIDEBAR  –  collapsed by default, expands on toggle
   Collapsed width : 52px  (icon only)
   Expanded  width : 240px (icon + label + sub-items)
═══════════════════════════════════════════════════════════ */
:root {
    --flx-sb-w:          52px;
    --flx-sb-w-open:     240px;
    --flx-sb-bg:         #1d7faa;
    --flx-sb-hover:      rgba(0,0,0,0.18);
    --flx-sb-text:       #fff;
    --flx-sb-speed:      0.32s;
}

/* \u2500\u2500 sidebar container \u2500\u2500 */
#flx-sidebar {
    position: fixed;
    top: 40px;           /* below the fixed navbar */
    left: 0;
    height: calc(100vh / 0.9);  /* compensate for body scale(0.90) so sidebar reaches screen bottom */
    width: var(--flx-sb-w);
    background: var(--flx-sb-bg);
    overflow: hidden;
    overflow-y: auto;
    z-index: 9998;
    transition: width var(--flx-sb-speed) ease;
    scrollbar-width: none;
}
#flx-sidebar::-webkit-scrollbar { display: none; }

/* \u2500\u2500 expanded state \u2500\u2500 */
#flx-sidebar.flx-sb-open {
    width: var(--flx-sb-w-open);
}

/* \u2500\u2500 toggle button \u2500\u2500 */
#flx-sidebar-toggle {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           100%;
    height:          48px;
    background:      transparent;
    border:          none;
    cursor:          pointer;
    color:           var(--flx-sb-text);
    font-size:       20px;
    flex-shrink:     0;
}
#flx-sidebar-toggle:hover { background: var(--flx-sb-hover); }

/* \u2500\u2500 nav list \u2500\u2500 */
.flx-sb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: var(--flx-sb-w-open); /* wider than container so text doesn't wrap */
}

/* \u2500\u2500 every top-level item \u2500\u2500 */
.flx-sb-list > li > a,
.flx-sb-group-btn {
    display:         flex;
    align-items:     center;
    width:           100%;
    min-height:      46px;
    padding:         0 0 0 0;
    background:      transparent;
    border:          none;
    color:           var(--flx-sb-text);
    text-decoration: none;
    cursor:          pointer;
    white-space:     nowrap;
    overflow:        hidden;
    font-size:       14px;
    transition:      background var(--flx-sb-speed) ease;
}
.flx-sb-list > li > a:hover,
.flx-sb-group-btn:hover { background: var(--flx-sb-hover); }

/* icons inside every item */
.flx-sb-list > li > a > i,
.flx-sb-group-btn > i:first-child {
    flex-shrink:   0;
    width:         52px;           /* same as collapsed sidebar width → icon always visible */
    text-align:    center;
    font-size:     17px;
    line-height:   46px;
    color:         var(--flx-sb-text);
}

/* labels – hidden when collapsed */
.flx-sb-label,
.flx-sb-group-btn > span {
    flex: 1;
    opacity:    0;
    width:      0;
    overflow:   hidden;
    transition: opacity var(--flx-sb-speed) ease, width var(--flx-sb-speed) ease;
    font-size:  13px;
    color:      var(--flx-sb-text);
}
#flx-sidebar.flx-sb-open .flx-sb-label,
#flx-sidebar.flx-sb-open .flx-sb-group-btn > span {
    opacity: 1;
    width:   auto;
}

/* arrow chevron */
.flx-sb-arrow {
    margin-right: 10px;
    font-size:    11px !important;
    width:        auto !important;   /* override the icon width rule */
    opacity:      0;
    transition:   transform var(--flx-sb-speed) ease, opacity var(--flx-sb-speed) ease;
}
#flx-sidebar.flx-sb-open .flx-sb-arrow { opacity: 1; }
.flx-sb-arrow.flx-sb-arrow-open { transform: rotate(180deg); }

/* \u2500\u2500 sub-menus \u2500\u2500 */
.flx-sb-sub {
    list-style:  none;
    margin:      0;
    padding:     0;
    max-height:  0;
    overflow:    hidden;
    transition:  max-height var(--flx-sb-speed) ease;
    background:  rgba(0,0,0,0.15);
}
.flx-sb-sub.flx-sb-sub-open { max-height: 600px; }

.flx-sb-sub li a {
    display:         flex;
    align-items:     center;
    width:           100%;
    min-height:      38px;
    padding:         0;
    color:           var(--flx-sb-text);
    text-decoration: none;
    font-size:       12px;
    white-space:     nowrap;
    overflow:        hidden;
    transition:      background var(--flx-sb-speed) ease;
}
.flx-sb-sub li a:hover { background: rgba(0,0,0,0.2); }

.flx-sb-sub li a > i {
    flex-shrink:  0;
    width:        52px;
    text-align:   center;
    font-size:    13px;
    line-height:  38px;
    color:        var(--flx-sb-text);
}
.flx-sb-sub li a > span {
    flex:       1;
    opacity:    0;
    width:      0;
    overflow:   hidden;
    transition: opacity var(--flx-sb-speed) ease;
    font-size:  12px;
}
#flx-sidebar.flx-sb-open .flx-sb-sub li a > span {
    opacity: 1;
    width:   auto;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT SHIFT
   Sidebar only exists on desktop (≥768px), so apply the
   margin-left only on those screens to avoid dead space on mobile.
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .comparison-p{
        display:none;
    }

    .ledger-create-journal-entry {
        margin-top: 5px;
    }

    .flx-main-content,
    #tab-content {
        margin-left:  var(--flx-sb-w);
        transition:   margin-left var(--flx-sb-speed) ease;
    }

    body.flx-sb-expanded .flx-main-content,
    body.flx-sb-expanded #tab-content {
        margin-left: var(--flx-sb-w-open);
    }
}

    /* Floating YouTube Button Styling */
    .youtube-button {
    position: fixed;
    bottom: 20px; /* Distance from the bottom */
    right: 20px; /* Distance from the right */
    background-color: #FF0000; /* YouTube red color */
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

    /* Icon Styling */
    .youtube-button i {
        font-size: 24px;
    }

    /* Hover Effect */
    .youtube-button:hover {
        background-color: #e60000; /* Darker shade of red */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        transform: translateY(-2px); /* Slight upward movement */
    }
/* ─────────────────────────────────────────────
   UNIVERSAL MODAL LAYERING + FULLSCREEN FOR MOBILE
───────────────────────────────────────────── */

/* 1) Backdrop just under the modal */
.modal-backdrop {
    z-index: 9998 !important;
}

/* 2) Modal itself above everything */
.modal {
    z-index: 99999 !important;
}
/* Existing styles can remain here */



/* SLOW DOWN *ALL* transitions & animations globally */
/**,
*::before,
*::after {*/
    /* tweak these durations to taste */
    /*transition-duration: 0.1s !important;
    transition-timing-function: ease-in-out !important;
    animation-duration: 0.62s !important;
    animation-timing-function: ease-in-out !important;
}*/

.ripple-click {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.ripple-click {
    transition: background-color 0.2s ease;
    border-radius: 6px;
}

    .ripple-click:active {
        background-color: rgba(0, 0, 0, 0.08); /* subtle touch feedback */
    }

/* Mobile drawer styles */
@media (max-width: 767px) {

    #linear-loader{
        top: 10px !important;
    }

    .products-table {
        height: 70vh;
    }

    html {
        font-size: 110%;
    }

    .mt-md-3{
        margin-top:3px;
    }

    .mobile-add-items {
        overflow: hidden;
        overflow-y: visible;
        max-height: 100%;
    }

    .dashboard-widget-tile {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .dashboard-widget-icon{
        margin-left:30px;
    }
    /* SLOW DOWN *ALL* transitions & animations globally */
    /**,
    *::before,
    *::after {*/
        /* tweak these durations to taste */
        /*transition-duration: 0.2s !important;
        transition-timing-function: ease-in-out !important;
        animation-duration: 0.3s !important;
        animation-timing-function: ease-in-out !important;
    }*/

    .mln-md-5{
        margin-left:-5px
    }

    .card-body {
        padding-right: 14px;
        padding-left: 14px;
    }


    .items-card .card-body {
        padding-right: 8px;
        padding-left: 8px;
    }

    /* ─────────────────────────────────────────────
   FORCE BOOTSTRAP MODALS TO TOP-MOST LAYER
───────────────────────────────────────────── */
    .modal {
        height:100vh;
    }
        .modal-backdrop {
            display: none !important;
        }

        /* if you kept your “.fullscreen” helper, bump it too */
        .modal.fullscreen .modal-dialog,
        .modal.fullscreen .modal-content {
            z-index: 100000 !important;
        }

    .mobile-tab-header {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 2000 !important;
        background: #1d7faa; /* match your header bg */
        color: #fff; /* if needed */
    }

    /* 2) Prevent it from covering content */
    .mobile-tab-container {
        /* adjust 50px to whatever your .mobile-tab-header height actually is */
        padding-top: 50px !important;
    }

    /* 3) If you have any direct scrollable area inside the tabs, 
        make sure it doesn’t start under the header */
    .mobile-tab-content {
        margin-top: 0 !important;
    }
    /* 1) hide the thead */
    table.responsive thead {
        display: none;
    }

    /* 2) make each row a flex container that wraps */
    table.responsive tr {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 1rem;
        border-bottom: 1px solid #ddd;
    }

    /* 3) two cells per line → each td is 50% */
    table.responsive td {
        flex: 0 0 50%;
        display: block; /* so ::before starts a new line */
        position: relative;
        padding: 0.5rem;
        text-align: left;
        white-space: normal;
    }

        /* 4) inject header label before the value */
        table.responsive td::before {
            content: attr(data-label) ": ";
            font-weight: bold;
            display: block;
            margin-bottom: 0.25rem;
        }

    .dashboard-widget-tile {
        /*box-shadow: 3px 2px 9px 1px rgba(0, 0, 0, 0.3);*/
    }


        #mobileDrawer.open {
            left: 0;
        }
    /* Overlay to darken the background when drawer is open */
    .mobile-drawer-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }

        .mobile-drawer-overlay.show {
            display: block;
        }
    /* Hide desktop navbar on mobile */
    .desktop-navbar {
        display: none;
    }

    .left-drawer,
    #leftDrawer {
        z-index: 200002 !important;
    }

    #overlay.show,
    .mobile-drawer-overlay.show,
    #drawerOverlay.show {
        left: 250px !important;
        width: calc(100% - 250px) !important;
        z-index: 200001 !important;
    }
}

@media (min-width: 768px) {

    .flx-main-content,
    #tab-content {
        margin-left: 28px;
    }

    .products-table {
        height: 31vh;
    }

    /*larger/greater than 992px*/
    /* Disable all Bootstrap transitions for medium and bigger screens*/

    *:not(.force-animation),
    *:not(.force-animation)::before,
    *:not(.force-animation)::after {
        transition: none !important;
        animation: none !important;
    }

    .flx-wrapper {
        min-height: 100vh;
        padding-left: 5px;
        padding-right: 5px;
    }

    .mln-md-5{
        margin-left:-5px
    }

    .ml-4-md {
        margin-left: 4px
    }

    .ml-10-md {
        margin-left: 10px
    }

    /* On desktop, hide mobile drawer elements */
    #mobileDrawer, .mobile-drawer-overlay {
        display: none;
    }

    .dashboard-widget-conatiner {
        margin-right: -107px !important;
    }
}



/* Title Bar Styles */
#titlebar {
    -webkit-app-region: drag;
    background-color: #0078d7;
    color: white;
    height: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: sans-serif;
    user-select: none;
}

    #titlebar .window-controls {
        display: flex;
    }

        #titlebar .window-controls button {
            -webkit-app-region: no-drag;
            background: transparent;
            border: none;
            color: white;
            width: 45px;
            height: 100%;
            cursor: pointer;
            outline: none;
            font-size: 14px;
        }

            #titlebar .window-controls button:hover {
                background-color: rgba(255,255,255,0.2);
            }

    #titlebar .title {
        font-size: 14px;
    }
/* Sidebar container */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    margin-top: 40px;
    width: 200px;
    height: 100%;
    background: #1d7faa;
    color: #ecf0f1;
    transition: width 0.3s ease;
    overflow: hidden;
}
    /* Minimal view: narrower width */
    .sidebar.collapsed {
        width: 52px;
    }
    /* Toggle button */
    .sidebar .toggle-btn {
        background: #1d7faa;
        border: none;
        color: #ecf0f1;
        width: 100%;
        height: 40px;
        cursor: pointer;
        outline: none;
        font-size: 18px;
    }
    /* Navigation items */
    .sidebar ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .sidebar ul li {
            position: relative;
        }

            .sidebar ul li a {
                display: flex;
                align-items: center;
                color: #ecf0f1;
                text-decoration: none;
                transition: background 0.2s;
            }

                .sidebar ul li a:hover {
                    background: #1abc9c;
                }

                .sidebar ul li a i {
                    font-size: 16px;
                    width: 30px;
                    text-align: center;
                }

                .sidebar ul li a span {
                    margin-left: 10px;
                    white-space: nowrap;
                }
    /* Hide text in collapsed mode */
    .sidebar.collapsed ul li a span {
        display: none;
    }

/* Main content area */
.main-content {
    margin-left: 200px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 60px;
}


/*sidebar styles*/
.flx-tooltip {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

    .flx-tooltip::after {
        content: attr(data-label); /* Get text from data-label */
        position: absolute;
        bottom: 120%; /* Adjust above the link */
        left: 50%;
        transform: translateX(-50%);
        background-color: black;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out;
    }

    .flx-tooltip:hover::after {
        opacity: 1;
        visibility: visible;
    }

/* Left Drawer Styles */
.left-drawer {
    position: fixed;
    top: 0;
    left: -250px; /* Initially hidden off-screen */
    width: 250px;
    height: 100%;
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: #ecf0f1;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 100001;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #1A252F;
}

.drawer-title {
    font-size: 1.2em;
    font-weight: bold;
}

.drawer-toggle-btn {
    background: transparent;
    border: none;
    color: #ecf0f1;
    font-size: 1.5em;
    cursor: pointer;
}

/* Menu & Submenu */
.left-drawer ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .left-drawer ul.menu li {
        border-bottom: 1px solid rgba(236, 240, 241, 0.2);
    }

        .left-drawer ul.menu li a {
            display: block;
            padding: 12px 15px;
            color: #ecf0f1;
            text-decoration: none;
            transition: background 0.2s ease;
        }

.left-drawer .dropdown-item {
    color: black !important;
}

.left-drawer ul/menu li a:hover {
    background: rgba(236, 240, 241, 0.1);
}

.left-drawer ul.submenu {
    list-style: none;
    padding-left: 15px;
    display: none;
}

.left-drawer ul.menu li.open > .submenu {
    display: block;
}

/* Drawer Tab (small visible button when drawer is closed) */
.drawer-tab {
    position: fixed;
    right: 10px;
    top: 3px;
    width: 40px;
    height: 45px;
    background: #1d7faa;
    color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
}


/* Overlay for when the drawer is open */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 99999;
}

.overlay.show {
    display: block;
}

.left-drawer.open {
    left: 0;
}
.dashboard-widget-tile {
    margin: 5px !important;
}

<style >
/* ===== Desktop Tab System (existing implementation) ===== */
.desktop-tabs .tab-content {
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
}

/* Each mobile tab starts off-screen (below the view) with 0 opacity */
.mobile-tab {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateY(0);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.5s ease-out;
}
    /* The active mobile tab slides from bottom to top and fades in */
    .mobile-tab.active {
        transform: translateY(-100%);
        opacity: 1;
    }

/* Mobile tab header with light blue background and back arrow */
.mobile-tab-header {
    background-color: #ADD8E6; /* light blue */
    padding: 10px;
    display: flex;
    height:42px;
    align-items: center;
}

    .mobile-tab-header .back-button {
        cursor: pointer;
        margin-right: 10px;
        font-size: 1.5rem;
    }

    .mobile-tab-header .tab-title {
        flex-grow: 1;
        text-align: center;
        font-weight: bold;
        font-size: 1.25rem;
    }

/* ===================================================
   Dashtic-inspired Page & Table UI (centralized)
   =================================================== */

/* --- Page Header with breadcrumb --- */
.flx-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 8px 0 10px 0;
    border-bottom: 2px solid #e2e8f0;
}

.flx-page-header .flx-page-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.flx-breadcrumb {
    font-size: 0.78rem;
    color: #718096;
}

    .flx-breadcrumb a {
        color: #3c8faa;
        text-decoration: none;
    }

    .flx-breadcrumb a:hover {
        text-decoration: underline;
    }

    .flx-breadcrumb .flx-sep {
        margin: 0 5px;
        color: #a0aec0;
    }

/* --- Generic card panel --- */
.flx-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.09), 0 0 0 1px rgba(0,0,0,0.04);
    margin-bottom: 14px;
    overflow: hidden;
}

.flx-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    background: #f7fafc;
    border-bottom: 2px solid #3c8faa;
}

    .flx-card-header .flx-card-title {
        font-size: 0.82rem;
        font-weight: 700;
        color: #2d3748;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.flx-card-body {
    padding: 12px 16px 8px 16px;
}

/* --- Table wrapper card --- */
.flx-table-wrapper {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.09), 0 0 0 1px rgba(0,0,0,0.04);
    margin-bottom: 0;
    overflow: hidden;
}

.flx-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    background: #f7fafc;
    border-bottom: 2px solid #3c8faa;
}

    .flx-table-header .flx-table-title {
        font-size: 0.82rem;
        font-weight: 700;
        color: #2d3748;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .flx-table-header .flx-record-count {
        font-size: 0.76rem;
        color: #718096;
        background: #edf2f7;
        padding: 2px 10px;
        border-radius: 10px;
        font-weight: 600;
    }

/* --- Enhanced table --- */
.table.flx-table {
    margin-bottom: 0;
}

    .table.flx-table thead tr th {
        background: #2d3748 !important;
        color: #fff !important;
        font-size: 0.76rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        border-color: #4a5568 !important;
        padding: 10px 12px;
        white-space: nowrap;
    }

    .table.flx-table tbody tr {
        transition: background 0.12s;
    }

        .table.flx-table tbody tr:hover {
            background: #ebf8ff !important;
        }

        .table.flx-table tbody tr.selected {
            background: #bee3f8 !important;
        }

    .table.flx-table tbody td {
        vertical-align: middle;
        font-size: 0.84rem;
        padding: 7px 12px;
        color: #4a5568;
    }

/* Row index badge */
.flx-row-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #ebf8ff;
    color: #3c8faa;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Icon action button inside table rows */
.btn-icon-action {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #718096;
    padding: 3px 9px;
    font-size: 1rem;
    border-radius: 3px;
    transition: background 0.12s, color 0.12s;
    line-height: 1.4;
}

    .btn-icon-action:hover {
        background: #edf2f7;
        color: #2d3748;
        border-color: #cbd5e0;
    }

/* --- Pagination bar --- */
.flx-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
    flex-wrap: wrap;
    gap: 8px;
}

    .flx-pagination-bar .flx-page-size-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .flx-pagination-bar .flx-page-size-group label {
            margin: 0;
            font-size: 0.8rem;
            color: #718096;
            white-space: nowrap;
            font-weight: 600;
        }

        .flx-pagination-bar .flx-page-size-group .form-control {
            width: 70px !important;
            font-size: 0.8rem !important;
            padding: 3px 6px !important;
            height: auto !important;
        }

    .flx-pagination-bar .pagination {
        margin: 0;
    }

        .flx-pagination-bar .pagination .page-link {
            border-radius: 3px !important;
            margin: 0 2px;
            font-size: 0.8rem;
            padding: 4px 10px;
            color: #3c8faa;
            border-color: #e2e8f0;
        }

        .flx-pagination-bar .pagination .page-item.active .page-link {
            background: #3c8faa !important;
            border-color: #3c8faa !important;
            color: #fff !important;
        }

        .flx-pagination-bar .pagination .page-item.disabled .page-link {
            color: #a0aec0;
        }
