.audit-mdl {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    font-family: 'Rubik', sans-serif;
}


.audit-mdl .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.audit-mdl .overlay.low-op {
    opacity: 0.5;
}

.audit-mdl .audit-modal {
    position: relative;
    z-index: 2;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: right;
    color: #333;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

@media (min-width: 768px) {
    .audit-mdl .audit-modal {
        width: 600px;
        height: auto;
        max-height: 85vh;
        border-radius: 12px;
    }
}

.audit-mdl .audit-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
}

.audit-mdl .audit-header h2 {
    margin: 0;
    font-size: 18px;
    color: #111827;
    font-weight: 700;
}

.audit-mdl .audit-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #fff;
    position: relative;
}

.audit-mdl .audit-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    text-align: left;
    flex-shrink: 0;
}


.audit-mdl .audit-close-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 21px;
    cursor: pointer;
    padding: 0px;
    border-radius: 50%;
    text-align: center;
    height: 35px;
    width: 35px;
    padding: 0px;
}
.audit-mdl .audit-close-btn:hover { color: #999999; background-color: #eee; }

.audit-mdl .audit-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.1s;
}
.audit-mdl .audit-item:hover { background-color: #f9fafb; }

.audit-mdl .audit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    flex-shrink: 0;
}
.audit-mdl .audit-icon i { font-size: 16px; }

.audit-mdl .audit-details { flex: 1; }
.audit-mdl .audit-action {font-weight: 600;color: #1f2937;font-size: 16px;margin-bottom: 4px;}
.audit-mdl .audit-meta {font-size: 16px;color: #6b7280;display: flex;align-items: center;flex-wrap: wrap;gap: 4px;}
.audit-mdl .meta-spacer { margin: 0 6px; color: #e5e7eb; }

.audit-mdl .btn-close {
    background: white;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    font-weight: 500;
}
.audit-mdl .btn-close:hover { background: #f3f4f6; border-color: #9ca3af; }

.icon-Update{ background-color: #d1fae5; color: #059669; }
.icon-Publish { background-color: #fef3c7; color: #d97706; }
.icon-danger  { background-color: #fee2e2; color: #dc2626; }
.icon-Create    { background-color: #dbeafe; color: #2563eb; }

.animate-enterance-fade {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.audit-mdl .skeleton-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
}
.audit-mdl .skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    margin-left: 16px;
    flex-shrink: 0;
}
.audit-mdl .skeleton-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    padding-top: 4px;
}
.audit-mdl .skeleton-line {
    height: 12px;
    background-color: #e5e7eb;
    border-radius: 4px;
}
.audit-mdl .skeleton-line.title { width: 60%; height: 14px; }
.audit-mdl .skeleton-line.meta { width: 40%; }

/* Pulse Animation */
.audit-mdl .mpulse { animation: pulser 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulser {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}