﻿#auditLogOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
}

#AuditLogPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1050px;
    max-width: 95vw;
    background: #fff;
    border: 1px solid #999;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1001;
}

    #AuditLogPopup .audit-popup-header {
        background-color: #4a6741;
        color: #fff;
        padding: 10px 15px;
        font-weight: bold;
        font-size: 16px;
        border-radius: 4px 4px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        #AuditLogPopup .audit-popup-header .imgConfirmClose {
            width: 18px;
            height: 18px;
            cursor: pointer;
            filter: brightness(0) invert(1); /* make the X white on the dark header */
        }

    #AuditLogPopup .audit-popup-body {
        padding: 15px;
        max-height: 70vh;
        overflow-y: auto;
    }

#tblAuditLog {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    #tblAuditLog thead tr th {
        background-color: #4a6741;
        color: #fff;
        padding: 9px 10px;
        text-align: left;
        border: 1px solid #3a5631;
        white-space: nowrap;
    }

    #tblAuditLog tbody tr td {
        padding: 8px 10px;
        border-bottom: 1px solid #e0e0e0;
        vertical-align: top;
    }

    #tblAuditLog tbody tr:nth-child(even) td {
        background-color: #f6f8f5;
    }

    #tblAuditLog tbody tr:hover td {
        background-color: #edf3eb;
    }

.audit-action-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.audit-badge-submitted {
    background: #e3f2fd;
    color: #0d47a1;
}

.audit-badge-approved {
    background: #e8f5e9;
    color: #1b5e20;
}

.audit-badge-returned {
    background: #fce4ec;
    color: #880e4f;
}

.audit-badge-edited {
    background: #fff3e0;
    color: #e65100;
}

.audit-badge-saved {
    background: #f3e5f5;
    color: #4a148c;
}

.audit-badge-created {
    background: #e0f2f1;
    color: #004d40;
}

.audit-role-dot {
    color: #1565c0;
    font-weight: bold;
}

.audit-role-div {
    color: #2e7d32;
    font-weight: bold;
}

.audit-role-admin {
    color: #c62828;
    font-weight: bold;
}

#auditLogLoading {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

#auditLogEmpty {
    text-align: center;
    padding: 30px;
    color: #888;
}

.btn-view-audit-log {
    margin-left: 15px;
    font-size: 13px;
    padding: 3px 12px;
    vertical-align: middle;
}
