@font-face {
    font-family: 'saudi_riyal';
    src: url('../fonts/saudi-riyal/fonts/saudi_riyal.woff2') format('woff2'),
        url('../fonts/saudi-riyal/fonts/saudi_riyal.woff') format('woff'),
        url('../fonts/saudi-riyal/fonts/saudi_riyal.ttf') format('truetype');
    unicode-range: U+E900;
    font-weight: normal;
    font-style: normal;
}
html {
  scroll-behavior: smooth;
}
body {
    font-family: 'saudi_riyal', 'Open Sans', sans-serif !important;
}
.tax_diff {
    font-family: 'saudi_riyal';
}

.riyal_symbol::before {
    content: '\e900';
    font-family: 'saudi_riyal' !important;
    font-size: inherit;
    color: inherit;
}

.icon-saudi_riyal::before {
    content: '\e900';
    font-family: 'saudi_riyal' !important;
    font-size: inherit;
    color: inherit;
}

[data-currency_symbol='true'] {
    font-family: 'saudi_riyal';
}

.new_subscriptions {
    font-family: 'saudi_riyal';
}

.product_name_container {
    display: flex;
    background: #eeeeee;
}
.product_name_wrapper {
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9d3d3;
    border-right-width: 0;
}

#purchase_price {
    display: none;
    border: 1px solid #ddd !important;
    border-top: 0;
    padding: 0.5em;
    position: absolute;
    top: 0;
    right: -243px;
    top: 40%;
}

@media print {
    #purchase_price {
        display: none !important;
        position: static !important;
    }
}


.header_btn_margin {
    margin: 5px;
}

.m-8 {
    margin: 8px !important;
}
.m-5 {
    margin: 5px !important;
}

/* .logoArea {
        display: none;
    }

    @media print {
        .logoArea {
            display: flex !important;
            position: fixed;

            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            z-index: -1;
        }


        .logoArea .img {
            opacity: 0.2!important;

        }

        .logoArea .img img {
            width: 250px;
            height: 250px;
        }


    } */

label.required {
    background-image: url(/images/required_star.gif);
    background-position: right;
    background-repeat: no-repeat;
    padding-right: 15px;
}

span.required {
    padding-right: 15px;
}

.lato {
    font-family: 'Lato', sans-serif;
}

.openSans {
    font-family: 'Open Sans', sans-serif;
}

/* Take away and res table  */

/* Visual indication for disabled state */
.disabled-hover {
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Hover effect when disabled */
.disabled-hover:hover {
    background-color: #f0f0f0;
}

.swal-overlay--show-modal .swal-modal {
    opacity: 1;
    pointer-events: auto;
    box-sizing: border-box;
    -webkit-animation: showSweetAlert 0.3s;
    animation: showSweetAlert 0.3s;
    will-change: transform;
    font-family: var(--openSans) !important;
    /* font-weight: bolder; */
}

.translate_container {
    display: flex;
    justify-content: space-between;
    margin-top: -0.4rem;
    align-items: center;
}

#live-clock {
    font-family: var(--orbitron) !important;
}

.font-[Orbitron] {
    font-family: 'Orbitron', sans-serif !important;
}

.count_times {
    font-weight: bold;
    /* Tailwind: font-bold */
    font-size: 0.95rem;
    /* Example size */
    color: deepskyblue;
    /* Tailwind: text-sky-500 ? */
}

/* Fullscreen modal in Bootstrap 3 */
.mobileScannerModal .modal-dialog {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
.mobileScannerModal .modal-content {
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}
.mobileScannerModal .modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes scanAnimation {
    0% {
        top: 0;
    }
    100% {
        top: 98%;
    }
}

#scanner-container video {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}


 

         #update_container {
            display: inline-block;
        }


        #update_container .checkbox {
            display: none;
        }

        #update_container .checkbox+.button {
            position: relative;
            display: inline-block;
            padding: 6px 21px 9px 21px;
            border: 2px solid #6b7280;
            background-color: #6b7280;
            color: #d1d5db;
            font-size: 14px;
            cursor: pointer;
            /* border-radius: 5px; */
            transition: background-color 0.3s;
        }

        #update_container .checkbox+.button:hover {
            background-color: #2980b9;
        }

        /* css content before with cross sing */




        #update_container .checkbox+.button::before {
            content: "\00d7";
            position: absolute;
            color: orangered;
            font-size: 26px;
            top: -6px;
            left: 0px;
            /* width: 100%; */
            height: 100%;
            text-align: center;
        }

        #update_container .checkbox:checked+.button::before {
            content: "✓";
            position: absolute;
            color: #2cce89;
            font-size: 26px;
            top: -6px;
            left: 0px;
            /* width: 100%; */
            height: 100%;
            text-align: center;
        }


        input.select2-search__field {
    background: #fff!important;
}

