/* New Order Card Styles */
.order-card {
    background-color: white;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1rem; /* p-4 */
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* space-y-3 */
    position: relative;
}
.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
}
.order-card.order-item-new::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #3b82f6; /* blue-500 */
    border-top-left-radius: 0.75rem; /* Match parent's rounded-xl */
    border-bottom-left-radius: 0.75rem; /* Match parent's rounded-xl */
}
.order-card.order-item-new {
    border-left-color: #3b82f6;
}
/* New "Rejected" Tag styles */
.order-card.order-item-rejected::after {
    content: 'HYLÄTTY';
    position: absolute;
    top: -0.55rem;
    left: -0.55rem;
    background-color: #ef4444; /* red-500 */
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}



/* Date Preset Button Styles */
.date-preset-btn {
    padding: 0.25rem 0.75rem; /* py-1 px-3 */
    border-radius: 9999px; /* rounded-full */
    background-color: #f3f4f6; /* bg-gray-100 */
    color: #374151; /* text-gray-700 */
    font-weight: 500; /* font-medium */
    transition: background-color 0.2s, color 0.2s;
}
.date-preset-btn:hover {
    background-color: #d1d5db; /* bg-gray-300 */
}

/* Styles for bulk selection mode */
.selection-mode-active .order-card {
    cursor: pointer;
}

.order-card.selected {
    border-color: #3b82f6 !important; /* blue-500 */
    background-color: #eff6ff !important; /* blue-50 */
    box-shadow: 0 0 0 2px #3b82f6;
}

/* Styles for the sticky action bar */
.fixed-actions {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 40; /* Ensure it's above content but below the header */
    background-color: #fff;
    /* Remove padding and rounding when sticky, as it's a full-width bar now */
    padding: 0;
    border-radius: 0;
}

/* When the bar is sticky, apply container properties to the inner wrapper */
.fixed-actions #sticky-content-wrapper {
    max-width: 1480px; /* From Tailwind's .container.mx-auto */
    margin-left: auto;
    margin-right: auto;
    /**padding: 0.75rem 1rem; /* Restore the original p-3 and px-4 */
}