/* Inspections Tab Styles - Prevent hover underline on tables */

/* Override global table hover underline for violations table */
.inspection-violations-table tbody tr:hover {
    text-decoration: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Simple table styles - no hover effects, no cursor changes */
.inspection-violations-table tbody tr {
    cursor: default;
}

/* Remove all text decoration */
.inspection-violations-table tbody tr td {
    text-decoration: none !important;
}

/* Override global table hover underline for inspection levels table */
.inspection-levels-table tbody tr:hover {
    text-decoration: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Inspection levels table - no hover effects, no cursor changes */
.inspection-levels-table tbody tr {
    cursor: default;
}

/* Remove all text decoration from inspection levels table */
.inspection-levels-table tbody tr td {
    text-decoration: none !important;
    padding: 0.5rem 0.75rem;
}

/* OOS Comparison Card */
.oos-comparison-card {
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

/* Remove bottom margin on larger screens where cards are side by side */
@media (min-width: 768px) {
    .oos-comparison-card {
        margin-bottom: 0;
    }
}

/* Light mode - Severe violations background (light orange/amber) with dark text */
.inspection-violations-table .bg-severe,
.inspection-violations-table tbody tr td.bg-severe,
.inspection-violations-table tbody tr td.bg-severe strong {
    background-color: #fff3cd !important;
    color: #000 !important;
    font-weight: 500;
}

/* Light mode - OOS violations background (light red) with dark text - most critical */
.inspection-violations-table .bg-oos,
.inspection-violations-table tbody tr td.bg-oos,
.inspection-violations-table tbody tr td.bg-oos strong {
    background-color: #ffe6e6 !important;
    color: #000 !important;
    font-weight: 500;
}

/* Dark mode - use much darker, more saturated backgrounds with white text for maximum contrast */
[data-theme="dark"] .inspection-violations-table .bg-severe,
[data-theme="dark"] .inspection-violations-table tbody tr td.bg-severe,
[data-theme="dark"] .inspection-violations-table tbody tr td.bg-severe strong {
    background-color: #b45309 !important;
    color: #fff !important;
    font-weight: 600;
}

[data-theme="dark"] .inspection-violations-table .bg-oos,
[data-theme="dark"] .inspection-violations-table tbody tr td.bg-oos,
[data-theme="dark"] .inspection-violations-table tbody tr td.bg-oos strong {
    background-color: #991b1b !important;
    color: #fff !important;
    font-weight: 600;
}

[data-theme="dark"] .oos-comparison-card {
    background-color: #2b2b2b;
    border-color: #444;
}

/* BASIC Category Filter Chip Styles */
.basic-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.basic-filter-chip:hover:not(:disabled):not(.disabled) {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.basic-filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 123, 195, 0.3);
}

.basic-filter-chip.active:hover:not(:disabled):not(.disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.basic-filter-chip:disabled,
.basic-filter-chip.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.basic-filter-chip:disabled:hover,
.basic-filter-chip.disabled:hover {
    border-color: var(--border-color);
    transform: none;
    box-shadow: none;
}

.basic-filter-chip i {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.basic-filter-chip.active i {
    color: white;
}

.basic-filter-chip .chip-label {
    font-weight: 500;
}

.basic-filter-chip .chip-count {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-weight: 600;
}

.basic-filter-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Clean filter chip - special green styling */
.basic-filter-chip.clean-chip {
    border-color: #1CA13B;
}

.basic-filter-chip.clean-chip:hover:not(:disabled):not(.disabled) {
    border-color: #168a2f;
}

.basic-filter-chip.clean-chip.active {
    background: #1CA13B;
    border-color: #1CA13B;
    color: white;
    box-shadow: 0 2px 6px rgba(28, 161, 59, 0.3);
}

.basic-filter-chip.clean-chip.active:hover:not(:disabled):not(.disabled) {
    background: #168a2f;
    border-color: #168a2f;
}

.basic-filter-chip.clean-chip i {
    color: #1CA13B;
}

.basic-filter-chip.clean-chip.active i {
    color: white;
}

/* Mobile responsiveness for BASIC filter chips */
@media (max-width: 767.98px) {
    .basic-filter-chip {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .basic-filter-chip i {
        font-size: 0.75rem;
    }
    
    .basic-filter-chip .chip-count {
        font-size: 0.65rem;
        padding: 0.1rem 0.35rem;
    }
}