.item_last_5_selling_prices {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}
.item_last_5_selling_prices li {
    margin-bottom: 4px;
    line-height: 1.3;
}

#item_details_box_show_hide{
            max-width: 100%;
            height: 210px; /* ✅ Fixed height */
            overflow-y: auto; /* ✅ Scroll inside if needed */
            padding: 16px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
            background-color: #fff;
            color: #1f2937;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            margin-bottom: 2rem;
}

.item_details_box.flat-dark {
        background-color: #1e293b !important;  /* Slate dark */
        border-radius: 10px !important;
        padding: 20px !important;
        color: #f1f5f9 !important; /* Light text */
        font-size: 14px !important;
        border: 1px solid #334155 !important;
    }

    .item_details_box.flat-dark th {
        color: #e2e8f0 !important;
        font-weight: 600 !important;
        padding: 8px 10px !important;
    }

    .item_details_box.flat-dark td {
        color: #cbd5e1 !important;
        padding: 8px 10px !important;
    }

    .item_details_box.flat-dark table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .item_details_box.flat-dark tr:not(:last-child) {
        border-bottom: 1px dashed #334155 !important;
    }

    .item_details_box.flat-dark .last-5-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 10px;
    }

    .item_details_box.flat-dark .last-5-grid div {
        background-color: transparent;
        padding: 4px;
        font-size: 13px;
    }


    
    .drag-ghost {
    background-color: #fef3c7 !important; /* amber-100 */
    opacity: 0.8;
    border: 2px dashed #facc15 !important;
}
.drag-active {
    background-color: #e0f2fe !important; /* sky-100 */
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.4);
}
.drag-in-motion {
    cursor: grabbing !important;
}









.row.pos_form_totals {
    min-height: 200px;
}

@media print {
    .row.pos_form_totals {
        min-height: auto !important;
        height: auto !important;
    }
}


input.select2-search__field {
    background-color: white !important;
}

.col_sm_wrapper {
    display: grid;

    gap: 1rem;
}

.col_sm_wrapper {
    /* display: flex !important; */
    align-items: stretch !important;
    display: grid !important;

    gap: 1rem;
}

.col_sm_wrapper > div {
    flex: 1 !important;
    display: flex;
    flex-direction: column;
}

.col_sm_wrapper > div > div {
    flex-grow: 1;
}

@media (min-width: 567px) {
    .col_sm_wrapper {
           grid-template-columns: 1fr 0.5fr !important;
    }
}

ul#box_menu_list li.custom_divider span {
    color: #c8dbfc!important;
    font-family: 'Roboto',sans-serif;
    font-weight: 550!important;
    opacity: 80%!important;

}

ul#box_menu_list li.custom_divider .rect {

    width: 1rem!important;

}

ul#box_menu_list li a span {
    font-family: 'Lato',sans-serif!important;
    font-size: 1.4rem!important;
    font-weight: 550!important;
}
.sidebar-menu>li>a {
    font-weight: 400!important;
    padding: 10px 16px 10px 5px!important;
}

ul#box_menu_list li.custom_divider {
    padding: 22px 0!important;
}

ul#box_menu_list li a i {
    color: #c2c2c5!important;
    margin-right: .5rem!important;
    margin-top: 2px!important;
}

/* .main-sidebar{
    width: 240px!important;
} */
/* .content-wrapper, .main-footer {
    margin-left: 240px;
}

.main-header .navbar {
    margin-left: 240px;

} */

/* .main-header .logo {
    width: 240px!important;

} */

#box_menu_list li.custom_divider span {
    font-size: 1.2rem!important;

}

