/* ================================
   RIWAYAT ADMIN - KHUSUS HALAMAN RIWAYAT
================================ */

.riwayat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.riwayat-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 12px;
}

.riwayat-date-main {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.riwayat-date-sub {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.riwayat-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.riwayat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: #ecfdf5;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex: 0 0 42px;
}

.riwayat-user-name {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 3px;
}

.riwayat-user-email {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.riwayat-input-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.detail-result-card {
    border-radius: 22px;
    padding: 18px;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 215, 0, 0.14), transparent 25%),
        linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    border: 1px solid #bbf7d0;
    margin-bottom: 16px;
}

.detail-result-card small {
    display: block;
    color: #15803d;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.detail-result-card h4 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-info-card {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 15px;
}

.detail-info-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 7px;
}

.detail-info-card strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.5;
}

.detail-section-title {
    margin: 18px 0 12px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.mini-data-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mini-data-item {
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8eef5;
    padding: 11px;
}

.mini-data-item span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 4px;
}

.mini-data-item strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
}

.modal-content {
    border-radius: 24px !important;
}

@media (max-width: 992px) {
    .mini-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .riwayat-header {
        flex-direction: column;
    }

    .detail-grid,
    .mini-data-grid {
        grid-template-columns: 1fr;
    }

    .riwayat-user-cell {
        align-items: flex-start;
    }
}