table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none !important
}

div.dataTables_filter input,
div.dataTables_length select {
    border: 1px solid #d3d3d3 !important;
    padding: 3px;
    background: #fbfbfb !important;
}

.opacity_5 {
    opacity: 0.5;
    pointer-events: none;
    border: 1px solid grey;
}

[type=search] {
    outline: none !important;
}


@media print {
    @media print {

        #kt_app_header,
        .print_btn,
        #app-header,
        .print_btn_block,
        .hide_on_print {
            display: none !important;
        }

        #kt_app_footer {
            display: block !important;
        }

        .symbol.symbol-50px {
            display: none !important;
        }

        .card {
            border: 0;
            box-shadow: 0px 0px;
            background-color: transparent;
        }

        #kt_app_content,
        #kt_app_content_container .card-body {
            padding-top: 3px !important
        }
    }
}

/* POS Desktop Layout styles */
.product-grid-container {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for Catalog */
.product-grid-container::-webkit-scrollbar {
    width: 6px;
}

.product-grid-container::-webkit-scrollbar-track {
    background: transparent;
}

.product-grid-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

[data-theme="dark"] .product-grid-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.08);
}

.product-card {
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #E4E6EF;
    border-radius: 1rem;
    background-color: #ffffff;
    box-shadow: 0 0.15rem 1rem rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.08);
    border-color: #3E97FF;
}

.product-card .stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-visual {
    height: 110px;
    border-radius: 0.75rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.28s ease;
}

.product-card:hover .product-visual {
    transform: scale(1.02);
}

.product-initials {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    opacity: 0.85;
}

/* Category gradients */
.grad-blue-purple {
    background: linear-gradient(135deg, rgba(62, 151, 255, 0.12) 0%, rgba(114, 57, 234, 0.12) 100%);
    color: #7239EA;
}

.grad-pink-orange {
    background: linear-gradient(135deg, rgba(241, 65, 108, 0.12) 0%, rgba(255, 153, 0, 0.12) 100%);
    color: #F1416C;
}

.grad-green-blue {
    background: linear-gradient(135deg, rgba(80, 205, 137, 0.12) 0%, rgba(62, 151, 255, 0.12) 100%);
    color: #50CD89;
}

.grad-purple-pink {
    background: linear-gradient(135deg, rgba(114, 57, 234, 0.12) 0%, rgba(241, 65, 108, 0.12) 100%);
    color: #7239EA;
}

.grad-orange-green {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.12) 0%, rgba(80, 205, 137, 0.12) 100%);
    color: #FF9900;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #181C32;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    height: 2.6rem;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #3E97FF;
}

.product-meta {
    font-size: 0.725rem;
    color: #7E8299;
    background-color: #F9F9F9;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    border: 1px solid #F1F1F4;
}

[data-theme="dark"] .product-card {
    background-color: #1e1e2d;
    border-color: #2b2b40;
    box-shadow: 0 0.15rem 1rem rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .product-card:hover {
    border-color: #3E97FF;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .product-title {
    color: #FFFFFF;
}

[data-theme="dark"] .product-meta {
    color: #92929f;
    background-color: #1a1a27;
    border-color: #2b2b40;
}

[data-theme="dark"] .grad-blue-purple {
    background: linear-gradient(135deg, rgba(62, 151, 255, 0.18) 0%, rgba(114, 57, 234, 0.18) 100%);
}

[data-theme="dark"] .grad-pink-orange {
    background: linear-gradient(135deg, rgba(241, 65, 108, 0.18) 0%, rgba(255, 153, 0, 0.18) 100%);
}

[data-theme="dark"] .grad-green-blue {
    background: linear-gradient(135deg, rgba(80, 205, 137, 0.18) 0%, rgba(62, 151, 255, 0.18) 100%);
}

[data-theme="dark"] .grad-purple-pink {
    background: linear-gradient(135deg, rgba(114, 57, 234, 0.18) 0%, rgba(241, 65, 108, 0.18) 100%);
}

[data-theme="dark"] .grad-orange-green {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.18) 0%, rgba(80, 205, 137, 0.18) 100%);
}

/* Premium Catalog Aesthetics */
.premium-product-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e4e6ef;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.premium-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    border-color: #b5b5c3;
}

.premium-product-card.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(80%);
}

.premium-product-card.out-of-stock:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border-color: #e4e6ef;
}

.product-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.premium-product-card:hover .product-icon-box {
    transform: scale(1.1) rotate(8deg);
}

.premium-product-card .product-price {
    font-weight: 800;
    color: #181c32;
    letter-spacing: -0.5px;
}

.add-action-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.premium-product-card:hover .add-action-btn {
    transform: scale(1.1);
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.premium-product-card:hover .add-action-btn i {
    color: white !important;
}

[data-theme="dark"] .premium-product-card {
    background-color: #1e1e2d;
    border-color: #2b2b40;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .premium-product-card:hover {
    border-color: #3E97FF;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .premium-product-card .product-price {
    color: #FFFFFF;
}

.hover-fw-bold:hover {
    font-weight: 700 !important;
}