/* Auto Invoicing Status Card Styling */

.auto-invoicing-card {
    display: block;
    background-color: #4A90E2;
    color: white;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auto-invoicing-card:hover {
    background-color: #3a7bc8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
}

.auto-invoicing-card:active {
    transform: translateY(0);
}

/* Header with title and badge */
.auto-invoicing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.auto-invoicing-card-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.auto-invoicing-card-title i {
    width: 20px;
    height: 20px;
}

/* Badge in top-right */
.auto-invoicing-badge {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    animation: pulse-glow 0.6s ease-in-out;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Status text */
.auto-invoicing-card-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auto-invoicing-jobs {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.auto-invoicing-customers {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

/* Mobile styling - stack the button and card vertically */
@media (max-width: 768px) {
    .auto-invoicing-card {
        padding: 16px;
        min-height: auto;
    }
    
    .auto-invoicing-card-title {
        font-size: 15px;
    }
    
    .auto-invoicing-jobs {
        font-size: 14px;
    }
    
    .auto-invoicing-customers {
        font-size: 12px;
    }
}

/* Desktop - ensure card is same height as button */
@media (min-width: 769px) {
    .auto-invoicing-card {
        padding: 24px;
    }
    
    .row > .col-md-6:last-child .auto-invoicing-card {
        display: flex;
        align-items: flex-start;
    }
}