/* table design */

 .customer-profitability-table {
        border-collapse: separate;
        border-spacing: 0;
        margin-bottom: 0;
    }

    .customer-profitability-table .table-header-gray th {
        background-color: #f5f5f5;
        border: 1px solid #ddd;
        font-weight: 600;
        padding: 12px 8px;
        color: #333;
    }

    .customer-profitability-table .table-footer-gray th {
        background-color: #f5f5f5;
        border: 1px solid #ddd;
        font-weight: bold;
        padding: 12px 8px;
        color: #333;
    }

    .customer-profitability-table tbody tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .customer-profitability-table tbody tr:hover {
        background-color: rgba(0, 0, 0, 0.02);
    }

    .customer-profitability-table tbody td {
        padding: 10px 8px;
        border-left: 1px solid rgba(0, 0, 0, 0.03);
        border-right: 1px solid rgba(0, 0, 0, 0.03);
        vertical-align: middle;
    }

    .customer-profitability-table tbody td:first-child {
        border-left: 1px solid #ddd;
    }

    .customer-profitability-table tbody td:last-child {
        border-right: 1px solid #ddd;
    }

    .table-bordered {
        border: 1px solid #ddd !important;
    }

    /* Print-specific styles */
    @media print {
        .customer-profitability-table {
            width: 100% !important;
            font-size: 12px !important;
            table-layout: fixed !important;
        }

        .customer-profitability-table tbody tr:hover {
            background-color: transparent !important;
        }

        .customer-profitability-table .table-header-gray th,
        .customer-profitability-table .table-footer-gray th {
            background-color: #f5f5f5 !important;
            -webkit-print-color-adjust: exact;
            color-adjust: exact;
            padding: 8px 6px !important;
            font-size: 11px !important;
            font-weight: bold !important;
            word-wrap: break-word !important;
        }

        .customer-profitability-table tbody td {
            padding: 7px 5px !important;
            font-size: 11px !important;
            word-wrap: break-word !important;
            overflow: hidden !important;
        }

        /* Hide customer column in print (first column) */
        .customer-profitability-table th:nth-child(1),
        .customer-profitability-table td:nth-child(1) {
            display: none !important;
        }

        /* Column width optimization for 12 columns (without customer column) */
        .customer-profitability-table th:nth-child(2),
        .customer-profitability-table td:nth-child(2),
        .customer-profitability-table th:nth-child(3),
        .customer-profitability-table td:nth-child(3),
        .customer-profitability-table th:nth-child(4),
        .customer-profitability-table td:nth-child(4),
        .customer-profitability-table th:nth-child(5),
        .customer-profitability-table td:nth-child(5),
        .customer-profitability-table th:nth-child(6),
        .customer-profitability-table td:nth-child(6),
        .customer-profitability-table th:nth-child(7),
        .customer-profitability-table td:nth-child(7),
        .customer-profitability-table th:nth-child(8),
        .customer-profitability-table td:nth-child(8),
        .customer-profitability-table th:nth-child(9),
        .customer-profitability-table td:nth-child(9),
        .customer-profitability-table th:nth-child(13),
        .customer-profitability-table td:nth-child(13) {
            width: 9% !important;
            /* Financial columns and Avg Value - increased from 7% */
        }

        .customer-profitability-table th:nth-child(10),
        .customer-profitability-table td:nth-child(10),
        .customer-profitability-table th:nth-child(11),
        .customer-profitability-table td:nth-child(11) {
            width: 7% !important;
            /* Margin percentages - increased from 5% */
        }

        .customer-profitability-table th:nth-child(12),
        .customer-profitability-table td:nth-child(12) {
            width: 6% !important;
            /* Transactions count - increased from 4% */
        }

        /* Ensure text fits in cells */
        .customer-profitability-table .text-right {
            text-align: right !important;
        }

        .customer-profitability-table .text-center {
            text-align: center !important;
        }

        /* Optimized A4 page layout */
      @media print {
    body {
        margin: 0 !important;
        padding: 0 !important;
    }
}

        /* Print layout optimizations */
        body {
            font-family: Arial, sans-serif !important;
            line-height: 1.2 !important;
        }

        /* Optimize table responsive wrapper for print */
        .table-responsive {
            border: none !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: visible !important;
        }

        /* Ensure table doesn't break across pages */
        .customer-profitability-table {
            page-break-inside: avoid;
            margin: 0 !important;
            border-collapse: collapse !important;
            width: 100% !important;
        }

        .customer-profitability-table thead {
            display: table-header-group;
        }

        .customer-profitability-table tfoot {
            display: table-footer-group;
        }

        /* Optimize customer info card for print */
        .customer-info-panel {
            margin-bottom: 10px !important;
            page-break-inside: avoid;
        }

        .customer-info-panel .panel-body {
            padding: 10px !important;
        }

        .customer-info-table td {
            padding: 3px 5px !important;
            font-size: 10px !important;
        }

        /* Report header optimization */
        .box-header {
            padding: 8px 10px !important;
        }

        .box-body {
            padding: 10px !important;
        }

        /* Hide unnecessary elements in print */
        .btn,
        .form-control,
        .input-group,
        .box-tools,
        .pagination,
        .dataTables_info,
        .dataTables_paginate,
        .alert,
        .breadcrumb {
            display: none !important;
        }



    }



    /* any table design */

     .custome_table {
        border-collapse: separate;
        border-spacing: 0;
        margin-bottom: 0;
    }

    .custome_table .table-header-gray th {
        background-color: #f5f5f5;
        border: 1px solid #ddd!important;
        font-weight: 600!important;
        padding: 12px 8px!important;
        color: #333!important;
    }

    .custome_table .table-footer-gray th {
        background-color: #f5f5f5!important;
        border: 1px solid #ddd!important;
        font-weight: bold!important;
        padding: 12px 8px!important;
        color: #333!important;
    }

    .custome_table tbody tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .custome_table tbody tr:hover {
        background-color: rgba(0, 0, 0, 0.02);
    }

    .custome_table tbody td {
        padding: 10px 8px;
        border-left: 1px solid rgba(0, 0, 0, 0.03);
        border-right: 1px solid rgba(0, 0, 0, 0.03);
        vertical-align: middle;
    }

    .custome_table tbody td:first-child {
        border-left: 1px solid #ddd;
    }

    .custome_table tbody td:last-child {
        border-right: 1px solid #ddd;
    }

    .table-bordered {
        border: 1px solid #ddd !important;
    }


    @media print{
          .custome_table {
        border-collapse: separate;
        border-spacing: 0;
        margin-bottom: 0;
    }

    .custome_table .table-header-gray th {
        background-color: #f5f5f5;
        border: 1px solid #ddd!important;
        font-weight: 600!important;
        padding: 12px 8px!important;
        color: #333!important;
    }

    .custome_table .table-footer-gray th {
        background-color: #f5f5f5!important;
        border: 1px solid #ddd!important;
        font-weight: bold!important;
        padding: 12px 8px!important;
        color: #333!important;
    }

    .custome_table tbody tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .custome_table tbody tr:hover {
        background-color: rgba(0, 0, 0, 0.02);
    }

    .custome_table tbody td {
        padding: 10px 8px;
        border-left: 1px solid rgba(0, 0, 0, 0.03);
        border-right: 1px solid rgba(0, 0, 0, 0.03);
        vertical-align: middle;
    }

    .custome_table tbody td:first-child {
        border-left: 1px solid #ddd;
    }

    .custome_table tbody td:last-child {
        border-right: 1px solid #ddd;
    }

    .table-bordered {
        border: 1px solid #ddd !important;
    }

    }


    



