/* Common Invoice Drop Zone Styles */

#invoices-section .report-card {
    margin-top: 0;
}

.invoice-dropzone-card {
    padding: 1.5rem 1rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px dashed #888;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.invoice-dropzone-card .status-line {
    width: 100%;
    margin-bottom: 0;
}

.invoice-dropzone-card.dragover {
    border-color: #1976d2;
    background: rgba(25, 118, 210, 0.08);
}

.invoice-dropzone-card .drop-zone-icon {
    font-size: 3rem;
    color: #7a11eb;
    margin-bottom: 0.5rem;
    display: block;
}

.invoice-dropzone-card .drop-zone-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
}

.invoice-dropzone-card .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.invoice-dropzone-card.disabled {
    background: #f5f5f5;
    border-color: #bbb;
    cursor: not-allowed;
    position: relative;
}

.invoice-dropzone-card.disabled::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #1976d2;
    border-radius: 50%;
    animation: invoiceDropZoneSpin 1s linear infinite;
    top: calc(50% - 18px);
    left: calc(50% - 18px);
}

@keyframes invoiceDropZoneSpin {
    to { transform: rotate(360deg); }
}

.invoice-dropzone-card.disabled:not(.processing-active) [data-role="drop-label"],
.invoice-dropzone-card.disabled:not(.processing-active) [data-role="drop-hint"],
.invoice-dropzone-card.disabled:not(.processing-active) .drop-zone-icon {
    opacity: 0;
}

.invoice-dropzone-card.processing-active [data-role="drop-label"],
.invoice-dropzone-card.processing-active [data-role="drop-hint"] {
    opacity: 1;
}

.invoice-dropzone-card.processing-active .drop-zone-icon {
    opacity: 0;
}

.invoice-dropzone-card .status-line {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    display: none;
}

.invoice-dropzone-card .status-line.info {
    background: #e3f2fd;
    color: #0d47a1;
}

.invoice-dropzone-card .status-line.error {
    background: #ffebee;
    color: #c62828;
}

.invoice-dropzone-card .status-line.success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Additional styles specific to myreports.html (hover effects) */

.invoice-due-future {
    border: 2px solid #28a745;
    animation: invoicePulseGreen 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.invoice-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(40, 167, 69, 0.95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.invoice-hover-overlay.show {
    opacity: 1;
}

.invoice-hover-active .card-body.hidden {
    visibility: hidden;
}

@keyframes invoicePulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Delete button visibility: see reports.css (.report-card .delete-*) */
