﻿.audit-header {
    background-color: #212121;
    color: white;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

    .audit-header h2 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 500;
    }

.audit-filter {
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.selected-filter {
    display: flex;
    align-items: center;
}

    .selected-filter .btn-primary {
        background-color: #14E4BD;
        border-color: #14E4BD;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        padding: 8px 15px;
    }

    .selected-filter .btn-outline-secondary {
        width: 36px;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.audit-list {
    padding: 0 15px;
    padding-bottom: 120px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.audit-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    min-height: fit-content;
    transition: all 0.3s ease;
    cursor: pointer;
}

    /* Hover effect for display items */
    .audit-item:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
        background-color: #f8f9fa;
    }

.audit-title-row {
    border-bottom: 1px solid #eee;
}

.audit-title {
    display: inline-block;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #2962FF;
}

.audit-details {
    font-size: 0.9rem;
    padding: 15px;
}

.audit-label {
    font-weight: 500;
    color: #666;
}

.audit-value {
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.audit-value-display {
    color: #42C166;
}

.text-success {
    color: #4CAF50 !important;
}

.action-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 100;
}

    .action-button .btn-primary {
        background-color: #2962FF;
        border-color: #2962FF;
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .action-button .btn-primary i {
            font-size: 1.5rem;
        }

.product-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-icon img {
        max-width: 100%;
        max-height: 100%;
    }

.audit-expand-btn {
    transition: transform 0.3s ease;
}

    .audit-expand-btn.open {
        transform: rotate(45deg);
    }

.main-content {
    padding-bottom: 140px;
    height: 100vh;
    overflow-y: auto;
}

.audit-tooltip {
    top: 205px;
    left: 100px;
    z-index: 1050;
    max-width: 326px;
    width: 240px;
}

.display-info-row {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.display-image {
    flex-shrink: 0;
    margin-right: 15px;
}

.display-info {
    flex-grow: 1;
    min-width: 0;
}

.display-chevron {
    flex-shrink: 0;
    margin-left: 10px;
    color: #666;
}

.row.mb-2 {
    margin-bottom: 0.75rem !important;
}

.col-4.audit-label {
    padding-right: 0.5rem;
}

.col-8.audit-value {
    padding-left: 0.5rem;
}

.display-status-text-active {
    color: #28a745;
    font-weight: 500;
}

.display-status-text-pending-installation {
    color: #ffc107;
    font-weight: 500;
}

.display-status-text-discontinued {
    color: #dc3545;
    font-weight: 500;
}

.display-status-text-pending-discontinuation {
    color: #fd7e14;
    font-weight: 500;
}

.display-status-text-nothing-on-display {
    color: #6c757d;
    font-weight: 500;
}

.display-status-unknown {
    color: #6c757d;
    font-weight: 400;
}

.suggested-number {
    color: #FFA500 !important;
    margin-top: 2px !important;
}

@media (max-width: 768px) {
    .audit-list {
        padding: 0 10px;
        padding-bottom: 140px;
    }

    .display-info-row {
        padding: 10px;
    }

    .col-4.audit-label {
        font-size: 0.85rem;
    }

    .col-8.audit-value {
        font-size: 0.85rem;
    }
}

.audit-item.pending-audit {
    background-color: #dadee1 !important;
    margin-bottom: 15px;
}

.audit-item.in-progress {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 3px solid #90A4AE;
}

/* Ensure normal items also have consistent spacing */
.audit-item:not(.pending-audit) {
    margin-bottom: 15px;
}

.audit-item.pending-audit .display-info-row {
    background-color: transparent !important; /* Let the parent background show through */
}

/* Hover effects for different item states */
.audit-item.pending-audit:hover {
    background-color: #e9ecef !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.audit-item.in-progress:hover {
    background-color: #f0f0f0 !important;
    border-color: #1a1f24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.audit-item.pending-audit + .audit-item.pending-audit {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Button state styles for DisplayDetails component */
.btn.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

    .btn.btn-secondary:hover:not(:disabled) {
        background-color: #5a6268 !important;
        border-color: #545b62 !important;
    }

    .btn.btn-secondary:disabled,
    .btn.btn-outline-secondary:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
    }

.btn.btn-primary:disabled,
.btn.btn-outline-primary:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn {
    transition: all 0.2s ease-in-out;
}

.welcome-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.luxeiq-logo {
    width: 80%;
    max-width: 320px;
    height: auto;
    margin-bottom: 1.5rem;
}

.welcome-separator {
    width: 100%;
    height: 1px;
    background-color: transparent;
    border: none;
    margin: -2rem 0 0.5rem 0;
    opacity: 0;
}

.welcome-title {
    color: #212121;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.welcome-description {
    color: #212121;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: -9px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-screen {
        max-width: 90%;
        padding: 1.5rem 1rem;
    }

    .luxeiq-logo {
        max-width: 280px;
    }

    .welcome-title {
        font-size: 1rem;
    }

    .welcome-description {
        font-size: 0.9rem;
    }
}

.welcome-padding {
    padding: 0rem !important;
}