/* Fix sidebar overflow for badges */
.sidebar-menu > li > a {
    overflow: visible !important;
    position: relative;
}

.sidebar-menu .treeview > a {
    position: relative;
    overflow: visible !important;
    display: flex !important;
    align-items: center;
}

/* Ensure dropdown text doesn't get cut off */
.sidebar-menu li.treeview > a > span:first-child {
    display: inline-flex !important;
    align-items: center;
    max-width: none !important;
    flex: 1;
}




/* Ensure the menu item containing badge displays properly */
.sidebar-menu li > a {
    display: block !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: initial !important;
}

/* For the specific inventory control centre item */
.sidebar-menu li.treeview > a span {
    white-space: normal !important;
    display: inline !important;
}




/* Fix for statement of account summary section */
.summary_bank_details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .summary_bank_details {
        grid-template-columns: 0.7fr 1fr;
    }
}

/* Ensure bank details section has minimum height even when empty */
.summary_bank_details > div:first-child {
    min-height: 150px;
}

/* Fix table layout in summary section */
.summary_bank_details table {
    width: 100%;
    table-layout: fixed;
}

.summary_bank_details td:first-child {
    width: 60%;
}

.summary_bank_details td:last-child {
    width: 40%;
    text-align: right;
}

div#ledger_table_wrapper .row ,
div#statement_table_wrapper .row,
div#sales_summary_table_wrapper .row,
div#credit_note_table_wrapper .row,
div#receivable_table_wrapper .row,
div#payment_summary_table_wrapper .row,
div#payment_summary_table_wrapper .row,
div#activity_report_table_wrapper .row,
div#aging_report_table_wrapper .row,
div#product_sell_report_table_wrapper .row,
div#product_purchase_report_table_wrapper .row,
div#payment_summary_table_wrapper .row,
div#sales_order_table_wrapper .row
 {
    border-width: 0;
    padding: 5px;
    display: flex;
    align-items: center;
}


