@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';
}
.saudi_riyal {
    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;
    white-space: break-spaces;
    line-height: 1.7;

}

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;
 }


 /* product price information for pos start */
/* .product-info-container {
    background: #2d3748; 
    border-radius: 8px;
    padding: 24px;
    color: #e2e8f0;
    margin-top: 20px;
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    font-weight: 600;
    color: #cbd5e1;
    font-size: 14px;
}

.info-value {
    font-weight: 500;
    color: #f1f5f9;
    font-size: 14px;
}

.last-prices-section {
    border-top: 1px solid #4a5568;
    padding-top: 16px;
}

.last-prices-header {
    font-weight: 700;
    font-size: 16px;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.last-prices-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.last-prices-grid > div {
    font-size: 13px;
    padding: 8px;
    background: #1a202c;
    border-radius: 4px;
    text-align: center;
} */

/* Responsive */
/* @media (max-width: 768px) {
    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .last-prices-grid {
        grid-template-columns: repeat(3, 1fr);
    }
} */
/* product price information for pos end */

/* product price information for pos start */


.product-info-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 0;
    margin-top: 20px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.product-info-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.product-info-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-info-title i {
    font-size: 20px;
}

.product-info-content {
    padding: 24px;
}

.product-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.info-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.info-value.highlight {
    color: #7c3aed;
}

.last-prices-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-top: 8px;
}

.last-prices-header {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.last-prices-header::before {
    content: "📊";
    font-size: 18px;
}

.last-prices-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.price-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.price-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.price-amount {
    font-size: 16px;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 6px;
}

.price-date {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .last-prices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .last-prices-grid {
        grid-template-columns: 1fr;
    }
}
/* product price information for pos end */



/* ====================================================================
   MODERN POS MODAL STYLING - START
   Copy from here for production deployment
   ==================================================================== */
/* modern pos modal styling start */
/* Modal Width - Reduced from default large */
.row_edit_product_price_model .modal-dialog {
    width: 900px;
    max-width: 95%;
}

/* Modal Styling - Ultra Compact */
.row_edit_product_price_model .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.row_edit_product_price_model .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 16px 16px 0 0;
}

.row_edit_product_price_model .modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.row_edit_product_price_model .modal-body {
    background: #f8fafc;
    padding: 0;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0;
    max-height: 640px; /* Increased from 500px to better utilize screen space */
    overflow: hidden;
    border-radius: 0 0 16px 16px; /* Rounded bottom corners to match modal-content */
}

/* Left Panel - Form Fields - Ultra Compact */
.modal-left-panel {
    padding: 12px;
    padding-bottom: 16px; /* Extra bottom padding for rounded corner */
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    max-height: 640px; /* Increased from 500px */
    border-radius: 0 0 0 16px; /* Rounded bottom-left corner */
}

/* Right Panel - Product Info with Light Background - Ultra Compact */
.modal-right-panel {
    padding: 12px;
    padding-bottom: 16px; /* Extra bottom padding for rounded corner */
    background: #f8fafc;
    overflow-y: auto;
    max-height: 640px; /* Increased from 500px */
    border-radius: 0 0 16px 0; /* Rounded bottom-right corner */
}

