


/* Order Hover Card */
.order-hover-card {
    animation: fadeInCard 0.15s ease-in-out;
    pointer-events: none;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table cursor pointer on hover */
.table tbody tr {
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.table tbody tr:hover {
    background-color: #f0f0f0 !important;
}

/* Highlighted row for jump-to functionality */
.highlighted-row {
    background-color: #fff3cd !important;
    animation: highlightPulse 0.5s ease-in-out;
    box-shadow: inset 0 0 0 2px #ffc107;
}

@keyframes highlightPulse {
    0%, 100% {
        background-color: #fff3cd;
    }
    50% {
        background-color: #ffe69c;
    }
}

/* Duplicate badge with hover effect */
.duplicate-badge {
    transition: all 0.2s ease;
}

.duplicate-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Alert styling in hover card */
.order-hover-card .alert {
    border-radius: 4px;
    border-left: 3px solid #dc3545;
    line-height: 1.3;
}

/* Ensure hover card stays within viewport */
.order-hover-card {
    max-height: 70vh;
    overflow-y: auto;
}

/* Scrollbar styling for hover card */
.order-hover-card::-webkit-scrollbar {
    width: 5px;
}

.order-hover-card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.order-hover-card::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.order-hover-card::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Compact table styling */
.table-sm td, .table-sm th {
    padding: 6px 8px !important;
    font-size: 0.85rem;
    line-height: 1.3;
}

.table-sm .kt-badge {
    padding: 2px 6px;
    font-size: 0.7rem;
    line-height: 1.2;
}

/* Filter input styling */
.filter-input-wrapper {
    position: relative;
}

.table thead input.form-control-sm {
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.table thead input.form-control-sm:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
    outline: 0;
}

/* Filter clear button */
.filter-clear-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 2px;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.9rem;
    z-index: 5;
    transition: color 0.2s ease;
}

.filter-clear-btn:hover {
    color: #dc3545;
}

/* Sortable column headers */
.table thead th > div {
    user-select: none;
}

.table thead th > div:hover {
    color: #ff8c00;
}

/* Sort indicator styling */
.table thead .bi-arrow-up,
.table thead .bi-arrow-down {
    color: #ff8c00;
    font-weight: bold;
}

