@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, U+20C1;
    font-weight: normal;
    font-style: normal;
}
html {
  scroll-behavior: smooth;
}
body {
    font-family: 'saudi_riyal', 'Open Sans', sans-serif !important;
}
/* Ensure Saudi Riyal font is available on common elements that override body font-family */
table, table td, table th,
.form-control, .select2-container, .box, .box-body, .info-box-content,
.panel, .panel-body, .card, .card-body, .modal, .modal-body,
.stat-value, [class*="stat-value"], [class*="-value"],
.amount, .total, .balance, .payment, .price, .currency {
    font-family: 'saudi_riyal', system-ui, -apple-system, 'Open Sans', sans-serif;
}
.tax_diff {
    font-family: 'saudi_riyal';
}

.riyal_symbol::before {
    content: '\20C1';
    font-family: 'saudi_riyal' !important;
    font-size: inherit;
    color: inherit;
}

.icon-saudi_riyal::before {
    content: '\20C1';
    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 .rect {
    width: 4px !important;
    min-width: 4px !important;
    height: 18px !important;
    border-radius: 2px !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
}

ul#box_menu_list li.custom_divider {
    padding: 14px 8px 4px 8px !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    border-top: 1px solid rgba(255,255,255,0.06);
    overflow: hidden !important;
    box-sizing: border-box !important;
}
ul#box_menu_list li.custom_divider:first-of-type {
    border-top: none !important;
    margin-top: 0 !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;

} */

