/* Checkbox Styles for Batch Selection */
.checkbox-container-inline {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    margin-right: 0.75rem;
}

.checkbox-container-inline input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-container-inline:hover .checkmark {
    border-color: var(--accent-primary);
}

.checkbox-container-inline input:checked~.checkmark {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container-inline input:checked~.checkmark:after {
    display: block;
}

.checkbox-container-inline .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Indeterminate state */
.checkbox-container-inline input:indeterminate~.checkmark {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-container-inline input:indeterminate~.checkmark:after {
    display: block;
    left: 3px;
    top: 7px;
    width: 12px;
    height: 2px;
    border: none;
    background: white;
    transform: none;
}

/* Batch Actions Bar */
.batch-actions {
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideDown 0.3s ease;
}

.batch-actions.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-xs {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Fix button positioning */
.fix-btn-individual {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Voucher group header improvements */
.voucher-group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.voucher-title {
    flex: 1;
    font-weight: 600;
    color: #ffffff;
    font-size: 1.05rem;
}
/* Findings Table Styles */
.findings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-secondary);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.findings-table thead {
    background: var(--bg-primary);
}

.findings-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.findings-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.findings-table tbody tr:hover {
    background: var(--bg-hover);
}

.findings-table tbody tr:last-child {
    border-bottom: none;
}

.findings-table td {
    padding: 1rem;
    vertical-align: top;
}

/* Severity row colors */
.finding-row.severity-high {
    border-left: 4px solid #dc2626;
}

.finding-row.severity-medium {
    border-left: 4px solid #f59e0b;
}

.finding-row.severity-low {
    border-left: 4px solid #6b7280;
}

/* Cell styles */
.checkbox-cell {
    text-align: center;
}

.severity-cell {}

.badge-table {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-table.high {
    background: #dc2626;
    color: white;
}

.badge-table.medium {
    background: #f59e0b;
    color: #18181b;
}

.badge-table.low {
    background: #6b7280;
    color: white;
}

.issue-cell {
    line-height: 1.5;
}

.issue-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.suggestion-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.action-cell {
    text-align: center;
}

.action-tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.action-tag.fixable {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

.action-tag.manual {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3b8;
}

.action-tag.fixed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
}

/* Header with actions */
.voucher-header-table {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid var(--border);
}

.checkbox-label-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .findings-table {
        font-size: 0.875rem;
    }
    
    .findings-table th,
    .findings-table td {
        padding: 0.5rem;
    }
    
    .issue-text {
        font-size: 0.875rem;
    }
    
    .suggestion-text {
        font-size: 0.8rem;
    }
    
    .voucher-header-table {
        flex-wrap: wrap;
    }
}