ul#box_menu_list li {

    margin-right: 0!important;
}


/* ===================================
   Menu Open State Fix - Added January 13, 2025
   =================================== */
/* Ensure arrow points down when menu is open */
.sidebar-menu li.treeview.menu-open > a > .pull-right-container > .fa-angle-left {
    transform: rotate(-90deg);
}

/* Add transition for arrow rotation */
.sidebar-menu li.treeview > a > .pull-right-container > .fa-angle-left {
    transition: transform 0.3s ease-in-out;
}



 .fa-angle-left:before,
  .fa-angle-right:before,
  .pull-right-container i:before {
      font-family: "Font Awesome 5 Free" !important;
      font-weight: 900 !important;
  }


  /* * ===================================
   Menu Badge Styles - Added January 13, 2025
   =================================== */ */
.inventory-badge-new {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;

}

.inventory-badge-new.red {
    background-color: #dc3545;
    color: white;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

.inventory-badge-new.green {
    background-color: #28a745;
    color: white;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

.inventory-badge-new.blue {
    background-color: #007bff;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}

.inventory-badge-new.yellow {
    background-color: #ffc107;
    color: #333;
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

.inventory-badge-new.orange {
    background-color: #fd7e14;
    color: white;
    box-shadow: 0 1px 3px rgba(253, 126, 20, 0.3);
}

/* Menu badge item positioning */
.menu-badge-item {
    padding: 0 !important;
    margin-top: -10px !important;
    margin-bottom: 5px !important;
    list-style: none !important;
    pointer-events: none !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
}

.menu-badge-item span {
    margin-left: 45px;
    display: inline-block;

}

/* Badge base styles - NO transform animations, text stays static */
.inventory-badge-new {
    transition: box-shadow 0.3s ease-in-out;
    position: relative;
    z-index: 1;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transform: none !important; /* Badge never moves */
            padding:0.3rem 0.5rem;
            border-radius: 4px;
            font-style: italic;
            font-weight: 550;
            font-family: "roboto",sans-serif;
            letter-spacing: 0.5px;
}

.inventory-badge-new:hover {
    transform: none !important; /* No movement on hover */
    transition: box-shadow 0.3s ease-in-out;
}

/* Pure shadow pulse animation - shadow spreads outward */
@keyframes shadow-pulse-spread {
    0% {
        box-shadow:
            0 0 0 0 rgba(var(--badge-glow-color), 0.7),
            0 1px 2px rgba(0, 0, 0, 0.1),
            0 2px 4px rgba(0, 0, 0, 0.05);
    }
    70% {
        box-shadow:
            0 0 0 15px rgba(var(--badge-glow-color), 0),
            0 1px 2px rgba(0, 0, 0, 0.1),
            0 2px 4px rgba(0, 0, 0, 0.05);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(var(--badge-glow-color), 0),
            0 1px 2px rgba(0, 0, 0, 0.1),
            0 2px 4px rgba(0, 0, 0, 0.05);
    }
}

/* Smooth expanding glow animation */
@keyframes shadow-expand-smooth {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(var(--badge-glow-color), 0.4),
            0 0 0 0 rgba(var(--badge-glow-color), 0.3),
            0 0 0 0 rgba(var(--badge-glow-color), 0.2),
            0 1px 3px rgba(0, 0, 0, 0.12),
            0 2px 6px rgba(0, 0, 0, 0.08);
    }
    25% {
        box-shadow:
            0 0 0 5px rgba(var(--badge-glow-color), 0.3),
            0 0 0 10px rgba(var(--badge-glow-color), 0.2),
            0 0 0 15px rgba(var(--badge-glow-color), 0.1),
            0 1px 3px rgba(0, 0, 0, 0.12),
            0 2px 6px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow:
            0 0 0 10px rgba(var(--badge-glow-color), 0.2),
            0 0 0 20px rgba(var(--badge-glow-color), 0.1),
            0 0 0 30px rgba(var(--badge-glow-color), 0.05),
            0 1px 3px rgba(0, 0, 0, 0.12),
            0 2px 6px rgba(0, 0, 0, 0.08);
    }
    75% {
        box-shadow:
            0 0 0 15px rgba(var(--badge-glow-color), 0.1),
            0 0 0 25px rgba(var(--badge-glow-color), 0.05),
            0 0 0 35px rgba(var(--badge-glow-color), 0),
            0 1px 3px rgba(0, 0, 0, 0.12),
            0 2px 6px rgba(0, 0, 0, 0.08);
    }
}

/* Double ring pulse for more visible effect */
@keyframes double-ring-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(var(--badge-glow-color), 0.6),
            0 0 0 0 rgba(var(--badge-glow-color), 0.4),
            0 2px 4px rgba(0, 0, 0, 0.1);
    }
    40% {
        box-shadow:
            0 0 0 8px rgba(var(--badge-glow-color), 0.3),
            0 0 0 16px rgba(var(--badge-glow-color), 0.1),
            0 2px 4px rgba(0, 0, 0, 0.1);
    }
    80% {
        box-shadow:
            0 0 0 16px rgba(var(--badge-glow-color), 0),
            0 0 0 24px rgba(var(--badge-glow-color), 0),
            0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Badge-specific styles with shadow-only animations */
.inventory-badge-new.red {
    --badge-glow-color: 220, 53, 69;
    background: #dc3545;
    animation: shadow-pulse-spread 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow:
        0 0 0 0 rgba(220, 53, 69, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.inventory-badge-new.green {
    --badge-glow-color: 0,255,0;
    background: #28a745;


    animation: shadow-pulse-spread 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow:
        0 0 0 0 rgba(21, 195, 62, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.inventory-badge-new.blue {
    --badge-glow-color: 0, 123, 255;
    background: #007bff;
    animation: double-ring-pulse 2.5s ease-in-out infinite;
    box-shadow:
        0 0 0 0 rgba(0, 123, 255, 0.6),
        0 0 0 0 rgba(0, 123, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.inventory-badge-new.yellow {
    --badge-glow-color: 255, 193, 7;
    background: #ffc107;
    color: #333;
    animation: shadow-pulse-spread 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 0.5s;
    box-shadow:
        0 0 0 0 rgba(255, 193, 7, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.inventory-badge-new.orange {
    --badge-glow-color: 253, 126, 20;
    background: #fd7e14;
    animation:
        shadow-expand-smooth 2.8s ease-in-out infinite,
        double-ring-pulse 4s ease-in-out infinite;
    box-shadow:
        0 0 0 0 rgba(253, 126, 20, 0.6),
        0 0 0 0 rgba(253, 126, 20, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Simple fade-in entrance - no transform */
@keyframes badge-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.inventory-badge-new {
    animation: badge-fade-in 0.5s ease-out forwards;
    will-change: box-shadow, opacity;
}

/* Enhanced hover state - bigger shadow spread */
.inventory-badge-new:hover {
    box-shadow:
        0 0 0 3px rgba(var(--badge-glow-color), 0.3),
        0 0 0 6px rgba(var(--badge-glow-color), 0.2),
        0 0 0 9px rgba(var(--badge-glow-color), 0.1),
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Faster pulse on hover */
.sidebar-menu li.treeview:hover .inventory-badge-new.red,
.sidebar-menu li.treeview:hover .inventory-badge-new.yellow {
    animation-duration: 1.5s;
}

.sidebar-menu li.treeview:hover .inventory-badge-new.green,
.sidebar-menu li.treeview:hover .inventory-badge-new.orange {
    animation-duration: 2s;
}

.sidebar-menu li.treeview:hover .inventory-badge-new.blue {
    animation-duration: 1.8s;
}

/* Ensure text stays perfectly still */
.inventory-badge-new * {
    transform: none !important;
    animation: none !important;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

 .btn-default{
    padding:7px 9px!important;
 }