/* Form Section Cards with Gradient Headers - Ultra Compact */
.form-section-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-section-title {
    padding: 6px 10px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-section-title i {
    font-size: 10px;
}

/* Gradient color variants for different sections */
.form-section-card.pricing .form-section-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.form-section-card.discount .form-section-title {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.form-section-card.options .form-section-title {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.form-section-card.description .form-section-title {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.form-section-body {
    padding: 8px;
}

/* Compact Info Cards for Right Panel with Light Theme */
.info-card-compact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.info-card-compact:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.info-card-compact-label {
    color: #64748b;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

.info-card-compact-value {
    color: #1e293b;
    font-weight: 700;
    font-size: 13px;
}

.right-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* Product Info 2-Column Grid */
.product-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.product-info-grid .info-card-compact {
    margin-bottom: 0;
}

/* Modern Form Group - Ultra Compact */
.modern-form-group {
    margin-bottom: 8px;
    width: 100%;
}

.modern-form-group:last-child {
    margin-bottom: 0;
}

.modern-form-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Modern Input Styling - Ultra Compact */
.modern-form-input,
.modern-form-select,
.modern-form-textarea {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.modern-form-textarea {
    min-height: 50px;
    resize: vertical;
}

/* Compact Last 5 Prices for Right Panel on Dark Background */
.last-prices-compact {
    margin-top: 16px;
}

.last-prices-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.price-pill-compact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
    font-size: 11px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.price-pill-compact:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.price-pill-compact-amount {
    font-weight: 700;
    color: #6366f1;
    font-size: 12px;
    margin-bottom: 2px;
}

.price-pill-compact-date {
    color: #64748b;
    font-size: 10px;
}

.modern-form-input:focus,
.modern-form-select:focus,
.modern-form-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modern-form-input:hover,
.modern-form-select:hover,
.modern-form-textarea:hover {
    border-color: #cbd5e1;
}

.modern-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select Dropdown Custom Arrow */
.modern-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

/* Info Text */
.modern-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
}

.modern-info-label {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.modern-info-value {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

/* Two Column Grid - Ultra Compact */
.modern-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Help Block - Hidden for Space Saving */
.modern-help-block {
    display: none;  /* Hidden to save vertical space */
}

/* ============================================
   ULTRA-COMPACT MODAL - HEADER CLOSE BUTTON
   ============================================ */
/* Enlarged header close button (footer removed) */
.row_edit_product_price_model .modal-header .close {
    font-size: 32px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    opacity: 0.6 !important;
    padding: 0 !important;
    margin-top: -2px !important;
}

.row_edit_product_price_model .modal-header .close:hover {
    opacity: 1 !important;
}
/* ============================================ */

/* Modern Buttons - Ultra Compact */
.modern-btn-primary {
    background: #6366f1;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

.modern-btn-primary:hover {
    background: #4f46e5;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.modern-btn-secondary {
    background: #ffffff;
    color: #64748b;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
}

.modern-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* Responsive */
@media (max-width: 768px) {
    .row_edit_product_price_model .modal-dialog {
        width: 95%;
        margin: 10px auto;
    }

    .row_edit_product_price_model .modal-header,
    .row_edit_product_price_model .modal-footer {
        padding: 16px;
    }

    .row_edit_product_price_model .modal-body {
        display: block;
        padding: 12px;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }

    .modal-left-panel,
    .modal-right-panel {
        border-right: none;
        padding: 12px;
        max-height: none;
        overflow-y: visible;
    }

    .form-section-card {
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .form-section-body {
        padding: 12px;
    }

    .form-section-title {
        padding: 10px 12px;
        font-size: 12px;
    }

    .modern-form-group {
        margin-bottom: 14px;
    }

    .modern-form-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .modern-form-input,
    .modern-form-select,
    .modern-form-textarea {
        padding: 10px 12px;
        font-size: 14px;
        width: 100%;
    }

    .modern-info-row {
        padding: 10px 12px;
        font-size: 13px;
    }

    .modern-info-label {
        font-size: 12px;
    }

    .modern-info-value {
        font-size: 14px;
    }

    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .last-prices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .row_edit_product_price_model .modal-dialog {
        width: 98%;
        margin: 5px auto;
    }

    .row_edit_product_price_model .modal-header {
        padding: 12px;
    }

    .row_edit_product_price_model .modal-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .row_edit_product_price_model .modal-body {
        padding: 8px;
    }

    .form-section-card {
        margin-bottom: 10px;
    }

    .form-section-body {
        padding: 10px;
    }

    .form-section-title {
        padding: 8px 10px;
        font-size: 11px;
    }

    .modern-form-label {
        font-size: 11px;
    }

    .modern-form-input,
    .modern-form-select,
    .modern-form-textarea {
        padding: 8px 10px;
        font-size: 13px;
        width: 100%;
    }

    .modern-info-row {
        padding: 8px 10px;
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .modern-info-label,
    .modern-info-value {
        font-size: 12px;
    }

    .last-prices-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .modern-btn-secondary {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Keep discount 2-column until very small screens */
@media (min-width: 201px) and (max-width: 768px) {
    .modern-two-col-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* Only collapse discount to 1 column on extremely small screens */
@media (max-width: 200px) {
    .modern-two-col-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
/* modern pos modal styling end */