/* 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.
           BS3 `.table-responsive` is being migrated to the Tailwind `.overflow-x-auto`
           utility; both must stay in this selector or a converted wrapper keeps
           `overflow-x: auto` when printed and clips wide tables at the page edge. */
        .table-responsive,
        .overflow-x-auto {
            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,
        .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 {
        /* gray bg/color/border removed — falls to sk-dt navy (skyline-erp.css §4/§11) */
        font-weight: 600!important;
        padding: 12px 8px!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;
}


 .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 {
    /* green-700: white on #28a745 is 3.13:1, below the 4.5:1 this small label needs.
       #15803d is 5.02:1 and keeps white text, matching the .red variant (4.53:1). */
    background-color: #15803d;
    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;
    /* green-700 — this rule duplicates the one above and, being later, wins. White on
       #28a745 is 3.13:1, below the 4.5:1 WCAG 1.4.3 needs for this small label. */
    background: #15803d;


    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 */

/* ================================================================
   Section-Specific Sidebar Divider Colors (Feb 2026)
   ================================================================ */
li.custom_divider.section-sales .rect      { background: #ffb600 !important; }
li.custom_divider.section-inventory .rect  { background: #17a2b8 !important; }
li.custom_divider.section-financial .rect  { background: #6f42c1 !important; }
li.custom_divider.section-treasury .rect   { background: #20c997 !important; }
li.custom_divider.section-hrm .rect        { background: #e83e8c !important; }
li.custom_divider.section-accounting .rect { background: #fd7e14 !important; }
li.custom_divider.section-assets .rect     { background: #007bff !important; }
li.custom_divider.section-reports .rect    { background: #6c757d !important; }
li.custom_divider.section-kitchen .rect    { background: #dc3545 !important; }
li.custom_divider.section-modules .rect    { background: #ffc107 !important; }
li.custom_divider.section-settings .rect,
li.custom_divider.section-backup .rect,
li.custom_divider.section-recycle .rect    { background: #adb5bd !important; }

/* Additional sections */
li.custom_divider.section-trade .rect         { background: #f59e0b !important; }
li.custom_divider.section-crm .rect           { background: #8b5cf6 !important; }
li.custom_divider.section-project .rect       { background: #14b8a6 !important; }
li.custom_divider.section-manufacturing .rect { background: #f97316 !important; }
li.custom_divider.section-essentials .rect    { background: #3b82f6 !important; }

/* Purple badge for Financial Centre */
.inventory-badge-new.purple {
    --badge-glow-color: 111, 66, 193;
    background: #6f42c1;
    color: white;
    animation: shadow-pulse-spread 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 0 0 rgba(111, 66, 193, 0.7), 0 1px 2px rgba(0,0,0,0.1);
}

/* Badge overflow safety */
.menu-badge-item .inventory-badge-new {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

/* Show FontAwesome icons in treeview sub-menus (override app.css:1471
   `.treeview-menu i{display:none!important}` — app.css is a separate
   frozen legacy layer, NOT superseded by sk-sidebar.css, so the
   display toggle stays; sizing/color now come from sk-sidebar.css §6). */
.treeview-menu > li > a > i.fa,
.treeview-menu > li > a > i.fas,
.treeview-menu > li > a > i.far,
.treeview-menu > li > a > i.fab {
    display: inline-block !important;
}
/* Remove the → arrow when real icons are shown (app.css:1478
   `.treeview-menu a::before{content:"\2192 "}` — same reasoning). */
.treeview-menu > li > a::before {
    content: none !important;
}

/* ============================================================
   SYSTEM-WIDE DESIGN UPGRADE — sky-card, DataTable, Modal, Content-Header
   Added: 2026-02-27
   ============================================================ */

/* ──────────────────────────────────────────────────────────────
   Part 1: sky-card — Reset old AdminLTE .box for widget.blade.php
   ────────────────────────────────────────────────────────────── */
.sky-card.box {
    border: none;
    border-top: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    margin-bottom: 14px;
}
.sky-card .box-header {
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    padding: 10px 18px;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.sky-card .sky-card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.sky-card .sky-card-title-group > i,
.sky-card .sky-card-title-group > .fa {
    color: #1e3a5f;
    font-size: 18px;
}
.sky-card .box-header .box-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}
.sky-card .box-header .box-tools {
    float: none;
    margin: 0;
}
.sky-card .box-header .box-tools .btn {
    border-radius: 8px;
}
.sky-card .sky-card-help {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
    width: 100%;
}
.sky-card .box-body {
    padding: 12px 18px;
    border-radius: 0 0 12px 12px;
}
/* Remove colored top borders from box-primary, box-success, etc. */
.sky-card.box-primary,
.sky-card.box-success,
.sky-card.box-warning,
.sky-card.box-danger,
.sky-card.box-info,
.sky-card.box-solid {
    border-top: none;
}
.sky-card.box-primary > .box-header,
.sky-card.box-solid > .box-header {
    background: #fff;
    color: #1e293b;
}
.sky-card.box-solid > .box-header .box-title {
    color: #1e293b;
}


/* Truncation utility classes */
.table tbody td.cell-truncate {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.table tbody td.cell-narrow {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Labels in tables */
.table tbody td .label {
    white-space: nowrap;
}

/* Dropdown z-index in tables */
.table .btn-group .dropdown-menu {
    z-index: 1050;
}

/* ── Exception: v4 module pages (.mod-page-wrap) keep their own design ── */
.mod-page-wrap .table thead th {
    /* gray thead bg/color/border removed — falls to sk-dt navy (skyline-erp.css §4/§11) */
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
/* .mod-page-wrap .table tfoot gray removed — falls to sk-dt pale tfoot (§4/§11.5) */
.mod-page-wrap .table > tbody > tr:nth-child(even) {
    background-color: #fafbfc;
}
.mod-page-wrap .table > tbody > tr:hover {
    background-color: #f0f9ff !important;
}

/* ── Exception: Statement / Ledger / Contact report tables (.custome_table)
     keep their own table-header-gray design instead of global blue ────── */
/* plain-thead custome_table.table falls to sk-dt navy (§4/§11); the explicit
   .table-header-gray opt-in (shared report component x-report.data-table) keeps its gray */
.custome_table.table thead th {
    /* gray thead bg/color/border removed — falls to sk-dt navy */
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.custome_table .table-header-gray th {
    /* gray thead bg/color/border removed — falls to sk-dt navy (skyline-erp.css §4/§11) */
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.custome_table.table tfoot td,
.custome_table.table tfoot th {
    /* gray tfoot bg/color/border removed — falls to sk-dt pale tfoot */
    font-weight: 700;
}
/* Ensure inner spans (colored totals) remain readable on gray footer */
.custome_table.table tfoot th span,
.custome_table.table tfoot td span {
    color: inherit;
}

/* ──────────────────────────────────────────────────────────────
   Part 3: Content-Header Modernization
   ────────────────────────────────────────────────────────────── */
.content-header {
    padding: 12px 15px 6px;
}
.content-header > h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: 0.1px;
}
.content-header > h1 > small {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 400;
}

/* ──────────────────────────────────────────────────────────────
   Part 4: Modal Design Upgrade
   ────────────────────────────────────────────────────────────── */
.modal-content {
    border-radius: 14px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.08);
    overflow: hidden;
}
.modal-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f3547 100%);
    border-bottom: 3px solid #f59e0b;
    padding: 12px 18px;
}
.modal-header .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.modal-header .close {
    color: rgba(255,255,255,.7);
    opacity: 1;
    text-shadow: none;
    font-size: 22px;
}
.modal-header .close:hover {
    color: #fff;
}
.modal-body {
    padding: 16px 20px;
}
.modal-body label {
    font-weight: 600;
    color: #1e293b;
    font-size: 13.5px;
    margin-bottom: 4px;
}
.modal-body .form-control {
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    transition: border-color .2s, box-shadow .2s;
}
.modal-body .form-control:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20,184,166,.12);
}
.modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e8ecf1;
    padding: 10px 18px;
    border-radius: 0 0 14px 14px;
}
.modal-footer .btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 22px;
}
.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}
.modal-footer .btn-default {
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
}

/* Exception: POS-specific modals that already have custom styling */
.row_edit_product_price_model .modal-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f3547 100%);
}

/* Exception: mobile scanner modal */
.mobileScannerModal .modal-content {
    border-radius: 14px;
}

/* ──────────────────────────────────────────────────────────────
   Part 5: RTL Adjustments for Design Upgrade
   ────────────────────────────────────────────────────────────── */
[dir="rtl"] .sky-card .sky-card-title-group {
    flex-direction: row-reverse;
}
[dir="rtl"] .sky-card .box-header .box-tools {
    float: none;
}

/* ──────────────────────────────────────────────────────────────
   Part 6: Print — do NOT apply design overrides when printing
   ────────────────────────────────────────────────────────────── */
@media print {
    .sky-card.box {
        box-shadow: none;
        border-radius: 0;
    }
    .modal-header {
        background: #f5f5f5;
    }
}

/* ── Sidebar "New" Badge ── */
.sk-new-badge {
    display: inline-block;
    padding: 1px 7px;
    margin-left: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    /* Dark green text, not white: white on this vivid gradient measures 1.67:1 at 9px,
       far below the 4.5:1 WCAG 1.4.3 requires. #0b3d20 gives 5.51:1 on the darker stop
       and 7.39:1 on the lighter one, and keeps the badge's bright "NEW" colour. */
    color: #0b3d20;
    background: linear-gradient(135deg, #00c853, #00e676);
    border-radius: 10px;
    vertical-align: middle;
    line-height: 16px;
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.5), 0 1px 3px rgba(0, 0, 0, 0.15);
    animation: sk-new-pulse 2s ease-in-out infinite;
    position: relative;
    top: -1px;
}
@keyframes sk-new-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.5), 0 1px 3px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 0 0 6px rgba(0, 200, 83, 0), 0 1px 3px rgba(0, 0, 0, 0.15); }
}
.sidebar-menu .treeview-menu li a .sk-new-badge {
    float: none;
    position: relative;
}
.sk-new-badge.sk-badge-danger { background: #dc2626 !important; }

/* ================================================================
   Sidebar overflow & mobile/tablet fixes
   ================================================================ */
.main-sidebar,
.main-sidebar .sidebar,
.main-sidebar .sidebar-menu,
.main-sidebar #box_menu_list {
    overflow-x: hidden !important;
}

/* Datepicker z-index fix — render above .wrapper overflow:hidden */
body > .bootstrap-datetimepicker-widget {
    z-index: 99999 !important;
}
.bootstrap-datetimepicker-widget {
    z-index: 99999 !important;
}
/* Fix: .wrapper has overflow:hidden which clips datepicker popups */
.wrapper.thetop {
    overflow: visible !important;
    overflow-y: auto !important;
}

/* ================================================================
   DataTables Top Scrollbar
   ================================================================ */
.dt-top-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    height: 12px;
    margin-bottom: -1px;
    border-bottom: 1px solid #ddd;
}
.dt-top-scroll > div {
    height: 1px;
}
.dt-top-scroll::-webkit-scrollbar {
    height: 8px;
}
.dt-top-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.dt-top-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
.dt-top-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}
