.audit-main {
    display: grid;
    gap: 22px;
}

.audit-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.audit-summary article,
.audit-card,
.audit-filters {
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(15, 35, 70, .08);
}

.audit-summary article {
    padding: 22px;
}

.audit-summary span {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 10px;
}

.audit-summary strong {
    font-size: 34px;
    color: #0f172a;
}

.audit-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px 220px;
    gap: 14px;
    padding: 18px;
}

.audit-filters input,
.audit-filters select {
    width: 100%;
    border: 1px solid #cfe0f4;
    border-radius: 16px;
    min-height: 48px;
    padding: 0 16px;
    color: #172033;
    font-weight: 700;
    background: #fff;
}

.audit-card {
    overflow: hidden;
}

.audit-card .list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e4edf8;
}

.audit-card h3 {
    margin: 0;
    font-size: 22px;
}

.audit-card p {
    margin: 4px 0 0;
    color: #64748b;
    font-weight: 700;
}

.table-wrap {
    overflow: auto;
}

.audit-card table {
    width: 100%;
    border-collapse: collapse;
}

.audit-card th,
.audit-card td {
    text-align: left;
    padding: 15px 14px;
    border-bottom: 1px solid #edf3fb;
    vertical-align: top;
}

.audit-card th {
    background: #f7fbff;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 13px;
}

.details-cell {
    max-width: 420px;
    color: #475569;
    font-size: 13px;
}

.audit-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e8f3ff;
    color: #075dcc;
    padding: 7px 10px;
    font-weight: 900;
    font-size: 12px;
}

.audit-pill.success {
    background: #dcfce7;
    color: #15803d;
}

.audit-pill.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.empty {
    color: #64748b;
    text-align: center;
    padding: 28px !important;
}

.audit-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #111827;
    color: #fff;
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .22);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: .2s ease;
    z-index: 50;
}

.audit-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .audit-summary,
    .audit-filters {
        grid-template-columns: 1fr;
    }
}
