#activity_reports { color: #1f2937; }
.reports-subtitle { margin: 4px 0 0; color: #64748b; font-size: .9rem; }
.reports-alert { margin: 16px 0; padding: 12px 16px; border-radius: 10px; background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.reports-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.report-card { background: #fff; border: 1px solid #e5e7eb; border-right: 4px solid #334155; border-radius: 12px; padding: 17px; box-shadow: 0 5px 18px rgba(15,23,42,.05); }
.report-card span { display: block; color: #64748b; font-size: .86rem; }
.report-card strong { display: block; margin-top: 7px; font-size: 1.7rem; color: #0f172a; }
.report-card.success { border-right-color: #16a34a; }
.report-card.warning { border-right-color: #dc2626; }
.report-card.info { border-right-color: #0284c7; }
.reports-panel { margin: 18px 0; padding: 18px; border-radius: 13px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 5px 18px rgba(15,23,42,.04); }
.reports-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.reports-panel-heading h2 { margin: 0; font-size: 1.1rem; }
.reports-panel-heading span { color: #64748b; font-size: .85rem; }
.reports-users-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.report-user { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; background: #f8fafc; cursor: pointer; transition: .18s ease; }
.report-user:hover, .report-user:focus { border-color: #0f766e; box-shadow: 0 5px 16px rgba(15,118,110,.1); outline: none; }
.report-user strong, .report-user small { display: block; }
.report-user small { color: #64748b; direction: ltr; text-align: right; }
.report-user-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.report-user-stats span { border-radius: 999px; padding: 3px 8px; font-size: .75rem; background: #e2e8f0; }
.reports-filters { display: grid; grid-template-columns: repeat(5, minmax(130px,1fr)); gap: 10px; align-items: end; margin-bottom: 16px; }
.reports-filters label { display: flex; flex-direction: column; gap: 6px; color: #475569; font-size: .82rem; font-weight: 600; }
.reports-filters input, .reports-filters select { min-height: 42px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font: inherit; }
.reports-search { grid-column: span 2; }
.reports-filter-actions { display: flex; gap: 8px; }
.btn-secondary { border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 8px; padding: 10px 14px; cursor: pointer; }
.reports-table-wrap { overflow-x: auto; }
.reports-table td { vertical-align: top; }
.reports-table .muted { display: block; color: #64748b; font-size: .75rem; direction: ltr; }
.report-status { display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: .76rem; font-weight: 700; }
.report-status.success { color: #166534; background: #dcfce7; }
.report-status.failed { color: #991b1b; background: #fee2e2; }
.report-status.denied { color: #9a3412; background: #ffedd5; }
.report-details-btn { border: 0; color: #0f766e; background: #ccfbf1; border-radius: 7px; padding: 7px 10px; cursor: pointer; }
.reports-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.reports-pagination button { min-width: 38px; min-height: 36px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; cursor: pointer; }
.reports-pagination button.active { background: #0f766e; color: #fff; border-color: #0f766e; }
.reports-detail-dialog { width: min(760px, 94vw); max-height: 85vh; border: 0; border-radius: 14px; padding: 0; box-shadow: 0 24px 80px rgba(15,23,42,.25); }
.reports-detail-dialog::backdrop { background: rgba(15,23,42,.65); }
.reports-detail-head { display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; }
.reports-detail-body { padding: 18px 20px; overflow: auto; max-height: 67vh; }
.reports-detail-body dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.reports-detail-body dt { color: #64748b; font-weight: 700; }
.reports-detail-body dd { margin: 0; overflow-wrap: anywhere; }
.reports-json { direction: ltr; text-align: left; white-space: pre-wrap; background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 8px; font: 12px/1.6 monospace; }
@media (max-width: 1100px) { .reports-cards { grid-template-columns: repeat(2,1fr); } .reports-users-grid { grid-template-columns: repeat(2,1fr); } .reports-filters { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .reports-cards, .reports-users-grid, .reports-filters { grid-template-columns: 1fr; } .reports-search { grid-column: span 1; } .reports-panel { padding: 12px; } }
